/*
 * Shau Brands — Jumia-Inspired Shop Layout
 * Brand colors: Gold #D4AF37, Black #222, Dark #111
 */

/* ============================
   0. RESET — Prevent global slick/swiper CSS bleed
   ============================ */
.shop-page .hero-arrow,
.shop-page .hero-dots button {
    all: unset;
    box-sizing: border-box;
}

.shop-page .shop-pagination .pagination {
    all: unset;
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-page .shop-pagination .pagination li {
    all: unset;
    display: inline-block;
}

/* ============================
   1. PAGE LAYOUT
   ============================ */
.shop-page {
    background: #f1f1f2;
    padding: 0 0 60px;
    margin-top: 0;
}

.shop-page .container {
    max-width: 1200px;
}

/* ============================
   1b. HERO VIDEO SECTION
   ============================ */
.shop-hero-video {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 280px;
    max-height: 500px;
    overflow: hidden;
    background: #111;
}

.shop-hero-video .hero-video-slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.shop-hero-video .hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.shop-hero-video .hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-hero-video .hero-slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}

.shop-hero-video .hero-slide-overlay h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    color: #D4AF37;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.shop-hero-video .hero-slide-overlay p {
    font-size: 14px;
    margin: 0;
    color: rgba(255,255,255,0.9);
}

/* Hero nav dots */
.hero-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.shop-page .hero-dots button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.6) !important;
    background: transparent !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: all 0.2s !important;
    display: inline-block !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.shop-page .hero-dots button.active {
    background: #D4AF37 !important;
    border-color: #D4AF37 !important;
    width: 24px !important;
    border-radius: 5px !important;
}

/* Hero nav arrows */
.shop-page .hero-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(0,0,0,0.4) !important;
    color: #fff !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    cursor: pointer !important;
    z-index: 5 !important;
    transition: background 0.2s !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.shop-page .hero-arrow:hover {
    background: rgba(212,175,55,0.8) !important;
}

.shop-page .hero-arrow.prev { left: 16px !important; }
.shop-page .hero-arrow.next { right: 16px !important; }


/* ============================
   2. BREADCRUMB
   ============================ */
.shop-breadcrumb {
    background: #fff;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 10px;
}

.shop-breadcrumb ol {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.shop-breadcrumb ol li a {
    color: #D4AF37;
    text-decoration: none;
}

.shop-breadcrumb ol li a:hover {
    text-decoration: underline;
}

.shop-breadcrumb ol li + li::before {
    content: "›";
    margin-right: 6px;
    color: #999;
}

/* Main 2-column layout */
.shop-layout {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* ============================
   3. LEFT SIDEBAR
   ============================ */
.shop-sidebar-left {
    width: 200px;
    flex-shrink: 0;
}

.sidebar-block {
    background: #fff;
    border-radius: 4px;
    margin-bottom: 8px;
    overflow: hidden;
}

.sidebar-block-title {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #222;
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.sidebar-block-title .toggle-icon {
    font-size: 9px;
    transition: transform 0.2s;
    color: #999;
}

.sidebar-block-title.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.sidebar-block-body {
    padding: 4px 0;
}

/* Category list */
.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 12px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.cat-list li a:hover {
    background: #f5f5f5;
    color: #D4AF37;
}

.cat-list li a.active {
    color: #D4AF37;
    font-weight: 600;
    background: #fdf8ec;
    border-right: 3px solid #D4AF37;
}

.cat-list li a .cat-count {
    font-size: 10px;
    color: #999;
    font-weight: 400;
}

/* Price filter */
.price-filter-form {
    padding: 8px 12px;
}

.price-inputs {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.price-inputs input {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 11px;
    text-align: center;
    outline: none;
    color: #333;
    background: #fff;
}

.price-inputs input:focus {
    border-color: #D4AF37;
}

.price-inputs span {
    color: #999;
    font-size: 11px;
}

.price-filter-btn {
    width: 100%;
    padding: 6px;
    background: #D4AF37;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
}

.price-filter-btn:hover {
    background: #c9a030;
}

/* Gender filter */
.gender-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gender-list li label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    font-size: 12px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}

.gender-list li label:hover {
    background: #f5f5f5;
}

.gender-list li label input[type="radio"],
.gender-list li label input[type="checkbox"] {
    accent-color: #D4AF37;
}

/* ============================
   4. RIGHT CONTENT AREA
   ============================ */
.shop-content-right {
    flex: 1;
    min-width: 0;
}

/* Sort bar */
.shop-sort-bar {
    background: #fff;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.shop-sort-bar .result-count {
    font-size: 12px;
    color: #666;
}

.shop-sort-bar .result-count strong {
    color: #222;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-controls select {
    padding: 5px 28px 5px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    color: #333;
    background: #fff;
    cursor: pointer;
    outline: none;
    appearance: auto;
}

.sort-controls select:focus {
    border-color: #D4AF37;
}

/* ============================
   5. PRODUCT GRID
   ============================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

/* ============================
   6. PRODUCT CARD
   ============================ */
.p-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.p-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Discount badge */
.p-card .discount-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #D4AF37;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    z-index: 2;
}

/* Wishlist heart */
.p-card .wishlist-btn {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #999;
    z-index: 2;
    transition: all 0.2s;
    opacity: 0;
}

.p-card:hover .wishlist-btn {
    opacity: 1;
}

.p-card .wishlist-btn:hover {
    color: #e74c3c;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Product image */
.p-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.p-card-img a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.p-card:hover .p-card-img img {
    transform: scale(1.05);
}

/* Product info */
.p-card-info {
    padding: 8px 8px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-card-name {
    font-size: 12px;
    color: #333;
    line-height: 1.3;
    margin: 0 0 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.p-card-name a {
    color: #333;
    text-decoration: none;
}

.p-card-name a:hover {
    color: #D4AF37;
}

/* Price area */
.p-card-price {
    margin-top: auto;
}

.p-card-price .current-price {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    display: block;
}

.p-card-price .old-price {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    display: block;
    margin-top: 1px;
}

/* Add to cart row */
.p-card-actions {
    padding: 0 8px 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.p-card:hover .p-card-actions {
    opacity: 1;
}

.p-card-actions .add-cart-btn {
    width: 100%;
    padding: 6px;
    background: #222;
    color: #D4AF37;
    border: none;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.p-card-actions .add-cart-btn:hover {
    background: #D4AF37;
    color: #fff;
}

/* ============================
   7. EMPTY STATE
   ============================ */
.shop-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 4px;
}

.shop-empty h4 {
    color: #333;
    margin-bottom: 8px;
}

.shop-empty p {
    color: #999;
    font-size: 14px;
}

/* ============================
   8. PAGINATION
   ============================ */
.shop-pagination {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.shop-pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.shop-pagination .pagination li a,
.shop-pagination .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all 0.15s;
}

.shop-pagination .pagination li a:hover {
    border-color: #D4AF37;
    color: #D4AF37;
}

.shop-pagination .pagination li.active span {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #fff;
}

.shop-pagination .pagination li.disabled span {
    color: #ccc;
    cursor: default;
}

/* ============================
   9. ACTIVE FILTERS
   ============================ */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 11px;
    color: #333;
}

.filter-tag a {
    color: #999;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
}

.filter-tag a:hover {
    color: #e74c3c;
}

/* ============================
   10. MOBILE FILTER TOGGLE
   ============================ */
.mobile-filter-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px;
    background: #222;
    color: #D4AF37;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.mobile-filter-close {
    display: none;
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    z-index: 1001;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

/* ============================
   11. RESPONSIVE
   ============================ */

/* Tablet */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .shop-sidebar-left {
        position: fixed;
        top: 0;
        left: -270px;
        width: 250px;
        height: 100vh;
        z-index: 999;
        overflow-y: auto;
        background: #f1f1f2;
        padding: 50px 10px 20px;
        transition: left 0.3s ease;
    }

    .shop-sidebar-left.open {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    }

    .mobile-filter-btn {
        display: flex;
    }

    .mobile-filter-close {
        display: block;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .shop-hero-video {
        height: 35vh;
        min-height: 200px;
    }
}

/* Mobile — 3 cards per row */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
    }

    .p-card-info {
        padding: 5px 5px 6px;
    }

    .p-card-name {
        font-size: 10px;
        min-height: 26px;
        -webkit-line-clamp: 2;
        margin-bottom: 3px;
    }

    .p-card-price .current-price {
        font-size: 11px;
    }

    .p-card-price .old-price {
        font-size: 8px;
    }

    .p-card .discount-badge {
        font-size: 8px;
        padding: 1px 3px;
        top: 3px;
        right: 3px;
    }

    .p-card .wishlist-btn {
        width: 22px;
        height: 22px;
        font-size: 10px;
        opacity: 1;
        top: 3px;
        left: 3px;
    }

    .p-card-actions {
        opacity: 1;
        padding: 0 5px 5px;
    }

    .p-card-actions .add-cart-btn {
        padding: 4px;
        font-size: 9px;
        gap: 3px;
    }

    .shop-sort-bar {
        padding: 6px 8px;
        font-size: 11px;
    }

    .sort-controls select {
        font-size: 10px;
        padding: 3px 18px 3px 5px;
    }

    .shop-breadcrumb {
        padding: 6px 0;
    }

    .shop-pagination .pagination li a,
    .shop-pagination .pagination li span {
        min-width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .shop-hero-video {
        height: 30vh;
        min-height: 180px;
    }

    .shop-hero-video .hero-slide-overlay {
        padding: 15px 20px;
    }

    .shop-hero-video .hero-slide-overlay h2 {
        font-size: 18px;
    }

    .shop-hero-video .hero-slide-overlay p {
        font-size: 12px;
    }

    .hero-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
    }

    .p-card-name {
        font-size: 9px;
    }

    .p-card-price .current-price {
        font-size: 10px;
    }

    .p-card-actions .add-cart-btn {
        font-size: 8px;
        padding: 3px;
    }
}
