/* ========================================
   SHOP STYLES - Atechabad Academy
   Professional E-commerce Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #004d33;
    --secondary-color: #006b56;
    --accent-color: #ff6b6b;
    --accent-hover: #e55a5a;
    --light-color: #f9f9f9;
    --dark-color: #333333;
    --gray-color: #666666;
    --light-gray: #e0e0e0;
    --border-color: #dddddd;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --hover-transform: translateY(-5px);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

/* ========================================
   FEATURED SLIDES SLIDER  (fs-*)
   FIXED: responsive layout, mobile bg,
          overlay image, arrow buttons
   ======================================== */

/* ── Outer shell ── */
.fs-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #004d33 0%, #002a1c 40%, #001a10 100%);
    margin-top: 75px;
}

/* ── Animated background circles ── */
.fs-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.fs-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fsFloat 20s infinite ease-in-out;
}
.fs-shape-1 { width: 500px; height: 500px; top: -150px; right: -100px; animation-delay: 0s; }
.fs-shape-2 { width: 300px; height: 300px; bottom: -80px; left: -60px; animation-delay: -7s; animation-duration: 28s; }
.fs-shape-3 { width: 180px; height: 180px; top: 30%; left: 30%; animation-delay: -12s; animation-duration: 22s; }
@keyframes fsFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33%       { transform: translateY(-18px) rotate(4deg); }
    66%       { transform: translateY(12px) rotate(-3deg); }
}

/* ── Slide track ── */
.fs-track {
    position: relative;
    width: 100%;
    min-height: 75vh;
    z-index: 1;
}

/* ── Individual slides — opacity/visibility toggle on ALL breakpoints ── */
.fs-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.55s;
}
.fs-slide--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
}

/* ── Content panel (left 55%) ── */
.fs-content-panel {
    width: 55%;
    padding: 60px 56px 60px 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.fs-slide--active .fs-content-panel {
    animation: fsContentIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fsContentIn {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Category badge ── */
.fs-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: rgba(255, 107, 107, 0.2);
    border: 1px solid rgba(255, 107, 107, 0.5);
    color: #ff9999;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: fit-content;
}

/* ── Heading ── */
.fs-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #a7f3d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Description ── */
.fs-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    max-width: 480px;
}

/* ── Product meta block ── */
.fs-product-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.fs-product-name {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
}
.fs-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffd700;
    font-size: 0.95rem;
}
.fs-rating-val { color: rgba(255, 255, 255, 0.65); font-size: 0.85rem; }
.fs-price { font-size: 1.6rem; font-weight: 800; color: var(--accent-color); line-height: 1; }

/* ── CTA buttons ── */
.fs-cta-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.fs-btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: var(--accent-color);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4);
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}
.fs-btn-cart:hover {
    background: #e55a5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.55);
}
.fs-btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}
.fs-btn-view:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: white;
    color: white;
    transform: translateY(-2px);
    text-decoration: none;
}

/* ─────────────────────────────────────────────────────────────
   IMAGE PANEL
   Desktop : right 45% column beside content
   Tablet+ : absolute full-bleed background BEHIND content
   ───────────────────────────────────────────────────────────── */
.fs-image-panel {
    width: 45%;
    position: relative;
    overflow: hidden;
    background: var(--primary-color);
    flex-shrink: 0;
}
.fs-slide--active .fs-image-panel {
    animation: fsImageIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes fsImageIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* Left-bleed gradient  */
.fs-image-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to right,
        rgba(0, 20, 12, 0.92) 0%,
        rgba(0, 26, 16, 0.45) 30%,
        transparent 60%
    );
}
.fs-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-slide--active .fs-img { animation: fsKenBurns 7s ease-in-out forwards; }
@keyframes fsKenBurns {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.fs-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,77,51,0.5) 0%, rgba(0,42,28,0.8) 100%);
}

/* ── Overlay decorative PNG ── */
.fs-overlay-img {
    position: absolute;
    bottom: 0%;
    right: 4%;
    z-index: 3;
    max-width: 42%;
    max-height: 68%;
    height: 68%;
    width: auto;
    object-fit: scale-down;
    filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.55));
    transform: rotate(-0deg);
    transition: transform 0.4s ease;
}
.fs-slide--active .fs-overlay-img {
    animation: fsOverlayIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}
@keyframes fsOverlayIn {
    from { opacity: 0; transform: rotate(-0deg) scale(0.85) translateY(20px); }
    to   { opacity: 1; transform: rotate(-0deg) scale(1) translateY(0); }
}

/* ── Navigation arrows ──
   pointer-events: all ensures clicks land even over track z-index ── */
.fs-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: transparent;
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease;
    pointer-events: all;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.fs-arrow:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-50%) scale(1.08);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}
.fs-arrow--prev { left: 12px; }
.fs-arrow--next { right: 12px; }

/* ── Dot indicators ── */
.fs-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
    align-items: center;
    pointer-events: all;
}
.fs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, 0.35);
    transition: all 0.35s ease;
}
.fs-dot--active {
    width: 32px;
    background: var(--accent-color);
    box-shadow: 0 0 14px rgba(255, 107, 107, 0.65);
}

/* ── Progress bar ── */
.fs-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 20;
}
.fs-progress-bar { height: 100%; background: var(--accent-color); width: 0%; }

/* ── Fallback hero ── */
.fs-fallback {
    background: linear-gradient(135deg, #004d33 0%, #002a1c 100%);
    padding: 100px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.fs-fallback-inner { position: relative; z-index: 1; }
.fs-fallback-icon { font-size: 3rem; color: var(--accent-color); display: block; margin-bottom: 24px; }
.fs-fallback-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin: 0 0 16px; }
.fs-fallback-text { font-size: 1.1rem; opacity: 0.88; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ═══════════════════════════════════════════
   TABLET  ≤ 992px
   Image becomes full-bleed background;
   content floats on top with dark overlay.
   ═══════════════════════════════════════════ */
@media (max-width: 992px) {

    .fs-slider  { min-height: auto; margin-top:75px; }

    .fs-track {
        min-height: 480px;
        margin-top: 60px;
        position: static;
    }

    /* Keep position:absolute — opacity/visibility still drives show/hide */
    .fs-slide {
        flex-direction: column;
    }

    /* Image: cover the entire slide area as a background */
    .fs-image-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    /* Overlay gradient: dark bottom so text is legible */
    .fs-image-gradient {
        background: linear-gradient(
            to top,
            rgba(0, 10, 5, 0.93) 0%,
            rgba(0, 20, 12, 0.75) 50%,
            rgba(0, 30, 18, 0.40) 100%
        );
    }

    /* Content: sits above the image */
    .fs-content-panel {
        position: relative;
        z-index: 2;
        width: 100%;
        min-height: 480px;
        padding: 48px 32px 72px;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        justify-content: flex-end;   /* text anchors to the bottom */
    }

    /* ── Overlay product image ──
       On mobile the .fs-image-panel has z-index:0 which creates a stacking
       context that buries anything inside it below the z-index:2 content panel.
       Fix: detach the overlay from that stacking context by re-anchoring it
       to the slide itself (position:absolute on .fs-slide which is the nearest
       positioned ancestor with no explicit z-index isolation).              */
    .fs-overlay-img {
        display: block;
        /* Escape the image-panel stacking context */
        position: absolute;   /* now relative to .fs-slide, not .fs-image-panel */
        z-index: 5;           /* above content panel (z:2) and image panel (z:0) */
        max-width: 140px;
        max-height: 140px;
        bottom: 10%;
        right: 4%;
        opacity: 0.90;
        /* keep the slight tilt */
        transform: rotate(-4deg);
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
    }
    .fs-slide--active .fs-overlay-img {
        animation: fsOverlayIn 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    }
}

/* ═══════════════════════════════════════════
   MOBILE  ≤ 768px
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {

    .fs-track { min-height: 400px; }

    .fs-content-panel {
        padding: 24px 20px 52px;
        gap: 10px;
        min-height: 400px;
        justify-content: flex-end;
    }

    /* Badge — smaller, less breathing room */
    .fs-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    /* Heading — tighter on mobile */
    .fs-heading {
        font-size: clamp(1.3rem, 5.5vw, 1.9rem);
        line-height: 1.2;
    }

    /* Description — hide on mobile to avoid clutter.
       The slide is compact; heading + price + buttons tell the story. */
    .fs-description {
        display: none;
    }

    /* Product meta — compact */
    .fs-product-meta {
        padding: 10px 14px;
        gap: 5px;
    }
    .fs-product-name { font-size: 0.88rem; }
    .fs-price        { font-size: 1.25rem; }
    .fs-stars        { font-size: 0.82rem; }

    /* CTA buttons — stack vertically, full width */
    .fs-cta-group { flex-direction: column; gap: 8px; }
    .fs-btn-cart,
    .fs-btn-view {
        width: 100%;
        justify-content: center;
        padding: 11px 20px;
        font-size: 0.88rem;
    }

    .fs-arrow { width: 36px; height: 36px; font-size: 0.95rem; }
    .fs-arrow--prev { left: 6px; }
    .fs-arrow--next { right: 6px; }

    .fs-bg-shapes { display: none; }

    .fs-overlay-img {
        max-width: 100px;
        max-height: 100px;
        bottom: 8%;
        right: 3%;
        opacity: 0.82;
    }
}

/* ═══════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {

    .fs-track { min-height: 340px; }

    .fs-content-panel {
        padding: 20px 16px 48px;
        gap: 8px;
        min-height: 340px;
    }

    .fs-heading {
        font-size: clamp(1.15rem, 5vw, 1.5rem);
    }

    /* Description stays hidden */
    .fs-description { display: none; }

    .fs-product-meta {
        padding: 8px 12px;
        gap: 4px;
    }
    .fs-product-name { font-size: 0.82rem; }
    .fs-price        { font-size: 1.1rem; }

    .fs-btn-cart,
    .fs-btn-view {
        padding: 10px 16px;
        font-size: 0.82rem;
    }

    /* Overlay: tuck to top-right corner, out of the text zone */
    .fs-overlay-img {
        max-width: 68px;
        max-height: 68px;
        bottom: auto;
        top: 12%;
        right: 4%;
        opacity: 0.72;
    }

    .fs-dots { bottom: 14px; }
    .fs-dot  { width: 7px; height: 7px; }
    .fs-dot--active { width: 20px; }
}

/* ========================================
   PAGE HEADER
   ======================================== */
.shop-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.shop-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></svg>');
    background-size: 100px;
    opacity: 0.3;
}

.shop-header h1 { font-size: 3rem; margin-bottom: 15px; position: relative; z-index: 1; }
.shop-header h1 i { margin-right: 15px; color: var(--accent-color); }
.shop-header p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }

/* ========================================
   SHOP CONTROLS
   ======================================== */
.shop-controls {
    padding: 25px 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-image: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    color: white;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-container { flex: 1; min-width: 280px; max-width: 500px; }
.search-form { display: flex; position: relative; }
.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--light-color);
}
.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 77, 51, 0.1);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: var(--secondary-color); transform: translateY(-50%) scale(1.05); }

.filter-view-controls { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }

.filter-dropdown { position: relative; }
.filter-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.95rem; font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-btn i:first-child { color: var(--primary-color); }

.filter-menu {
    position: absolute;
    top: 100%; left: 0;
    margin-top: 8px;
    background: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow);
    min-width: 200px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 9999;
    overflow: hidden;
}
.filter-dropdown.active .filter-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.filter-option {
    display: block;
    padding: 12px 18px;
    color: var(--dark-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--light-gray);
}
.filter-option:last-child { border-bottom: none; }
.filter-option:hover { background: var(--light-color); color: var(--primary-color); }
.filter-option.active { background: var(--primary-color); color: white; }

.view-toggle {
    display: flex; gap: 5px;
    background: var(--light-color);
    padding: 4px;
    border-radius: var(--border-radius-sm);
}
.view-btn {
    width: 40px; height: 40px;
    border: none; background: transparent;
    color: var(--gray-color);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.view-btn:hover { color: var(--primary-color); }
.view-btn.active { background: white; color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.active-filters {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    margin-top: 15px; padding-top: 15px;
    border-top: 1px solid var(--light-gray);
}
.filter-label { font-size: 0.9rem; color: var(--gray-color); }
.filter-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: var(--primary-color); color: white;
    border-radius: 20px; font-size: 0.85rem;
}
.filter-tag a { color: white; text-decoration: none; }
.filter-tag a:hover { opacity: 0.8; }
.clear-all { font-size: 0.9rem; color: var(--accent-color); text-decoration: none; font-weight: 500; }
.clear-all:hover { text-decoration: underline; }

.results-count { margin-top: 15px; color: white; font-size: 0.95rem; }
.results-count strong { color: var(--accent-color); }

/* ========================================
   PRODUCTS SECTION
   ======================================== */
.products-section { padding: 40px 0 60px; }
.products-container { display: grid; gap: 25px; }
.products-container.grid-view { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.products-container.list-view { grid-template-columns: 1fr; }
.products-container.list-view .product-card { display: flex; flex-direction: row; max-width: 100%; }
.products-container.list-view .product-image { width: 300px; min-width: 300px; height: 250px; }
.products-container.list-view .product-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.products-container.list-view .product-description { display: block !important; margin: 10px 0; }

.product-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
}
.product-card:hover { transform: var(--hover-transform); box-shadow: var(--card-shadow-hover); }

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.product-card:hover .product-image img { transform: scale(1.05); }

.product-overlay {
    position: absolute; inset: 0;
    background: rgba(0, 77, 51, 0.8);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.product-card:hover .product-overlay { opacity: 1; }

.quick-view {
    padding: 12px 24px;
    background: white; color: var(--primary-color);
    text-decoration: none; border-radius: 30px; font-weight: 600;
    transition: var(--transition);
}
.quick-view:hover { background: var(--accent-color); color: white; }

.product-badge {
    position: absolute; top: 15px; left: 15px;
    padding: 6px 14px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.product-badge.bestseller { background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%); color: #333; }

.product-info { padding: 20px; }
.product-category { font-size: 0.8rem; color: var(--primary-color); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 8px; }
.product-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.product-name a { color: var(--dark-color); text-decoration: none; transition: var(--transition); }
.product-name a:hover { color: var(--primary-color); }

.product-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.stars { color: #ffc107; font-size: 0.85rem; }
.rating-value { font-size: 0.85rem; color: var(--gray-color); }

.product-description { font-size: 0.9rem; color: var(--gray-color); line-height: 1.5; margin-bottom: 15px; display: none; }

.product-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 15px; border-top: 1px solid var(--light-gray);
}
.product-price .price { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); }

.add-to-cart-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--primary-color); color: white;
    border: none; border-radius: 30px;
    font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: var(--transition);
}
.add-to-cart-btn:hover { background: var(--secondary-color); transform: scale(1.02); }
.add-to-cart-btn:active { transform: scale(0.98); }

.no-products { text-align: center; padding: 80px 20px; }
.no-products-icon { font-size: 4rem; color: var(--light-gray); margin-bottom: 20px; }
.no-products h3 { font-size: 1.5rem; color: var(--dark-color); margin-bottom: 10px; }
.no-products p { color: var(--gray-color); margin-bottom: 25px; }

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 60px 0; color: white;
}
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; }
.feature-item { text-align: center; padding: 20px; }
.feature-icon { font-size: 2.5rem; margin-bottom: 15px; opacity: 0.9; }
.feature-item h4 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.9rem; opacity: 0.8; }

/* ========================================
   CART DROPDOWN
   ======================================== */
.cart-wrapper { position: relative; }
.cart-icon {
    position: relative; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; border-radius: var(--border-radius-sm);
    transition: var(--transition);
}
.cart-icon:hover { background: rgba(255,255,255,0.1); }
.cart-badge {
    position: absolute; top: -5px; right: -5px;
    background: var(--accent-color); color: white;
    font-size: 0.7rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.cart-dropdown {
    position: fixed; top: 0; right: -400px;
    width: 380px; max-width: 100%; height: 100vh;
    background: rgba(255,255,255,0.84);
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex; flex-direction: column;
    transition: right 0.3s ease;
}
.cart-dropdown.active { right: 0; }

.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999; opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--light-gray); }
.cart-header h3 { font-size: 1.2rem; color: var(--dark-color); display: flex; align-items: center; gap: 10px; }
.cart-header h3 i { color: var(--primary-color); }
.close-cart { background: none; border: none; font-size: 1.3rem; color: var(--gray-color); cursor: pointer; transition: var(--transition); }
.close-cart:hover { color: var(--accent-color); }

.cart-items { flex: 1; overflow-y: auto; padding: 15px; }

.cart-item-dropdown {
    display: flex; gap: 15px; padding: 15px;
    background: var(--light-color); border-radius: var(--border-radius-sm);
    margin-bottom: 10px;
}
.cart-item-dropdown .item-image { width: 60px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.cart-item-dropdown .item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-dropdown .item-details { flex: 1; }
.cart-item-dropdown .item-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 5px; color: var(--dark-color); }
.cart-item-dropdown .item-price { font-size: 0.85rem; color: var(--primary-color); font-weight: 600; }
.cart-item-dropdown .item-qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-dropdown .qty-btn-sm {
    width: 24px; height: 24px; border: 1px solid var(--border-color); background: white;
    border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; transition: var(--transition);
}
.cart-item-dropdown .qty-btn-sm:hover { background: var(--primary-color); color: white; border-color: var(--primary-color); }
.cart-item-dropdown .qty-value { font-size: 0.85rem; font-weight: 600; min-width: 20px; text-align: center; color: var(--primary-color); }
.cart-item-dropdown .item-remove-sm { background: none; border: none; color: var(--accent-color); cursor: pointer; font-size: 0.9rem; padding: 5px; transition: var(--transition); }
.cart-item-dropdown .item-remove-sm:hover { color: var(--accent-hover); }

.empty-cart-dropdown { text-align: center; padding: 40px 20px; color: var(--gray-color); }
.empty-cart-dropdown i { font-size: 3rem; margin-bottom: 15px; color: var(--light-gray); }

.cart-footer { padding: 20px; border-top: 1px solid var(--light-gray); background: var(--light-color); }
.cart-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; font-size: 1.1rem; }
.cart-total span:last-child { font-size: 1.3rem; font-weight: 700; color: var(--primary-color); }
.cart-actions { display: flex; flex-direction: column; gap: 10px; }

.btn-view-cart, .btn-checkout {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 30px; font-weight: 600;
    text-decoration: none; transition: var(--transition);
}
.btn-view-cart { background: white; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-view-cart:hover { background: var(--primary-color); color: white; }
.btn-checkout { background: var(--primary-color); color: white; border: 2px solid var(--primary-color); }
.btn-checkout:hover { background: var(--secondary-color); border-color: var(--secondary-color); }

.cart-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 30px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: var(--transition); text-align: center; }
.cart-view-btn { background: white; color: var(--primary-color); border: 2px solid var(--primary-color); }
.cart-view-btn:hover { background: var(--primary-color); color: white; }
.cart-checkout-btn { background: var(--primary-color); color: white; border: 2px solid var(--primary-color); }
.cart-checkout-btn:hover { background: var(--secondary-color); border-color: var(--secondary-color); }

/* ========================================
   TOAST NOTIFICATION
   ======================================== */
.toast {
    position: fixed; top: 90px; right: 24px;
    transform: translateX(calc(100% + 40px));
    background: var(--primary-color); color: white;
    padding: 14px 22px 14px 18px; border-radius: 12px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,.08) inset;
    z-index: 10000; opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(.2,.9,.3,1.2), opacity 0.25s ease;
    min-width: 240px; max-width: 360px;
    font-size: 0.92rem; font-weight: 500;
    border-left: 4px solid rgba(255,255,255,.55);
}
.toast.show { transform: translateX(0); opacity: 1; pointer-events: auto; }
.toast i { font-size: 1.25rem; flex-shrink: 0; }
.toast.success { background: linear-gradient(135deg, #047857, #059669); border-left-color: #6ee7b7; }
.toast.error   { background: linear-gradient(135deg, #b91c1c, #dc2626); border-left-color: #fecaca; }

@media (max-width: 600px) {
    .toast { top: 140px; right: 12px; left: 12px; min-width: 0; max-width: none; transform: translateY(-120%); pointer-events: none; }
    .toast.show { transform: translateY(0); pointer-events: auto; }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 992px) {
    .shop-header h1 { font-size: 2.2rem; }
    .controls-wrapper { flex-direction: column; align-items: stretch; }
    .search-container { max-width: 100%; }
    .filter-view-controls { justify-content: space-between; }
    .products-container.list-view .product-card { flex-direction: column; }
    .products-container.list-view .product-image { width: 100%; min-width: auto; height: 200px; }
}

@media (max-width: 768px) {
    .shop-header { padding: 50px 0 40px; }
    .shop-header h1 { font-size: 1.8rem; }
    .shop-header p { font-size: 0.95rem; }
    .products-container.grid-view { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
    .cart-dropdown { width: 100%; right: -100%; }
    .filter-btn span { display: none; }
    .filter-btn { padding: 12px; }
}

@media (max-width: 480px) {
    .products-container.grid-view { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-info { padding: 12px; }
    .product-name { font-size: 0.85rem; }
    .product-price .price { font-size: 1rem; }
    .products-container.grid-view .add-to-cart-btn .cart-btn-text { display: none; }
    .products-container.grid-view .add-to-cart-btn {
        padding: 10px 12px; font-size: 0.95rem;
        border-radius: 50%; width: 38px; height: 38px;
        justify-content: center; gap: 0;
    }
    .add-to-cart-btn { padding: 8px 12px; font-size: 0.68rem; }
    .product-image { height: 140px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .filter-view-controls { width: 100%; }
}

/* ========================================
   NAVIGATION ACTIVE STATE
   ======================================== */
.nav-menu ul li a.active { color: var(--accent-color); }

/* ========================================
   FOOTER P&P FIX
   ======================================== */
li.p-and-p { list-style-type: none; font-size: 16px; margin: 10px 0; }
li.p-and-p a { text-decoration: none; color: white; font-weight: 500; transition: color 0.3s, background-color 0.3s; padding: 5px; display: inline-block; }
li.p-and-p a:hover { color: var(--secondary-color); }

/* ========================================
   Pagination
   ======================================== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 40px 0 10px; padding: 0; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
    background: #fff; color: #059669; border: 2px solid #e5e7eb;
}
.page-btn:hover:not(.disabled) { background: #059669; color: #fff; border-color: #059669; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(5,150,105,0.25); }
.page-btn.disabled { color: #d1d5db; cursor: default; pointer-events: none; border-color: #f3f4f6; background: #f9fafb; }
.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
    text-decoration: none; color: #374151; background: #fff; border: 2px solid #e5e7eb; transition: all 0.2s;
}
.page-num:hover:not(.active) { border-color: #059669; color: #059669; background: #ecfdf5; }
.page-num.active { background: #059669; color: #fff; border-color: #059669; box-shadow: 0 2px 8px rgba(5,150,105,0.3); }
.page-dots { padding: 0 4px; color: #9ca3af; font-weight: 600; }
@media (max-width: 480px) {
    .page-btn { padding: 8px 14px; font-size: 0.8rem; }
    .page-num { width: 36px; height: 36px; font-size: 0.8rem; }
}

/* ========================================
   Wishlist Button on Product Card
   ======================================== */
.wishlist-btn {
    position: absolute; top: 12px; right: 12px;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #9ca3af; transition: all 0.2s; z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wishlist-btn:hover { color: #ef4444; transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.wishlist-btn.active { color: #ef4444; background: #fff; }
.wishlist-btn.active i { animation: heartPop 0.3s ease; }
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ========================================
   MOBILE FILTER DROPDOWN FIX
   ======================================== */
@media (max-width: 600px) {
    .filter-menu { min-width: 160px; left: auto; right: 0; }
    .filter-dropdown:first-child .filter-menu { left: 0; right: auto; }
    .filter-view-controls { position: relative; overflow: visible; }
}