/* 
 * Lion Tea - Premium E-Commerce Stylesheet
 * Custom CSS with Royal Blue & Gold theme, Glassmorphism, and elegant typography.
 */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #070e17; /* Глубокий королевский темно-синий */
    --bg-card: rgba(13, 27, 42, 0.7); /* Сине-черный с прозрачностью */
    --bg-card-hover: rgba(27, 38, 59, 0.85);
    --gold: #d4af37; /* Основной золотой */
    --gold-bright: #f3e5ab; /* Яркий кремово-золотой */
    --gold-dark: #c5a059; /* Благородный темный золотой */
    --gold-gradient: linear-gradient(135deg, #c5a059 0%, #f3e5ab 50%, #d4af37 100%);
    --gold-border: rgba(197, 160, 89, 0.3);
    --gold-border-focus: rgba(243, 229, 171, 0.6);
    --text-main: #e2e8f0; /* Светло-серый для отличной читаемости */
    --text-muted: #94a3b8; /* Заглушенный серый */
    --text-white: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-gold: 0 0 15px rgba(197, 160, 89, 0.15);
    --shadow-gold-large: 0 0 30px rgba(197, 160, 89, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(13, 27, 42, 0.3) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(27, 38, 59, 0.3) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

button {
    cursor: pointer;
    font-family: var(--font-body);
    border: none;
    background: none;
    transition: var(--transition);
}

input, textarea, select {
    font-family: var(--font-body);
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--gold-border);
    color: var(--text-white);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 10px rgba(243, 229, 171, 0.2);
    background: rgba(13, 27, 42, 0.9);
}

/* Header & Navigation */
header {
    background: rgba(7, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gold-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo svg {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-btn {
    color: var(--text-main);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover {
    color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.1);
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: var(--gold-gradient);
    color: #070e17;
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-gold);
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-large);
}

.cart-count {
    background: #070e17;
    color: var(--gold-bright);
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold-dark);
}

/* Hero Section */
.hero {
    min-height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background: radial-gradient(circle, rgba(13, 27, 42, 0.6) 0%, rgba(7, 14, 23, 1) 100%);
    border-bottom: 1px solid var(--gold-border);
}

.hero-logo-large {
    margin-bottom: 25px;
    animation: pulse 4s infinite ease-in-out;
}

.hero-logo-large svg {
    width: 140px;
    height: 140px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 15px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
}

/* Main Shop Layout */
.shop-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Categories Bar (Single Line Scrollable Carousel) */
.categories-wrapper {
    position: sticky;
    top: 80px; /* below the header */
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    width: fit-content;
    margin: 0 auto 40px auto;
    padding: 6px 14px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50px;
    background: rgba(7, 14, 23, 0.95); /* match header */
    backdrop-filter: blur(10px);
    z-index: 99;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.categories-nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 10px;
    padding: 4px 5px;
    max-width: 82vw;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* hide default bar for clean look */
}

.categories-nav::-webkit-scrollbar {
    display: none;
}

.categories-scroll-btn {
    background: rgba(13, 27, 42, 0.95);
    border: 1px solid var(--gold-border);
    color: var(--gold-bright);
    font-size: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.categories-scroll-btn:hover {
    background: var(--gold-gradient);
    color: #070e17;
    border-color: transparent;
    transform: scale(1.1);
}

.categories-scroll-btn.left {
    margin-right: 6px;
}

.categories-scroll-btn.right {
    margin-left: 6px;
}

@media (max-width: 768px) {
    .categories-scroll-btn {
        display: none !important;
    }
    .categories-wrapper {
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        padding: 6px 8px;
        top: 120px; /* offset to stay below header/search on mobile */
    }
    .categories-nav {
        max-width: 100%;
    }
}

.category-tab {
    padding: 12px 26px;
    height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: 500;
    font-size: 15px;
    line-height: 1;
    border: 1px solid var(--gold-border);
    background: rgba(13, 27, 42, 0.5);
    color: var(--text-main);
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover {
    border-color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-bright);
}

.category-tab.active {
    background: var(--gold-gradient);
    color: #070e17;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-gold);
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--gold-border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    stroke: var(--gold-dark);
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--gold-bright);
}

/* Product Card */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold-large);
    background: var(--bg-card-hover);
}

.product-img-container {
    position: relative;
    width: 100%;
    padding-top: 85%; /* Aspect Ratio 4:3 */
    background: #04080e;
    overflow: hidden;
    border-bottom: 1px solid var(--gold-border);
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img {
    scale: 1.05;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.product-desc-snippet {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-bright);
}

.buy-btn {
    background: rgba(197, 160, 89, 0.15);
    border: 1px solid var(--gold-dark);
    color: var(--gold-bright);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.buy-btn:hover {
    background: var(--gold-gradient);
    color: #070e17;
    border-color: transparent;
    transform: rotate(90deg);
}

/* Product Card Out of Stock Badge */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 14, 23, 0.75);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.out-of-stock-badge {
    background: rgba(239, 68, 68, 0.85);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.buy-btn:disabled, .gold-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    filter: grayscale(1);
}

/* Modals & Popups System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 6, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    pointer-events: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Expanded Modal Window (~60% viewport width) */
.modal-content {
    background: #091320;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    width: 92%;
    max-width: 900px; /* ~60% of desktop viewport */
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-gold-large);
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    padding: 35px;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--text-muted);
    font-size: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    z-index: 10;
    cursor: pointer;
    background: rgba(13, 27, 42, 0.6);
}

.close-btn:hover {
    color: var(--gold-bright);
    border-color: var(--gold-border);
    background: rgba(197, 160, 89, 0.15);
}

/* Product Detail Modal specific */
.product-detail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
}

@media (min-width: 768px) {
    .product-detail {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: start;
    }
}

/* Photo Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
}

.main-slide-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%;
    background: #04080e;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--gold-border);
}

.main-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(7, 14, 23, 0.7);
    color: var(--gold-bright);
    border: 1px solid var(--gold-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 5;
    transition: var(--transition);
}

.slider-btn:hover {
    background: var(--gold-gradient);
    color: #070e17;
    border-color: transparent;
}

.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }

.slider-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumb-item {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
    flex-shrink: 0;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--gold-bright);
    opacity: 1;
    box-shadow: 0 0 10px rgba(243, 229, 171, 0.3);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detail-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.detail-price {
    font-size: 26px;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 15px;
}

.detail-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Cart Side Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: #091320;
    border-left: 1px solid var(--gold-border);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.active {
    transform: translateX(-420px);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--gold-bright);
    letter-spacing: 1px;
}

.cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-border);
    background: #04080e;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--gold-dark);
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--gold-border);
    color: var(--gold-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.qty-btn:hover {
    background: rgba(197, 160, 89, 0.2);
}

.qty-val {
    font-size: 14px;
    min-width: 20px;
    text-align: center;
    color: var(--text-white);
}

.cart-item-remove {
    color: #ef4444;
    font-size: 18px;
    padding: 5px;
}

.cart-item-remove:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--gold-border);
    background: rgba(7, 14, 23, 0.5);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    margin-bottom: 15px;
}

.cart-total-label {
    color: var(--text-muted);
}

.cart-total-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-bright);
}

/* Button UI Components */
.gold-btn {
    background: var(--gold-gradient);
    color: #070e17;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    width: 100%;
    text-align: center;
    display: inline-block;
    box-shadow: var(--shadow-gold);
    letter-spacing: 0.5px;
}

.gold-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold-large);
}

.gold-btn:disabled {
    background: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Checkout Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--gold-dark);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Order Success UI */
.success-screen {
    text-align: center;
    padding: 30px 10px;
}

.success-icon {
    font-size: 60px;
    color: var(--gold);
    margin-bottom: 20px;
}

/* ADMIN PANEL STYLING */
.admin-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .admin-layout {
        grid-template-columns: 240px 1fr;
    }
}

/* Sidebar */
.admin-sidebar {
    background: #04080e;
    border-right: 1px solid var(--gold-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.admin-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.admin-menu-item:hover, .admin-menu-item.active {
    background: rgba(197, 160, 89, 0.1);
    color: var(--gold-bright);
}

.admin-menu-item.active {
    border: 1px solid var(--gold-border);
}

.admin-main {
    padding: 40px 5%;
    overflow-y: auto;
}

.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.admin-header-row h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: var(--gold-bright);
}

/* Admin Dashboard Cards */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-val {
    font-size: 32px;
    font-weight: 700;
    color: var(--gold-bright);
}

.stat-label {
    color: var(--text-muted);
    font-size: 14px;
    text-transform: uppercase;
}

/* Tables and Panels */
.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.admin-card h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-white);
    margin-bottom: 20px;
}

/* Custom Table for Admin */
.responsive-table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    text-align: left;
}

.admin-table th {
    color: var(--gold-dark);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    padding: 15px;
    border-bottom: 2px solid var(--gold-border);
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
    color: var(--text-main);
    font-size: 14px;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Badges for status */
.status-badge {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.status-badge.pending {
    background: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-badge.completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Action Buttons */
.action-btn {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    margin-right: 5px;
}

.action-btn.edit {
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--gold-border);
}

.action-btn.edit:hover {
    background: var(--gold-gradient);
    color: #070e17;
}

.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.action-btn.delete:hover {
    background: #ef4444;
    color: white;
}

/* Image preview for admin forms */
.image-upload-area {
    border: 2px dashed var(--gold-border);
    padding: 20px;
    text-align: center;
    border-radius: var(--radius-md);
    cursor: pointer;
    background: rgba(13, 27, 42, 0.3);
    transition: var(--transition);
}

.image-upload-area:hover {
    border-color: var(--gold-bright);
    background: rgba(13, 27, 42, 0.5);
}

.image-preview {
    margin-top: 15px;
    max-height: 150px;
    max-width: 100%;
    border-radius: var(--radius-sm);
    display: none;
    border: 1px solid var(--gold-border);
}

/* Grid layout for admin forms */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Admin Login Panel */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 400px;
    padding: 40px;
    box-shadow: var(--shadow-gold-large);
    text-align: center;
}

.login-card h2 {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--gold-bright);
    margin-bottom: 25px;
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 0.95; }
    50% { transform: scale(1.03); opacity: 1; filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6)); }
    100% { transform: scale(1); opacity: 0.95; }
}

/* Toast Notification Styles */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #091320;
    border: 1px solid var(--gold-border);
    color: var(--text-white);
    padding: 15px 25px;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.3s forwards;
    user-select: none;
    cursor: default;
}

@keyframes slideIn {
    to { transform: translateY(0); opacity: 1; }
}

/* Language Switcher Widget */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--gold-border);
    border-radius: 50px;
    padding: 3px;
    margin-right: 15px;
}

.lang-btn {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--gold-bright);
}

.lang-btn.active {
    background: var(--gold-gradient);
    color: #070e17;
    box-shadow: 0 0 8px rgba(197, 160, 89, 0.3);
}

/* Gram Selector Modal */
.gram-selector-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: 20px;
}

.gram-options-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.gram-card {
    flex: 1;
    max-width: 110px;
    background: rgba(13, 27, 42, 0.5);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.gram-card:hover {
    border-color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.05);
    transform: translateY(-3px);
}

.gram-card.active {
    background: var(--gold-gradient);
    border-color: transparent;
    color: #070e17;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}

.gram-card-val {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gram-card-coef {
    font-size: 11px;
    opacity: 0.8;
}

.gram-selector-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(197, 160, 89, 0.05);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 25px;
}

.gram-preview-label {
    font-size: 14px;
    color: var(--text-muted);
}

.gram-preview-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold-bright);
}

/* Search Bar Component */
.search-container {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.search-container.header-search {
    margin: 0;
    flex-grow: 1;
    max-width: 450px;
    padding: 0 20px;
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        gap: 12px 0;
        padding: 12px 15px;
    }
    .search-container.header-search {
        display: block;
        order: 3;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin-top: 4px;
    }
    
    /* Оптимізація Hero-баннера на мобільних */
    .hero {
        min-height: auto;
        padding: 35px 15px;
    }
    .hero-logo-large {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 15px !important;
    }
    .hero-logo-large svg {
        width: 80px !important;
        height: 80px !important;
    }
    .hero h1 {
        font-size: 32px;
        letter-spacing: 2px;
        margin-bottom: 10px;
    }
    .hero p {
        font-size: 14px;
        line-height: 1.5;
    }

    /* Збільшення маленьких кнопок в кошику для зручного натискання */
    .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    .qty-val {
        font-size: 15px;
        min-width: 24px;
    }
    .cart-item-remove {
        width: 34px;
        height: 34px;
        font-size: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Запобігання примусовому зуму на iOS Safari при вводі */
    input, select, textarea {
        font-size: 16px;
    }
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 16px;
    width: 20px;
    height: 20px;
    stroke: var(--gold-dark);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 44px; /* Компактнее для шапки */
    font-size: 14px;
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--gold-border);
    border-radius: 50px;
    color: var(--text-white);
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 15px rgba(243, 229, 171, 0.25);
    background: rgba(13, 27, 42, 0.9);
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

.clear-search-btn:hover {
    color: var(--gold-bright);
}


/* Footer Styling */
.site-footer {
    background: #04080e;
    border-top: 1px solid var(--gold-border);
    padding: 50px 20px;
    text-align: center;
    margin-top: 80px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--gold-bright);
    font-size: 20px;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.footer-contact-block {
    max-width: 650px;
    margin: 0 auto 30px auto;
}

.footer-contact-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-main);
    margin-bottom: 20px;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--gold-border);
    background: rgba(13, 27, 42, 0.5);
    color: var(--gold-bright);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    background: var(--gold-gradient);
    color: #070e17;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
    padding-top: 20px;
    max-width: 650px;
    margin: 0 auto;
}

/* --- TEA QUIZ STYLING --- */
.quiz-banner {
    position: relative;
    max-width: 1000px;
    margin: 30px auto 40px auto;
    padding: 30px 25px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(7, 14, 23, 0.98) 100%);
    border: 1px solid var(--gold-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
}

.quiz-banner:hover {
    border-color: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.3);
}

.quiz-badge {
    display: inline-block;
    background: rgba(197, 160, 89, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--gold-border);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-banner h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.quiz-banner p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 650px;
    margin: 0 auto 20px auto;
}

.quiz-start-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 15px;
    border-radius: 50px;
    width: auto;
}

/* Quiz Modal Components */
.quiz-progress-bar-wrap {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0 25px 0;
}

.quiz-progress-bar-fill {
    height: 100%;
    background: var(--gold-gradient);
    width: 10%;
    transition: width 0.3s ease;
}

.quiz-question-title {
    font-family: var(--font-heading);
    color: var(--gold-bright);
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.quiz-options-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.quiz-option-card {
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid var(--gold-border);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quiz-option-card:hover {
    background: rgba(197, 160, 89, 0.15);
    border-color: var(--gold-bright);
    color: var(--gold-bright);
    transform: translateX(4px);
}

.quiz-option-card.selected {
    background: var(--gold-gradient);
    color: #070e17;
    font-weight: 700;
    border-color: transparent;
}

.quiz-result-winner {
    background: rgba(13, 27, 42, 0.9);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 25px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.quiz-winner-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--gold-bright);
    box-shadow: var(--shadow-gold-large);
    margin: 0 auto 15px auto;
}

/* --- ALLERGY INFO STYLING --- */
.allergy-disclaimer-block {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 40px auto 10px auto;
    max-width: 800px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.allergy-disclaimer-title {
    color: #f87171;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* --- GUIDE / ШКОЛА ЧАЮВАННЯ --- */
.guide-section {
    max-width: 1200px;
    margin: 0 auto 48px auto;
    padding: 0 20px;
}

.guide-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.guide-section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--gold-bright);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.guide-section-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.guide-scroll-wrap {
    position: relative;
}

.guide-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 6px 2px 16px 2px;
    scrollbar-width: none;
}

.guide-track::-webkit-scrollbar { display: none; }

.guide-card {
    flex: 0 0 260px;
    background: linear-gradient(145deg, rgba(13,27,42,0.95) 0%, rgba(7,14,23,0.98) 100%);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    padding: 22px 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.guide-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(212,175,55,0.15);
}

.guide-card:hover::before { opacity: 1; }

.guide-card-icon {
    font-size: 42px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(212,175,55,0.3));
}

.guide-card-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.guide-card-preview {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card-read-more {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gold-bright);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.guide-card:hover .guide-card-read-more { opacity: 1; }

/* Guide Modal detail view */
.guide-detail-icon {
    font-size: 64px;
    text-align: center;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 12px rgba(212,175,55,0.4));
}

.guide-detail-title {
    font-family: var(--font-heading);
    font-size: 26px;
    color: var(--gold-bright);
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.guide-detail-body {
    font-size: 15px;
    color: var(--text-main);
    line-height: 1.75;
    white-space: pre-line;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) transparent;
}

.guide-detail-body::-webkit-scrollbar { width: 4px; }
.guide-detail-body::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 4px; }

/* Mobile: guide cards full-width */
@media (max-width: 768px) {
    .guide-card { flex: 0 0 80vw; }
    .guide-section-title { font-size: 18px; }
}

/* Header Info Button */
.info-btn {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--gold-border);
    color: var(--gold-bright);
    font-weight: 600;
    border-radius: 50px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.info-btn svg {
    width: 18px;
    height: 18px;
}

.info-btn:hover {
    background: var(--gold-gradient);
    color: #070e17;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

@media (max-width: 768px) {
    .info-btn {
        padding: 10px;
        border-radius: 50%;
    }
    .info-btn span {
        display: none;
    }
}

/* Knowledge Side Drawer */
.knowledge-drawer {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #070e17;
    border-right: 1px solid var(--gold-border);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.7);
    z-index: 1050;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.knowledge-drawer.active {
    left: 0;
}

.knowledge-header {
    padding: 24px 20px;
    background: rgba(13, 27, 42, 0.9);
    border-bottom: 1px solid var(--gold-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.knowledge-header h2 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--gold-bright);
    margin: 0;
}

.knowledge-tabs {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(4, 8, 14, 0.9);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    overflow-x: auto;
}

.knowledge-tab {
    background: rgba(13, 27, 42, 0.6);
    border: 1px solid var(--gold-border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.knowledge-tab:hover, .knowledge-tab.active {
    background: var(--gold-gradient);
    color: #070e17;
    font-weight: 700;
    border-color: transparent;
}

.knowledge-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.knowledge-card {
    background: rgba(13, 27, 42, 0.7);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.knowledge-card:hover {
    border-color: var(--gold-bright);
    background: rgba(197, 160, 89, 0.1);
    transform: translateY(-2px);
}

.knowledge-card-title {
    font-family: var(--font-heading);
    color: var(--gold-bright);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.knowledge-card-desc {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Custom Category Pills & Hover Effects */
.desc-category-pill {
    background: rgba(13, 27, 42, 0.6) !important;
    border: 1px solid var(--gold-border) !important;
    color: var(--text-muted) !important;
    padding: 7px 14px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.desc-category-pill:hover {
    border-color: var(--gold-bright) !important;
    color: var(--gold-bright) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(197, 160, 89, 0.25) !important;
    background: rgba(197, 160, 89, 0.15) !important;
}

.desc-category-pill.active {
    background: var(--gold-gradient) !important;
    color: #070e17 !important;
    font-weight: 700 !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-gold) !important;
}

.desc-category-pill.active:hover {
    background: var(--gold-gradient) !important;
    color: #070e17 !important;
    border-color: transparent !important;
}

/* Article Cards for Descriptions */
.article-card {
    background: rgba(13, 27, 42, 0.75);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.article-card:hover {
    border-color: var(--gold-bright);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.25);
    background: rgba(197, 160, 89, 0.08);
}

.article-card-img-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img {
    transform: scale(1.06);
}

.article-badge-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(7, 14, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--gold-border);
    color: var(--gold-bright);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.article-badge-time {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(7, 14, 23, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
}

.article-card-content {
    padding: 16px 18px;
}

.article-card-title {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.25s ease;
}

.article-card:hover .article-card-title {
    color: var(--gold-bright);
}

.article-card-summary {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-read-link {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.25s ease;
}

.article-card:hover .article-read-link {
    transform: translateX(4px);
}

/* ─── Discount Badge & Price styling ────────────────────────── */
.discount-price-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.2;
}

.sale-price {
    color: #ff9f43 !important; /* Розкішний теплий помаранчево-золотий колір для акцентної ціни */
    font-weight: 800 !important;
    text-shadow: 0 0 10px rgba(255, 159, 67, 0.2);
}

.original-price-slashed {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: line-through;
    opacity: 0.7;
}

.discount-tag {
    display: inline-flex;
    align-items: center;
    background: #ef4444; /* Гарний червоний колір */
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.3);
    animation: discount-badge-bounce 3s infinite ease-in-out;
}

@keyframes discount-badge-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-1.5px); }
}

.popup-detail-discount {
    margin-top: 5px;
    gap: 12px;
}

.discount-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse-discount 2.5s ease-in-out infinite;
}

@keyframes pulse-discount {
    0%, 100% { box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4); }
    50%       { box-shadow: 0 2px 16px rgba(239, 68, 68, 0.7); }
}

.product-price-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    flex: 1;
}

/* ─── Category Pills Scroll Wrapper ────────────────────────── */
.pills-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 18px;
}

.pills-scroll-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.pills-scroll-track::-webkit-scrollbar { display: none; }

.pills-scroll-arrow {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(13, 27, 42, 0.85);
    border: 1px solid var(--gold-border);
    color: var(--gold-bright);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    opacity: 0;
    pointer-events: none;
    line-height: 1;
}

.pills-scroll-arrow[style*="opacity: 1"],
.pills-scroll-arrow[style*="opacity:1"] {
    pointer-events: auto;
}

.pills-scroll-arrow.visible {
    opacity: 1 !important;
    pointer-events: auto;
}

.pills-scroll-arrow:hover {
    background: rgba(197, 160, 89, 0.2) !important;
    border-color: var(--gold-bright) !important;
    transform: scale(1.1) !important;
}

/* Custom Responsive Rules for Product Grid and Cards */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-category {
        font-size: 9px;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }
    
    .product-title {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.25;
    }
    
    .product-desc-snippet {
        font-size: 11px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .product-price {
        font-size: 15px;
    }
    
    .buy-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Tablets / iPad: show 3 columns */
@media (min-width: 768px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .product-title {
        font-size: 17px;
    }
    
    .product-price {
        font-size: 18px;
    }
}

/* Live Search Suggestions Dropdown Styling */
.search-suggestions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    width: 340px;
    max-width: 90vw;
    background: rgba(9, 19, 32, 0.96);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-gold-large);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) transparent;
}

.search-suggestions-dropdown::-webkit-scrollbar {
    width: 5px;
}

.search-suggestions-dropdown::-webkit-scrollbar-thumb {
    background: var(--gold-border);
    border-radius: 4px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: rgba(197, 160, 89, 0.12);
}

.search-suggestion-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-border);
    flex-shrink: 0;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.search-suggestion-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.search-suggestion-cat {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-suggestion-price {
    color: var(--gold-bright);
    font-weight: 700;
    flex-shrink: 0;
}

.search-suggestions-empty {
    padding: 24px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}
