/* ---------- Base ---------- */
:root {
    --bg: #ffffff;
    --ink: #1a1a1a;
    --muted: #6b7280;
    --line: #e5e7eb;
    --accent: #111827;
    --accent-2: #b45309;
    --radius: 12px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(1140px, 92%); margin: 0 auto; }
.page { padding: 48px 0 72px; min-height: 60vh; }
.muted { color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid var(--line);
    position: -webkit-sticky;  /* iOS Safari needs the prefixed value */
    position: sticky;
    top: 0;
    background: #1d4ed8;   /* blue menu bar */
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.logo-img { width: 32px; height: 32px; display: block; }
.logo-text span { color: #fbbf24; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
    font-weight: 700;              /* bold font */
    color: #ffffff;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.main-nav a:hover { color: #ef4444; border-color: #ef4444; }  /* red hover text */
.main-nav a.active { color: #ef4444; border-color: #ef4444; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform .15s, opacity .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn.small { padding: 8px 16px; font-size: .85rem; }
.btn:disabled { background: #9ca3af; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(120deg, rgba(29,78,216,0.85), rgba(37,99,235,0.75)),
        url('https://images.unsplash.com/photo-1445205170230-053b83016050?w=1400&q=80') center/cover no-repeat;
    border-radius: var(--radius);
    padding: 80px 48px;
    margin-top: 8px;
    color: #fff;
}
.hero-text { max-width: 540px; }
.hero h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -1px; margin-bottom: 16px; color: #fff; }
.hero p { color: #e0ecff; font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- Sections ---------- */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 56px 0 24px;
}
.section-head h1, .section-head h2 { letter-spacing: -0.5px; }
.link { color: var(--accent-2); font-weight: 600; }

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
@media (max-width: 800px) {
    .product-grid { grid-template-columns: 1fr; }
}
.product-card {
    border: 1px solid #1e3a8a;
    border-radius: var(--radius);
    overflow: hidden;
    background: #1e3a8a;
    color: #fff;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}
.product-card h3 { color: #fff; }
.product-card .product-cat { color: #fbbf24; }
.product-card .product-desc { color: #dbeafe; }
.product-card .product-price { color: #fff; }
.product-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transform: translateY(-3px);
}
.product-image { 
    position: relative; 
    background: #1e3a8a;
    width: 100%;
}
.product-image img { 
    width: 100%; 
    height: auto;
    display: block; 
}
.badge {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--ink);
    color: #fff;
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: .5px;
}
.product-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: hidden; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-2); font-weight: 700; }
.product-body h3 { font-size: 1.05rem; word-wrap: break-word; }
.product-desc { 
    color: var(--muted); 
    font-size: .88rem; 
    flex: 1; 
    margin-top: 10px;
    word-wrap: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
}
.product-card .product-desc { color: #dbeafe; }
.product-price { font-weight: 700; font-size: 1.05rem; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

/* ---------- Stars ---------- */
.stars { color: #fbbf24; font-size: 1rem; letter-spacing: 2px; line-height: 1; }

/* ---------- Discount ---------- */
.discount-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: #ef4444;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.old-price { text-decoration: line-through; color: #94a3b8; font-size: .9rem; }
.new-price { color: #ef4444; font-weight: 800; font-size: 1.1rem; }

/* ---------- Discount slider ---------- */
.discount-wrap {
    margin-top: 26px;
    display: flex;
    justify-content: center;
}
.discount-slider {
    position: relative;
    max-width: 720px;
    width: 100%;
}
.slides { position: relative; }
.discount-card {
    position: relative;
    width: 100%;
    min-height: 180px;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #ef4444);
    background-size: 200% 100%;
    color: #fff;
    border-radius: 20px;
    text-align: center;
    padding: 48px 56px;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform .25s ease, filter .25s ease;
    animation: bannerShift 6s ease infinite;
}
.discount-card.slide.active { display: flex; }
.discount-card:hover { transform: scale(1.02); filter: brightness(1.08); }

/* Slider arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px; height: 44px;
    border: none; border-radius: 50%;
    background: rgba(255,255,255,.85);
    color: #111827;
    font-size: 1.6rem; line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
    transition: background .2s, transform .2s;
}
.slider-nav:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slider-nav.prev { left: -10px; }
.slider-nav.next { right: -10px; }

/* Dots */
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider-dots .dot {
    width: 10px; height: 10px; border-radius: 50%;
    border: none; background: #cbd5e1; cursor: pointer; padding: 0;
    transition: background .2s, transform .2s;
}
.slider-dots .dot.active { background: #ef4444; transform: scale(1.25); }
.discount-tag {
    display: inline-block;
    background: rgba(255,255,255,.22);
    border: 1px solid rgba(255,255,255,.5);
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.discount-card p {
    margin: 0;
    width: 100%;
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: .5px;
    text-shadow: 0 3px 14px rgba(0,0,0,.35);
    animation: bannerPulse 1.6s ease-in-out infinite;
}

/* Card gently floats up and down */
@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* Gradient slides across the banner */
@keyframes bannerShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text pulses bigger with a glow */
@keyframes bannerPulse {
    0%, 100% { transform: scale(1);    text-shadow: 0 3px 14px rgba(0,0,0,.35); }
    50%      { transform: scale(1.12); text-shadow: 0 6px 30px rgba(255,255,255,.7); }
}

/* Respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
    .discount-card, .discount-card p { animation: none; }
}

/* ---------- Stock badge ---------- */
.stock {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
}
.stock.in  { background: #22c55e; color: #052e16; }
.stock.out { background: #ef4444; color: #fff; }

/* ---------- Clothes banner ---------- */
.clothes-banner {
    background:
        linear-gradient(120deg, rgba(29,78,216,0.85), rgba(37,99,235,0.75)),
        url('https://images.unsplash.com/photo-1441984904996-e0b6ba687e04?w=1400&q=80') center/cover no-repeat;
    border-radius: var(--radius);
    color: #fff;
    text-align: center;
    padding: 70px 24px;
    margin-bottom: 32px;
}
.clothes-banner h1 { font-size: 2.6rem; letter-spacing: -0.5px; margin-bottom: 6px; }
.clothes-banner p { color: #e0ecff; font-size: 1rem; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip {
    border: 1px solid var(--line);
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .88rem;
    color: var(--muted);
    transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.empty { padding: 40px 0; color: var(--muted); }

/* ---------- Promo ---------- */
.promo {
    margin-top: 64px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius);
    text-align: center;
    padding: 56px 24px;
}
.promo h2 { font-size: 1.8rem; margin-bottom: 8px; }
.promo p { color: #d1d5db; }

/* ---------- About ---------- */
.shop-photo {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 40px;
    max-height: 380px;
}
.shop-photo img { width: 100%; height: 380px; object-fit: cover; }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.contact-card {
    background: #1d4ed8;
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 24px;
    text-align: center;
}
.contact-card h3 { margin-bottom: 10px; color: #fff; }
.contact-card p { color: #e0ecff; }
.contact-card a { color: #fbbf24; font-weight: 700; }
.contact-card a:hover { text-decoration: underline; }
.contact-card .hint { font-size: .78rem; color: #bfdbfe; margin-top: 6px; }

/* ---------- Map embed ---------- */
.map-embed {
    margin-top: 32px;
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
}
.map-embed iframe { width: 100%; height: 360px; border: 0; }

@media (max-width: 800px) {
    .contact-grid { grid-template-columns: 1fr; }
}
.lead { font-size: 1.25rem; margin-bottom: 18px; }
.about-text p { margin-bottom: 14px; color: #374151; }
.about-values { display: grid; gap: 18px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.value h3 { margin-bottom: 6px; }
.value p { color: var(--muted); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 80px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 56px 0 40px;
}
.footer-logo { color: #fff; font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.footer-logo span { color: var(--accent-2); }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: #cbd5e1; font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 20px 0; }
.footer-bottom p { font-size: .85rem; color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
    .hero { padding: 56px 28px; }
    .hero h1 { font-size: 2.2rem; }
    .about-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
    .main-nav { gap: 16px; }

    /* Keep the pinned menu bar compact so it doesn't dominate small screens */
    .header-inner { padding: 12px 0; }
    .logo { font-size: 1.15rem; }
    .logo-img { width: 26px; height: 26px; }
    .main-nav a { font-size: 0.95rem; }
}

/* Product size tags */
.product-sizes {
    display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 15px 0;
}
.size-tag {
    display: inline-block; padding: 4px 10px;
    background: #f1f5f9; color: #334155;
    font-size: .75rem; font-weight: 600;
    border-radius: 6px; border: 1px solid #e2e8f0;
}

/* Product card clickable */
.product-card { cursor: default; }
.product-card:hover { transform: translateY(-5px); }

/* Product footer with stock and view button */
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    gap: 10px;
}

/* View button - same style as stock badge */
.btn-view {
    display: inline-block;
    font-size: .85rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    background: #3b82f6;
    color: #fff;
    border: none;
    cursor: pointer;
}
.btn-view:hover {
    background: #2563eb;
}

/* Image count badge */
.image-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: .75rem;
    padding: 4px 8px;
    border-radius: 12px;
}

/* ========== Gallery Modal ========== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}
.gallery-modal.open {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1;
    cursor: pointer;
}

.gallery-container {
    position: relative;
    z-index: 2;
    width: 95%;
    max-width: 900px;
    max-height: 95vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding: 25px;
    background-color: #1e1e1e;
    border-radius: 16px;
    -webkit-box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow-y: auto;
}

.gallery-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.gallery-close:hover {
    background: #fbbf24;
}

.gallery-main {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.gallery-arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-transition: all .2s;
    transition: all .2s;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}
.gallery-arrow:hover {
    background-color: rgba(255,255,255,0.3);
    border-color: #fff;
}

.gallery-image-box {
    width: 100%;
    max-width: 700px;
    min-height: 300px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}
.gallery-image-box img {
    max-width: 100%;
    max-height: 60vh;
    width: auto;
    height: auto;
    -o-object-fit: contain;
    object-fit: contain;
}

.gallery-info {
    text-align: center;
    color: #fff;
    padding: 20px 0 10px;
    width: 100%;
}
.gallery-info h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}
.gallery-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 10px;
}
.gallery-sizes {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.gallery-sizes .size-tag {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.gallery-desc {
    color: #a1a1aa;
    font-size: .9rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Thumbnails */
.gallery-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}
.gallery-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}
.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}
.gallery-thumb.active {
    border-color: #fbbf24;
    opacity: 1;
}

/* Mobile gallery */
@media (max-width: 600px) {
    .gallery-container { padding: 10px; }
    .gallery-arrow { width: 40px; height: 40px; font-size: 1.2rem; }
    .gallery-image-box { max-height: 40vh; }
    .gallery-image-box img { max-height: 40vh; }
    .gallery-info h2 { font-size: 1.1rem; }
    .gallery-thumb { width: 50px; height: 50px; }
    .gallery-close { top: -5px; right: -5px; width: 36px; height: 36px; font-size: 1.4rem; }
}
