/* ========================================
   ECO-MARKET.KZ — NEW MODERN DESIGN 2024
   ======================================== */

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

/* CSS Variables - New Color Palette */
:root {
    /* Primary Colors */
    --primary: #1B4D3E;
    --primary-light: #2D6A52;
    --primary-dark: #0F3329;
    --primary-gradient: linear-gradient(135deg, #1B4D3E 0%, #2D6A52 100%);
    
    /* Accent Colors */
    --accent: #D4A574;
    --accent-light: #E8C9A0;
    --accent-dark: #B88A5A;
    --accent-gradient: linear-gradient(135deg, #D4A574 0%, #E8C9A0 100%);
    
    /* Secondary */
    --sage: #87A878;
    --sage-light: #A8C696;
    --cream: #F7F5F0;
    --cream-dark: #EDE9E1;
    
    /* Backgrounds */
    --bg-primary: #FAFAF8;
    --bg-secondary: #F5F3EE;
    --bg-card: #FFFFFF;
    
    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #8A8A8A;
    --text-light: #FFFFFF;
    
    /* Status */
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --sale: #DC2626;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(27, 77, 62, 0.15);
    
    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Fonts */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* ========================================
   RESET & BASE
   ======================================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.5s ease forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   TOP BAR
   ======================================== */

.top-bar {
    background: #f5f3ee;
    color: #000;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 500;
    /*! display: none; */
}

.top-bar i {
    color: var(--accent);
    margin-right: 6px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: var(--accent-light);
}

/* ========================================
   HEADER
   ======================================== */

.main-header {
    background: var(--bg-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);

    /* мягкая светлая тень вниз */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2) !important;
    border: 0 !important;
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--cream-dark);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.navbar-brand:hover .brand-logo {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.brand-text {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-text span {
    color: var(--accent);
}

/* Search */
.search-box {
    position: relative;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 14px 55px 14px 22px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-base);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.1);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-gradient);
    color: var(--text-light);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    position: relative;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
}

.header-action:hover {
    background: var(--bg-secondary);
    color: var(--primary);
}

.header-action i {
    font-size: 22px;
    color: var(--primary);
    transition: var(--transition-base);
}

.header-action:hover i {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 7px;
    right: 10px;
    background: var(--sale);
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   NAVIGATION
   ======================================== */

.nav-menu {
    background: var(--primary-gradient);
    padding: 0;
}

.nav-menu .nav {
    gap: 5px;
}

.nav-menu .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 16px 22px !important;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.nav-menu .nav-link:hover,
.nav-menu .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light) !important;
}

.nav-menu .nav-link::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-menu .nav-link:hover::after,
.nav-menu .nav-link.active::after {
    width: 30px;
}

/* ========================================
   HERO SECTION - NEW DESIGN
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, var(--cream) 0%, var(--bg-secondary) 50%, var(--cream) 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(27, 77, 62, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-primary), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(27, 77, 62, 0.1);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 25px;
}

.hero-subtitle i {
    color: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 25px;
}

.hero-title .highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--accent-gradient);
    opacity: 0.4;
    z-index: -1;
    border-radius: 4px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-feature i {
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: var(--text-light);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 77, 62, 0.4);
    color: var(--text-light);
}

.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    color: var(--primary);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-secondary-custom:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.btn-accent-custom {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent-gradient);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.4);
}

.btn-accent-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.5);
    color: var(--text-primary);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition-slow);
}

.hero-image:hover img {
    transform: scale(1.02);
}

.hero-floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: 20px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.hero-floating-card.card-1 {
    bottom: 60px;
    left: -30px;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    top: 40px;
    right: -20px;
    animation-delay: 1s;
}

.floating-card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 24px;
}

.floating-card-text {
    font-size: 13px;
    color: var(--text-muted);
}

.floating-card-text strong {
    display: block;
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Decorative Elements */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.hero-decoration-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: 10%;
    right: 5%;
}

.hero-decoration-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 15%;
    left: 40%;
}

/* ========================================
   SECTIONS
   ======================================== */

.section {
    padding: 60px 0;
    position: relative;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin-top: 15px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 2px solid var(--cream-dark);
    transition: var(--transition-base);
}

.btn-view-all:hover {
    background: var(--primary);
    color: var(--text-light);
    border-color: var(--primary);
    gap: 15px;
}

/* ========================================
   CATEGORY TABS - NEW!
   ======================================== */

.category-tabs-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.category-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--cream-dark);
    padding-bottom: 20px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 14px;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.category-tab:hover {
    background: var(--cream);
    color: var(--primary);
}

.category-tab.active {
    background: var(--primary-gradient);
    color: var(--text-light);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.category-tab i {
    font-size: 18px;
}

.category-tab .count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
}

.category-tab.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Subcategory Pills */
.subcategory-pills {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.subcategory-pill {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
}

.subcategory-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.subcategory-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

/* Products Grid with Animation */
.products-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.products-grid.animate {
    animation: fadeInUp 0.5s ease;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px 25px;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--cream-dark);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon-wrapper {
    width: 90px;
    height: 90px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    transition: var(--transition-base);
    position: relative;
}

.category-card:hover .category-icon-wrapper {
    background: var(--primary-gradient);
    transform: scale(1.1);
}

.category-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 2px dashed var(--cream-dark);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-base);
}

.category-card:hover .category-icon-wrapper::after {
    opacity: 1;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.category-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.category-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   PRODUCT CARDS - NEW DESIGN
   ======================================== */

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    border: 1px solid var(--cream-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.product-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.sale {
    background: var(--sale);
    color: var(--text-light);
}

.product-badge.new {
    background: var(--success);
    color: var(--text-light);
}

.product-badge.organic {
    background: var(--primary);
    color: var(--text-light);
}

.product-badge.hit {
    background: var(--accent);
    color: var(--text-primary);
}

.product-image {
    position: relative;
    padding: 25px;
    background: var(--bg-secondary);
    overflow: hidden;
    aspect-ratio: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-base);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-action-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    font-size: 18px;
}

.product-action-btn:hover {
    background: var(--primary);
    color: var(--text-light);
    transform: scale(1.1);
}

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

.product-category {
    font-size: 9px;
    font-weight: 600;
    color: #c06823;
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 8px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

.product-name a:hover {
    color: var(--primary);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.product-weight {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
}

.product-rating i {
    color: var(--warning);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--cream-dark);
}

.product-price {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
}

.price-old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.btn-add-cart {
    width: 45px;
    height: 34px;
    background: var(--primary-gradient);
    color: var(--text-light);
    border: none;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(27, 77, 62, 0.3);
}

.btn-add-cart:hover {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 6px 20px rgba(27, 77, 62, 0.4);
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features-section {
    background: var(--primary-gradient);
    color: var(--text-light);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--text-primary);
    flex-shrink: 0;
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 5px;
}

.feature-text {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 500;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.about-section {
    background: var(--bg-secondary);
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-stats {
    position: absolute;
    bottom: -30px;
    right: -20px;
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

.about-content {
    padding-left: 40px;
}

.about-content h2 {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-list {
    list-style: none;
    margin: 30px 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

.about-list li i {
    width: 28px;
    height: 28px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials-section {
    background: var(--bg-primary);
}

.testimonial-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--cream-dark);
    transition: var(--transition-base);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 60px;
    color: var(--primary);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--warning);
    font-size: 16px;
}

.testimonial-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
    font-style: italic;
}

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

.testimonial-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cream);
}

.testimonial-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.testimonial-role {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ========================================
   NEWSLETTER
   ======================================== */

.newsletter-section {
    background: var(--accent-gradient);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.newsletter-text {
    color: var(--text-secondary);
    margin-bottom: 35px;
    font-size: 17px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 18px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 15px;
    outline: none;
    font-weight: 500;
    transition: var(--transition-base);
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 100px 0 0;
    position: relative;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-brand .brand-logo {
    background: var(--primary-light);
}

.footer-brand .brand-text {
    color: var(--text-light);
}

.footer-brand .brand-text span {
    color: var(--accent);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-base);
    font-size: 18px;
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--text-primary);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-light);
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
}

.footer-contact i {
    color: var(--accent);
    margin-top: 3px;
    font-size: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    margin-top: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
}

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

.footer-payments img {
    height: 30px;
    opacity: 0.6;
    filter: brightness(0) invert(1);
    transition: var(--transition-base);
}

.footer-payments img:hover {
    opacity: 1;
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: var(--primary-gradient);
    padding: 40px 0;
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 40%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.page-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    background: none;
    justify-content: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.breadcrumb-item a {
    color: gray;
    font-weight: 500;
    font-size: 14px;
}

.breadcrumb-item a:hover {
    color: var(--text-light);
}

.breadcrumb-item.active {
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    line-height: 25px;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: gray;
}

/* ========================================
   CATALOG PAGE
   ======================================== */

.catalog-section {
    padding: 60px 0;
    min-height: 600px;
    padding-top: 35px;
}

/* Sidebar */
.sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--cream-dark);
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group-title i {
    color: var(--primary);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.filter-option:hover {
    background: var(--bg-secondary);
}

.filter-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.filter-option span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-option:hover span {
    color: var(--primary);
}

.filter-count {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--cream);
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* Price Range */
.price-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.price-range input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.price-range input:focus {
    outline: none;
    border-color: var(--primary);
}

.price-range span {
    color: var(--text-muted);
    font-weight: 600;
}

/* Catalog Toolbar */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px 25px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-dark);
}

.catalog-count {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
}

.catalog-count strong {
    color: var(--primary);
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 12px;
}

.catalog-sort span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    color: #000;
}

.catalog-sort select {
    padding: 8px 20px 8px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-secondary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234A4A4A' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    transition: var(--transition-fast);
}

.catalog-sort select:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

.product-detail-section {
    padding: 60px 0;
}

.product-gallery {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
    padding: 20px 30px !important;
}

.product-main-image {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    margin-bottom: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-main-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.product-thumb {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-base);
    overflow: hidden;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary);
    background: var(--cream);
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-detail-info {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
    height: 100%;
    padding: 32px 40px !important;
}

.product-detail-header {
    margin-bottom: 25px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--cream-dark);
}

.product-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: rgba(27, 77, 62, 0.1);
    border-radius: var(--radius-full);
}

.product-detail-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars i {
    color: var(--warning);
    font-size: 18px;
}

.rating-text {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.rating-text a {
    color: var(--primary);
    text-decoration: underline;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 10px;
}

.detail-price-current {
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 700;
    color: var(--primary);
}

.detail-price-old {
    font-size: 24px;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.detail-price-discount {
    background: var(--sale);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
}

.product-detail-description {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 16px;
}

.product-detail-features {
    list-style: none;
    margin-bottom: 30px;
}

.product-detail-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
}

.product-detail-features li i {
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.product-quantity-wrapper {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 8px 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.quantity-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.quantity-control button {
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quantity-control button:hover {
    background: var(--cream);
}

.quantity-control input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    background: transparent;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
}

.btn-add-cart-large {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: var(--text-light);
    border: none;
    padding: 4px 35px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

.btn-add-cart-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 77, 62, 0.4);
}

.btn-wishlist-large {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 2px solid var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 19px;
}

.btn-wishlist-large:hover {
    background: var(--error);
    border-color: var(--error);
    color: var(--text-light);
}

/* Product Tabs */
.product-tabs {
    margin-top: 60px;
}

.nav-tabs-custom {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid var(--cream-dark);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-tabs-custom .nav-link {
    background: none;
    border: none;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: var(--transition-base);
    position: relative;
}

.nav-tabs-custom .nav-link:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

.nav-tabs-custom .nav-link.active {
    color: var(--primary);
    background: var(--bg-secondary);
}

.nav-tabs-custom .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content-custom {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-dark);
}

/* ========================================
   CART PAGE
   ======================================== */

.cart-section {
    padding: 60px 0;
}

.cart-table {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
}

.cart-table-header {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr 1fr 60px;
    padding: 22px 30px;
    background: var(--bg-secondary);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1.2fr 1fr 60px;
    padding: 25px 30px;
    align-items: center;
    border-bottom: 1px solid var(--cream-dark);
    transition: var(--transition-fast);
}

.cart-item:hover {
    background: var(--bg-secondary);
}

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

.cart-product {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-product-image {
    width: 90px;
    height: 90px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 12px;
    overflow: hidden;
}

.cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-base);
}

.cart-product:hover .cart-product-image img {
    transform: scale(1.05);
}

.cart-product-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.cart-product-info p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.cart-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 16px;
}

.cart-quantity .quantity-control {
    width: fit-content;
}

.cart-total {
    font-weight: 800;
    color: var(--primary);
    font-size: 18px;
}

.cart-remove {
    width: 45px;
    height: 45px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-base);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-remove:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--cream-dark);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-row.discount {
    color: var(--sale);
}

.summary-row.total {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    padding-top: 20px;
    border-top: 2px solid var(--cream-dark);
    margin-top: 20px;
}

/* Promo Code */
.promo-code-wrapper {
    margin: 25px 0;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
}

.promo-code-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.promo-input-group {
    display: flex;
    gap: 10px;
}

.promo-input-group input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-apply {
    padding: 14px 24px;
    background: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    white-space: nowrap;
}

.btn-apply:hover {
    background: var(--primary-dark);
}

.btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--primary-gradient);
    color: var(--text-light);
    border: none;
    padding: 20px;
    border-radius: var(--radius-full);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: 0 4px 15px rgba(27, 77, 62, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 77, 62, 0.4);
}

/* Empty Cart */
.cart-empty {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
}

.cart-empty-icon {
    width: 140px;
    height: 140px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 35px;
    font-size: 60px;
    color: var(--text-muted);
}

.cart-empty h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.cart-empty p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */

.checkout-section {
    padding: 60px 0;
}

.checkout-form {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
    margin-bottom: 25px;
}

.checkout-title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-title i {
    color: var(--primary);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: block;
}

.form-label span {
    color: var(--sale);
}

.form-control-custom {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-card);
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Delivery Options */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

.delivery-option:hover {
    border-color: var(--primary);
}

.delivery-option input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.delivery-option-content {
    flex: 1;
}

.delivery-option-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
    font-size: 15px;
}

.delivery-option-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.delivery-option-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 16px;
}

/* Payment Methods */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.payment-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px 15px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
    border: 2px solid transparent;
    text-align: center;
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method.active {
    border-color: var(--primary);
    background: rgba(27, 77, 62, 0.05);
}

.payment-method i {
    font-size: 32px;
    color: var(--primary);
}

.payment-method span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Checkout Summary */
.checkout-summary {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 35px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--cream-dark);
    position: sticky;
    top: 100px;
}

.checkout-products {
    margin-bottom: 25px;
    max-height: 300px;
    overflow-y: auto;
}

.checkout-product {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cream-dark);
}

.checkout-product:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.checkout-product-image {
    width: 70px;
    height: 70px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 10px;
    flex-shrink: 0;
}

.checkout-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.checkout-product-info {
    flex: 1;
}

.checkout-product-info h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.checkout-product-info p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.checkout-product-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 15px;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 18px;
    animation: slideIn 0.3s ease;
    min-width: 350px;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.info {
    border-left-color: var(--primary);
}

.toast-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.toast.error .toast-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.toast.info .toast-icon {
    background: rgba(27, 77, 62, 0.1);
    color: var(--primary);
}

.toast-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.toast-content p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1199px) {
    .hero-title {
        font-size: 46px;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 50px;
    }
    
    .about-stats {
        right: 20px;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 38px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-item {
        margin-bottom: 20px;
    }
    
    .cart-table-header,
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-table-header {
        display: none;
    }
    
    .cart-price,
    .cart-quantity,
    .cart-total {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .cart-price::before {
        content: 'Цена:';
        font-weight: 600;
        color: var(--text-muted);
    }
    
    .cart-quantity::before {
        content: 'Количество:';
        font-weight: 600;
        color: var(--text-muted);
    }
    
    .cart-total::before {
        content: 'Итого:';
        font-weight: 600;
        color: var(--text-muted);
    }
}

@media (max-width: 767px) {
    .nav-menu {
        display:none;
    }
    .hero-title {
        font-size: 32px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 15px;
    }
    
    .category-tab {
        flex-shrink: 0;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    .about-stats {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        justify-content: center;
    }
    
    .toast {
        min-width: auto;
        max-width: 90vw;
    }
    
    .toast-container {
        right: 15px;
        left: 15px;
    }
}

@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-accent-custom {
        width: 100%;
        justify-content: center;
    }
}
/* ===== Header alignment fixes (logo/search/actions ровно как в макете) ===== */
.header-logo{
  max-width: 270px;
  height: auto;
  display:block;
}

.header-row{
  align-items:center;
}

/* --- OC Search -> our design --- */
.oc-search #search{
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

/* OpenCart default search markup (input-group) */
.oc-search #search .input-group{
  width:100%;
}

.oc-search #search input[type="text"],
.oc-search #search input[name="search"]{
  width:100%;
  padding: 14px 55px 14px 22px !important;
  border: 2px solid var(--cream-dark) !important;
  border-radius: var(--radius-full) !important;
  background: var(--bg-secondary) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow:none !important;
}

.oc-search #search input::placeholder{
  color: var(--text-muted) !important;
}

.oc-search #search input:focus{
  outline:none !important;
  border-color: var(--primary) !important;
  background: var(--bg-card) !important;
  box-shadow: 0 0 0 4px rgba(27, 77, 62, 0.1) !important;
}

/* OC search button (usually inside .input-group-btn / button) */
.oc-search #search button{
  position: absolute !important;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-gradient) !important;
  color: var(--text-light) !important;
  border: none !important;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full) !important;
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 !important;
}

.oc-search #search button:hover{
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow-md);
}

/* если OC выводит span.input-group-btn — убираем влияние */
.oc-search #search .input-group-btn{
  position: static !important;
}

/* --- OC Cart -> our design --- */
.header-cart-action{
  padding: 10px 16px;
}

.header-cart-action .header-cart-label{
  display:block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 4px;
  text-align:center;
}

/* OpenCart cart block */
.header-cart-action .oc-cart #cart{
  position: relative;
}

/* кнопка корзины */
.header-cart-action .oc-cart #cart > button{
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow:none !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
}

/* иконка в кнопке */
.header-cart-action .oc-cart #cart > button i{
  font-size: 22px !important;
  color: var(--primary) !important;
}

/* текст "0 товаров - ..." скрываем, чтобы не ломал сетку */
.header-cart-action .oc-cart #cart #cart-total{
  display:none !important;
}

/* dropdown меню корзины визуально норм */
.header-cart-action .oc-cart #cart .dropdown-menu{
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--cream-dark);
  padding: 12px;
  min-width: 320px;
}
.breadcrumb-item:nth-child(1) {
  display: none;
}
.breadcrumb-item:nth-child(1) + .breadcrumb-item::before {
 display: none;   
}
}
.catalog-breadcrumb.is-hidden { display: none !important; }
#wishlist-total {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#wishlist-total::after {
    content: attr(data-count);
    position: absolute;
    top: 7px;
    right: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* row: меню слева, соцкнопки справа */
.nav-menu .nav-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}

.nav-menu .eco-nav-left{
  flex: 1 1 auto;
  min-width: 0;
}

.nav-menu .eco-nav-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex: 0 0 auto;
}

/* кнопки */
.nav-menu .eco-social{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  text-decoration:none;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 300;
}

.nav-menu .eco-social i{
  font-size: 18px;
}

/* цвета (если хочешь) */
.nav-menu .eco-whatsapp{   }
.nav-menu .eco-instagram{ background: rgba(225, 48, 108, .18); border-color: rgba(225, 48, 108, .35); }

/* на мобилке скрыть справа (у тебя снизу есть bottom bar) */
@media (max-width: 991.98px){
  .nav-menu .eco-nav-right{ display:none; }
}

.alert-success {
    font-size: 13px;
  padding: 11px 30px;
}
}