/* Simple Shake Shack mirror — Jost, orange #864513 */
@font-face { font-family: 'Jost'; src: url('/themes/custom/shake_shack/build/drupal/fonts/jost-v14-latin-regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/themes/custom/shake_shack/build/drupal/fonts/jost-v14-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/themes/custom/shake_shack/build/drupal/fonts/jost-v14-latin-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('/themes/custom/shake_shack/build/drupal/fonts/jost-v14-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --brand: #864513;
  --brand-dark: #6d380f;
  --ink: #231f20;
  --line: #e5e0da;
  --bg: #ffffff;
  --muted: #6b6560;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Jost', sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-in { max-width: 1280px; margin: 0 auto; padding: 16px 24px; min-height: 76px; display: flex; align-items: center; gap: 24px; }
.logo img { width: 50px; height: auto; display: block; }
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { font-weight: 500; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.active { border-bottom-color: var(--brand); color: var(--brand); }
.header-loc { font-size: 13px; color: var(--muted); max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bag-btn { position: relative; background: none; border: none; padding: 8px; }
.bag-btn svg { width: 26px; height: 26px; stroke: var(--ink); }
.bag-badge { position: absolute; top: 0; right: 0; background: var(--brand); color: #fff; border-radius: 50%; min-width: 18px; height: 18px; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.bag-badge.hidden { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 2px solid var(--brand); font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; padding: 14px 34px; border-radius: 40px; transition: background .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.ghost { background: transparent; color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Hero ---------- */
.hero { background: var(--brand); color: #fff; text-align: center; padding: 84px 24px; }
.hero h1 { font-size: 52px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; line-height: 1.05; }
.hero p { margin: 18px auto 34px; max-width: 560px; font-size: 18px; font-weight: 400; opacity: .94; }
.hero .btn { background: #fff; color: var(--brand); border-color: #fff; }
.hero .btn:hover { background: #f5ede6; border-color: #f5ede6; }

/* ---------- Hero carousel ---------- */
.hero-carousel { position: relative; height: 520px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background-size: cover; background-position: center; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; }
.hero-slide .slide-overlay { background: rgba(255,255,255,.92); max-width: 520px; padding: 36px 40px; margin-left: 8%; border-radius: 10px; }
.hero-slide .slide-title { font-size: 34px; font-weight: 700; text-transform: uppercase; line-height: 1.1; color: var(--ink); }
.hero-slide .slide-sub { margin: 12px 0 22px; font-size: 15px; color: var(--ink); line-height: 1.5; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; z-index: 5; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.hero-arrow:hover { background: #fff; }
.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }
.hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.hero-dots button.active { background: #fff; }

/* ---------- Sections ---------- */
.section { max-width: 1280px; margin: 0 auto; padding: 64px 24px; }
.section-title { font-size: 32px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; text-align: center; margin-bottom: 36px; }
.section-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--brand); margin: 14px auto 0; }

/* ---------- Product cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; cursor: pointer; }
.card:hover { box-shadow: 0 8px 24px rgba(35,31,32,.12); transform: translateY(-2px); }
.card-img { background: #f6f3ef; aspect-ratio: 1 / .8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-tout { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; min-height: 14px; }
.card-name { font-size: 18px; font-weight: 600; line-height: 1.2; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 8px 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; color: var(--muted); letter-spacing: .4px; margin-bottom: 14px; }
.card-meta b { color: var(--ink); font-size: 15px; margin-right: 8px; }
.card .add-btn { margin-top: auto; width: 100%; background: #fff; color: var(--brand); border: 2px solid var(--brand); font-weight: 600; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; padding: 11px 0; border-radius: 30px; transition: all .15s; }
.card .add-btn:hover { background: var(--brand); color: #fff; }

/* ---------- Category tabs ---------- */
.cat-nav { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.cat-nav-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-in::-webkit-scrollbar { display: none; }
.cat-nav a { font-size: 14px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; padding: 14px 0; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; }
.cat-nav a:hover { color: var(--brand); }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(35,31,32,.55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.overlay.hidden { display: none; }
.modal { background: #fff; border-radius: 12px; max-width: 460px; width: 100%; padding: 40px 36px; position: relative; }
.modal h2 { font-size: 26px; font-weight: 700; text-transform: uppercase; text-align: center; margin-bottom: 8px; }
.modal .sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.modal .close { position: absolute; top: 14px; right: 14px; background: none; border: none; font-size: 22px; color: var(--muted); padding: 6px; }
.modal .btn { width: 100%; margin-bottom: 12px; }
.modal .btn:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.field input { width: 100%; border: 1px solid #cfc9c2; border-radius: 6px; padding: 12px 14px; font-size: 15px; font-family: inherit; }
.field input:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field input.invalid { border-color: #c0392b !important; background: #fdf3f2; }
.field .err-msg { display: none; color: #c0392b; font-size: 12px; margin-top: 4px; }
.field.has-err .err-msg { display: block; }

/* ---------- Stores ---------- */
.store-list { max-width: 720px; margin: 0 auto; }
.store-search { width: 100%; border: 1px solid #cfc9c2; border-radius: 30px; padding: 14px 22px; font-size: 15px; font-family: inherit; margin-bottom: 26px; }
.store-search:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.match-note { text-align: center; font-size: 13px; color: var(--brand); font-weight: 600; letter-spacing: .5px; margin: -12px 0 16px; min-height: 18px; }
.store-item { width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 22px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: border-color .15s, box-shadow .15s; }
.store-item:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(35,31,32,.08); }
.store-item .s-name { font-size: 17px; font-weight: 600; }
.store-item .s-addr { font-size: 13px; color: var(--muted); margin-top: 3px; }
.store-item .s-go { color: var(--brand); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }

/* ---------- Cart panel ---------- */
.cart-overlay { position: fixed; inset: 0; background: rgba(35,31,32,.45); z-index: 90; }
.cart-overlay.hidden { display: none; }
.cart-panel { position: fixed; top: 0; right: -440px; width: 420px; max-width: 100vw; height: 100vh; background: #fff; z-index: 95; transition: right .25s ease; display: flex; flex-direction: column; box-shadow: -6px 0 30px rgba(0,0,0,.18); }
.cart-panel.open { right: 0; }
.cart-head { background: var(--brand); color: #fff; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.cart-head h3 { font-size: 20px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.cart-head button { background: none; border: none; color: #fff; font-size: 24px; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; font-size: 15px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item .ci-name { font-weight: 600; font-size: 15px; }
.cart-item .ci-size { font-size: 12px; color: var(--muted); }
.cart-item .ci-price { font-weight: 600; min-width: 60px; text-align: right; }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--brand); background: #fff; color: var(--brand); font-size: 15px; font-weight: 600; line-height: 1; }
.qty button:hover { background: var(--brand); color: #fff; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; }
.cart-foot { border-top: 1px solid var(--line); padding: 20px 24px; }
.subtotal { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.cart-foot .btn { width: 100%; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--ink); color: #fff; padding: 14px 28px; border-radius: 30px; font-size: 14px; letter-spacing: .5px; z-index: 200; transition: transform .25s ease; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 24px 44px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .5px; }
.footer .f-logo { color: var(--brand); font-weight: 700; font-size: 18px; text-transform: uppercase; margin-bottom: 8px; }
.footer > img { width: 42px !important; }
.footer .f-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 12px 0 18px; }
.footer .f-links a { color: var(--ink); font-weight: 500; }
.footer .f-links a:hover { color: var(--brand); }
.footer .f-copy { font-size: 13px; }
.footer .f-note { max-width: 640px; margin: 6px auto 0; font-size: 12px; line-height: 1.5; color: var(--muted); }

@media (max-width: 760px) {
  .header-loc { display: none; }
  .hero h1 { font-size: 34px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
}
