/* ═══════════════════════════════════════════════════════
   shop.css — Styles exclusive to shop.html
   Depends on: style.css (base styles, header, cards etc.)
   ═══════════════════════════════════════════════════════ */

/* Active nav link highlight for Shop page */
a.active-nav {
    color: var(--accent-color) !important;
}

/* ── Shop Dropdown (same reuse from style.css) ───────── */
.shop-dropdown {
    min-width: 220px;
}

.shop-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-dropdown .dropdown-item i {
    font-size: 1rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* ── Shop Hero Banner ────────────────────────────────── */
.shop-hero {
    position: relative;
    background: #0f0c08;
    padding: 70px 15% 60px;
    overflow: hidden;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.shop-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.shop-hero-eyebrow {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-hero h1 {
    font-size: 3rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 14px;
}

.shop-hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

/* ── Shop Page Layout ────────────────────────────────── */
.shop-page-section {
    background: #f9f9f9;
    padding: 48px 15% 80px;
}

.shop-footer {
    margin-top: 32px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 32px;
    align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────── */
.shop-sidebar {
    position: sticky;
    top: 110px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 4px;
}

.sidebar-cats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-cat {
    width: 100%;
    background: transparent;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #555;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.18s ease, color 0.18s ease;
    font-weight: 400;
}

.sidebar-cat i {
    font-size: 1rem;
    color: #bbb;
    transition: color 0.18s;
    flex-shrink: 0;
}

.sidebar-cat:hover {
    background: #f5f5f5;
    color: #111;
}

.sidebar-cat:hover i {
    color: var(--accent-color);
}

.sidebar-cat.active {
    background: #111;
    color: #fff;
    font-weight: 500;
}

.sidebar-cat.active i {
    color: var(--accent-color);
}

.cat-count {
    margin-left: auto;
    font-size: 0.75rem;
    color: inherit;
    opacity: 0.6;
    font-weight: 400;
}

.sidebar-sort {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    color: #444;
    background: #fff;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-sort:focus {
    border-color: #111;
}

/* ── Shop Content Area ───────────────────────────────── */
.shop-content {
    min-width: 0;
}

/* Topbar */
.shop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.active-filter-pill {
    background: #111;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.product-count-text {
    font-size: 0.85rem;
    color: #999;
}

/* Premium Sort By Topbar */
.topbar-right {
    display: flex;
    align-items: center;
}

.sort-by-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 400;
}

.custom-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-sort {
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #222;
    padding: 8px 40px 8px 16px;
    font-size: 1.1rem;
    color: #333;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    min-width: 180px;
    outline: none;
    transition: all 0.2s ease;
}

.topbar-sort:focus {
    border-color: var(--accent-color);
}

.custom-select-wrapper i {
    position: absolute;
    right: 12px;
    font-size: 1.2rem;
    color: #333;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.custom-select-wrapper:hover i {
    transform: translateY(2px);
}

/* Mobile pills (hidden on desktop) */
.shop-pills-mobile {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-pill {
    padding: 7px 18px;
    border-radius: 30px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shop-pill:hover {
    border-color: #111;
    color: #111;
}

.shop-pill.active {
    background: #111;
    border-color: #111;
    color: #fff;
}

/* ── Product Grid ────────────────────────────────────── */
.shop-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    overflow-x: visible !important;
    width: 100% !important;
    flex-wrap: wrap !important;
}

.shop-grid .offer-card {
    transition: opacity 0.28s ease, transform 0.28s ease;
    animation: shopCardIn 0.3s ease both;
}

@keyframes shopCardIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-grid .offer-card.hidden {
    display: none;
}

/* Match homepage shop-section card design on shop page */
.shop-page-section .offer-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.shop-page-section .offer-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #dcdcdc;
    transform: translateY(-5px);
}

.shop-page-section .offer-image {
    background: #fdfdfd;
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 30px;
    margin-bottom: 0;
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.shop-page-section .offer-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.shop-page-section .offer-image img {
    max-width: 75%;
    max-height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
    transition: transform 0.5s ease-out;
}

.shop-page-section .offer-card:hover .offer-image img {
    transform: scale(1.08);
}

.shop-page-section .badge {
    position: absolute;
    top: 15px;
    left: 15px;
    right: auto;
    bottom: auto;
    padding: 5px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    z-index: 2;
}

.shop-page-section .badge.sale {
    display: none;
}

.shop-page-section .badge.sold-out {
    background: #f1f1f1;
    color: #777;
    border: 1px solid #ddd;
}

.shop-page-section .offer-info {
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.shop-page-section .offer-info h3 {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: 0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.shop-page-section .offer-pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.shop-page-section .new-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: #000;
}

.shop-page-section .old-price {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
    font-weight: 400;
}

.shop-page-section .add-to-cart-btn,
.shop-page-section .sold-out-btn {
    margin-top: auto;
    width: 100%;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.shop-page-section .add-to-cart-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d0d0d0;
    color: #333;
}

.shop-page-section .sold-out-btn {
    border-color: #ddd;
    color: #999;
    background: #f9f9f9;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .shop-page-section .offer-image {
        padding: 20px;
    }

    .shop-page-section .offer-info {
        padding: 15px;
    }

    .shop-page-section .offer-info h3 {
        font-size: 0.95rem;
    }
}

/* Category tag on each card */
.product-cat-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent-color);
    margin-bottom: 4px;
}

.product-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.product-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.product-title-link:hover {
    color: var(--accent-color);
}

/* ── Empty State ─────────────────────────────────────── */
.shop-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    gap: 16px;
    color: #bbb;
    text-align: center;
}

.shop-empty i {
    font-size: 3.5rem;
}

.shop-empty p {
    font-size: 1rem;
    color: #aaa;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1200px) {
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }

    .shop-sidebar {
        position: static;
        display: none;
        /* Hide sidebar; show pills on mobile */
    }

    .shop-pills-mobile {
        display: flex;
    }

    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.2rem;
    }

    .shop-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        overflow-x: visible !important;
        gap: 12px;
        width: 100% !important;
    }

    .shop-grid .offer-card {
        width: auto !important;
        flex: none !important;
    }

    .shop-hero {
        padding: 40px 15px 30px;
    }

    .shop-page-section {
        padding: 20px 10px 60px !important;
        overflow-x: hidden;
    }

    .shop-footer {
        margin-top: 22px;
    }
}

@media (max-width: 480px) {
    .shop-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        overflow-x: visible !important;
        width: 100% !important;
    }

    .shop-grid .offer-card {
        padding: 0;
        width: auto !important;
        flex: none !important;
    }

    .shop-page-section .offer-image {
        padding: 20px;
    }

    .shop-page-section .offer-info {
        padding: 15px;
    }

    .shop-page-section .offer-info h3 {
        font-size: 0.95rem;
    }

}

/* ── Mobile Category Dropdown ────────────────────────── */
.mobile-category-dropdown-wrap,
.mobile-filters-row,
.mobile-price-drawer {
    display: none;
    width: 100%;
}

.mobile-cat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 2px;
    display: inline-block;
}

@media (max-width: 992px) {
    .mobile-category-dropdown-wrap {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-filters-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        margin-bottom: 20px;
    }

    .mobile-filter-item {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-filter-btn {
        width: 100%;
        padding: 10px 16px;
        background: #fff;
        border: 1.5px solid #222;
        border-radius: 8px;
        font-family: 'Outfit', sans-serif;
        font-size: 0.95rem;
        color: #333;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        transition: all 0.2s ease;
        height: 45px;
        /* Consistent height */
    }

    .mobile-filter-btn:active {
        border-color: var(--accent-color);
    }

    .mobile-price-drawer {
        display: none;
        background: #fff;
        padding: 20px;
        border: 1px solid #eee;
        border-radius: 10px;
        margin-bottom: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        animation: slideDown 0.3s ease;
    }

    .mobile-price-drawer.active {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .shop-pills-mobile {
        display: none !important;
    }
}


.mobile-category-select-container {
    position: relative;
    width: 100%;
}

.mobile-category-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    border: 1.5px solid #222;
    padding: 10px 40px 10px 16px;
    font-size: 0.95rem;
    color: #333;
    font-family: 'Outfit', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    height: 45px;
    /* Consistent height */
}

.mobile-category-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.mobile-category-select-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #333;
    pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   PRICE RANGE FILTER
══════════════════════════════════════════════════════ */
.price-range-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.price-range-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 5px 10px;
    min-width: 72px;
    text-align: center;
}

.price-range-sep {
    color: #bbb;
    font-weight: 300;
    font-size: 1rem;
    padding: 0 4px;
}

/* Track wrapper — positions both range inputs on top of each other */
.price-slider-wrap {
    position: relative;
    height: 36px;
    margin-bottom: 14px;
}

.price-slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #e0e0e0;
    border-radius: 4px;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Gold filled portion between the two thumbs */
.price-slider-range {
    position: absolute;
    height: 100%;
    background: #111;
    border-radius: 4px;
}

/* Both range inputs stacked on top of each other */
.price-range-input {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
    height: 4px;
    outline: none;
    margin: 0;
}

/* Allow thumb pointer events */
.price-range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.price-range-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
}

.price-range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    pointer-events: all;
}

/* Reset button */
.price-reset-btn {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    color: #777;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.price-reset-btn:hover {
    border-color: #111;
    color: #111;
    background: #f5f5f5;
}

.price-reset-btn i {
    font-size: 0.9rem;
}
