/* ============================================
   VERDE RAIZ — Visual Identity
   Palette: Forest greens, terracotta, cream
   Typography: Playfair Display + Inter
   ============================================ */

:root {
    --green-900: #1a3a0e;
    --green-800: #2D5016;
    --green-700: #3a6b1e;
    --green-600: #4A7C2E;
    --green-500: #5a9438;
    --green-400: #7ab356;
    --green-100: #e8f5e0;
    --green-50: #f3faf0;

    --terra-600: #A0622A;
    --terra-500: #C17817;
    --terra-400: #D4951A;
    --terra-100: #fdf0dc;

    --cream: #FAF7F2;
    --cream-dark: #F0EBE3;
    --white: #FFFFFF;
    --text: #2C2C2C;
    --text-light: #6B6B6B;
    --text-muted: #999999;
    --border: #E5E0D8;
    --border-light: #F0EBE3;

    --danger: #D94141;
    --success: #2D8B4E;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.25s ease;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ ANNOUNCEMENT BAR ============ */
.announcement-bar {
    background: var(--green-800);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.announcement-bar a {
    color: var(--terra-400);
    text-decoration: underline;
    font-weight: 600;
}

/* ============ HEADER ============ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--green-800);
    line-height: 1.2;
}
.logo-tagline {
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}
.main-nav > a, .dropdown-trigger {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    background: none;
    border: none;
}
.main-nav > a:hover, .dropdown-trigger:hover {
    background: var(--green-50);
    color: var(--green-700);
}
.main-nav > a.active {
    color: var(--green-700);
    font-weight: 600;
}

.nav-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.dropdown-menu a:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.search-toggle:hover { color: var(--green-700); }

.cart-link {
    position: relative;
    padding: 8px;
    color: var(--text);
    transition: var(--transition);
}
.cart-link:hover { color: var(--green-700); }
.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--terra-500);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; }
.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* Search Overlay */
.search-overlay {
    display: none;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.search-overlay.active { display: block; }
.search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    font-size: 0.95rem;
    transition: var(--transition);
}
.search-form input:focus { border-color: var(--green-600); }
.search-form button[type="submit"] {
    padding: 12px 24px;
    background: var(--green-700);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}
.search-form button[type="submit"]:hover { background: var(--green-800); }
.search-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    padding: 8px;
}

/* ============ HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--green-800) 0%, var(--green-700) 50%, var(--green-600) 100%);
    color: white;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.2);
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 36px;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--terra-500);
    color: white;
}
.btn-primary:hover { background: var(--terra-600); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); }
.btn-outline {
    background: transparent;
    color: var(--green-700);
    border: 2px solid var(--green-700);
}
.btn-outline:hover { background: var(--green-700); color: white; }
.btn-dark {
    background: var(--green-800);
    color: white;
}
.btn-dark:hover { background: var(--green-900); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ SECTIONS ============ */
.section { padding: 80px 0; }
.section-light { background: var(--white); }
.section-cream { background: var(--cream); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--green-800);
    margin-bottom: 12px;
}
.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ============ CATEGORIES GRID ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
}
.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
}
.category-card:hover {
    border-color: var(--green-400);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-card .icon {
    font-size: 2.4rem;
    margin-bottom: 12px;
    display: block;
}
.category-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-800);
    margin-bottom: 4px;
}
.category-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============ PRODUCT GRID ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.product-card-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-card-image .product-emoji {
    font-size: 4rem;
    transition: var(--transition);
}
.product-card:hover .product-emoji { transform: scale(1.1); }

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.badge-bestseller { background: var(--green-800); color: white; }
.badge-sale { background: var(--danger); color: white; }
.badge-popular { background: var(--terra-500); color: white; }
.badge-premium { background: var(--green-900); color: var(--terra-400); }

.product-card-body { padding: 20px; }
.product-card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-600);
    font-weight: 600;
    margin-bottom: 6px;
}
.product-card-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.product-card-name a { transition: var(--transition); }
.product-card-name a:hover { color: var(--green-700); }

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 0.82rem;
}
.stars { color: var(--terra-400); letter-spacing: 1px; }
.rating-count { color: var(--text-muted); }

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green-800);
}
.product-price .original-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}
.product-weight {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.add-to-cart-btn {
    background: var(--green-700);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}
.add-to-cart-btn:hover { background: var(--green-800); }
.add-to-cart-btn.added {
    background: var(--success);
}

/* ============ FEATURES / TRUST BAR ============ */
.features-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 48px 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}
.feature-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-100);
    border-radius: var(--radius);
}
.feature-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.feature-item p {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ============ ABOUT SECTION ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image {
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    border-radius: var(--radius-xl);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}
.about-content h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green-800);
    margin-bottom: 16px;
}
.about-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}
.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
}
.about-stat h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--terra-500);
}
.about-stat p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============ TESTIMONIALS ============ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border-light);
}
.testimonial-stars { color: var(--terra-400); font-size: 1rem; margin-bottom: 16px; }
.testimonial-text {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--green-700);
    font-size: 0.9rem;
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-info { font-size: 0.78rem; color: var(--text-muted); }

/* ============ CTA BANNER ============ */
.cta-banner {
    background: linear-gradient(135deg, var(--green-800), var(--green-700));
    color: white;
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    margin: 0 20px;
}
.cta-banner h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 12px;
}
.cta-banner p {
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============ SHOP PAGE ============ */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: start;
}

.shop-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
}
.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--green-800);
}
.sidebar-categories { margin-bottom: 28px; }
.sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text);
    transition: var(--transition);
}
.sidebar-categories a:hover, .sidebar-categories a.active {
    background: var(--green-50);
    color: var(--green-700);
    font-weight: 500;
}
.sidebar-categories .count {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 50px;
}

.price-filter { margin-bottom: 28px; }
.price-range {
    width: 100%;
    accent-color: var(--green-600);
    margin-top: 8px;
}
.price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.shop-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--green-800);
}
.results-count {
    font-size: 0.88rem;
    color: var(--text-light);
}
.shop-sort select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}
.no-results h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--green-800);
    margin-bottom: 8px;
}
.no-results p { color: var(--text-light); }

/* ============ PRODUCT DETAIL ============ */
.breadcrumb {
    padding: 16px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--green-700); }
.breadcrumb span { margin: 0 8px; }

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 40px 0 80px;
    align-items: start;
}

.product-gallery {
    background: linear-gradient(135deg, var(--green-50), var(--cream));
    border-radius: var(--radius-xl);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 100px;
}
.product-gallery .product-emoji-large { font-size: 8rem; }

.product-info h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--green-800);
    margin-bottom: 8px;
}
.product-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.product-detail .product-rating { margin: 0; }
.in-stock { color: var(--success); font-weight: 600; font-size: 0.85rem; }
.out-of-stock { color: var(--danger); font-weight: 600; font-size: 0.85rem; }

.product-detail .product-price {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.product-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.product-details-text {
    margin-bottom: 28px;
}
.product-details-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-details-text p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.quantity-selector label {
    font-weight: 500;
    font-size: 0.9rem;
}
.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--cream);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}
.qty-btn:hover { background: var(--green-100); }
.qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.product-actions { display: flex; gap: 12px; margin-bottom: 28px; }
.product-actions .btn { flex: 1; }

.product-guarantees {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--green-50);
    border-radius: var(--radius);
}
.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-light);
}
.guarantee-item span:first-child { font-size: 1.1rem; }

/* Related Products */
.related-products { padding: 60px 0; }

/* ============ CART PAGE ============ */
.page-header {
    padding: 40px 0 24px;
}
.page-header h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green-800);
}
.page-header p {
    color: var(--text-light);
    margin-top: 4px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    padding-bottom: 80px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    gap: 20px;
    align-items: center;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}
.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.cart-item-info h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.cart-item-info h3 a { transition: var(--transition); }
.cart-item-info h3 a:hover { color: var(--green-700); }
.cart-item-info .cart-item-weight {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.cart-item-info .cart-item-price {
    font-weight: 600;
    color: var(--green-800);
}

.cart-item-quantity .qty-controls { margin: 0; }
.cart-item-total {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--green-800);
    min-width: 80px;
    text-align: right;
}
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.cart-item-remove:hover { color: var(--danger); background: #fee; }

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    position: sticky;
    top: 100px;
}
.cart-summary h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--green-800);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.92rem;
}
.summary-row.total {
    border-top: 2px solid var(--border);
    margin-top: 8px;
    padding-top: 16px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--green-800);
}
.summary-row .free { color: var(--success); font-weight: 600; }
.cart-summary .btn { margin-top: 20px; }

.free-shipping-progress {
    margin-top: 16px;
    padding: 14px;
    background: var(--green-50);
    border-radius: var(--radius);
}
.free-shipping-progress p {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 8px;
}
.progress-bar {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--green-600);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}
.empty-cart-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.5; }
.empty-cart h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--green-800);
    margin-bottom: 8px;
}
.empty-cart p {
    color: var(--text-light);
    margin-bottom: 24px;
}

/* ============ CHECKOUT ============ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding-bottom: 80px;
    align-items: start;
}

.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
}
.checkout-section h2 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--green-800);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-group { margin-bottom: 0; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--white);
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(74, 124, 46, 0.1);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}
.payment-option:has(input:checked) {
    border-color: var(--green-600);
    background: var(--green-50);
}
.payment-option input[type="radio"] { accent-color: var(--green-600); }
.payment-option .payment-label {
    font-weight: 500;
    font-size: 0.9rem;
}
.payment-option .payment-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.card-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}
.card-fields .full-width { grid-column: 1 / -1; }

/* Order Summary in Checkout */
.checkout-summary {
    position: sticky;
    top: 100px;
}
.checkout-summary .cart-summary { margin-bottom: 16px; }

.order-items { margin-bottom: 16px; }
.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}
.order-item:last-child { border-bottom: none; }
.order-item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.order-item-details { flex: 1; }
.order-item-name { font-size: 0.85rem; font-weight: 500; }
.order-item-qty { font-size: 0.78rem; color: var(--text-muted); }
.order-item-price { font-weight: 600; font-size: 0.88rem; }

.secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ============ CONFIRMATION ============ */
.confirmation {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}
.confirmation-icon {
    width: 80px;
    height: 80px;
    background: var(--green-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}
.confirmation h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--green-800);
    margin-bottom: 12px;
}
.confirmation p { color: var(--text-light); margin-bottom: 8px; }
.order-number {
    display: inline-block;
    background: var(--green-50);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    color: var(--green-800);
    margin: 20px 0;
    font-size: 1.1rem;
}
.confirmation-details {
    text-align: left;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 32px 0;
    border: 1px solid var(--border-light);
}
.confirmation-details h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--green-800);
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--green-900);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-top: 16px;
    opacity: 0.8;
}
.footer-brand .logo-name { color: white; }

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.social-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}
.social-links a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.footer-links h4, .footer-newsletter h4 {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    font-size: 0.88rem;
    opacity: 0.7;
    transition: var(--transition);
}
.footer-links a:hover { opacity: 1; color: var(--green-400); }

.footer-newsletter p {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.6;
}
.newsletter-form {
    display: flex;
    gap: 8px;
}
.newsletter-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 0.85rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--green-400); }
.newsletter-form button {
    padding: 10px 20px;
    background: var(--terra-500);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.newsletter-form button:hover { background: var(--terra-600); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    opacity: 0.6;
}
.payment-icons {
    display: flex;
    gap: 12px;
}
.payment-icons span {
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.75rem;
}

/* ============ NOTIFICATION TOAST ============ */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--green-800);
    color: white;
    padding: 14px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .shop-layout { grid-template-columns: 220px 1fr; gap: 24px; }
    .cart-layout { grid-template-columns: 1fr 320px; }
    .checkout-layout { grid-template-columns: 1fr 340px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .main-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        box-shadow: var(--shadow-md);
    }
    .nav-dropdown .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 16px;
    }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: block; }

    .hero { padding: 48px 0 60px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; }

    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image { height: 250px; }

    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar {
        position: static;
        display: none;
    }
    .shop-sidebar.open { display: block; }
    .filter-toggle { display: inline-flex; }

    .product-detail { grid-template-columns: 1fr; gap: 32px; }
    .product-gallery { height: 300px; position: static; }

    .cart-layout,
    .checkout-layout { grid-template-columns: 1fr; }

    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    .cart-item-quantity { grid-column: 2; }
    .cart-item-total { grid-column: 2; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    .testimonials-grid { grid-template-columns: 1fr; }
    .cta-banner { padding: 40px 24px; margin: 0; border-radius: 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.8rem; }
    .section { padding: 48px 0; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .product-card-image { height: 160px; }
    .product-card-body { padding: 14px; }
    .product-card-name { font-size: 0.95rem; }
    .categories-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.5s ease forwards; }

@keyframes spin {
    to { transform: rotate(360deg); }
}
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--green-600);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin: 0 auto;
}
