/* ============================================================
   BLOSSOM HONEY & ORGANICS - Layout (header / drawers / footer)
   ============================================================ */

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80;
  transition: background .4s, box-shadow .4s, transform .4s;
}
.site-header .h-inner {
  display: flex; align-items: center; gap: 22px;
  height: var(--header-h); max-width: var(--maxw); margin-inline: auto;
  padding: 0 24px;
}
.site-header.scrolled {
  background: rgba(251,247,239,.88);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 10px 36px rgba(36,27,19,.06);
}
.site-header.hide { transform: translateY(-110%); }
.site-header.light-text:not(.scrolled) { color: var(--ivory); }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand .brand-mark {
  width: 42px; height: 42px; flex: none; border-radius: 13px;
  background: radial-gradient(120% 120% at 30% 22%, #E3B85C, var(--honey-2));
  display: grid; place-items: center; color: var(--ivory);
  box-shadow: inset 0 -2px 6px rgba(0,0,0,.18), 0 5px 14px rgba(168,126,44,.32);
}
.brand .brand-mark svg { width: 24px; height: 24px; }
.brand .brand-word { line-height: 1.12; }
.brand .brand-word b { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .01em; display: block; }
.brand .brand-word span { font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.site-header.light-text:not(.scrolled) .brand span { color: rgba(251,247,239,.62); }

.h-nav { display: none; }
.h-nav ul { display: flex; align-items: center; gap: 2px; }
.h-nav a {
  padding: 9px 13px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  border-radius: var(--r-full); transition: color .25s, background .25s;
}
.h-nav a:hover { color: var(--honey-2); background: rgba(201,154,62,.1); }
.site-header.light-text:not(.scrolled) .h-nav a { color: rgba(251,247,239,.86); }
.site-header.light-text:not(.scrolled) .h-nav a:hover { color: #fff; background: rgba(255,255,255,.14); }
.h-nav a.on { color: var(--honey-2); font-weight: 600; }

.h-actions { display: flex; align-items: center; gap: 2px; }
.ico-btn {
  width: 42px; height: 42px; border-radius: var(--r-full); position: relative;
  display: grid; place-items: center; color: var(--ink-2);
  transition: background .25s, color .25s, transform .25s;
}
.ico-btn:hover { background: rgba(201,154,62,.12); color: var(--honey-2); transform: translateY(-1px); }
.ico-btn svg { width: 20px; height: 20px; }
.site-header.light-text:not(.scrolled) .ico-btn { color: rgba(251,247,239,.92); }
.site-header.light-text:not(.scrolled) .ico-btn:hover { color: #fff; background: rgba(255,255,255,.16); }

.count-pill {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-full); background: var(--honey); color: #fff;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--ivory); transition: transform .3s var(--ease);
}
.count-pill.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.4); } }

.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-full); color: var(--ink-2); }
.nav-toggle svg { width: 22px; height: 22px; }
.site-header.light-text:not(.scrolled) .nav-toggle { color: rgba(251,247,239,.92); }

@media (min-width: 1210px) {
  .h-nav { display: block; }
  .nav-toggle { display: none; }
}
@media (max-width: 1210px) { .h-actions .ico-hide-sm { display: none; } }

/* ---------- mobile menu ---------- */
.m-menu { position: fixed; inset: 0; z-index: 110; pointer-events: none; }
.m-menu .m-backdrop { position: absolute; inset: 0; background: rgba(32,24,18,.42); opacity: 0; transition: opacity .4s; backdrop-filter: blur(3px); }
.m-menu .m-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(384px, 90vw);
  background: var(--ivory); padding: 22px 24px 28px; overflow-y: auto;
  transform: translateX(103%); transition: transform .55s var(--ease);
  display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow-lg);
}
.m-menu.open { pointer-events: auto; }
.m-menu.open .m-backdrop { opacity: 1; }
.m-menu.open .m-panel { transform: none; }
.m-menu .m-head { display: flex; align-items: center; justify-content: space-between; }
.m-menu .m-head .brand { margin: 0; }
.m-toggle-close { width: 38px; height: 38px; border-radius: var(--r-full); background: var(--cream); display: grid; place-items: center; transition: background .3s, transform .3s; }
.m-toggle-close:hover { background: var(--ink); color: var(--ivory); transform: rotate(10deg); }
.m-toggle-close svg { width: 16px; height: 16px; }
.m-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; font-family: var(--font-display); font-size: 20px; font-weight: 500;
  border-bottom: 1px solid var(--line); color: var(--ink);
  transition: color .25s, padding-left .25s var(--ease);
}
.m-links a:hover { color: var(--honey-2); padding-left: 12px; }
.m-links a svg { width: 17px; height: 17px; color: var(--soft); }
.m-contact { display: grid; gap: 4px; padding: 0 4px; font-size: 13.5px; color: var(--muted); }
.m-social { display: flex; gap: 10px; }
.m-social .s-btn {
  width: 46px; height: 46px; border-radius: var(--r-full); background: var(--cream);
  display: grid; place-items: center; color: var(--ink-2);
  transition: background .3s, color .3s, transform .3s;
}
.m-social .s-btn:hover { background: var(--honey); color: #fff; transform: translateY(-3px); }
.m-social .s-btn svg { width: 20px; height: 20px; }

/* ---------- overlay + drawers ---------- */
.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(32,24,18,.45); opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(4px); }
.overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 120;
  width: min(440px, 94vw); background: var(--ivory);
  transform: translateX(104%); transition: transform .55s var(--ease);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 20px; }
.d-close { width: 36px; height: 36px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--cream); transition: background .3s, transform .3s; }
.d-close:hover { background: var(--ink); color: var(--ivory); transform: rotate(8deg); }
.d-close svg { width: 15px; height: 15px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 26px 26px; }
.drawer-foot { padding: 18px 26px 26px; border-top: 1px solid var(--line); background: var(--cream); }

.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); animation: fadeSlide .5s var(--ease); }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(8px); } }
.cart-item .ci-img { width: 76px; height: 76px; border-radius: var(--r-sm); background: var(--cream); overflow: hidden; border: 1px solid var(--line); }
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.cart-item .ci-name a:hover { color: var(--honey-2); }
.cart-item .ci-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cart-item .ci-price { font-family: var(--font-display); font-weight: 600; font-size: 15px; margin-top: 6px; color: var(--ink); }
.cart-item .ci-controls { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-item .ci-remove { width: 30px; height: 30px; border-radius: var(--r-full); display: grid; place-items: center; color: var(--soft); transition: background .25s, color .25s; }
.cart-item .ci-remove:hover { background: rgba(180,80,60,.12); color: var(--danger); }
.cart-item .ci-remove svg { width: 15px; height: 15px; }

.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--beige); border-radius: var(--r-full); background: var(--white); }
.qty button { width: 30px; height: 32px; display: grid; place-items: center; color: var(--ink-2); transition: color .2s; }
.qty button:hover { color: var(--honey-2); }
.qty button svg { width: 13px; height: 13px; }
.qty .qty-val { min-width: 30px; text-align: center; font-weight: 600; font-size: 14px; }

.cart-empty { text-align: center; padding: 48px 10px; color: var(--muted); }
.cart-empty .ce-ico { width: 84px; height: 84px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; margin: 0 auto 22px; color: var(--soft); }
.cart-empty .ce-ico svg { width: 36px; height: 36px; }
.cart-empty h4 { font-size: 19px; color: var(--ink); margin-bottom: 6px; font-family: var(--font-display); }
.cart-empty p { font-size: 14px; }

.summary-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--ink-2); padding: 5px 0; }
.summary-row.total { margin-top: 10px; padding-top: 14px; border-top: 1.5px solid var(--beige); color: var(--ink); font-weight: 700; font-size: 17px; font-family: var(--font-display); }
.summary-row.total span:last-child { font-size: 21px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 10px; display: flex; align-items: center; gap: 8px; }
.hint svg { width: 15px; height: 15px; color: var(--olive); flex: none; }

/* ---------- search overlay ---------- */
.search-layer { position: fixed; inset: 0; z-index: 130; pointer-events: none; }
.search-layer .s-back { position: absolute; inset: 0; background: rgba(32,24,18,.52); opacity: 0; transition: opacity .35s; backdrop-filter: blur(6px); }
.search-layer .s-panel {
  position: relative; max-width: 740px; margin: 9vh auto 0; padding: 0 20px;
  transform: translateY(-14px); opacity: 0; transition: transform .45s var(--ease), opacity .35s;
}
.search-layer.open { pointer-events: auto; }
.search-layer.open .s-back { opacity: 1; }
.search-layer.open .s-panel { transform: none; opacity: 1; }
.search-box {
  background: var(--ivory); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 22px;
}
.search-box > svg { width: 20px; height: 20px; color: var(--soft); flex: none; }
.search-box input { flex: 1; border: 0; background: none; padding: 16px 0; font-size: 17px; min-width: 0; }
.search-box input::placeholder { color: var(--soft); }
.search-box input:focus { outline: none; }
.search-box .s-clear { width: 38px; height: 38px; border-radius: var(--r-full); display: grid; place-items: center; background: var(--cream); color: var(--ink-2); transition: background .25s, color .25s; }
.search-box .s-clear:hover { background: var(--ink); color: var(--ivory); }
.search-results { margin-top: 14px; max-height: 58vh; overflow-y: auto; border-radius: var(--r-lg); background: var(--ivory); box-shadow: var(--shadow-lg); }
.search-results .s-empty { padding: 28px; text-align: center; color: var(--muted); font-size: 14px; }
.s-result { display: flex; gap: 14px; align-items: center; padding: 12px 18px; transition: background .25s; }
.s-result:hover { background: var(--cream); }
.s-result img { width: 50px; height: 50px; border-radius: var(--r-sm); object-fit: cover; }
.s-result .sr-name { font-weight: 600; font-size: 14.5px; }
.s-result .sr-meta { font-size: 12.5px; color: var(--muted); }
.s-result .sr-price { margin-left: auto; font-family: var(--font-display); font-weight: 600; color: var(--honey-2); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; pointer-events: none; padding: 20px; }
.modal .m-back { position: absolute; inset: 0; background: rgba(32,24,18,.55); opacity: 0; transition: opacity .35s; backdrop-filter: blur(5px); }
.modal .m-card {
  position: relative; background: var(--ivory); border-radius: var(--r-lg); overflow: hidden;
  width: min(1000px, 96vw); max-height: 92vh; overflow-y: auto;
  transform: translateY(24px) scale(.97); opacity: 0; transition: transform .45s var(--ease), opacity .35s;
  box-shadow: var(--shadow-lg);
}
.modal.open { pointer-events: auto; }
.modal.open .m-back { opacity: 1; }
.modal.open .m-card { transform: none; opacity: 1; }
.modal .m-close {
  position: absolute; top: 14px; right: 14px; z-index: 6; width: 38px; height: 38px;
  border-radius: var(--r-full); background: rgba(251,247,239,.92); backdrop-filter: blur(4px);
  display: grid; place-items: center; color: var(--ink-2); box-shadow: var(--shadow-sm);
  transition: background .3s, transform .3s;
}
.modal .m-close:hover { background: var(--ink); color: var(--ivory); transform: rotate(8deg); }
.modal .m-close svg { width: 15px; height: 15px; }

.qv-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .qv-grid { grid-template-columns: 1.05fr 1fr; } }
.qv-grid .qv-img { position: relative; min-height: 340px; background: var(--cream); }
.qv-grid .qv-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-info { padding: 28px 28px 34px; display: flex; flex-direction: column; gap: 12px; }
.qv-info .qv-name { font-size: 25px; }
.qv-info .qv-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.qv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.qv-actions .btn { flex: 1; min-width: 150px; }

.acc-card { width: min(460px, 92vw); padding: 34px 32px; }
.acc-tabs { display: flex; gap: 6px; background: var(--cream); border-radius: var(--r-full); padding: 5px; margin: 22px 0; }
.acc-tabs button { flex: 1; padding: 10px; border-radius: var(--r-full); font-weight: 600; font-size: 14px; color: var(--muted); transition: all .3s; }
.acc-tabs button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }

.field { display: grid; gap: 8px; margin-bottom: 16px; text-align: left; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; border: 1.5px solid var(--beige); border-radius: var(--r-sm);
  padding: 13px 16px; background: var(--white); transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 4px rgba(201,154,62,.15); }
.field textarea { resize: vertical; min-height: 120px; }
.field .note { font-size: 12px; color: var(--muted); }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); z-index: 205;
  display: flex; align-items: center; gap: 13px;
  background: var(--espresso); color: var(--ivory); padding: 12px 18px 12px 14px;
  border-radius: var(--r-full); box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: transform .45s var(--ease), opacity .35s;
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .t-ico { width: 38px; height: 38px; border-radius: 50%; background: rgba(217,180,94,.18); color: var(--gold); display: grid; place-items: center; flex: none; }
.toast .t-ico svg { width: 19px; height: 19px; }
.toast .t-txt { font-size: 14px; font-weight: 500; }
.toast .t-txt b { display: block; font-size: 12px; font-weight: 400; color: rgba(251,247,239,.65); }
.toast .t-cta { font-weight: 700; color: var(--gold); font-size: 13.5px; white-space: nowrap; margin-left: 6px; }
.toast .t-cta:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--espresso); color: rgba(251,247,239,.78); position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 90% at 85% -10%, rgba(201,154,62,.12), transparent 60%),
    radial-gradient(40% 70% at 5% 110%, rgba(110,108,77,.18), transparent 60%);
  pointer-events: none;
}
.footer-wrap { position: relative; padding: clamp(56px, 7vw, 92px) 0 0; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-brand p { margin-top: 18px; font-size: 14px; max-width: 34ch; color: rgba(251,247,239,.62); }
.footer-brand .footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social .s-btn {
  width: 44px; height: 44px; border-radius: var(--r-full);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: grid; place-items: center; color: rgba(251,247,239,.85);
  transition: background .3s, transform .3s, color .3s;
}
.footer-social .s-btn:hover { background: var(--honey); color: var(--ink); transform: translateY(-3px); }
.footer-social .s-btn svg { width: 19px; height: 19px; }
.footer-col h5 { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { font-size: 14.5px; color: rgba(251,247,239,.72); transition: color .25s, padding-left .25s var(--ease); }
.footer-col a:hover { color: var(--gold); padding-left: 6px; }
.footer-contact { display: grid; gap: 12px; font-size: 14px; color: rgba(251,247,239,.72); }
.footer-contact a { display: flex; align-items: center; gap: 10px; }
.footer-contact a svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.footer-contact a:hover { color: var(--gold); padding-left: 4px; }
.footer-bottom {
  margin-top: clamp(44px, 5vw, 64px); padding: 24px 0 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(251,247,239,.5);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .fb-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--gold); }
.footer-note { font-size: 12px; color: rgba(251,247,239,.4); max-width: 860px; margin: 0 auto; text-align: center; padding-bottom: 10px; }