/* ---------- RESET ---------- */
* {
    box-sizing: border-box;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f8f9fa;
    color: #212529;
    margin: 0;
}
/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 12px 0;
}

.logo a {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
}

.main-nav {
    display: flex;
    gap: 1.2rem;
}

.main-nav a {
    font-weight: 500;
    color: #333;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-menu-toggle {
    display: none;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    width: 40px;
    height: 36px;
    padding: 7px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

.search-form input {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

a.search-item {
    color: #111;
}

.header-link {
    font-weight: 500;
    color: #333;
}
/* ===== HERO ===== */
.hero {
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
}

/* ===== HOME CATEGORIES ===== */
.home-categories h2 {
    margin: 2rem 0 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.category-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 1.5rem;
    text-align: center;
    font-weight: 600;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
/* ===== FOOTER ===== */
.site-footer {
    background: #f8f9fa;
    margin-top: 4rem;
    border-top: 1px solid #e5e5e5;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
}

.footer-links a {
    display: block;
    color: #555;
    margin: 0.25rem 0;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
}

/* ---------- LINKS ---------- */
a {
    text-decoration: none !important;
    /*color: inherit !important;*/
}
a:hover {
    color: #0d6efd;
}

/* ---------- HEADER ---------- */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
}

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
}

/* ---------- CATEGORY HEADER ---------- */
.category-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

/* ---------- PRODUCT CARD ---------- */
.product-card {
    position: relative;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #f1f1f1;
}

.product-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}

.product-price {
    font-weight: 600;
    color: #198754;
}

/* ---------- PRODUCT PAGE ---------- */
.product-title-lg {
    font-size: 1.75rem;
    font-weight: 600;
}
.product-price-lg {
    font-size: 1.5rem;
    font-weight: 700;
    color: #198754;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}
.btn-primary:hover {
    background: #0b5ed7;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    margin-top: 3rem;
    padding: 2rem 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .product-title-lg {
        font-size: 1.4rem;
    }
}
/* ---------- PRODUCT GALLERY ---------- */
.product-gallery {
    display: flex;
    gap: 1rem;
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    background: #f1f1f1;
}

.gallery-thumbs img.active {
    border-color: #0d6efd;
}

.gallery-main img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #f8f8f8;
    border-radius: 6px;
}

/* ---------- MOBILE ---------- */
@media (max-width: 768px) {
    .product-gallery {
        flex-direction: column;
    }

    .gallery-thumbs {
        flex-direction: row;
        overflow-x: auto;
    }
}
/* ---------- SALE BADGE ---------- */
.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 6px;
    border-radius: 4px;
    z-index: 2;
}

/* ---------- PRICE STYLES ---------- */
.price-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
}

.price-regular {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.85rem;
}

.price-sale {
    color: #dc3545;
    font-weight: 600;
}

.price-normal {
    font-weight: 600;
    color: #198754;
}
.position-relative {
    position: relative;
}
.search-wrapper {
    position: relative;
}

.search-wrapper form,
.search-wrapper input {
    width: 100%;
}

.search-dropdown {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: none;
    z-index: 999;
}

.search-dropdown > a > div > div {
    max-height: 50px;
    overflow: hidden;
}

.search-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.search-all {
    display: block;
    padding: 8px;
    text-align: center;
    font-weight: 600;
}

/* MOBILE HEADER LAYOUT */
/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 991px) {

    .header-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    /* ROW 1 STRUCTURE */
    .mobile-menu-toggle {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
        flex: 1 1 auto;
    }
    
    .logo a {
        font-size: 1.1rem;
    }

    .header-actions {
        order: 3;
        display: flex;
        gap: 10px;
    }

    /* ROW 2 SEARCH FULL WIDTH */
    .search-wrapper {
        order: 4;
        width: 100%;
    }

    /* ROW 3 NAV DROPDOWN */
    .main-nav {
        order: 5;
        width: 100%;
        display: none;
        flex-direction: column;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    .main-nav.is-open {
        display: flex;
    }
}

@media (max-width: 576px) {
    .logo a {
        font-size: 1.05rem;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .category-grid,
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .product-card img {
        height: auto;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
   .search-dropdown > a > div > div {
        max-height: 45px;
        line-height: 15px;
    }
}
/* ===== DESKTOP HEADER ORDER (LOCKED) ===== */
/* =========================
   DESKTOP HEADER STRUCTURE
   ========================= */
@media (min-width: 992px) {

    .header-inner {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        gap: 18px;
    }

    /* hide hamburger on desktop */
    .mobile-menu-toggle {
        display: none;
        order: 0;
    }

    /* LOGO */
    .logo {
        order: 1;
        flex: 0 0 auto;
    }

    /* MENU LINKS */
    .main-nav {
        order: 2;
        display: flex !important;
        flex: 1 1 auto;
        justify-content: flex-start;
        margin-left: 20px;
    }

    /* SEARCH */
    .search-wrapper {
        order: 3;
        flex: 0 0 auto;
    }

    .search-wrapper input {
        width: 220px;
    }

    /* ACCOUNT + CART */
    .header-actions {
        order: 4;
        display: flex;
        gap: 14px;
        margin-left: auto;
    }
}
.home-banner img {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.home-grid-tiles,
.home-grid-products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.home-tile-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    color: #000 !important;
}

.home-tile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    gap: 1rem;
    min-height: 100px;
}

.home-tile-text {
    min-width: 0;
}

.home-tile-title {
    font-weight: 700;
    line-height: 1.3;
}

.home-tile-count {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.home-tile-card img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.6);
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    flex: 0 0 auto;
    background: #fff;
}

.home-tile-gradient-1 { background: linear-gradient(135deg, #FEFAE0, #FAEED1); }
.home-tile-gradient-2 { background: linear-gradient(135deg, #4c6ef5, #15aabf); }
.home-tile-gradient-3 { background: linear-gradient(135deg, #845ef7, #5f3dc4); }
.home-tile-gradient-4 { background: linear-gradient(135deg, #38d9a9, #0ca678); }
.home-tile-gradient-5 { background: linear-gradient(135deg, #f59f00, #f76707); }
.home-tile-gradient-6 { background: linear-gradient(135deg, #339af0, #5c7cfa); }
.home-tile-gradient-7 { background: linear-gradient(135deg, #e64980, #c2255c); }
.home-tile-gradient-8 { background: linear-gradient(135deg, #12b886, #2f9e44); }

@media (max-width: 768px) {
    .home-grid-tiles,
    .home-grid-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.home-grid-watch-buy {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.watch-buy-card {
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: #000;
    cursor: pointer;
}

.watch-buy-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.watch-buy-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.watch-buy-modal.is-open {
    display: flex;
}

.watch-buy-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.watch-buy-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.watch-buy-btn {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 24px;
    text-align: center;
    background: #fff;
    color: #000;
    font-weight: 700;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
}

@media (max-width: 768px) {
    .home-grid-watch-buy {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
