/* ==============================
   RESET & ROOT THEME
   ============================== */

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

:root {
    --primary: #0a58ca; /* slightly darker for better contrast */
    --secondary: #f6f7fb;
    --accent: #ff6a00;  /* richer accent */
    --light: #ffffff;
    --dark: #111827;
    --muted: #6b7280;
    --gap: 1rem;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 12px;
    --header-height: 68px;
}

/* ==============================
   BASE
   ============================== */

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--secondary);
    color: var(--dark);
    line-height: 1.7;
}

/* ==============================
   ACCESSIBILITY
   ============================== */

.skip-link {
    position: absolute;
    left: -999px;
}

.skip-link:focus {
    left: 12px;
    top: 12px;
    padding: 8px 14px;
    background: var(--primary);
    color: var(--light);
    border-radius: 6px;
    z-index: 9999;
    text-decoration: none;
}

a:focus-visible,
.btn:focus-visible,
.filter-btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

/* ==============================
   HEADER & MODERN NAVBAR
   ============================== */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
    padding: 12px 32px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: box-shadow 200ms ease, transform 240ms ease, height 200ms ease, padding 180ms ease;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.header.scrolled {
    box-shadow: 0 8px 28px rgba(12,12,12,0.06);
}

.header.hidden-on-scroll {
    transform: translateY(-110%);
}

.logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.2px;
}

.logo span {
    color: var(--accent);
    font-weight: 600;
}

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

/* Desktop nav links */
.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.22s ease, transform 0.22s ease;
    padding: 6px 8px;
    border-radius: 6px;
}

.nav a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.24s ease;
}

.nav a:hover::after {
    width: 100%;
}

.nav a:hover,
.nav a:focus {
    transform: translateY(-1px);
}

/* Active link styling */
.nav a.active {
    color: var(--accent);
    font-weight: 700;
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 34px;
    height: 26px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--dark);
    border-radius: 4px;
    transition: transform 240ms cubic-bezier(.2,.9,.3,1), opacity 160ms ease, background 160ms ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: var(--accent);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: var(--accent);
}

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

.section {
    padding: 60px 40px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 30px;
}

/* HERO (used on homepage) */
.hero {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 5rem 1.25rem;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(10,88,202,0.06), rgba(255,255,255,0.02));
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    display: block;
    position: absolute;
    right: -6%;
    top: 0;
    width: 52%;
    height: 100%;
    background-image: url('../images/bedspread-luxury.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.16;
    pointer-events: none;
}

.hero h2 {
    font-size: clamp(1.6rem, 3.8vw, 2.6rem);
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.hero p {
    max-width: 70ch;
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.hero .hero-btn {
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 8px 26px rgba(10, 88, 202, 0.12);
    transition: transform 160ms cubic-bezier(.2,.9,.3,1), box-shadow 160ms ease;
}

.hero .hero-btn:active { transform: translateY(1px) scale(0.995); }

/* Delivery notice banner */
.notice-banner {
    max-width: var(--container-max);
    margin: 0 auto 1.5rem;
    padding: 0.85rem 1.25rem;
    background: rgba(10, 88, 202, 0.08);
    border-radius: 999px;
    color: var(--dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* Card & button polish */
.product-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms ease;
    overflow: hidden;
}
.product-card img { display:block; width:100%; height:auto; aspect-ratio: 4/3; object-fit:cover; }
.product-card:hover, .product-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.btn:hover, .btn:focus { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10,88,202,0.12); }
.btn:active { transform: translateY(0); }

/* Badges */
.badge { padding: 0.25rem 0.5rem; border-radius: 999px; font-size: 0.8rem; }
.badge-best { background: linear-gradient(90deg, #ffb703, #fb8500); color: #111; }
.badge-new  { background: linear-gradient(90deg, #06d6a0, #4cc9f0); color: #072227; }

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Hero responsive tweaks */
.hero-actions { display:flex; gap:0.75rem; justify-content:center; }

@media (max-width: 880px) {
    .hero { padding: 2rem 1rem; }
    .hero::after { display:none; }
    .header { padding: 10px 16px; }
    .nav-links { gap: 12px; }
    .hamburger { display: flex; }
    .hero h2 { font-size: 1.8rem; }
    .hero p { font-size: 0.9rem; }
    .hero .hero-btn { padding: 0.7rem 1rem; font-size: 0.9rem; }
}

/* Extra mobile optimizations for small screens */
@media (max-width: 480px) {
    .hero { padding: 1.5rem 0.75rem; }
    .hero h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
    .hero p { font-size: 0.85rem; margin-bottom: 1rem; }
    .hero .hero-btn { padding: 0.6rem 0.9rem; font-size: 0.85rem; }
    .hero-actions { flex-direction: column; gap: 0.5rem; }
    
    .section-title { font-size: 1.5rem; }
    .product-card { margin-bottom: 1rem; }
    .btn { padding: 0.5rem 0.8rem; font-size: 0.9rem; }
    .filter-btn { padding: 0.5rem 0.75rem; font-size: 0.85rem; }
}


/* Utility classes */
.container--center {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.lead {
    margin-bottom: 20px;
    color: var(--muted, #6b7280);
    font-size: 16px;
    line-height: 1.7;
}

/* ==============================
   CONTACT FORM
   ============================== */

.contact-form-section {
    margin-top: 3rem;
}

.contact-form {
    background: var(--light, #ffffff);
    padding: 2rem;
    border-radius: var(--radius, 12px);
    box-shadow: var(--card-shadow, 0 10px 30px rgba(15, 23, 42, 0.08));
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark, #111827);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid rgba(15, 23, 42, 0.1);
    border-radius: 10px;
    background: var(--light, #ffffff);
    color: var(--dark, #111827);
    transition: all 160ms ease;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--muted, #6b7280);
    opacity: 0.7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary, #0a58ca);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.1);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error-color, #ef4444);
}

.contact-form input:valid:not(:placeholder-shown),
.contact-form textarea:valid:not(:placeholder-shown) {
    border-color: var(--success-color, #10b981);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.error-message {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--error-color, #ef4444);
    min-height: 1.25rem;
}

.error-message:empty {
    display: none;
}

.card--flat {
    box-shadow: none !important;
}

.section--white {
    background: #fff;
    border-radius: 18px;
}

.text-strong { font-weight: 700; }

/* Floating WhatsApp CTA (reusable) */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    z-index: 999;
}

/* ==============================
   SEARCH BAR
   ============================== */

.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    padding-left: 48px;
    font-size: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: var(--light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 88, 202, 0.1);
}

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

.search-container::before {
    content: '🔍';
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    pointer-events: none;
}

/* ==============================
   FILTER CONTROLS
   ============================== */

.filter-controls {
    text-align: center;
    margin-bottom: 24px;
}

.filter-btn {
    background: var(--light);
    border: 1px solid var(--accent);
    padding: 10px 28px;
    margin: 6px;
    border-radius: 30px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--light);
}

/* ==============================
   ADVANCED FILTERS
   ============================== */

.advanced-filters {
    max-width: 900px;
    margin: 0 auto 2rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.filter-section {
    border: none;
}

.filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--dark);
    user-select: none;
}

.filter-summary::-webkit-details-marker {
    display: none;
}

.filter-summary::marker {
    display: none;
}

.filter-summary::after {
    content: '▼';
    font-size: 12px;
    color: var(--muted);
    transition: transform 0.2s ease;
}

.filter-section[open] .filter-summary::after {
    transform: rotate(180deg);
}

.filter-count {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: normal;
}

.filter-count[data-count="0"] {
    opacity: 0.6;
}

.filter-options {
    padding: 0 20px 20px;
    border-top: 1px solid #e5e7eb;
}

.filter-group {
    margin-top: 24px;
}

.filter-group:first-child {
    margin-top: 20px;
}

.filter-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
    font-size: 14px;
}

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

.price-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s ease;
}

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

.price-separator {
    color: var(--muted);
    font-weight: 600;
}

.filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: var(--primary);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.filter-checkbox:checked + span {
    font-weight: 600;
    color: var(--primary);
}

.filter-checkbox:checked ~ .checkbox-label {
    background: rgba(10, 88, 202, 0.1);
    border-color: var(--primary);
}

.filter-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-secondary {
    background: #f3f4f6;
    color: var(--dark);
    border: 1px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* ==============================
   VIEW CONTROLS
   ============================== */

.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 4px;
}

.results-count {
    color: var(--muted);
    font-size: 15px;
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: var(--light);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    color: var(--muted);
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #f3f4f6;
    color: var(--dark);
}

.view-btn.active {
    background: var(--primary);
    color: var(--light);
}

.view-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==============================
   PRODUCTS GRID & LIST VIEW
   ============================== */

.products {
    display: grid;
    gap: var(--gap);
}

.products-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.products-list {
    grid-template-columns: 1fr;
}

.products-list .product-card {
    flex-direction: row;
    max-width: 100%;
}

.products-list .product-card picture,
.products-list .product-card img {
    width: 280px;
    min-width: 280px;
    height: 200px;
    aspect-ratio: unset;
}

.products-list .product-card-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.products-list .product-card-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}

.products-list .product-card-content .btn {
    margin-top: 0;
    margin-left: 20px;
    flex-shrink: 0;
}

.products-list .product-card > .badge,
.products-list .product-card > .price-badge {
    position: static;
    display: inline-block;
    margin-right: 8px;
}

@media (max-width: 768px) {
    .products-list .product-card {
        flex-direction: column;
    }

    .products-list .product-card picture,
    .products-list .product-card img {
        width: 100%;
        min-width: 100%;
    }

    /* Curtain grouping headings and group container */
    .curtain-group-heading {
        font-size: 1.25rem;
        margin: 1.25rem 0 0.5rem;
        color: var(--primary);
        text-transform: capitalize;
    }

    .curtain-group {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: var(--gap);
        margin-bottom: 1.25rem;
    }

    .products-list .product-card-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .products-list .product-card-content .btn {
        margin-left: 0;
        margin-top: 12px;
        width: 100%;
    }
}
/* ==============================
   BREADCRUMB
   ============================== */

.breadcrumb {
    background: var(--light);
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-container a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-container a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--muted);
}

.breadcrumb-current {
    color: var(--dark);
    font-weight: 600;
}

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

.product-detail-section {
    padding: 2rem 0;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* Product Images */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-main-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    cursor: zoom-in;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-main-image.zoomed img {
    transform: scale(2);
    cursor: zoom-out;
}

.zoom-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.zoom-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.product-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.product-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

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

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.product-title {
    font-size: 2rem;
    color: var(--dark);
    margin: 0;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-description {
    color: var(--muted);
    line-height: 1.7;
    font-size: 16px;
}

/* Stock Status */
.stock-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.stock-label {
    font-weight: 600;
    color: var(--dark);
}

.stock-text {
    color: var(--muted);
}

.stock-text.in-stock {
    color: #10b981;
    font-weight: 600;
}

.stock-text.low-stock {
    color: #f59e0b;
    font-weight: 600;
}

.stock-text.out-of-stock {
    color: #ef4444;
    font-weight: 600;
}

/* Stock badge for product cards */
.stock-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-right: 8px;
}
.stock-badge.in-stock { background: #10b981; }
.stock-badge.low-stock { background: #f59e0b; }
.stock-badge.out-of-stock { background: #ef4444; }

/* Product Options */
.product-option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.required {
    color: #ef4444;
}

.product-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: var(--light);
    cursor: pointer;
    transition: border-color 0.2s ease;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 150px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: var(--light);
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    border-color: var(--primary);
    background: #f9fafb;
}

.quantity-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

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

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: var(--light);
    border: none;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 88, 202, 0.3);
}

.btn-add-to-cart {
    width: 100%;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: var(--light);
    text-align: center;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Product Details Tabs */
.product-details-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    margin-top: 2rem;
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease;
}

.tab-btn:hover {
    color: var(--dark);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    padding: 1.5rem 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.tab-pane ul {
    list-style: none;
    padding: 0;
}

.tab-pane ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--muted);
}

.tab-pane ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.tab-pane p {
    color: var(--muted);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 968px) {
    .product-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-title {
        font-size: 1.75rem;
    }

    .product-price {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .product-detail-container {
        padding: 0 20px;
    }

    .breadcrumb-container {
        padding: 0 20px;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .product-price {
        font-size: 1.5rem;
    }

    .product-actions {
        gap: 0.75rem;
    }

    .product-details-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}

.hidden {
    display: none !important;
}

/* ==============================
   PRODUCT CARD (streamlined)
   ============================== */

.product-card {
    background: var(--light);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    animation: fadeUp 0.45s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.product-card:focus-within {
    box-shadow: var(--card-shadow-hover), 0 0 0 6px rgba(123,90,56,0.06);
    transform: translateY(-6px);
}

.product-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.4s ease;
    min-height: 140px;
}

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

@media (max-width: 768px) {
    .product-card img { aspect-ratio: 4 / 3; min-height: 120px; }
}

.product-card h3 {
    margin: 14px 16px 6px;
    font-size: 18px;
}

.product-card p {
    margin: 0 16px 12px;
    font-size: 14px;
    color: var(--muted);
}

.product-card-content {
    padding: 12px 16px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-content h3 {
    margin: 0 0 12px 0;
}

.product-card-content .btn {
    margin-top: auto;
}

/* ==============================
   PRICE BADGE
   ============================== */

.price-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #7b5a38, #9b744a);
    color: #fff;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 3;
}

/* ==============================
   SECONDARY BADGES
   ============================== */

.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.4px;
    z-index: 3;
}

.badge-best {
    background: linear-gradient(135deg, #c89b3c, #9e7a2c);
}

.badge-new {
    background: linear-gradient(135deg, #2e8b6f, #1f5f4b);
}

/* ==============================
   BUTTON
   ============================== */

.btn {
    display: inline-block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--light);
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(12,12,12,0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(12,12,12,0.12);
}

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

footer {
    background: var(--primary);
    color: var(--light);
    text-align: center;
    padding: 26px 10px;
    font-size: 14px;
}

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

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

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Performance: Optimize image rendering */
img {
    content-visibility: auto;
    contain-intrinsic-size: 400px 300px;
}

/* ==============================
   MOBILE
   ============================== */

@media (max-width: 768px) {

    header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        background: var(--light);
        width: 220px;
        border-radius: 8px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
        padding: 8px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-6px);
        transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
        pointer-events: none;
        z-index: 200;
    }

    .nav-links.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    nav a {
        margin: 8px 0;
        padding: 10px 14px;
        display: block;
        border-radius: 6px;
    }

    nav a:hover,
    nav a:focus {
        background: rgba(123,90,56,0.06);
    }

    /* Active link styling */
    .nav a.active {
        color: var(--accent);
        font-weight: 700;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 20px;
        cursor: pointer;
    }

    .hamburger span {
        height: 3px;
        width: 100%;
        background: var(--dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .section {
        padding: 60px 20px;
    }

    .product-card img {
        height: 60px;
    }
}

/* Featured Products Image Fix */
#featured-products .product-card {
    max-width: 500px;
}
#featured-products .product-card picture img {
    max-width: 100%;
    max-height: 500px;
    height: auto;
    object-fit: cover;
}

/* New Arrivals Image Fix */
#new-arrivals .product-card {
    max-width: 350px;
}
#new-arrivals .product-card picture img {
    max-width: 100%;
    max-height: 250px;
    height: auto;
    object-fit: cover;
}

/* Professional Featured Section Styling */
.section:has(#featured-products) {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    border-radius: 16px;
    margin: 20px auto;
    max-width: 1400px;
}

/* Marquee Animation */
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--primary);
  color: var(--light);
  padding: 8px 0;
  font-weight: 600;
  text-align: center;
}

.marquee span {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}