/* ============================================================================
   Storefront chrome — shared layout shell:
   • shop-layout base (reset, container, btn, flash, page)
   • announcement bar (top rotating notices)
   • header (logo, search, cart, account icons + slide-in menu drawer)
   • footer (dark info bar with columns + social)
   • mobile bottom-nav bar
   Loaded by shop-layout.blade.php + design-head-base.blade.php so both
   shop-layout pages and Pancake-export pages share the same chrome.
   ============================================================================ */


/* ---- 1) shop-layout base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Futura6', 'Jost', Arial, sans-serif; color: #111; background: #fff; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-block; background: #111; color: #fff; padding: 13px 28px; border: 1px solid #111;
    font-weight: 600; text-transform: uppercase; font-size: 13px; letter-spacing: .5px; cursor: pointer; }
.btn:hover { background: #fff; color: #111; }
.btn-outline { background: #fff; color: #111; }
.btn-outline:hover { background: #111; color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.flash { padding: 12px 16px; margin: 16px 0; border-radius: 4px; font-size: 14px; }
.flash-success { background: #e6f7ed; color: #1a7f43; }
.flash-error { background: #fdeaea; color: #c0392b; }
.page { min-height: 60vh; padding: 32px 0; }


/* ---- 2) Announcement bar (rotating notices) ---- */
.ann-bar { background: #111; height: 36px; position: relative; overflow: hidden; grid-column: 1 / -1; width: 100%; font-family: 'Futura6','Jost',Arial,sans-serif; }
.ann-bar__rotator { position: relative; height: 100%; }
.ann-bar__item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 16px; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s; }
.ann-bar__item.is-active { opacity: 1; visibility: visible; }


/* ---- 3) Header (sticky logo + icons + slide-in drawer) ---- */
.sf-header { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid #ececec; font-family: 'Futura6','Jost',Arial,sans-serif; }
.sf-header *, .sf-menu-panel * { box-sizing: border-box; }
.sf-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sf-menu-toggle, .sf-search-toggle { position: absolute; opacity: 0; pointer-events: none; }

/* bar: empty-left · centered logo · right icons (full-width — icons go all
   the way to the viewport's right edge, not just to the 1280px container). */
.sf-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 110px; gap: 12px; }
.sf-bar.sf-container { max-width: none; padding: 0 32px; }
.sf-logo { grid-column: 2; justify-self: center; font-size: clamp(22px, 3vw, 34px); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #111; text-decoration: none; white-space: nowrap; display: flex; align-items: center; }
.sf-logo img { max-height: 100px; width: auto; display: block; background: transparent; }

.sf-actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 26px; }
.sf-act { display: inline-flex; align-items: center; gap: 8px; color: #111; cursor: pointer; background: none; border: 0; text-decoration: none; position: relative; font-family: inherit; transition: color .15s ease; }
.sf-act:hover { color: #b0894f; }
.sf-act svg { width: 30px; height: 30px; stroke-width: 1.6; }
.sf-act .sf-badge { position: absolute; top: -7px; right: -10px; min-width: 20px; height: 20px; padding: 0 6px; background: #1a1a1a; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-sizing: border-box; }
.sf-menu-label { font-size: 15px; font-weight: 600; text-transform: lowercase; letter-spacing: .02em; }

/* search drop bar (toggled by the magnifier) */
.sf-searchbar { max-height: 0; overflow: hidden; border-top: 0 solid #eee; transition: max-height .25s ease; }
.sf-search-toggle:checked ~ .sf-header .sf-searchbar { max-height: 80px; border-top: 1px solid #eee; }
.sf-searchbar form { max-width: 680px; margin: 0 auto; display: flex; padding: 14px 24px; }
.sf-searchbar input { flex: 1; border: 1px solid #ddd; border-right: 0; border-radius: 999px 0 0 999px; padding: 11px 18px; font-size: 14px; font-family: inherit; outline: none; }
.sf-searchbar button { border: 1px solid #111; background: #111; color: #fff; border-radius: 0 999px 999px 0; padding: 0 22px; cursor: pointer; font-size: 15px; }

/* ---- Slide-in menu drawer (refined, on-brand) ---- */
.sf-menu-overlay { position: fixed; inset: 0; background: rgba(20,18,14,.5); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s; z-index: 1100; backdrop-filter: blur(2px); }
.sf-menu-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: #fff; z-index: 1101; transform: translateX(100%); transition: transform .4s cubic-bezier(.22,.61,.36,1); display: flex; flex-direction: column; box-shadow: -10px 0 40px -10px rgba(20,18,14,.18); }
.sf-menu-toggle:checked ~ .sf-menu-overlay { opacity: 1; visibility: visible; }
.sf-menu-toggle:checked ~ .sf-menu-panel { transform: translateX(0); }

/* Header bar (inside drawer) */
.sf-menu-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 18px; }
.sf-menu-head span { font-size: 10.5px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #b0894f; }
.sf-menu-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #8a8378; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .15s, color .15s; }
.sf-menu-close:hover { background: #faf8f5; color: #1a1a1a; }

/* Nav list (display:block overrides theme's nav{display:flex}) */
.sf-menu-nav { display: block; overflow-y: auto; padding: 10px 0 20px; flex: 1; }
.sf-menu-nav a, .sf-menu-cat > summary { position: relative; display: flex; align-items: center; padding: 14px 26px; font-size: 14.5px; font-weight: 500; letter-spacing: .005em; color: #2a2520; text-decoration: none; transition: color .2s ease, background .2s ease, padding-left .25s ease; }
.sf-menu-nav a::before, .sf-menu-cat > summary::before { content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0; background: #b0894f; transform: translateY(-50%); transition: height .25s ease; }
.sf-menu-nav a:hover, .sf-menu-cat > summary:hover { color: #1a1a1a; background: linear-gradient(90deg, #faf8f5 0%, transparent 80%); padding-left: 30px; }
.sf-menu-nav a:hover::before, .sf-menu-cat > summary:hover::before { height: 22px; }

/* "Sản phẩm" collapsible group */
.sf-menu-cat > summary { list-style: none; cursor: pointer; justify-content: space-between; }
.sf-menu-cat > summary::-webkit-details-marker { display: none; }
.sf-menu-cat > summary::after { content: '\2304'; font-size: 1em; color: #b0894f; opacity: .7; transition: transform .25s ease, opacity .15s ease; margin-left: 8px; }
.sf-menu-cat[open] > summary { color: #1a1a1a; padding-left: 30px; }
.sf-menu-cat[open] > summary::before { height: 22px; }
.sf-menu-cat[open] > summary::after { transform: rotate(180deg); opacity: 1; }
.sf-menu-cat__list { display: flex; flex-direction: column; padding: 6px 0 10px; background: linear-gradient(180deg, #faf8f5 0%, rgba(250,248,245,.5) 100%); border-top: 1px solid rgba(176,137,79,.12); border-bottom: 1px solid rgba(176,137,79,.12); }
.sf-menu-cat__list a { position: relative; padding: 12px 26px 12px 46px !important; font-weight: 500 !important; color: #3a352d !important; font-size: 14px !important; letter-spacing: 0 !important; transition: color .2s ease, padding-left .25s ease, background .2s ease; }
.sf-menu-cat__list a::before { content: ''; display: block !important; position: absolute; left: 30px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: #d5cdbe; transform: translateY(-50%); transition: background .2s ease, width .2s ease; }
.sf-menu-cat__list a:hover { color: #b0894f !important; background: rgba(255,255,255,.55) !important; padding-left: 50px !important; }
.sf-menu-cat__list a:hover::before { background: #b0894f; width: 7px; height: 7px; }

/* Contact footer inside the drawer */
.sf-menu-contact { padding: 20px 26px 24px; border-top: 1px solid #ece7de; background: linear-gradient(180deg, #fff 0%, #faf8f5 100%); }
.sf-menu-contact__label { display: block; font-size: 10.5px; letter-spacing: .32em; text-transform: uppercase; color: #b0894f; font-weight: 700; margin-bottom: 12px; }
.sf-menu-contact__hotline { display: flex; align-items: center; gap: 10px; color: #1a1a1a; text-decoration: none; font-weight: 700; font-size: 17px; margin-bottom: 14px; transition: color .15s ease; }
.sf-menu-contact__hotline:hover { color: #b0894f; }
.sf-menu-contact__hotline svg { width: 18px; height: 18px; color: #b0894f; flex: none; }
.sf-menu-contact__social { display: flex; gap: 10px; }
.sf-menu-contact__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #ece7de; color: #1a1a1a; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.sf-menu-contact__social a:hover { background: #b0894f; border-color: #b0894f; color: #fff; transform: translateY(-2px); }
.sf-menu-contact__social a svg { width: 18px; height: 18px; }

@media (max-width: 700px) {
  .sf-bar { height: 88px; }
  .sf-bar.sf-container { padding: 0 16px; }
  .sf-logo img { max-height: 68px; }
  .sf-actions { gap: 16px; }
  .sf-menu-label { display: none; }
}

/* ---- 4) Mobile bottom nav bar (≤768px only) ---- */
.sf-bottombar { display: none; }
@media (max-width: 768px) {
  .sf-bottombar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #ece7de; box-shadow: 0 -6px 18px -10px rgba(20,18,14,.18); z-index: 1050; padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); }
  .sf-bb-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; color: #6a645a; text-decoration: none; font-size: 10.5px; font-weight: 600; letter-spacing: .01em; transition: color .15s ease; }
  .sf-bb-item svg { width: 22px; height: 22px; stroke-width: 1.7; transition: transform .15s ease; }
  .sf-bb-item:hover, .sf-bb-item:active { color: #b0894f; }
  .sf-bb-item.is-active { color: #1a1a1a; }
  .sf-bb-item.is-active::before { content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 22px; height: 3px; border-radius: 2px; background: #b0894f; }
  .sf-bb-item.is-active svg { transform: translateY(-1px); }
  .sf-bb-badge { position: absolute; top: 0; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; background: #1a1a1a; color: #fff; border-radius: 999px; font-size: 9.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff; box-sizing: border-box; }
  body { padding-bottom: 64px; }
}


/* ---- 5) Footer (dark info bar with columns + social) ---- */
.sf-footer { background: #111; color: #b9b9b9; padding: 48px 0 0; font-family: 'Futura6','Jost',Arial,sans-serif; font-size: 13px; margin-top: 60px; }
.sf-footer * { box-sizing: border-box; }
.sf-footer .sf-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.sf-footer a { color: #b9b9b9; text-decoration: none; }
.sf-footer a:hover { color: #fff; }
.sf-foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.sf-footer h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.sf-footer p { margin: 0 0 9px; line-height: 1.6; }
.sf-foot-brand .sf-fb-logo { font-size: 20px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 12px; display: inline-block; }
.sf-foot-brand .sf-fb-logo img { max-height: 40px; width: auto; }
.sf-foot-brand .sf-about { max-width: 300px; color: #9a9a9a; }
.sf-contact-line { display: flex; gap: 8px; align-items: flex-start; }
.sf-contact-line .ic { flex: 0 0 16px; opacity: .8; }
.sf-social { display: flex; gap: 10px; margin-top: 14px; }
.sf-social a { width: 34px; height: 34px; border: 1px solid #444; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #ddd; }
.sf-social a:hover { background: #fff; color: #111; border-color: #fff; }
.sf-social svg { width: 17px; height: 17px; }
.sf-foot-bottom { border-top: 1px solid #2a2a2a; margin-top: 40px; padding: 18px 0; text-align: center; color: #888; font-size: 12px; }
@media (max-width: 860px) {
  .sf-foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .sf-foot-cols { grid-template-columns: 1fr; }
}
