/* ================================
   VARIABLES
==================================*/
:root {
    --gold: #d4a017;
    --text-light: #ffffff;
}

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

body {
    background: #0e0e0e;
    color: var(--text-light);
    font-family: Arial, sans-serif;
}

main {
    padding: 0 20px 30px 20px;
}

h2 {
    margin: 18px 0 10px 0;
    font-size: 22px;
    color: var(--gold);
}

/* ================================
   HEADER + LOGO + NAV
==================================*/
header {
    background: #111;
    border-bottom: 1px solid var(--gold);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    margin-left: 14px;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

nav a:hover {
    color: var(--gold);
}

/* Brand logo */
.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-main {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--gold);
}

.logo-sub {
    font-size: 18px;
    font-weight: 500;
    color: #f5f5f5;
    letter-spacing: 1px;
}

/* ================================
   OFFLINE STORE BANNER + SEARCH
==================================*/
.offline-banner {
    margin: 12px 20px;
    padding: 8px 10px;
    background: #171717;
    border: 1px solid var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    overflow: hidden;
    height: 38px;
}

/* scrolling text */
.scroll-text {
    white-space: nowrap;
    animation: scrollText 12s linear infinite;
    font-size: 14px;
}

.scroll-text .pill {
    background: var(--gold);
    color: #000;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 10px;
}

/* left-to-right scrolling animation */
@keyframes scrollText {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* search box inside banner */
.banner-search {
    position: relative;
    width: 200px;
    min-width: 180px;
}

.banner-search input {
    width: 100%;
    padding: 6px 28px 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--gold);
    background: #111;
    color: var(--text-light);
    font-size: 13px;
}

.banner-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--gold);
}

/* ================================
   HERO SLIDER
==================================*/
.hero-slider {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 12px;
    margin-top: 10px;
    margin-bottom: 18px;
    border: 1px solid var(--gold);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding-left: 40px;
    color: var(--text-light);
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide.s1 {
    background: linear-gradient(120deg, #000000, #303030);
}
.hero-slide.s2 {
    background: linear-gradient(120deg, #1a1a1a, #553311);
}
.hero-slide.s3 {
    background: linear-gradient(120deg, #111111, #113355);
}

.slide-text h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--gold);
}

.slide-text p {
    margin-bottom: 12px;
    max-width: 380px;
}

/* Reusable button */
.button {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

/* ================================
   CATEGORY FILTER CHIPS (product_list)
==================================*/
.filter-bar {
    margin: 10px 0;
}

.filter-btn {
    padding: 6px 14px;
    background: #111;
    border: 1px solid var(--gold);
    border-radius: 999px;
    text-decoration: none;
    color: var(--gold);
    font-size: 13px;
    margin-right: 8px;
}

.filter-btn.active {
    background: var(--gold);
    color: #000;
}

/* ================================
   PRODUCT GRID (home + product_list)
==================================*/
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    padding: 10px 0;
}

.product-card {
    background: #111;
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card img {
    width: 100%;
    height: 200px;         /* fixed height so all equal */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.product-card h3 {
    font-size: 13px;
    margin-bottom: 4px;
}

.product-card a {
    color: inherit;
    text-decoration: none;
}

.product-card a:hover h3 {
    text-decoration: underline;
}

.price {
    color: var(--gold);
    font-size: 16px;
    font-weight: 600;
    margin: 4px 0;
}

/* ================================
   PRODUCT DETAIL PAGE
==================================*/
.detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 20px auto;
    max-width: 900px;
    align-items: flex-start;
}

.detail-image-wrap {
    width: 260px;
    height: 340px;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--gold);
    background: #000;
    flex-shrink: 0;
}

.detail-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    flex: 1;
    min-width: 240px;
}

/* category badge */
.badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* size + stock chips */
.size-stock-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px 0;
}

.size-chip {
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    font-size: 12px;
}

/* quantity controls */
.qty-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--gold);
}

.qty-control button {
    width: 28px;
    height: 28px;
    border: none;
    background: #222;
    color: var(--gold);
    font-size: 16px;
    cursor: pointer;
}

.qty-control input {
    width: 40px;
    height: 28px;
    border: none;
    background: #111;
    color: var(--text-light);
    text-align: center;
}

/* WhatsApp order button */
.whatsapp-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 16px;
    background: #25D366;
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

/* ================================
   OFFLINE STORE PAGE (map)
==================================*/
.offline-page {
    margin-top: 15px;
    max-width: 600px;
}

.map-box {
    margin: 12px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--gold);
}

/* ================================
   FOOTER
==================================*/
footer {
    margin-top: 30px;
    text-align: center;
    padding: 10px 20px;
    border-top: 1px solid var(--gold);
    color: #ccc;
    font-size: 13px;
}

/* ================================
   MOBILE RESPONSIVE
==================================*/
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .offline-banner {
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .banner-search {
        width: 100%;
    }

    .banner-search input {
        width: 100%;
    }

    .hero-slider {
        height: 220px;
        padding-left: 15px;
    }

    .slide-text h2 {
        font-size: 22px;
    }

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

    .detail-container {
        flex-direction: column;
        align-items: center;
    }

    .detail-image-wrap {
        width: 80%;
        max-width: 320px;
        height: 320px;
    }
}