/* ============================================================
   THAI PICKS ONLINE — DEEP THAI VECTOR PHONE-FIRST CSS
   Every section has its own unique SVG-based Thai background.
   Mobile-first: 360-430px primary. Desktop = enhancement.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&family=Outfit:wght@400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* ────────────────────────────────────────────────────────────
   DESIGN TOKENS
   ──────────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --ph-primary:        #e6007e;
    --ph-primary-dark:   #b5005a;
    --ph-primary-light:  #ff4da6;

    /* Thai Gold Palette */
    --th-gold:           #C5A059;
    --th-gold-light:     #f6d87e;
    --th-gold-dark:      #8a6520;
    --th-gold-pale:      #fff8e1;

    /* Thai Deep Navy */
    --th-navy:           #14122C;
    --th-navy-mid:       #1e1c3a;
    --th-navy-light:     #2a2850;

    /* Thai Crimson */
    --th-crimson:        #8B0000;
    --th-crimson-mid:    #a01018;
    --th-saffron:        #e07b39;

    /* Neutrals */
    --ph-bg:             #f3f0ed;
    --ph-surface:        #ffffff;
    --ph-border:         #e5e0d8;
    --ph-text-dark:      #1a1209;
    --ph-text-mid:       #4b3f2e;
    --ph-text-soft:      #9c8c78;

    /* Radius */
    --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-pill: 999px;

    /* Shadows */
    --sh-sm:   0 2px 10px rgba(0,0,0,.10);
    --sh-md:   0 4px 20px rgba(0,0,0,.16);
    --sh-lg:   0 8px 32px rgba(0,0,0,.22);
    --sh-gold: 0 4px 20px rgba(197,160,89,.35);
    --sh-pink: 0 4px 20px rgba(230,0,126,.28);

    /* Layout */
    --ph-font:       'Outfit', 'Inter', 'Potro Sans Bangla', 'Hind Siliguri', 'Baloo Da 2', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ph-font-thai:  'Cinzel','Outfit',serif;
    --ph-hdr-h:      58px;
    --ph-hdr-desk:   68px;
    --ph-search-h:   48px;
    --ph-bottom-nav: 62px;

    /* Override mobile-premium.css blue layout colors with home theme */
    --lb-blue:        var(--ph-primary);
    --lb-blue-mid:    var(--ph-primary-dark);
    --lb-blue-light:  var(--ph-primary-light);
    --grad-blue:      linear-gradient(135deg, var(--ph-primary) 0%, var(--ph-primary-light) 100%);
    --grad-dark:      linear-gradient(160deg, var(--th-navy) 0%, var(--th-gold-dark) 100%);
}

/* ── THAI SVG PATTERN DATA-URIs ── */
:root {
    /* 1. Lotus petal tile (gold on transparent) — for category section */
    --svg-lotus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23C5A059' fill-opacity='0.13'%3E%3Cpath d='M40 5 C35 15 25 20 20 30 C25 24 35 22 40 28 C45 22 55 24 60 30 C55 20 45 15 40 5Z'/%3E%3Cpath d='M40 28 C35 36 25 38 20 46 C25 42 35 40 40 44 C45 40 55 42 60 46 C55 38 45 36 40 28Z' fill-opacity='0.09'/%3E%3Ccircle cx='40' cy='52' r='4' fill-opacity='0.08'/%3E%3Cpath d='M6 40 C10 36 12 28 18 24' stroke='%23C5A059' stroke-width='0.8' stroke-opacity='0.12' fill='none'/%3E%3Cpath d='M74 40 C70 36 68 28 62 24' stroke='%23C5A059' stroke-width='0.8' stroke-opacity='0.12' fill='none'/%3E%3C/g%3E%3C/svg%3E");

    /* 2. Thai diamond lattice — for product section 1 */
    --svg-diamond: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23e6007e' stroke-opacity='0.08' stroke-width='1'%3E%3Cpath d='M30 2 L58 30 L30 58 L2 30 Z'/%3E%3Cpath d='M30 12 L48 30 L30 48 L12 30 Z'/%3E%3Ccircle cx='30' cy='30' r='3' fill='%23e6007e' fill-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");

    /* 3. Thai temple arch / pagoda silhouette row — for product section 2 */
    --svg-pagoda: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='%23C5A059' fill-opacity='0.10'%3E%3Cpolygon points='60,4 66,18 54,18'/%3E%3Cpolygon points='60,14 74,28 46,28'/%3E%3Crect x='48' y='28' width='24' height='6'/%3E%3Crect x='52' y='34' width='16' height='28'/%3E%3Crect x='44' y='56' width='32' height='6'/%3E%3Ccircle cx='18' cy='60' r='8' fill-opacity='0.06'/%3E%3Ccircle cx='102' cy='60' r='8' fill-opacity='0.06'/%3E%3Cpath d='M0 72 Q30 62 60 72 Q90 62 120 72' stroke='%23C5A059' stroke-width='1' stroke-opacity='0.1' fill='none'/%3E%3C/g%3E%3C/svg%3E");

    /* 4. Thai floral/orchid repeat — for section 3 */
    --svg-orchid: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%238B0000' fill-opacity='0.07'%3E%3Ccircle cx='50' cy='50' r='6'/%3E%3Cellipse cx='50' cy='34' rx='5' ry='10'/%3E%3Cellipse cx='50' cy='66' rx='5' ry='10'/%3E%3Cellipse cx='34' cy='50' rx='10' ry='5'/%3E%3Cellipse cx='66' cy='50' rx='10' ry='5'/%3E%3Cellipse cx='38' cy='38' rx='4' ry='8' transform='rotate(45 38 38)'/%3E%3Cellipse cx='62' cy='38' rx='4' ry='8' transform='rotate(-45 62 38)'/%3E%3Cellipse cx='38' cy='62' rx='4' ry='8' transform='rotate(-45 38 62)'/%3E%3Cellipse cx='62' cy='62' rx='4' ry='8' transform='rotate(45 62 62)'/%3E%3C/g%3E%3C/svg%3E");

    /* 5. Thai wave/water pattern — for trust section */
    --svg-wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='40' viewBox='0 0 200 40'%3E%3Cpath d='M0 20 Q25 5 50 20 Q75 35 100 20 Q125 5 150 20 Q175 35 200 20' stroke='%23C5A059' stroke-width='1.5' stroke-opacity='0.15' fill='none'/%3E%3Cpath d='M0 28 Q25 13 50 28 Q75 43 100 28 Q125 13 150 28 Q175 43 200 28' stroke='%23C5A059' stroke-width='0.8' stroke-opacity='0.08' fill='none'/%3E%3C/svg%3E");

    /* 6. Thai border chevron strip — used as top/bottom section dividers */
    --svg-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 0 L20 18 L40 0' fill='none' stroke='%23C5A059' stroke-width='1.5' stroke-opacity='0.25'/%3E%3C/svg%3E");
}

/* ────────────────────────────────────────────────────────────
   GLOBAL BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ph-font);
    background: var(--ph-bg);
    color: var(--ph-text-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
@media (max-width: 991.98px) {
    body { padding-bottom: calc(var(--ph-bottom-nav) + 10px) !important; }
}
body.home-page #navbar_top { display: none !important; }
img { max-width: 100%; display: block; }
a   { text-decoration: none !important; }

/* ────────────────────────────────────────────────────────────
   ① TOP INFO BAR — Delivery + Promo ticker + Reseller link
   ──────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════
   ① TOP INFO BAR  — Slim clean announcement bar
   ══════════════════════════════════════════════════ */
.ph-topbar {
    background: linear-gradient(90deg, #0d0b1e 0%, #14122C 50%, #0d0b1e 100%);
    border-bottom: 1px solid rgba(197,160,89,.20);
    display: none;
}
@media (min-width: 380px) { .ph-topbar { display: block; } }

.ph-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 20px;
    gap: 12px;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left: delivery location */
.ph-topbar-delivery {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(197,160,89,.65);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: .01em;
}
.ph-topbar-delivery i {
    font-size: 10px;
    color: var(--th-gold);
    filter: drop-shadow(0 0 4px rgba(197,160,89,.5));
}
.ph-topbar-delivery strong {
    color: var(--th-gold-light);
    font-weight: 700;
    letter-spacing: .02em;
}
.ph-topbar-sep {
    width: 1px; height: 14px;
    background: rgba(197,160,89,.25);
    flex-shrink: 0;
}

/* Centre: animated marquee ticker */
.ph-topbar-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 34px;
    display: flex;
    align-items: center;
    min-width: 0;
}
.ph-ticker-item {
    position: absolute;
    left: 0; right: 0;          /* anchor all items to the same box */
    text-align: center;
    white-space: nowrap;
    font-size: 11px;
    color: rgba(220,195,140,.80);
    font-weight: 500;
    /* each full cycle = 13s; 3 items × 4.33s each */
    animation: phTickerScroll 13s linear infinite;
    opacity: 0;
    letter-spacing: .01em;
}
/* stagger by exactly 1/3 of the cycle */
.ph-ticker-item:nth-child(1) { animation-delay: 0s; }
.ph-ticker-item:nth-child(2) { animation-delay: 4.333s; }
.ph-ticker-item:nth-child(3) { animation-delay: 8.667s; }

/*
  Each item owns 33.3% of the 13s cycle (= 4.33 s).
  It must be fully GONE before the next item starts.
    0%  → invisible (start)
    5%  → fade in  (0.65 s)
    26% → stay visible until 26% (3.38 s) — well before next at 33%
    31% → fully gone (4.03 s)
    100%→ invisible for remaining 8.97 s
*/
@keyframes phTickerScroll {
    0%   { opacity: 0; transform: translateY(7px); }
    5%   { opacity: 1; transform: translateY(0);   }
    26%  { opacity: 1; transform: translateY(0);   }
    31%  { opacity: 0; transform: translateY(-7px);}
    100% { opacity: 0; transform: translateY(-7px);}
}

/* Right: Reseller pill */
.ph-topbar-reseller {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--th-gold);
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(197,160,89,.35);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    transition: all .25s ease;
    background: rgba(197,160,89,.06);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ph-topbar-reseller:hover {
    background: rgba(197,160,89,.18);
    color: var(--th-gold-light);
    border-color: var(--th-gold);
    box-shadow: 0 0 10px rgba(197,160,89,.2);
}
.ph-topbar-reseller i { font-size: 9px; }

/* ────────────────────────────────────────────────────────────
   ② MAIN HEADER BAR — Thai Royal + 3-column layout
   ──────────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════
   ② MAIN HEADER — Premium 3-zone layout
   ══════════════════════════════════════════════════ */
.ph-header {
    position: sticky;
    top: 0;
    z-index: 9000;
    background-color: var(--th-navy);
    background-image:
        var(--svg-lotus),
        linear-gradient(160deg, #1a1535 0%, #14122C 40%, #0c0b1d 100%);
    background-size: 90px 90px, cover;
    transition: box-shadow .35s ease;
    box-shadow: 0 4px 32px rgba(0,0,0,.35);
}

/* Gold shimmer bottom line */
.ph-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--th-gold-dark) 10%,
        var(--th-gold) 30%,
        var(--th-gold-light) 45%,
        #fffde0 50%,
        var(--th-gold-light) 55%,
        var(--th-gold) 70%,
        var(--th-gold-dark) 90%,
        transparent 100%);
    background-size: 200% auto;
    animation: thShimmer 3.5s linear infinite;
    z-index: 2;
    opacity: .85;
}
.ph-header--scrolled {
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

/* ── 3-column inner grid ── */
.ph-header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--ph-hdr-h);
    padding: 0 16px;
    position: relative;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── LEFT ZONE: Brand text block ── */
.ph-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-content: flex-start;
}

/* Hamburger button */
.ph-menu-btn {
    position: static;
    margin: 0;
    padding: 0;
    float: none;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1.5px solid rgba(197,160,89,.28);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .2s;
    flex-shrink: 0;
    box-sizing: border-box;
}
.ph-menu-btn:hover {
    background: rgba(197,160,89,.18);
    border-color: var(--th-gold);
}
.ph-hamburger-lines {
    display: flex; flex-direction: column; gap: 4px;
}
.ph-hamburger-lines span {
    display: block;
    width: 18px; height: 2px;
    background: var(--th-gold-light) !important;
    border-radius: 2px;
    transition: all .25s ease;
}
.ph-hamburger-lines span:nth-child(2) { width: 12px; }

/* Brand text */
.ph-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
    text-decoration: none !important;
    padding: 4px 0;
}
.ph-brand-name {
    font-family: var(--ph-font-thai);
    font-size: 14px;
    font-weight: 700;
    color: var(--th-gold-light);
    letter-spacing: .04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 14px rgba(197,160,89,.5);
    line-height: 1.2;
    text-transform: uppercase;
}
.ph-brand-tag {
    font-size: 8.5px;
    font-weight: 600;
    color: rgba(197,160,89,.60);
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1;
}

/* ── CENTRE ZONE: Logo ring ── */
.ph-logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}
.ph-logo-ring {
    position: relative;
    width: 50px; height: 50px;
    border-radius: 50%;
    padding: 2.5px;
    background: conic-gradient(
        var(--th-gold-dark) 0deg,
        var(--th-gold)      60deg,
        var(--th-gold-light) 90deg,
        #fffde0             180deg,
        var(--th-gold-light) 270deg,
        var(--th-gold)      300deg,
        var(--th-gold-dark) 360deg
    );
    animation: thRingSpin 9s linear infinite;
    filter: drop-shadow(0 0 8px rgba(197,160,89,.45));
}
@keyframes thRingSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.ph-logo-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: contain;
    background: var(--th-navy);
    padding: 3px;
    display: block;
    animation: thRingSpin 9s linear infinite reverse;
}

/* ── RIGHT ZONE: Search + Icon buttons ── */
.ph-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

/* Icon buttons: square glassmorphism tiles */
.ph-icon-btn {
    position: relative;
    width: 38px; height: 38px;
    border-radius: 10px;
    border: 1.5px solid rgba(197,160,89,.28);
    background: rgba(255,255,255,.05);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--th-gold-light);
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .22s ease;
    text-decoration: none !important;
    flex-shrink: 0;
}
.ph-icon-btn:hover {
    background: rgba(197,160,89,.18);
    border-color: var(--th-gold);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(197,160,89,.25);
}
.ph-icon-btn:active { transform: scale(.95); }

/* Cart badge */
.ph-cart-dot {
    position: absolute; top: -5px; right: -5px;
    min-width: 17px; height: 17px;
    border-radius: var(--r-pill);
    background: var(--ph-primary);
    color: #fff; font-size: 9px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    padding: 0 3px;
    border: 2px solid var(--th-navy);
    line-height: 1;
    animation: thPulse 2.2s ease-in-out infinite;
}
.ph-cart-dot--hidden { display: none; }
@keyframes thPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(230,0,126,.6); }
    50%      { box-shadow: 0 0 0 5px rgba(230,0,126,0); }
}

/* ── Slide-down search bar (mobile & tablet) ── */
.ph-search-bar {
    height: 0;
    overflow: hidden;
    background: rgba(20,18,44,.97);
    border-top: 1px solid rgba(197,160,89,.18);
    transition: height .32s cubic-bezier(.4,0,.2,1);
    position: relative;
    z-index: 1;
}
.ph-search-bar--open {
    height: calc(var(--ph-search-h) + 8px);
}
.ph-search-form {
    display: flex;
    align-items: center;
    height: var(--ph-search-h);
    padding: 4px 16px;
    gap: 10px;
}
.ph-search-icon { color: var(--th-gold); font-size: 14px; flex-shrink: 0; }
.ph-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: rgba(255,255,255,.95);
    color: #111827 !important;
    font-family: var(--ph-font);
    font-size: 13.5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    transition: box-shadow .2s;
}
.ph-search-input:focus {
    box-shadow: 0 0 0 3px rgba(197,160,89,.3);
}
.ph-search-input::placeholder { color: rgba(17,24,39,.4); }
.ph-search-submit {
    border: none;
    background: linear-gradient(135deg, var(--th-gold-dark) 0%, var(--th-gold) 100%);
    color: #1a1209;
    font-family: var(--ph-font);
    font-size: 12px; font-weight: 800;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(197,160,89,.4);
    transition: filter .2s, transform .15s;
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ph-search-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ph-search-submit:active { transform: scale(.97); }

/* ── Desktop search row (992px+) — inline search in header ── */
.ph-desktop-search {
    display: none;
    align-items: center;
    background: rgba(255,255,255,.08);
    border: 1.5px solid rgba(197,160,89,.28);
    border-radius: var(--r-pill);
    height: 38px;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
    min-width: 220px;
    max-width: 340px;
    width: 100%;
    backdrop-filter: blur(6px);
}
.ph-desktop-search:focus-within {
    border-color: var(--th-gold);
    box-shadow: 0 0 0 3px rgba(197,160,89,.18);
    background: rgba(255,255,255,.12);
}
.ph-desktop-search-icon {
    padding: 0 10px 0 14px;
    color: var(--th-gold);
    font-size: 13px;
    flex-shrink: 0;
}
.ph-desktop-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(255,255,255,.88) !important;
    font-family: var(--ph-font);
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    min-width: 0;
}
.ph-desktop-search-input::placeholder { color: rgba(197,160,89,.45); }
.ph-desktop-search-btn {
    border: none;
    background: linear-gradient(135deg, var(--th-gold-dark), var(--th-gold));
    color: #1a1209;
    font-size: 11px; font-weight: 800;
    height: 100%;
    padding: 0 14px;
    cursor: pointer;
    transition: filter .2s;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    border-radius: 0;
}
.ph-desktop-search-btn:hover { filter: brightness(1.12); }


/* ────────────────────────────────────────────────────────────
   ② HERO — Full-bleed slider (no section bg, image is the bg)
   ──────────────────────────────────────────────────────────── */
.ph-hero-section {
    position: relative;
    background: var(--th-navy);
    overflow: hidden;
}
/* Thai gold top/bottom border strips on hero */
.ph-hero-section::before,
.ph-hero-section::after {
    content: '';
    position: absolute; left: 0; right: 0;
    height: 4px; z-index: 10; pointer-events: none;
    background: linear-gradient(90deg,
        transparent,
        var(--th-gold-dark) 20%,
        var(--th-gold-light) 50%,
        var(--th-gold-dark) 80%,
        transparent);
}
.ph-hero-section::before { top: 0; }
.ph-hero-section::after  { bottom: 0; }

.ph-hero-slide { display: block; line-height: 0; }
.ph-hero-img {
    width: 100%; height: auto;
    min-height: 200px; max-height: 280px;
    object-fit: cover; object-position: top center;
}

/* Owl dots */
.ph-hero-section .owl-nav { display: none !important; }
.ph-hero-section .owl-dots {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%);
    display: flex !important; gap: 6px; z-index: 10;
}
.ph-hero-section .owl-dot span {
    width: 7px !important; height: 7px !important;
    background: rgba(255,255,255,.45) !important;
    border-radius: 50% !important; margin: 0 !important;
    display: block; transition: all .3s ease;
}
.ph-hero-section .owl-dot.active span {
    width: 22px !important; border-radius: 4px !important;
    background: var(--th-gold-light) !important;
    box-shadow: 0 0 8px rgba(197,160,89,.6) !important;
}

/* ────────────────────────────────────────────────────────────
   ③ CATEGORY SECTION — Premium Thai Royal design
   ──────────────────────────────────────────────────────────── */
.ph-cat-section {
    position: relative;
    background-color: #14122C;
    background-image:
        var(--svg-lotus),
        linear-gradient(160deg, #0e0c22 0%, #1e1c3a 55%, #14122C 100%);
    background-size: 90px 90px, cover;
    padding-bottom: 20px;
    margin-bottom: 0;
    overflow: hidden;
}
/* Thai gold shimmer top strip */
.ph-cat-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg,
        transparent, var(--th-gold-dark) 15%,
        var(--th-gold-light) 50%, var(--th-gold-dark) 85%, transparent);
    background-size: 200% auto;
    animation: thShimmer 4s linear infinite;
}
/* Thai ornamental chevron bottom */
.ph-cat-section::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 20px; z-index: 3;
    background-image: var(--svg-chevron);
    background-size: 40px 20px;
    background-repeat: repeat-x;
    opacity: 0.6;
}

/* ── Section label (shared by cat + product sections) ── */
.ph-section-label {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 16px 12px;
    position: relative; z-index: 4;
}

/* ── Category section header ── */
.ph-cat-section .ph-section-label {
    align-items: flex-end;
    gap: 10px;
}
.ph-cat-section-heading {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ph-cat-section-eyebrow {
    font-size: 9px;
    font-weight: 800;
    color: rgba(197,160,89,.6);
    letter-spacing: .18em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ph-cat-section-eyebrow::before {
    content: '';
    display: inline-block;
    width: 20px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--th-gold));
}
.ph-cat-section-eyebrow::after {
    content: '';
    display: inline-block;
    width: 20px; height: 1px;
    background: linear-gradient(90deg, var(--th-gold), transparent);
}
.ph-cat-section-title {
    font-family: var(--ph-font-thai);
    font-size: 17px;
    font-weight: 700;
    color: var(--th-gold-light);
    letter-spacing: .04em;
    text-shadow: 0 0 24px rgba(197,160,89,.4), 0 2px 8px rgba(0,0,0,.7);
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0;
}

.ph-section-title-text {
    font-family: var(--ph-font-thai);
    font-size: 15px; font-weight: 700;
    color: var(--th-gold-light);
    letter-spacing: .03em;
    text-shadow: 0 0 20px rgba(197,160,89,.5), 0 2px 8px rgba(0,0,0,.6);
}
/* Alternate text colour for white-bg sections */
.ph-products-section .ph-section-title-text {
    font-family: 'Outfit', var(--ph-font), sans-serif;
    font-size: 18px; font-weight: 800;
    color: var(--th-navy);
    text-shadow: none;
    letter-spacing: -.02em;
    line-height: 1.25;
}
.ph-section-see-all {
    font-size: 11px; font-weight: 700;
    color: var(--th-gold);
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid rgba(197,160,89,.3);
    padding: 5px 12px; border-radius: var(--r-pill);
    transition: all .25s ease;
    background: rgba(197,160,89,.06);
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.ph-section-see-all:hover {
    background: rgba(197,160,89,.18);
    color: var(--th-gold-light);
    border-color: var(--th-gold-light);
    box-shadow: 0 0 12px rgba(197,160,89,.2);
}
.ph-section-see-all i {
    font-size: 8px;
    transition: transform .25s ease;
}
.ph-section-see-all:hover i {
    transform: translateX(3px);
}
.ph-products-section .ph-section-see-all {
    color: var(--ph-primary);
    border-color: rgba(230,0,126,.22);
    background: rgba(230,0,126,.04);
}
.ph-products-section .ph-section-see-all:hover {
    background: var(--ph-primary);
    color: #ffffff !important;
    border-color: var(--ph-primary);
}

/* ── Category scroll rail ── */
.ph-cat-rail {
    display: flex; gap: 12px;
    padding: 0 16px 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    position: relative; z-index: 4;
}
.ph-cat-rail::-webkit-scrollbar { display: none; }

/* ════════════════════════════════════════════════════
   CATEGORY CARD — Premium redesign
   Centre-bottom frosted name pill, icon badge top-right
   ════════════════════════════════════════════════════ */
.ph-cat-card {
    position: relative;
    flex: 0 0 auto;
    width: 122px; height: 168px;
    border-radius: 18px;
    overflow: hidden;
    display: block;
    scroll-snap-align: start;
    box-shadow:
        0 8px 24px rgba(0,0,0,.45),
        0 0 0 1.5px rgba(197,160,89,.35);
    cursor: pointer;
    transition:
        transform .3s cubic-bezier(.165,.84,.44,1),
        box-shadow .3s ease;
    text-decoration: none !important;
    background: #0e0c22;
}
.ph-cat-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 18px 40px rgba(0,0,0,.55),
        0 0 0 2.5px var(--th-gold);
}

/* Shimmer line on card top (hover only) */
.ph-cat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--th-gold-light), transparent);
    z-index: 10;
    opacity: 0;
    transition: opacity .3s ease;
}
.ph-cat-card:hover::before { opacity: 1; animation: thShimmer 1.5s linear infinite; }

/* Card photo */
.ph-cat-photo {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
    transition: transform .5s cubic-bezier(.165,.84,.44,1);
}
.ph-cat-card:hover .ph-cat-photo { transform: scale(1.1); }

/* Deep gradient overlay — clear at top, dark at bottom */
.ph-cat-overlay {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,.02)  0%,
        rgba(0,0,0,.08)  35%,
        rgba(0,0,0,.55)  65%,
        rgba(0,0,0,.88) 100%
    );
}

/* Icon badge — top right corner */
.ph-cat-icon {
    position: absolute;
    top: 9px; right: 9px;
    z-index: 5;
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(197,160,89,.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(197,160,89,.4);
    display: flex; align-items: center; justify-content: center;
    transition: transform .25s ease, background .25s ease;
}
.ph-cat-icon i {
    font-size: 13px;
    color: var(--th-gold-light);
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
    transition: transform .25s ease;
}
.ph-cat-card:hover .ph-cat-icon {
    background: rgba(197,160,89,.38);
    transform: scale(1.1) rotate(-6deg);
}
.ph-cat-card:hover .ph-cat-icon i { transform: scale(1.1); }

/* Bottom name area */
.ph-cat-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 5;
    padding: 0 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Category name — frosted glass pill */
.ph-cat-name {
    font-family: var(--ph-font);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 108px;
    line-height: 1.3;

    /* frosted glass pill */
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--r-pill);
    padding: 3px 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);

    transition: background .25s ease, border-color .25s ease;
}
.ph-cat-card:hover .ph-cat-name {
    background: rgba(197,160,89,.35);
    border-color: rgba(197,160,89,.55);
    color: var(--th-gold-light);
}


/* ────────────────────────────────────────────────────────────
   ④ PRODUCT SECTIONS — Each gets a unique Thai vector bg
   ──────────────────────────────────────────────────────────── */

/* Base product section */
.ph-products-section {
    position: relative;
    padding-bottom: 18px;
    margin-bottom: 0;
    overflow: hidden;
}

/* Odd sections — Thai Diamond lattice on warm cream */
.ph-products-section:nth-child(odd) {
    background-color: #fffaf5;
    background-image:
        var(--svg-diamond),
        linear-gradient(160deg, #fff8f0 0%, #fffaf5 50%, #fff5ee 100%);
    background-size: 60px 60px, cover;
}

/* Even sections — Thai Pagoda/Temple on soft lavender */
.ph-products-section:nth-child(even) {
    background-color: #f5f0ff;
    background-image:
        var(--svg-pagoda),
        linear-gradient(160deg, #f0ebff 0%, #f8f5ff 50%, #ede8ff 100%);
    background-size: 120px 80px, cover;
}

/* Every 3rd — Thai Orchid floral on soft pink */
.ph-products-section:nth-child(3n) {
    background-color: #fff5f8;
    background-image:
        var(--svg-orchid),
        linear-gradient(160deg, #fff0f5 0%, #fff5f8 50%, #ffecf3 100%);
    background-size: 100px 100px, cover;
}

/* Gold shimmer top border on every product section */
.ph-products-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg,
        transparent, var(--th-gold-dark) 15%,
        var(--th-gold) 50%, var(--th-gold-dark) 85%, transparent);
    z-index: 5;
}

/* Chevron bottom ornament on every product section */
.ph-products-section::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 20px;
    background-image: var(--svg-chevron);
    background-size: 40px 20px;
    background-repeat: repeat-x;
    opacity: 0.35;
    z-index: 5;
}

/* Section label inner wrap */
.ph-section-label { position: relative; z-index: 6; }

/* ── Product grid ── */
.ph-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 12px;
    position: relative; z-index: 6;
}

/* ── Section label enhanced ── */
.ph-section-label-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ph-section-eyebrow {
    font-size: 9.5px;
    font-weight: 800;
    color: var(--ph-primary);
    text-transform: uppercase;
    letter-spacing: .16em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ph-section-eyebrow::before {
    content: '✦';
    font-size: 8.5px;
    color: var(--th-gold-dark);
}
.ph-section-label-left .ph-section-title-text {
    padding: 0;
}

/* ════════════════════════════════════════════════════════════
   PROFESSIONAL PRODUCT CARD — Full Architecture
   ════════════════════════════════════════════════════════════ */

.ph-product-card {
    position: relative;
    background: #F7F3EB; /* Premium soft warm cream background matching reference */
    border: 1.5px solid rgba(197,160,89,.18);
    border-radius: 20px;
    overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 16px rgba(0,0,0,.03);
    transition:
        box-shadow .3s ease,
        transform .32s cubic-bezier(.165,.84,.44,1),
        border-color .3s ease;
}
.ph-product-card:hover {
    box-shadow: 0 8px 24px rgba(197,160,89,.15);
    transform: translateY(-4px);
    border-color: var(--th-gold-dark);
}

/* IMAGE ZONE — contains image + overlay + badges + wishlist */
.ph-product-img-zone {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border-radius: 16px;
    margin: 6px 6px 0;
    padding: 8px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,.02);
}
.ph-product-img-link { display: block; }
.ph-product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1; /* Perfect square layout */
    background: #ffffff;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.ph-product-img {
    width: 100%; height: 100%;
    object-fit: contain; /* Contain so clothes/bags are fully visible, no cropping! */
    transition: transform .45s cubic-bezier(.165,.84,.44,1);
}
.ph-product-card:hover .ph-product-img { transform: scale(1.05); }

/* Hover overlay — Quick View chip slides up */
.ph-product-img-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(14,41,29,.4) 0%,
        transparent 55%);
    display: flex;
    align-items: flex-end; justify-content: center;
    padding-bottom: 10px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.ph-product-card:hover .ph-product-img-overlay { opacity: 1; }
.ph-quick-view-tag {
    background: rgba(255,255,255,.96);
    color: #0e291d;
    font-size: 10px; font-weight: 700;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    display: flex; align-items: center; gap: 4px;
    transform: translateY(8px);
    transition: transform .3s ease;
    pointer-events: auto;
    letter-spacing: .03em;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ph-product-card:hover .ph-quick-view-tag { transform: translateY(0); }

/* Stacked badges — top-left column */
.ph-card-badges {
    position: absolute; top: 16px; left: 16px; z-index: 8;
    display: flex; flex-direction: column; gap: 4px;
}
.ph-badge {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 800;
    padding: 2.5px 7px; border-radius: var(--r-pill);
    line-height: 1.2; letter-spacing: .02em;
    white-space: nowrap;
}
.ph-badge--sale {
    background: #e76f51; /* Terracotta orange to match reference active look */
    color: #fff;
    box-shadow: 0 2px 8px rgba(231,111,81,.3);
}
.ph-badge--new {
    background: #0e291d; /* Deep forest green */
    color: #fff;
    box-shadow: 0 2px 8px rgba(14,41,29,.25);
}

/* Wishlist — top-right floating button */
.ph-wishlist-btn {
    position: absolute; top: 16px; right: 16px; z-index: 8;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(197,160,89,.2);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(4px);
    color: rgba(14,41,29,.6);
    font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .22s;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.ph-wishlist-btn:hover {
    background: #e76f51;
    border-color: #e76f51;
    color: #fff;
    transform: scale(1.1);
}

/* ── BODY ZONE — all text + price + CTA ── */
.ph-product-body {
    flex: 1; padding: 8px 10px 10px;
    display: flex; flex-direction: column; gap: 4px;
}
.ph-product-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align circular button to bottom-right */
    gap: 6px;
}
.ph-product-info-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ph-product-info-right {
    flex-shrink: 0;
}

/* Product name */
.ph-product-name {
    font-family: var(--ph-font);
    font-size: 12px;
    font-weight: 700;
    color: #0e291d; /* Deep forest green from reference */
    line-height: 1.28;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
    text-decoration: none !important;
}
.ph-product-name:hover { color: #e76f51; }

/* ── PRICE BLOCK ── */
.ph-price-block {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 1px;
}
.ph-price-now {
    font-size: 14.5px;
    font-weight: 800;
    color: #0e291d; /* Deep green */
    letter-spacing: -.02em;
    line-height: 1;
}
.ph-price-was {
    font-size: 10.5px;
    color: rgba(14,41,29,.5);
    text-decoration: line-through;
    font-weight: 500;
}
.ph-savings-badge-row {
    margin-top: 2px;
}
.ph-price-save {
    font-size: 9.5px;
    font-weight: 700;
    color: #059669;
    background: rgba(5,150,105,.08);
    padding: 2px 7px;
    border-radius: var(--r-pill);
    white-space: nowrap;
    display: inline-block;
}

/* ── CIRCULAR PLUS BUTTON (CTA) ── */
.ph-card-plus-btn {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: #0e291d; /* Deep green button background */
    color: #ffffff !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all .25s cubic-bezier(.175,.885,.32,1.275);
    box-shadow: 0 3px 8px rgba(14,41,29,.18);
    text-decoration: none !important;
}
.ph-card-plus-btn:hover {
    background: #e76f51; /* Orange on hover for active effect */
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 12px rgba(231,111,81,.35);
}
.ph-card-plus-btn--sale {
    background: #e76f51; /* Orange color for items on sale/hot, matching reference card! */
    box-shadow: 0 3px 8px rgba(231,111,81,.22);
}
.ph-card-plus-btn--sale:hover {
    background: #0e291d;
    box-shadow: 0 4px 12px rgba(14,41,29,.3);
}

/* ──────────────────────────────────────────────────────────── *//* ────────────────────────────────────────────────────────────
   ⑤ TRUST BADGES — Thai wave pattern + royal gold bg
   ──────────────────────────────────────────────────────────── */
.ph-trust-section {
    position: relative;
    background-color: var(--th-navy);
    background-image:
        var(--svg-wave),
        var(--svg-lotus),
        linear-gradient(135deg, #14122C 0%, #1e1c3a 60%, #14122C 100%);
    background-size: 200px 40px, 80px 80px, cover;
    background-position: center bottom, center, center;
    padding: 16px 0 18px;
    margin-bottom: 0;
    overflow: hidden;
}
/* Gold shimmer top strip */
.ph-trust-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg,
        transparent, var(--th-gold-dark) 15%,
        var(--th-gold-light) 50%, var(--th-gold-dark) 85%, transparent);
    background-size: 200% auto;
    animation: thShimmer 3.5s linear infinite;
}
/* Ornamental bottom too */
.ph-trust-section::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 3;
    background: linear-gradient(90deg,
        transparent, var(--th-gold-dark) 15%,
        var(--th-gold) 50%, var(--th-gold-dark) 85%, transparent);
}

.ph-trust-inner {
    position: relative; z-index: 4;
}
/* Thai section title for trust */
.ph-trust-heading {
    text-align: center;
    font-family: var(--ph-font-thai);
    font-size: 13px; font-weight: 700; letter-spacing: .25em;
    color: rgba(197,160,89,.7);
    text-transform: uppercase;
    padding: 0 0 10px;
    display: block;
}

.ph-trust-rail {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; padding: 0 14px;
}
.ph-trust-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(197,160,89,.2);
    border-radius: var(--r-md);
    backdrop-filter: blur(6px);
    transition: all .25s;
}
.ph-trust-item:hover {
    background: rgba(197,160,89,.1);
    border-color: rgba(197,160,89,.4);
    transform: translateY(-2px);
}
.ph-trust-icon {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(197,160,89,.2), rgba(197,160,89,.08));
    border: 1px solid rgba(197,160,89,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--th-gold);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.ph-trust-text strong {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--th-gold-light); line-height: 1.3;
}
.ph-trust-text span { font-size: 10.5px; color: rgba(197,160,89,.65); }

/* ────────────────────────────────────────────────────────────
   ⑥ BOTTOM NAVIGATION — Premium Thai Navy & Gold Theme
   ──────────────────────────────────────────────────────────── */
.footer_nav {
    position: fixed !important;
    bottom: 0 !important; left: 0 !important; right: 0 !important;
    height: var(--ph-bottom-nav) !important;
    background-color: var(--th-navy) !important;
    background-image: var(--svg-lotus), linear-gradient(180deg, #14122C 0%, #0d0c22 100%) !important;
    background-size: 80px 80px, cover !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1.5px solid rgba(197,160,89,.4) !important;
    box-shadow: 0 -4px 25px rgba(0,0,0,.5), 0 -1px 0 rgba(197,160,89,.2) !important;
    z-index: 8900 !important;
    display: flex !important; align-items: stretch !important;
}
.footer_nav ul {
    display: flex !important; width: 100% !important;
    list-style: none !important; margin: 0 !important; padding: 0 !important;
}
.footer_nav ul li { flex: 1 !important; }
.footer_nav ul li a {
    display: flex !important; flex-direction: column !important;
    align-items: center !important; justify-content: center !important;
    height: 100% !important; gap: 4px !important;
    color: rgba(220,195,140,.65) !important;
    font-size: 9px !important; font-weight: 700 !important;
    text-decoration: none !important;
    transition: color .25s ease !important;
    position: relative !important;
    letter-spacing: .05em !important;
    text-transform: uppercase !important;
}
.footer_nav ul li a span:first-child { 
    font-size: 18px !important; 
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.25s ease !important;
}
.footer_nav ul li a i,
.footer_nav ul li a svg {
    color: rgba(220,195,140,.65) !important;
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2px !important;
    transition: all 0.25s ease !important;
}
.footer_nav ul li a:hover,
.footer_nav ul li a.active { 
    color: var(--th-gold-light) !important; 
    background: transparent !important;
}
.footer_nav ul li a:hover i,
.footer_nav ul li a:hover svg,
.footer_nav ul li a.active i,
.footer_nav ul li a.active svg {
    color: var(--th-gold-light) !important;
    filter: drop-shadow(0 0 5px rgba(246, 216, 126, 0.65)) drop-shadow(0 0 10px var(--ph-primary)) !important;
    transform: translateY(-2px) scale(1.1) !important;
}
.footer_nav ul li a:hover span:last-child,
.footer_nav ul li a.active span:last-child {
    color: var(--th-gold-light) !important;
    text-shadow: 0 0 8px rgba(246, 216, 126, 0.3) !important;
}
/* Gold-pink gradient underline on active */
.footer_nav ul li a.active::after {
    content: '';
    position: absolute !important;
    bottom: 5px !important; left: 50% !important;
    transform: translateX(-50%) !important;
    width: 20px !important; height: 3px !important;
    background: linear-gradient(90deg, var(--ph-primary) 0%, var(--th-gold-light) 100%) !important;
    border-radius: var(--r-pill) !important;
    box-shadow: 0 1px 6px var(--ph-primary) !important;
}

/* Home centre floating circle — conic gold gradient matching logo */
.footer_nav ul li.mobile_home a {
    background: conic-gradient(
        var(--th-gold-dark) 0deg,
        var(--th-gold)      60deg,
        var(--th-gold-light) 90deg,
        #fffde0             180deg,
        var(--th-gold-light) 270deg,
        var(--th-gold)      300deg,
        var(--th-gold-dark) 360deg
    ) !important;
    width: 50px !important; height: 50px !important;
    border-radius: 50% !important;
    margin: auto !important; margin-top: -15px !important;
    box-shadow: 0 4px 15px rgba(197,160,89,.4), 0 0 0 3px rgba(197,160,89,.25) !important;
    gap: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease !important;
    border: 1.5px solid var(--th-navy) !important;
}
.footer_nav ul li.mobile_home a::after { display: none !important; }
.footer_nav ul li.mobile_home a span:last-child { display: none !important; }
.footer_nav ul li.mobile_home a span:first-child { 
    font-size: 20px !important; 
    color: var(--th-navy) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.footer_nav ul li.mobile_home a i,
.footer_nav ul li.mobile_home a svg,
.footer_nav ul li.mobile_home a span i,
.footer_nav ul li.mobile_home a span svg,
.footer_nav ul li.mobile_home a.active i,
.footer_nav ul li.mobile_home a.active svg,
.footer_nav ul li.mobile_home a.active span i,
.footer_nav ul li.mobile_home a.active span svg {
    color: var(--th-navy) !important;
    width: 22px !important;
    height: 22px !important;
    stroke-width: 2.2px !important;
    font-size: 20px !important;
    text-shadow: none !important;
    filter: none !important;
    transform: none !important;
}
.footer_nav ul li.mobile_home a:hover,
.footer_nav ul li.mobile_home a.active {
    transform: scale(1.08) translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(197,160,89,.6), 0 0 0 4px rgba(197,160,89,.3) !important;
    background: conic-gradient(
        var(--th-gold-dark) 0deg,
        var(--th-gold)      60deg,
        var(--th-gold-light) 90deg,
        #fffde0             180deg,
        var(--th-gold-light) 270deg,
        var(--th-gold)      300deg,
        var(--th-gold-dark) 360deg
    ) !important;
}
/* Cart qty in bottom nav */
.footer_nav .mobilecart-qty {
    position: absolute !important; top: 4px !important;
    right: calc(50% - 22px) !important;
    min-width: 16px !important; height: 16px !important;
    border-radius: var(--r-pill) !important;
    background: var(--ph-primary) !important;
    color: #fff !important; font-size: 9px !important; font-weight: 800 !important;
    display: flex !important; align-items: center !important; justify-content: center !important;
    padding: 0 3px !important;
    border: 1.5px solid var(--th-navy) !important;
    box-shadow: 0 0 8px var(--ph-primary) !important;
}

/* ────────────────────────────────────────────────────────────
   ⑦ PROMO POPUP
   ──────────────────────────────────────────────────────────── */
.ph-popup-overlay,
.promo-popup-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.ph-popup-box,
.promo-popup-container {
    position: relative;
    max-width: 380px; width: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg), 0 0 0 2px rgba(197,160,89,.4);
    animation: phPopIn .4s cubic-bezier(.165,.84,.44,1) both;
}
@keyframes phPopIn {
    from { opacity: 0; transform: scale(.88) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ph-popup-close,
.promo-popup-close-btn {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(0,0,0,.55);
    color: #fff; border: none; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .2s; line-height: 1;
}
.ph-popup-close:hover,
.promo-popup-close-btn:hover { background: var(--ph-primary); }
.ph-popup-img, .promo-popup-img { width: 100%; height: auto; display: block; }

/* ────────────────────────────────────────────────────────────
   ⑧ SCROLL-TO-TOP
   ──────────────────────────────────────────────────────────── */
.scrolltop {
    bottom: calc(var(--ph-bottom-nav) + 14px) !important;
    right: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
    z-index: 8800 !important;
}
.scrolltop .scroll {
    width: 38px !important; height: 38px !important;
    background: var(--th-navy) !important;
    border: 1.5px solid var(--th-gold) !important;
    box-shadow: var(--sh-gold) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
}
.scrolltop .scroll:hover {
    transform: translateY(-2px) !important;
    border-color: var(--th-gold-light) !important;
    box-shadow: 0 0 12px var(--th-gold) !important;
}
.scrolltop .scroll i {
    color: var(--th-gold-light) !important;
    font-size: 16px !important;
}

/* ────────────────────────────────────────────────────────────
   MOBILE DRAWER — Thai Navy theme
   ──────────────────────────────────────────────────────────── */
.glow-mobile-drawer {
    position: fixed !important; top: 0 !important;
    left: -320px !important; width: 300px !important; height: 100vh !important;
    background: var(--ph-surface) !important;
    z-index: 99999 !important;
    transition: left .35s cubic-bezier(.165,.84,.44,1) !important;
    box-shadow: 6px 0 30px rgba(0,0,0,.2) !important;
    display: flex !important; flex-direction: column !important;
    overflow: hidden !important;
}
.glow-mobile-drawer.active { left: 0 !important; }

.glow-drawer-header {
    display: flex !important; align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important; height: 48px !important;
    background-image: var(--svg-lotus), linear-gradient(135deg, var(--th-navy), var(--th-navy-mid)) !important;
    background-size: 80px 80px, cover !important;
    border-bottom: 2px solid var(--th-gold) !important;
}
.glow-drawer-logo-text {
    font-family: var(--ph-font-thai) !important;
    font-size: 13px !important; font-weight: 700 !important;
    color: var(--th-gold-light) !important;
    letter-spacing: .15em !important;
    text-shadow: 0 0 10px rgba(197,160,89,.4) !important;
}
.glow-mobile-drawer .mobile-menu-close {
    background: transparent !important; border: none !important;
    color: rgba(255,255,255,.75) !important;
    font-size: 18px !important; cursor: pointer !important;
    display: flex !important; align-items: center !important;
}
.glow-drawer-search {
    padding: 10px 12px;
    background: var(--th-navy);
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
}
.glow-drawer-search form {
    display: flex !important; align-items: center !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(197, 160, 89, 0.35) !important;
    border-radius: 30px !important;
    padding: 5px 12px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.12) !important;
}
.glow-drawer-search input,
.glow-drawer-search form input,
.glow-drawer-search input.search_keyword {
    border: none !important; outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
    width: 100% !important;
    font-size: 12.5px !important; color: #ffffff !important;
    font-family: var(--ph-font) !important;
    box-shadow: none !important;
}
.glow-drawer-search input::placeholder,
.glow-drawer-search input.search_keyword::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}
.glow-drawer-search button {
    border: none !important; background: transparent !important;
    color: var(--th-gold-light) !important; font-size: 13px !important;
    cursor: pointer !important;
}
.glow-drawer-tabs {
    display: flex !important;
    background: #0E0C22 !important;
    border-bottom: 1.5px solid rgba(197, 160, 89, 0.2) !important;
}
.glow-drawer-tab {
    flex: 1 !important; border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: 'Outfit', var(--ph-font), sans-serif !important;
    font-size: 11px !important; font-weight: 700 !important;
    padding: 10px 6px !important; cursor: pointer !important;
    border-bottom: 3px solid transparent !important;
    transition: all .25s ease !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}
.glow-drawer-tab.active {
    background: var(--th-navy) !important;
    color: var(--th-gold-light) !important;
    border-bottom-color: var(--th-gold) !important;
}
.glow-drawer-content {
    flex: 1;
    overflow-y: auto;
    background: #F7F3EB; /* Premium soft warm cream */
}
.glow-drawer-panel { display: none; }
.glow-drawer-panel.active { display: block; }
.glow-drawer-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.glow-drawer-item {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    border-bottom: 1px solid rgba(197, 160, 89, 0.12) !important;
}
.glow-drawer-link {
    display: flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    color: #0e291d !important; /* Deep forest green */
    font-family: var(--ph-font) !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    text-decoration: none !important;
    transition: all .25s cubic-bezier(.165,.84,.44,1) !important;
    text-transform: uppercase !important;
    letter-spacing: .03em !important;
    border-left: 4px solid transparent !important;
}
.glow-drawer-link::before {
    content: '\2726';
    font-size: 9px;
    color: var(--th-gold-dark);
    margin-right: 10px;
    transition: transform .25s ease;
}
.glow-drawer-link:hover {
    background: rgba(197, 160, 89, 0.08) !important;
    color: var(--th-gold-dark) !important;
    padding-left: 24px !important;
    border-left-color: var(--th-gold) !important;
}
.glow-drawer-link:hover::before {
    transform: scale(1.2) rotate(45deg);
    color: var(--th-gold-light);
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — TABLET (600px+)
   ──────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
    .ph-hero-img { max-height: 340px; }
    .ph-products-grid { grid-template-columns: repeat(3,1fr); gap: 12px; }
    .ph-cat-card { width: 136px; height: 185px; }
    .ph-cat-name { font-size: 11.5px; }
    .ph-trust-rail { grid-template-columns: repeat(4,1fr); }
    .ph-section-title-text { font-size: 16px; }
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — DESKTOP (768px+)
   ──────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
    /* Header upgrades */
    .ph-header-inner { padding: 0 24px; height: var(--ph-hdr-desk); }
    .ph-logo-ring { width: 56px; height: 56px; }

    /* Show desktop inline search inside right zone */
    .ph-desktop-search { display: flex; }
    /* Hide slide-down search toggle on desktop (use inline instead) */
    #ph-search-toggle { display: none; }
    /* Brand text wider */
    .ph-brand-name { font-size: 15px; }
    .ph-brand-tag  { font-size: 9px; letter-spacing: .16em; }

    .ph-hero-img { max-height: 440px; }
    .ph-section-label { padding: 20px 22px 12px; }
    .ph-cat-rail { padding: 0 22px 10px; gap: 14px; }
    .ph-cat-card { width: 158px; height: 215px; border-radius: 18px; }
    .ph-cat-icon i { font-size: 24px; }
    .ph-cat-name { font-size: 12.5px; max-width: 140px; }
    .ph-products-grid { grid-template-columns: repeat(4,1fr); gap: 16px; padding: 0 20px; }
    .ph-trust-rail { padding: 0 22px; gap: 14px; }
    .footer_nav { display: none !important; }
    body { padding-bottom: 0 !important; }
    .scrolltop { bottom: 24px !important; }
    /* Show owl arrows on desktop */
    .ph-hero-section .owl-nav { display: flex !important; }
    .ph-hero-section .owl-nav button {
        position: absolute !important; top: 50% !important; transform: translateY(-50%) !important;
        width: 42px !important; height: 42px !important; border-radius: 50% !important;
        background: rgba(255,255,255,.92) !important; color: var(--ph-primary) !important;
        font-size: 14px !important; border: none !important;
        box-shadow: var(--sh-sm) !important; transition: all .2s !important;
    }
    .ph-hero-section .owl-nav button:hover { background: #fff !important; box-shadow: var(--sh-md) !important; }
    .ph-hero-section .owl-prev { left: 14px !important; }
    .ph-hero-section .owl-next { right: 14px !important; }
}

@media (min-width: 992px) {
    .ph-products-grid { grid-template-columns: repeat(5,1fr); }
    .ph-cat-card { width: 174px; height: 232px; }
}
@media (min-width: 1200px) {
    .ph-hero-img { max-height: 490px; }
    .ph-cat-card { width: 192px; height: 255px; }
}

/* ────────────────────────────────────────────────────────────
   MICRO-ANIMATIONS & ENTRANCE
   ──────────────────────────────────────────────────────────── */
@keyframes phFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ph-cat-section    { animation: phFadeUp .5s ease both; }
.ph-products-section { animation: phFadeUp .55s ease both; }
.ph-trust-section  { animation: phFadeUp .6s ease both; }

/* Thai gold float animation for icons */
@keyframes thFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-4px); }
}
.ph-trust-icon { animation: thFloat 3s ease-in-out infinite; }
.ph-trust-item:nth-child(2) .ph-trust-icon { animation-delay: .75s; }
.ph-trust-item:nth-child(3) .ph-trust-icon { animation-delay: 1.5s; }

.home-page #content {
    padding-bottom: 0 !important;
}

/* ────────────────────────────────────────────────────────────
   RESPONSIVE — MOBILE COMPACT HEADER (max-width: 767.98px)
   ──────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    :root {
        --ph-hdr-h: 50px; /* Reduced header height on mobile */
    }
    
    /* Top Bar cleanup */
    .ph-topbar-sep,
    .ph-topbar-ticker {
        display: none !important;
    }
    .ph-topbar-inner {
        height: 28px;
        padding: 0 10px;
        justify-content: space-between;
    }
    .ph-topbar-delivery {
        font-size: 10px;
    }
    .ph-topbar-reseller {
        font-size: 9px;
        padding: 2px 8px;
        border-color: rgba(197,160,89,.2);
    }

    /* Main Header Layout */
    .ph-header-inner {
        padding: 0 10px; /* Thinner horizontal padding */
        gap: 6px;
    }
    
    /* Left Zone: Hide brand text to prevent truncation/overlap issues */
    .ph-brand-text {
        display: none !important;
    }
    .ph-header-left {
        gap: 0;
    }

    /* Compact Buttons and Logo Sizing */
    .ph-menu-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px;
    }
    .ph-hamburger-lines {
        gap: 3.5px;
    }
    .ph-hamburger-lines span {
        width: 15px;
        height: 1.5px;
    }
    .ph-hamburger-lines span:nth-child(2) {
        width: 10px;
    }

    .ph-logo-ring {
        width: 40px !important;
        height: 40px !important;
        filter: drop-shadow(0 0 6px rgba(197,160,89,.35));
    }
    .ph-logo-img {
        padding: 2px;
    }

    .ph-header-right {
        gap: 5px; /* Squeezed gap between icon buttons */
    }
    .ph-icon-btn {
        width: 34px !important;
        height: 34px !important;
        border-radius: 8px;
        font-size: 13.5px;
    }

    /* Cart Dot size adjustment */
    .ph-cart-dot {
        top: -4px;
        right: -4px;
        min-width: 15px;
        height: 15px;
        font-size: 8px;
        border-width: 1.5px;
    }

    /* Hide search icon toggle and search bar on mobile */
    #ph-search-toggle,
    #ph-search-bar {
        display: none !important;
    }

    /* Remove body padding-bottom and apply to #content to prevent white space below dark footer */
    body {
        padding-bottom: 0 !important;
    }
    #content {
        padding-bottom: var(--ph-bottom-nav) !important;
    }

    /* Redesign overrides for specific hardcoded blue layout colors */
    .pro_price p,
    .pro_price span,
    .pro_price p span {
        color: var(--ph-primary) !important;
    }
    
    .form-control:focus,
    select.form-control:focus,
    input:focus {
        border-color: var(--th-gold) !important;
        box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.2) !important;
    }

    .mobilecart-qty {
        border-color: var(--th-navy) !important;
        background: var(--ph-primary) !important;
    }

    /* Cart & Checkout Pages Premium Theme Alignment */
    .vcart-inner,
    .cart-summary,
    .auth-section,
    .checkout-shipping {
        background: #ffffff !important;
        border-radius: 16px !important;
        border: 1px solid rgba(197, 160, 89, 0.28) !important;
        box-shadow: 0 8px 24px rgba(20, 18, 44, 0.05) !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
    
    .cart-title h4,
    .cart-summary h5 {
        font-family: var(--ph-font-thai) !important;
        color: var(--th-navy) !important;
        font-weight: 700 !important;
        border-bottom: 2px solid var(--th-gold) !important;
        padding-bottom: 8px !important;
        margin-bottom: 16px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
    }

    .go_cart {
        background: linear-gradient(135deg, var(--ph-primary) 0%, #ff4da6 100%) !important;
        color: #ffffff !important;
        border-radius: 30px !important;
        padding: 12px 24px !important;
        font-weight: 800 !important;
        letter-spacing: 0.05em !important;
        text-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
        box-shadow: 0 6px 20px rgba(230, 0, 126, 0.4) !important;
        transition: all 0.25s ease !important;
        display: block !important;
        text-align: center !important;
        border: none !important;
    }
    .go_cart:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 24px rgba(230, 0, 126, 0.55) !important;
    }

    .coupon-form button {
        background: var(--th-navy) !important;
        color: var(--th-gold-light) !important;
        border: 1.5px solid var(--th-gold) !important;
        border-radius: 30px !important;
        padding: 8px 20px !important;
        font-weight: 700 !important;
        transition: all 0.25s ease !important;
        cursor: pointer;
    }
    .coupon-form button:hover {
        background: var(--th-navy-mid) !important;
        color: #ffffff !important;
        transform: translateY(-1px) !important;
    }
    .coupon-form input {
        border: 1.5px solid rgba(197, 160, 89, 0.28) !important;
        border-radius: 30px !important;
        padding: 8px 16px !important;
        outline: none !important;
    }
    .coupon-form input:focus {
        border-color: var(--th-gold) !important;
        box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15) !important;
    }

    .vcart-qty .quantity {
        border: 1.5px solid rgba(197, 160, 89, 0.35) !important;
        border-radius: 30px !important;
        overflow: hidden !important;
        background: #fff !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    .vcart-qty .quantity button {
        background: transparent !important;
        color: var(--th-navy) !important;
        font-weight: 700 !important;
        border: none !important;
        width: 28px !important;
        height: 28px !important;
        transition: background 0.2s !important;
        cursor: pointer;
    }
    .vcart-qty .quantity button:hover {
        background: rgba(197, 160, 89, 0.12) !important;
    }
    .vcart-qty .quantity input {
        border: none !important;
        text-align: center !important;
        width: 32px !important;
        font-weight: 700 !important;
        color: var(--th-navy) !important;
    }

    .custom-breadcrumb {
        background: transparent !important;
        padding: 10px 0 !important;
    }
    .custom-breadcrumb ul li a {
        color: var(--th-gold-dark) !important;
        font-weight: 600 !important;
        font-size: 13px !important;
    }
    .custom-breadcrumb ul li a:hover {
        color: var(--th-gold-light) !important;
    }
}
