/* public_html/shop/style.css (v6 - Stationery & Book Mart Edition + Comma-Split Brand Lockup) */

/* ဖုန်းအမျိုးအစားအားလုံး၏ စာရိုက်အကွက်များတွင် စက်၏ မူလ System Myanmar Font ဖြင့် တိကျစွာ ရိုက်နိုင်စေရန် */
input, textarea, select, [contenteditable="true"] {
    font-family: -apple-system, BlinkMacSystemFont, "Myanmar Sangam MN", "Noto Sans Myanmar", "Pyidaungsu", "Padauk", sans-serif !important;
    letter-spacing: 0px !important;
    font-kerning: normal !important;
    font-variant-ligatures: normal !important;
    line-height: 1.45 !important;
}

/* ==========================================
   0. Stationery & Book Mart Theme Colors (Matches KK Navy/Teal Logo)
   ========================================== */
:root {
    --g1-primary: #0f4c81;
    --g1-navy: #0b245b;
    --g1-teal: #0d9488;
    --g1-amber: #d97706;
    --g1-dark-indigo: #0b245b;
    --g1-dark-glass: rgba(11, 36, 91, 0.94);
    --g1-btn-gradient: linear-gradient(135deg, #0b245b 0%, #0f4c81 60%, #0d9488 100%);
}

/* ==========================================
   1. Global Setup & No-Zoom Mobile Guard
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--store-font-family, 'Padauk', Pyidaungsu, "Myanmar3", sans-serif);
}

html {
    background-color: #f8fafc;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: #1e293b;
    overflow-x: hidden;
    padding-bottom: 60px;
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
}

.fs-7 { font-size: 0.825rem; }
.fs-8 { font-size: 11px; }
.text-primary { color: var(--g1-primary) !important; }
.text-navy { color: var(--g1-navy) !important; }
.text-teal { color: var(--g1-teal) !important; }

.btn-primary,
.submit-btn {
    background: var(--g1-btn-gradient) !important;
    border-color: var(--g1-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(11, 36, 91, 0.22);
    transition: all 0.22s ease;
}

.btn-primary:hover,
.submit-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.30);
}

.btn-tactile { transition: transform 0.15s ease, box-shadow 0.2s ease !important; }
.btn-tactile:active { transform: scale(0.95) !important; }

.main-container,
.site-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* ==========================================
   2. Top Announcement Bar & 2-Row Sticky Header
   ========================================== */
.top-announcement-bar {
    background: var(--g1-navy);
    font-size: 0.825rem;
    overflow: hidden;
}
.stationery-top-bar {
    background: linear-gradient(90deg, #0b245b 0%, #0f4c81 55%, #0d9488 100%) !important;
}

.main-header {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(11, 36, 91, 0.12) !important;
    z-index: 1030;
}

/* ✅ Pixel-Perfect Edge-to-Edge Brand Lockup (K..W === B..t, Mixed-Case Book Mart) */
.g1-exact-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.brand-monogram {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--g1-btn-gradient);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.g1-brand-lockup {
    height: 44px;
    width: max-content;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    align-items: stretch;
    padding: 2px 0 0 0;
    line-height: 1;
}

.g1-brand-serif {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif !important;
    font-weight: 800;
    font-size: 25px;
    line-height: 0.78;
    letter-spacing: 0.03em;
    margin-right: -0.03em; /* နောက်ဆုံး W အစွန်းနှင့် အောက်တန်း t အစွန်း တည့်တည့်ညီစေရန် */
    color: var(--g1-navy);
    display: block;
    white-space: nowrap;
}

.g1-brand-sub {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 1px;
    padding-right: 0.5px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-weight: 700;
    font-size: 13px;
    line-height: 0.85;
    letter-spacing: 0 !important;
    text-transform: none !important; /* Book Mart စာလုံးအကြီး/အသေး မူလအတိုင်း ပြသရန် */
    color: var(--g1-teal);
    white-space: nowrap;
}

.g1-brand-sub span {
    display: block;
    font-family: inherit !important;
    line-height: inherit;
}

.g1-brand-sub span.brand-sub-space {
    width: 0.35em;
    flex-shrink: 0;
}

.cart-count-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
}

.sfx-toggle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--g1-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.sfx-toggle-btn:hover { background: #eff6ff; transform: scale(1.06); }
.sfx-toggle-btn.muted { color: #94a3b8; background: #f1f5f9; }

.shop-cat-btn { font-size: 13.5px; white-space: nowrap; }
.shop-cat-dropdown-menu {
    max-height: 320px;
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    z-index: 1060;
}

.shop-live-search-wrap { position: relative; }
.shop-live-search-input {
    border-radius: 50px !important;
    padding: 8px 38px 8px 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #f8fafc !important;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.shop-live-search-input:focus {
    background: #ffffff !important;
    border-color: var(--g1-teal) !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15) !important;
}
.shop-live-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: #e2e8f0;
    color: #475569;
    font-size: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.shop-live-search-clear:hover { background: #cbd5e1; color: #0f172a; }

.main-header .btn.rounded-circle {
    width: 38px; height: 38px; padding: 0 !important;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ==========================================
   3. Clean Paper Background Accents
   ========================================== */
.g1-silk-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
}
.silk-corner-svg {
    position: absolute;
    width: 56vw; max-width: 680px; min-width: 300px; height: 280px;
}
.silk-top-right   { top: 0; right: -20px; }
.silk-bottom-left { bottom: 0; left: -20px; }

/* ==========================================
   4. Stationery Hero Banner & B2B Trust Strip
   ========================================== */
.shop-hero-wrap { cursor: grab; user-select: none; -webkit-user-select: none; }
.shop-hero-wrap:active { cursor: grabbing; }

.shop-slide-box {
    min-height: 225px;
    padding-bottom: 42px !important;
    display: flex;
    align-items: center;
    background-size: 200% 200%;
    animation: gradientBG 10s ease infinite;
}

.shop-slide-stationery-navy  { background-image: linear-gradient(125deg, #07173d 0%, #0b245b 45%, #0f4c81 80%, #0d9488 100%); }
.shop-slide-stationery-teal  { background-image: linear-gradient(125deg, #064e3b 0%, #0f766e 50%, #0284c7 100%); }
.shop-slide-stationery-amber { background-image: linear-gradient(125deg, #1e293b 0%, #0b245b 55%, #b45309 100%); }
.shop-slide-stationery-slate { background-image: linear-gradient(125deg, #0f172a 0%, #1e3a8a 55%, #0284c7 100%); }

.silk-ribbon { position: absolute; border-radius: 45% 55% 60% 40% / 50% 40% 60% 50%; pointer-events: none; }
.silk-ribbon-1 {
    width: 420px; height: 240px; top: -90px; right: -60px;
    background: radial-gradient(ellipse at center, rgba(45, 212, 191, 0.35) 0%, rgba(56, 189, 248, 0.12) 55%, transparent 75%);
    filter: blur(18px);
}
.silk-ribbon-2 {
    width: 380px; height: 210px; bottom: -100px; left: -40px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.22) 0%, rgba(14, 165, 233, 0.14) 55%, transparent 75%);
    filter: blur(20px);
}

@keyframes gradientBG {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.swipe-hint-pill {
    position: absolute; top: 10px; right: 12px; z-index: 5;
    background: rgba(0, 0, 0, 0.28); backdrop-filter: blur(6px);
    color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 50px; pointer-events: none;
}

#shopHeroCarousel .carousel-indicators { margin-bottom: 8px; }
#shopHeroCarousel .carousel-indicators [data-bs-target] {
    width: 9px; height: 9px; border-radius: 50%; transition: all 0.3s ease;
}
#shopHeroCarousel .carousel-indicators .active {
    width: 24px; border-radius: 20px; background-color: #fde047;
}

/* Wholesale Trust Strip */
.trust-strip-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 12px;
    height: 100%;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    font-size: 12.5px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.trust-strip-card:hover { transform: translateY(-2px); border-color: var(--g1-teal); }
.trust-strip-card i { font-size: 20px; flex-shrink: 0; }
.trust-strip-card small { font-size: 11px; display: block; line-height: 1.25; }

/* ==========================================
   5. Categories & Brand Filter Chips
   ========================================== */
.category-scroll {
    display: flex; overflow-x: auto; gap: 8px; padding-bottom: 8px; scrollbar-width: thin;
}
.category-scroll::-webkit-scrollbar { height: 4px; }

.cat-chip {
    background: #ffffff; border: 1px solid #dbe4f0; border-radius: 20px;
    padding: 6px 15px; white-space: nowrap; color: #334155; text-decoration: none;
    font-size: 13.5px; font-weight: 600; transition: all 0.22s ease;
}
.cat-chip.active, .cat-chip:hover {
    background: var(--g1-btn-gradient) !important;
    border-color: var(--g1-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(11, 36, 91, 0.22);
}

.brand-chip {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 11px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
}
.brand-chip:hover, .brand-chip.active {
    background: var(--g1-navy);
    border-color: var(--g1-navy);
    color: #ffffff;
}

/* ==========================================
   6. Stationery Product Cards, Dual Pricing & Smart Placeholder
   ========================================== */
#shop-products-grid { transition: opacity 0.18s ease; }

.shop-reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: g1CardPopIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes g1CardPopIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
}
.product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(11, 36, 91, 0.12) !important;
}

.prod-img-frame {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f8fafc;
}
.product-img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }

.prod-brand-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    background: rgba(11, 36, 91, 0.85);
    color: #fde047;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.stationery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    text-align: center;
}
.stationery-placeholder i { font-size: 42px; opacity: 0.78; }
.stationery-placeholder span { font-size: 12px; font-weight: 700; opacity: 0.85; letter-spacing: 0.4px; }

.prod-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
    line-height: 1.3;
}

.dual-price-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 5px 8px;
}
.wholesale-tier-line {
    border-top: 1px dashed #cbd5e1;
    margin-top: 3px;
    padding-top: 3px;
}

.product-card.in-cart {
    border: 2px solid #0d9488 !important;
    background-color: #f0fdfa !important;
}
.product-card.in-cart .btn-primary {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%) !important;
    border-color: #059669 !important;
}

/* ==========================================
   7. Toast Notification & Back-to-Top Floating Button
   ========================================== */
.toast-popup {
    visibility: hidden; min-width: 250px;
    background: var(--g1-dark-glass); backdrop-filter: blur(12px);
    color: #fff; text-align: center; border-radius: 25px; padding: 10px 20px;
    position: fixed; z-index: 9999; left: 50%; bottom: 80px; transform: translateX(-50%);
    font-size: 14px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    opacity: 0; transition: opacity 0.3s, bottom 0.3s;
}
.toast-popup.show { visibility: visible; opacity: 1; bottom: 90px; }

.g1-back-to-top {
    position: fixed; bottom: 86px; left: 16px; width: 40px; height: 40px;
    border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.7);
    background: var(--g1-btn-gradient); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(11, 36, 91, 0.32);
    z-index: 1032; opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: all 0.25s ease; cursor: pointer;
}
.g1-back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 768px) { .g1-back-to-top { bottom: 26px; left: 22px; } }

/* ==========================================
   8. Mobile Bottom Nav & Responsive Breakpoints
   ========================================== */
.bottom-nav { display: none; }
@media (min-width: 768px) { .bottom-nav { display: none !important; } }

@media (max-width: 767.98px) {
    body { padding-bottom: 75px; }

    .g1-exact-logo,
    .g1-brand-lockup { height: 36px; }
    .g1-brand-lockup { gap: 3px; padding: 1px 0 0 0; }
    .g1-brand-serif  { font-size: 20px; }
    .g1-brand-sub    { font-size: 10.5px; letter-spacing: 0 !important; padding-left: 1px; padding-right: 0.5px; }

    .shop-slide-box { min-height: 235px; }

    .shop-live-search-input,
    input[type="text"], input[type="tel"], input[type="search"], select, textarea {
        font-size: 16px !important;
    }
    .shop-cat-btn { font-size: 12.5px; padding: 8px 10px !important; }

    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--g1-dark-glass) !important;
        backdrop-filter: blur(16px); border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        height: calc(62px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
        justify-content: space-around; align-items: center; z-index: 1030;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    }
    .bottom-nav .nav-item-link {
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-decoration: none; color: rgba(255, 255, 255, 0.72) !important; font-size: 11px; flex: 1;
    }
    .bottom-nav .nav-item-link i { font-size: 18px; margin-bottom: 2px; transition: transform 0.2s ease; }
    .bottom-nav .nav-item-link.active, .bottom-nav .nav-item-link:hover { color: #ffffff !important; font-weight: bold; }
    .bottom-nav .nav-item-link.active i { color: #5eead4 !important; transform: scale(1.14); }
}

/* Mobile Announcement Marquee */
.g1-announce-marquee { overflow: hidden; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.g1-announce-track   { display: inline-flex; align-items: center; white-space: nowrap; }
.g1-announce-item    { display: inline-block; flex-shrink: 0; white-space: nowrap; }

@media (max-width: 767.98px) {
    .g1-announce-marquee {
        width: 100%;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    }
    .g1-announce-track { width: max-content; animation: g1AnnounceSlideLeft 18s linear infinite; will-change: transform; }
    .g1-announce-track:active { animation-play-state: paused; }
    .g1-announce-item { padding-right: 48px; }
}
@keyframes g1AnnounceSlideLeft {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
