/* ซ่อน Scrollbar แนวนอนเพื่อประสบการณ์เหมือน Mobile App */
    .no-scrollbar::-webkit-scrollbar {
      display: none;
    }
    .no-scrollbar {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    }

    :root { --ink: #15364a; --muted: #788994; --blue: #0088c5; }
    body, .storefront, .store-main { background: #f6f8fa; color: var(--ink); }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 3px solid #38bdf8; outline-offset: 4px; }
    .site-header { background: #fff; color: var(--ink); box-shadow: 0 1px 0 #e6edf1; min-height: 80px; gap: 28px; }
    .brand-logo { display: flex; align-items: center; gap: 10px; border-radius: 12px; }
    .store-main { max-width: 1280px; padding: 24px 28px 60px; }
    #view-home > .home-content { padding: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
    .home-content > * { margin-top: 0 !important; min-width: 0; }
    .category-list { gap: 12px; overflow: visible; padding: 0; }
    .home-content > div:has(> .category-list) { grid-column: 1 / -1; }
    .category-list > div { flex: 1; flex-direction: row; gap: 12px; padding: 14px; background: #fff; border: 1px solid #e5ebef; border-radius: 14px; transition: border-color .2s, transform .2s; }
    .category-list > div:hover { border-color: var(--blue); transform: translateY(-2px); }
    .category-list > div:first-child { background: #eaf6fc; border-color: #b8e0f3; }
    .category-list > div > div { width: 44px; height: 44px; border: 0; box-shadow: none; background: #f5f8fa; font-size: 22px; border-radius: 12px; flex-shrink: 0; }
    .category-list span { margin: 0; font-size: 11px; text-align: left; }
    .category-list br { display: none; }
    .recommended-section { grid-column: 1 / -1; scroll-margin-top: 160px; }
    #view-home h2 { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
    .section-subtitle { font-size: 12px; color: var(--muted); margin: -2px 0 20px; }
    .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .product-grid > div { border-color: #e5ebef; border-radius: 18px; box-shadow: 0 2px 4px #15364a03; padding: 12px; transition: transform .2s, box-shadow .2s; }
    .product-grid > div:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #15364a0d; }
    .product-grid .h-36 { height: auto; aspect-ratio: 1.12; border-radius: 12px; margin-bottom: 16px; }
    .product-grid h3 { font-size: 13px; line-height: 1.7; font-weight: 400; min-height: 44px; height: auto; }
    .product-grid > div > div:last-child { margin: 16px 2px 4px; }
    .product-grid button { width: 36px; height: 36px; border-radius: 10px; background: #eef7fc; }

    .store-nav { bottom: auto; top: 80px; height: 56px; padding: 0; gap: 32px; background: #fff; border-color: #e9eff3; }
    .store-nav button { gap: 8px; padding: 12px 16px; min-height: 44px; border-radius: 0; position: relative; }
    .store-nav button.text-brand-red::after { content: ''; position: absolute; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; left: 14px; right: 14px; background: var(--blue); }
    .store-nav button span { font-size: 12px; font-weight: 500; }
    .store-main { margin-top: 56px; }
    .store-footer { padding: 30px 0; margin-top: 28px; border-top: 1px solid #e3eaf0; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
    .store-footer strong { color: var(--blue); font-size: 18px; }
    @media (max-width: 1023px) {
      .category-list > div { flex-direction: column; padding: 12px 8px; gap: 8px; }
      .category-list span { text-align: center; }
      .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    }
    @media (max-width: 767px) {
      .site-header { min-height: 116px; padding: 14px 18px 12px !important; gap: 8px; flex-wrap: wrap; }
      .store-main { padding: 16px 16px 88px; margin-top: 0; }
      #view-home > .home-content { grid-template-columns: 1fr; gap: 22px; padding-top: 18px; }
      .category-list { gap: 7px; }
      .category-list > div { padding: 0; border: 0; background: transparent !important; gap: 6px; }
      .category-list > div > div { width: 48px; height: 48px; background: white; border: 1px solid #e5ebef; border-radius: 15px; }
      .category-list > div:first-child > div { background: #e9f6fc; border-color: #b8e0f3; }
      .category-list span { font-size: 9px; line-height: 1.5; }
      .category-list br { display: initial; }
      #view-home h2 { font-size: 17px; }
      .section-subtitle { font-size: 10px; margin-bottom: 14px; }
      .recommended-section h2 > span:last-child { display: none; }
      .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
      .product-grid > div { padding: 8px; border-radius: 14px; }
      .product-grid .h-36 { aspect-ratio: 1; margin-bottom: 10px; }
      .product-grid h3 { font-size: 11px; min-height: 38px; }
      .product-grid > div > div:last-child { margin: 10px 2px 2px; }
      .product-grid button { width: 32px; height: 32px; }
      .store-nav { top: auto; bottom: 0; height: auto; min-height: 65px; justify-content: space-around; gap: 0; padding: 5px 4px max(5px, env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px #15364a05; }
      .store-nav button { flex-direction: column; flex: 1; gap: 3px; padding: 6px 0; }
      .store-nav button span { font-size: 9px; }
      .store-nav button.text-brand-red::after { display: none; }
      .store-nav button.text-brand-red > div { background: #e9f6fc; border-radius: 8px; width: 38px; }
      .store-footer { flex-direction: column; gap: 8px; font-size: 9px; margin-top: 12px; padding: 22px 0 0; }
      .recommended-section { scroll-margin-top: 135px; }
      #toast-box { top: 130px; }
    }

    .product-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; width:100%; height:100%; background:#edf3f7; color:#557383; } .product-placeholder svg { width:48px; height:48px; stroke-width:1; } .product-placeholder span { font-size:11px; }

    html { scroll-behavior: smooth; }
    body { margin: 0; }
    .storefront > .site-header { position: sticky; top: 0; background: #fff; box-shadow: 0 1px 0 #e6edf1; padding-inline: max(28px, calc((100vw - 1224px) / 2)); }
    .store-main { width: 100%; min-width: 0; margin-inline: auto; }
    .store-nav { justify-content: center; }
    .store-nav button { display: flex; flex-direction: row; }
    #toast-box { max-width: calc(100vw - 2rem); width: max-content; }
    #view-orders, #view-profile, #view-notif { max-width: 960px; margin-inline: auto; }
    @media (max-width: 767px) {
      .store-nav { justify-content: space-around; }
      .store-nav button { flex-direction: column; }
    }

    .announcement-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
    .announcement-gallery img { display: block; width: 100%; height: auto; border-radius: 18px; background: #edf2f6; }
    .category-list svg { color: var(--blue); stroke-width: 1.7; }
    @media (max-width: 767px) {
      .announcement-gallery { grid-template-columns: 1fr; gap: 12px; }
      .announcement-gallery img { border-radius: 12px; }
    }

    .announcement-viewport { overflow: hidden; border-radius: 18px; position: relative; background: #edf2f6; }
    .announcement-track { position: relative; aspect-ratio: 3 / 1; touch-action: pan-y; overflow: hidden; }
    .announcement-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; visibility: hidden; }
    .announcement-slide:first-child { visibility: visible; }
    .announcement-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
    .announcement-arrow { z-index: 3; position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: #ffffffeb; color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px #0002; }
    .announcement-arrow:hover { background: #fff; color: var(--blue); }
    .announcement-prev { left: 14px; } .announcement-next { right: 14px; }
    .announcement-arrow svg { width: 21px; height: 21px; }
    .announcement-controls { display: flex; align-items: center; justify-content: center; gap: 14px; height: 36px; }
    .announcement-dots { display: flex; align-items: center; gap: 8px; }
    .announcement-dots button { width: 8px; height: 8px; border-radius: 8px; background: #c7d5de; transition: width .25s, background .25s; }
    .announcement-dots button[aria-current="true"] { width: 24px; background: var(--blue); }
    @media (max-width: 767px) { .announcement-viewport { border-radius: 12px; } .announcement-arrow { width: 28px; height: 28px; } .announcement-prev { left: 6px; } .announcement-next { right: 6px; } .announcement-arrow svg { width: 16px; } }
    @media (prefers-reduced-motion: reduce) { .announcement-track, .announcement-dots button { transition: none; } }

    body, .storefront, .storefront > .store-main { background: #fff; }
    .announcement-viewport { background: #fff; }
    .site-header { gap: 18px; }
    .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 42px; height: 42px; flex-shrink: 0; border: 1px solid #e8eef2; border-radius: 12px; color: var(--ink); transition: background .2s, border-color .2s; }
    .menu-toggle span { width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .25s; }
    .menu-toggle:hover { background: #eef8fc; border-color: #c9e8f6; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
    .store-nav { height: 62px; gap: 6px; padding: 8px 16px; border-top: 0; border-bottom: 1px solid #edf1f4; }
    .store-nav button { flex: 0 1 auto; padding: 10px 24px; border-radius: 12px; gap: 9px; color: #647687; transition: color .2s, background .2s, transform .2s; }
    .store-nav button:hover { color: var(--blue); background: #f3fafd; }
    .store-nav button:active { transform: scale(.97); }
    .store-nav button.text-brand-red { color: var(--blue); background: #eaf7fd; }
    .store-nav button.text-brand-red::after { display: none; }
    .store-nav button span { margin-top: 0; font-size: 13px; }
    .store-nav button svg { fill: none; stroke-width: 1.8; }
    .store-nav button > span.absolute { display: none; }
    .store-main { margin-top: 62px; }
    .side-menu { position: fixed; inset: 0 auto 0 0; margin: 0; padding: 0; width: min(380px, calc(100vw - 28px)); height: 100dvh; max-height: 100dvh; max-width: none; border: 0; background: #fff; color: var(--ink); overflow: visible; }
    .side-menu[open] { animation: menu-enter .32s cubic-bezier(.22,.61,.36,1) both; }
    .side-menu::backdrop { background: #16334450; backdrop-filter: blur(4px); animation: backdrop-enter .32s ease both; }
    .side-menu.closing { animation: menu-exit .24s ease both; pointer-events: none; }
    .side-menu.closing::backdrop { animation: backdrop-exit .24s ease both; }
    .menu-panel { display: flex; flex-direction: column; height: 100%; overflow-y: auto; padding: max(28px, env(safe-area-inset-top)) 22px max(24px, env(safe-area-inset-bottom)); }
    .menu-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
    .menu-kicker { color: var(--blue); font-size: 10px; font-weight: 600; letter-spacing: 2px; }
    .menu-heading h2 { font-size: 23px; font-weight: 500; margin-top: 6px; }
    .menu-close { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #e7edf1; border-radius: 12px; transition: background .2s, transform .2s; }
    .menu-close:hover { background: #eef8fc; transform: rotate(90deg); }
    .menu-close svg { width: 18px; height: 18px; }
    .drawer-links { display: flex; flex-direction: column; gap: 8px; }
    .drawer-links button { display: flex; align-items: center; gap: 14px; padding: 16px 14px; border-radius: 14px; text-align: left; transition: background .2s, transform .2s; }
    .drawer-links button:hover { background: #f3fafd; transform: translateX(3px); }
    .drawer-links button[aria-current="page"] { background: #eaf7fd; color: var(--blue); }
    .drawer-links button > svg { width: 22px; height: 22px; stroke-width: 1.6; flex-shrink: 0; }
    .drawer-links button > svg:last-child { width: 16px; margin-left: auto; color: #9aacb8; }
    .drawer-links span { font-size: 14px; font-weight: 500; }
    .drawer-links small { display: block; font-size: 10px; font-weight: 400; color: #8295a2; margin-top: 5px; }
    .menu-extra { border-top: 1px solid #edf1f4; margin-top: 26px; padding-top: 24px; }
    .menu-extra > span { font-size: 10px; color: #8295a2; }
    .menu-extra button { display: flex; align-items: center; gap: 12px; padding: 16px 14px; width: 100%; font-size: 13px; border-radius: 12px; margin-top: 8px; }
    .menu-extra button:hover { background: #f3fafd; }
    .menu-extra svg { width: 20px; }
    .menu-extra svg:last-child { margin-left: auto; width: 16px; }
    .menu-bottom { margin-top: auto; padding-top: 36px; display: flex; align-items: center; gap: 12px; }
    .menu-bottom strong { color: var(--blue); font-size: 20px; }
    .menu-bottom span { color: #8295a2; font-size: 10px; }
    #view-home.block, #view-orders.block, #view-notif.block, #view-profile.block { animation: view-enter .3s ease both; }
    @keyframes menu-enter { from { transform: translateX(-100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
    @keyframes menu-exit { to { transform: translateX(-100%); opacity: .5; } }
    @keyframes backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
    @keyframes backdrop-exit { to { opacity: 0; } }
    @keyframes view-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
    @media (max-width: 767px) {
      .site-header { gap: 8px; }
      .menu-toggle { width: 34px; height: 34px; border-radius: 10px; }
      .brand-logo { gap: 6px; }
      .store-main { margin-top: 0; }
      .store-nav { top: auto; bottom: 0; height: auto; min-height: 66px; padding: 5px 8px max(5px, env(safe-area-inset-bottom)); gap: 5px; border-top: 1px solid #edf1f4; border-bottom: 0; }
      .store-nav button { flex: 1; gap: 4px; padding: 6px 2px; border-radius: 12px; }
      .store-nav button span { font-size: 10px; }
      .store-nav button.text-brand-red > div { background: transparent; }
      .side-menu { width: min(350px, calc(100vw - 28px)); }
    }
    @media (prefers-reduced-motion: reduce) { .side-menu[open], .side-menu.closing, .side-menu::backdrop, .side-menu.closing::backdrop { animation: none; } }

    .side-menu { inset: 0 0 0 auto; }
    @keyframes menu-enter { from { transform: translateX(100%); opacity: .5; } to { transform: translateX(0); opacity: 1; } }
    @keyframes menu-exit { to { transform: translateX(100%); opacity: .5; } }
    .menu-toggle { margin-left: 0; }
    .nav-indicator { display: none; }
    @media (min-width: 1024px) {
      .storefront > .site-header { display: grid; grid-template-columns: auto minmax(330px, 1fr) minmax(150px, 280px) auto 42px; gap: 20px; padding: 16px max(28px, calc((100vw - 1320px) / 2)); min-height: 84px; box-shadow: 0 1px 0 #e6edf1; }
      .brand-logo { grid-column: 1; grid-row: 1; gap: 10px; }
      .site-header .store-nav { grid-column: 2; grid-row: 1; position: relative; inset: auto; width: 100%; height: 52px; margin: 0; padding: 0; gap: 0; justify-content: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
      .site-header .store-nav button { flex: 1; height: 52px; min-height: 48px; padding: 10px 12px; border-radius: 8px; gap: 0; white-space: nowrap; color: #657787; position: relative; background: transparent; box-shadow: none; transition: color .2s; }
      .site-header .store-nav button > div { display: none; }
      .site-header .store-nav button span { font-size: 14px; font-weight: 400; }
      .site-header .store-nav button:hover { color: var(--blue); background: transparent; transform: none; }
      .site-header .store-nav button.text-brand-red { color: #15364a; background: transparent; box-shadow: none; }
      .site-header .store-nav button.text-brand-red span { font-weight: 500; }
      .site-header .store-nav button::after { display: none; }
      .nav-indicator { display: block; position: absolute; bottom: 2px; left: 0; height: 2px; border-radius: 3px; background: var(--blue); pointer-events: none; transition: transform .3s cubic-bezier(.22,.61,.36,1), width .3s; }
      .menu-toggle { grid-column: 5; grid-row: 1; width: 42px; height: 42px; border-radius: 12px; background: #15364a; color: #fff; border-color: #15364a; }
      .menu-toggle:hover { background: #0088c5; border-color: #0088c5; }
      .storefront > .store-main { margin-top: 0; padding-top: 24px; }
      .recommended-section { scroll-margin-top: 110px; }
    }
    @media (min-width: 1024px) and (max-width: 1199px) {
      .storefront > .site-header { gap: 12px; padding-inline: 22px; grid-template-columns: auto minmax(315px, 1fr) minmax(130px, 190px) auto 40px; }
      .site-header .store-nav button span { font-size: 13px; }
    }
    @media (min-width: 768px) and (max-width: 1023px) {
      .site-header .store-nav { position: fixed; top: 80px; }
    }
    @media (max-width: 767px) {
      .site-header .store-nav { position: fixed; }
      .menu-toggle { margin-left: 4px; }
    }
