/* ==========================================================================
   Classic Crackers Store — traditional festive storefront
   Colour, radius, font and layout tokens are injected from the database by
   ThemeManager::cssVariables(), so the admin customizer drives everything here.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin: 0 0 .6rem;
  line-height: 1.22;
  font-weight: 700;
  color: #241614;
}
h1 { font-size: calc(1.5rem * var(--heading-scale)); }
h2 { font-size: calc(1.22rem * var(--heading-scale)); }
h3 { font-size: calc(1.05rem * var(--heading-scale)); }
p { margin: 0 0 .8rem; }

.sf-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1rem; }
.sf-muted { color: #7a6a66; }
.sf-small { font-size: .82rem; }
.sf-center { text-align: center; }
.sf-no-scroll { overflow: hidden; }
.sf-hide { display: none !important; }

.sf-skip {
  position: absolute; left: -9999px; top: 0; background: var(--c-primary); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 var(--radius) 0;
}
.sf-skip:focus { left: 0; }

/* ------------------------------------------------------------- top strip */

.sf-announce {
  background: linear-gradient(90deg, var(--c-primary-dark), var(--c-primary), var(--c-secondary));
  color: #fff; font-size: .82rem; font-weight: 600; text-align: center;
  padding: .45rem 1rem; letter-spacing: .01em;
}

.sf-topbar {
  background: #241614; color: #e6d9d4; font-size: .78rem;
}
.sf-topbar .sf-container { display: flex; align-items: center; gap: 1.1rem; min-height: 36px; flex-wrap: wrap; }
.sf-topbar a { color: #f2e6e2; }
.sf-topbar a:hover { color: var(--c-secondary); }
.sf-topbar__right { margin-left: auto; display: flex; gap: 1rem; align-items: center; }

/* ---------------------------------------------------------------- header */

.sf-header { background: var(--c-header); color: #fff; position: relative; z-index: 60; }
.sf-header.is-sticky { position: sticky; top: 0; }
.sf-header.is-stuck { box-shadow: 0 4px 20px rgba(0, 0, 0, .22); }

.sf-header__main { display: flex; align-items: center; gap: 1.2rem; padding: .8rem 0; }

.sf-logo { display: flex; align-items: center; gap: .6rem; color: #fff; flex: 0 0 auto; }
.sf-logo img { max-height: 52px; width: auto; }
.sf-logo__mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-secondary), #ff7043); font-size: 22px;
}
.sf-logo__text strong { display: block; font-family: var(--font-heading); font-size: 1.12rem; line-height: 1.15; }
.sf-logo__text span { font-size: .68rem; opacity: .82; letter-spacing: .06em; text-transform: uppercase; }

.sf-header--centered .sf-header__main { flex-direction: column; text-align: center; }
.sf-header--centered .sf-search { width: 100%; max-width: 620px; }
.sf-header--minimal .sf-search { max-width: 380px; }

/* search */
.sf-search { position: relative; flex: 1 1 auto; max-width: 560px; }
.sf-search form { display: flex; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.16); }
.sf-search input {
  flex: 1; border: 0; padding: .7rem 1.1rem; font-size: .9rem; color: #2b2b2b; min-width: 0; background: transparent;
}
.sf-search input:focus { outline: 2px solid var(--c-secondary); outline-offset: -2px; }
.sf-search button {
  border: 0; background: var(--c-secondary); color: #241614; padding: 0 1.2rem;
  font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: .3rem;
}
.sf-search button:hover { background: #ffb300; }

.sf-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--c-text);
  border-radius: var(--radius); box-shadow: 0 18px 46px rgba(0,0,0,.24); overflow: hidden;
  max-height: 62vh; overflow-y: auto; z-index: 90;
}
.sf-suggest__group {
  padding: .5rem .9rem .3rem; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; color: #9a8b86; font-weight: 700; background: #faf7f4;
}
.sf-suggest__row { display: flex; align-items: center; gap: .65rem; padding: .5rem .9rem; font-size: .86rem; }
.sf-suggest__row:hover { background: #fff5ee; }
.sf-suggest__row img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: 0 0 34px; }
.sf-suggest__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-suggest__price { font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.sf-suggest__price s { color: #a89a95; font-weight: 400; margin-left: .25rem; font-size: .78em; }
.sf-suggest__empty { padding: 1rem; color: #9a8b86; font-size: .86rem; }

/* header actions */
.sf-header__actions { display: flex; align-items: center; gap: .3rem; margin-left: auto; }
.sf-icon-btn {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .4rem .6rem; border-radius: var(--radius-sm); color: #fff; background: transparent;
  border: 0; cursor: pointer; font-size: .68rem; position: relative; text-align: center;
}
.sf-icon-btn:hover { background: rgba(255,255,255,.14); }
.sf-icon-btn .mi { font-size: 22px; }
.sf-badge-count {
  position: absolute; top: 1px; right: 4px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--c-secondary); color: #241614;
  font-size: .66rem; font-weight: 800; display: grid; place-items: center;
}
.sf-badge-count.is-empty { display: none; }

/* nav */
.sf-nav { background: var(--c-primary-dark); }
.sf-nav__list { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.sf-nav__list > li { position: relative; }
.sf-nav__list > li > a {
  display: flex; align-items: center; gap: .3rem; padding: .68rem .95rem;
  color: #fff; font-size: .86rem; font-weight: 600; white-space: nowrap;
}
.sf-nav__list > li > a:hover, .sf-nav__list > li.is-active > a { background: rgba(0,0,0,.22); }
.sf-nav__drop {
  position: absolute; top: 100%; left: 0; min-width: 232px; background: #fff; color: var(--c-text);
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,.2);
  list-style: none; margin: 0; padding: .4rem 0; opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: .16s ease; z-index: 80;
}
.sf-nav__list > li:hover .sf-nav__drop,
.sf-nav__list > li:focus-within .sf-nav__drop { opacity: 1; visibility: visible; transform: none; }
.sf-nav__drop a { display: flex; align-items: center; gap: .5rem; padding: .5rem 1rem; font-size: .85rem; }
.sf-nav__drop a:hover { background: #fff3e9; color: var(--c-primary); }
.sf-nav__drop .count { margin-left: auto; font-size: .72rem; color: #a89a95; }

/* ----------------------------------------------------------------- hero */

.sf-hero { position: relative; overflow: hidden; background: #241614; }
.sf-hero__slide {
  display: none; position: relative; min-height: var(--banner-h);
}
.sf-hero__slide.is-active { display: block; animation: sf-fade .5s ease; }
@keyframes sf-fade { from { opacity: .35; } }
.sf-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sf-hero__overlay {
  position: relative; min-height: var(--banner-h); display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(20,10,8,.82) 0%, rgba(20,10,8,.45) 55%, rgba(20,10,8,.1) 100%);
}
.sf-hero__content { max-width: 620px; color: #fff; padding: 2.5rem 0; }
.sf-hero--center .sf-hero__content { margin: 0 auto; text-align: center; }
.sf-hero--right .sf-hero__content { margin-left: auto; text-align: right; }
.sf-hero__eyebrow {
  display: inline-block; background: var(--c-secondary); color: #241614;
  padding: .22rem .8rem; border-radius: 999px; font-size: .74rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: .8rem;
}
.sf-hero__title { font-size: clamp(1.7rem, 4.2vw, 3rem); color: #fff; margin-bottom: .5rem; text-shadow: 0 2px 18px rgba(0,0,0,.5); }
.sf-hero__text { font-size: 1rem; opacity: .93; margin-bottom: 1.3rem; max-width: 46ch; }
.sf-hero--center .sf-hero__text { margin-left: auto; margin-right: auto; }

.sf-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.86); color: #241614; font-size: 20px; display: grid; place-items: center;
}
.sf-slider__nav:hover { background: #fff; }
.sf-slider__nav--prev { left: 12px; }
.sf-slider__nav--next { right: 12px; }
.sf-slider__dots { position: absolute; bottom: 16px; left: 0; right: 0; display: flex; justify-content: center; gap: .4rem; z-index: 5; }
.sf-slider__dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); padding: 0;
}
.sf-slider__dots button.is-active { background: var(--c-secondary); width: 26px; border-radius: 5px; }

/* -------------------------------------------------------------- sections */

.sf-section { padding: 2.4rem 0; }
.sf-section--tint { background: #fff; }
.sf-section__head { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.sf-section__title { position: relative; margin: 0; padding-bottom: .45rem; }
.sf-section__title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px;
  border-radius: 2px; background: linear-gradient(90deg, var(--c-primary), var(--c-secondary));
}
.sf-section__sub { margin: .35rem 0 0; color: #7a6a66; font-size: .88rem; }
.sf-section__link { margin-left: auto; font-weight: 700; color: var(--c-primary); font-size: .86rem; white-space: nowrap; }
.sf-section__link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ components */

.sf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .62rem 1.15rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: var(--c-button); color: #fff; font-weight: 700; font-size: .87rem;
  cursor: pointer; transition: background .15s, transform .06s, box-shadow .15s; text-align: center;
}
.sf-btn:hover { background: var(--c-button-dark); }
.sf-btn:active { transform: translateY(1px); }
.sf-btn:disabled, .sf-btn.is-disabled { opacity: .55; cursor: not-allowed; }
.sf-btn--ghost { background: transparent; color: var(--c-primary); border-color: currentColor; }
.sf-btn--ghost:hover { background: var(--c-primary); color: #fff; }
.sf-btn--gold { background: var(--c-secondary); color: #241614; }
.sf-btn--gold:hover { background: #ffb300; }
.sf-btn--block { width: 100%; }
.sf-btn--sm { padding: .4rem .8rem; font-size: .8rem; }
.sf-btn--lg { padding: .8rem 1.6rem; font-size: .95rem; }
.sf-btn.is-loading { opacity: .7; pointer-events: none; }
.sf-btn.is-added { background: #2e7d32; }

.sf-grid { display: grid; gap: 1rem; }
.sf-grid--products { grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr)); }
.sf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sf-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sf-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* product card */
.sf-card {
  background: var(--c-card); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; position: relative;
  border: 1px solid #efe2da; transition: transform .16s, box-shadow .16s;
}
.sf-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(90, 40, 20, .14); }
.sf-card--elevated { border-color: transparent; box-shadow: 0 3px 14px rgba(90, 40, 20, .1); }
.sf-card--flat { border-color: transparent; background: transparent; }
.sf-card--flat:hover { transform: none; box-shadow: none; }

.sf-card__media { position: relative; display: block; aspect-ratio: 1; background: #fdf6f0; overflow: hidden; }
.sf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sf-card:hover .sf-card__media img { transform: scale(1.05); }

.sf-card__flags { position: absolute; top: .5rem; left: .5rem; display: flex; flex-direction: column; gap: .28rem; z-index: 2; }
.sf-tag {
  padding: .14rem .5rem; border-radius: 4px; font-size: .64rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; background: #333; color: #fff; width: fit-content;
}
.sf-tag--off { background: var(--c-primary); }
.sf-tag--new { background: #1565c0; }
.sf-tag--best { background: #ef6c00; }
.sf-tag--combo { background: #6a1b9a; }
.sf-tag--out { background: #555; }

.sf-card__wish {
  position: absolute; top: .5rem; right: .5rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #9a8b86; display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.sf-card__wish:hover, .sf-card__wish.is-active { color: var(--c-primary); }
.sf-card__wish .mi { font-size: 18px; }

.sf-card__body { padding: .7rem .75rem .8rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.sf-card__cat { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: #a89a95; font-weight: 700; }
.sf-card__title {
  font-size: .88rem; font-weight: 600; line-height: 1.32; margin: 0; color: #241614;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.3em;
}
.sf-card__title:hover { color: var(--c-primary); }
.sf-card__content { font-size: .72rem; color: #8b7a75; }

.sf-price { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: .1rem; }
.sf-price__mrp { text-decoration: line-through; color: #a89a95; font-size: .8rem; }
.sf-price__now { font-size: 1.05rem; font-weight: 800; color: var(--c-primary); }
.sf-price__off { font-size: .7rem; font-weight: 800; color: #2e7d32; background: #e8f5e9; padding: .08rem .35rem; border-radius: 4px; }
.sf-save { font-size: .72rem; color: #2e7d32; font-weight: 700; }

.sf-card__foot { margin-top: auto; padding-top: .55rem; display: flex; gap: .4rem; align-items: center; }
.sf-card__foot .sf-btn { flex: 1; }

.sf-stock { font-size: .72rem; font-weight: 700; }
.sf-stock--in { color: #2e7d32; }
.sf-stock--low { color: #ef6c00; }
.sf-stock--out { color: #c62828; }

.sf-qty { display: inline-flex; align-items: center; border: 1px solid #e0d2ca; border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.sf-qty button {
  width: 32px; height: 34px; border: 0; background: #fdf3ec; color: var(--c-primary);
  font-size: 17px; font-weight: 700; cursor: pointer; line-height: 1;
}
.sf-qty button:hover { background: var(--c-primary); color: #fff; }
.sf-qty input {
  width: 44px; height: 34px; border: 0; text-align: center; font-weight: 700; font-size: .86rem;
  -moz-appearance: textfield; background: transparent; color: inherit;
}
.sf-qty input::-webkit-outer-spin-button, .sf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* category card */
.sf-cat {
  display: block; background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid #efe2da; text-align: center; transition: transform .16s, box-shadow .16s;
}
.sf-cat:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(90,40,20,.14); }
.sf-cat img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sf-cat__body { display: block; padding: .6rem .5rem .75rem; }
.sf-cat__name { display: block; font-weight: 700; font-size: .86rem; color: #241614; line-height: 1.3; }
.sf-cat__count { display: block; font-size: .72rem; color: #a89a95; }

.sf-cat-row {
  display: flex; align-items: center; gap: .9rem; padding: .75rem;
  background: #fff; border: 1px solid #efe2da; border-radius: var(--radius);
}
.sf-cat-row img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 64px; }

/* ------------------------------------------------------------- shop page */

.sf-shop { display: grid; grid-template-columns: 262px minmax(0, 1fr); gap: 1.4rem; align-items: start; padding: 1.6rem 0 3rem; }
.sf-shop--no-sidebar { grid-template-columns: minmax(0, 1fr); }

.sf-sidebar { background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); overflow: hidden; position: sticky; top: 12px; }
.sf-sidebar__block { padding: .9rem 1rem; border-bottom: 1px solid #f3e9e2; }
.sf-sidebar__block:last-child { border-bottom: 0; }
.sf-sidebar__title { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: #8b7a75; font-weight: 800; margin-bottom: .6rem; }
.sf-sidebar__list { list-style: none; margin: 0; padding: 0; }
.sf-sidebar__list a { display: flex; align-items: center; gap: .4rem; padding: .32rem 0; font-size: .86rem; }
.sf-sidebar__list a:hover, .sf-sidebar__list a.is-active { color: var(--c-primary); font-weight: 700; }
.sf-sidebar__list .count { margin-left: auto; font-size: .72rem; color: #a89a95; }
.sf-sidebar__sub { list-style: none; margin: .1rem 0 .3rem .7rem; padding: 0 0 0 .6rem; border-left: 2px solid #f3e9e2; }
.sf-sidebar__sub a { font-size: .8rem; color: #7a6a66; }

.sf-toolbar {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); padding: .6rem .85rem; margin-bottom: 1rem;
}
.sf-toolbar select, .sf-toolbar input {
  padding: .38rem .55rem; border: 1px solid #e0d2ca; border-radius: var(--radius-sm);
  font-size: .84rem; background: #fff; color: inherit;
}
.sf-toolbar__count { font-size: .84rem; color: #7a6a66; }
.sf-toolbar__right { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.sf-filter-toggle { display: none; }

/* breadcrumbs */
.sf-crumbs { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .78rem; color: #8b7a75; padding: .8rem 0; }
.sf-crumbs a:hover { color: var(--c-primary); }
.sf-crumbs span[aria-current] { color: #241614; font-weight: 600; }

/* pagination */
.sf-pager { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }
.sf-pager a, .sf-pager span {
  min-width: 38px; height: 38px; padding: 0 .6rem; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e6d6cd; font-size: .86rem; font-weight: 600;
}
.sf-pager a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.sf-pager .is-current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.sf-pager .is-disabled { opacity: .4; }

/* --------------------------------------------------------- product page */

.sf-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; padding: 1.2rem 0 2.4rem; }
.sf-gallery__main {
  background: #fff; border: 1px solid #efe2da; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 1; display: grid; place-items: center;
}
.sf-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.sf-gallery__thumbs { display: flex; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.sf-gallery__thumbs button {
  width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid #efe2da; padding: 0; cursor: pointer; background: #fff;
}
.sf-gallery__thumbs button.is-active { border-color: var(--c-primary); }
.sf-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.sf-product__title { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin-bottom: .35rem; }
.sf-product__meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: #8b7a75; margin-bottom: .9rem; }
.sf-product__price {
  background: #fff; border: 1px dashed #e6c9b6; border-radius: var(--radius);
  padding: .9rem 1rem; margin-bottom: 1rem;
}
.sf-product__price .sf-price__now { font-size: 1.85rem; }
.sf-pricetable { width: 100%; font-size: .86rem; margin-top: .6rem; border-collapse: collapse; }
.sf-pricetable td { padding: .18rem 0; }
.sf-pricetable td:last-child { text-align: right; font-weight: 700; }

.sf-product__buy { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.sf-product__points { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; font-size: .86rem; }
.sf-product__points li { display: flex; gap: .5rem; align-items: flex-start; }
.sf-product__points .mi { color: var(--c-accent); font-size: 18px; }

.sf-tabs { display: flex; gap: .3rem; border-bottom: 2px solid #f0e3db; overflow-x: auto; margin-bottom: 1rem; }
.sf-tabs button {
  padding: .6rem 1rem; border: 0; background: transparent; cursor: pointer;
  font-weight: 700; font-size: .88rem; color: #8b7a75; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
}
.sf-tabs button.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.sf-tabpanel { display: none; }
.sf-tabpanel.is-active { display: block; }

.sf-prose { font-size: .92rem; line-height: 1.75; }
.sf-prose h3, .sf-prose h4 { margin-top: 1.3rem; }
.sf-prose ul, .sf-prose ol { padding-left: 1.2rem; }
.sf-prose li { margin-bottom: .3rem; }
.sf-prose a { color: var(--c-primary); text-decoration: underline; }

.sf-review { border-bottom: 1px solid #f3e9e2; padding: .8rem 0; }
.sf-review:last-child { border-bottom: 0; }
.sf-stars { color: #f9a825; letter-spacing: .06em; }

/* --------------------------------------------------------------- tables */

.sf-table { width: 100%; border-collapse: collapse; background: #fff; }
.sf-table th, .sf-table td { padding: .8rem; text-align: left; border-bottom: 1px solid #f3e9e2; vertical-align: middle; }
.sf-table thead th { background: #fdf3ec; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #8b7a75; }
.sf-table .num { text-align: right; }
.sf-table-wrap { overflow-x: auto; border: 1px solid #efe2da; border-radius: var(--radius); background: #fff; }

/* ----------------------------------------------------------- cart layout */

.sf-cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; padding: 1.4rem 0 3rem; }

.sf-panel { background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); overflow: hidden; }
.sf-panel__head { padding: .85rem 1rem; border-bottom: 1px solid #f3e9e2; font-weight: 700; display: flex; align-items: center; gap: .6rem; }
.sf-panel__body { padding: 1rem; }
.sf-panel + .sf-panel { margin-top: 1rem; }

.sf-summary { position: sticky; top: 12px; }
.sf-summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; font-size: .88rem; }
.sf-summary__row--total {
  border-top: 2px dashed #e6d6cd; margin-top: .55rem; padding-top: .7rem;
  font-size: 1.05rem; font-weight: 800; color: #241614;
}
.sf-summary__save { background: #e8f5e9; color: #2e7d32; padding: .5rem .7rem; border-radius: var(--radius-sm); font-size: .82rem; font-weight: 700; text-align: center; margin-top: .7rem; }

.sf-coupon { display: flex; gap: .4rem; margin-top: .8rem; }
.sf-coupon input { flex: 1; padding: .5rem .65rem; border: 1px solid #e0d2ca; border-radius: var(--radius-sm); font-size: .84rem; min-width: 0; }
.sf-coupon-applied { display: flex; align-items: center; gap: .5rem; background: #e8f5e9; border-radius: var(--radius-sm); padding: .5rem .7rem; font-size: .84rem; margin-top: .8rem; }
.sf-link-danger { background: none; border: 0; color: #c62828; cursor: pointer; font-size: .78rem; text-decoration: underline; padding: 0; }

.sf-free-bar { background: #fff8e1; border: 1px dashed #f6c453; padding: .55rem .8rem; border-radius: var(--radius-sm); font-size: .82rem; text-align: center; margin-bottom: 1rem; }

/* ----------------------------------------------------------------- forms */

.sf-field { margin-bottom: .9rem; }
.sf-field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: .28rem; color: #4a3a36; }
.sf-field input, .sf-field select, .sf-field textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid #e0d2ca; border-radius: var(--radius-sm);
  font: inherit; font-size: .88rem; background: #fff; color: var(--c-text);
}
.sf-field input:focus, .sf-field select:focus, .sf-field textarea:focus {
  outline: 0; border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}
.sf-field textarea { min-height: 90px; resize: vertical; }
.sf-field__hint { font-size: .74rem; color: #9a8b86; margin-top: .22rem; }
.sf-field__error { font-size: .76rem; color: #c62828; margin-top: .22rem; }
.sf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .9rem; }
.sf-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.sf-check { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .6rem; font-size: .85rem; }
.sf-check input { margin-top: .22rem; width: 16px; height: 16px; accent-color: var(--c-primary); flex: 0 0 16px; }

.sf-radio-card {
  display: flex; gap: .7rem; align-items: flex-start; padding: .75rem .85rem;
  border: 1px solid #e6d6cd; border-radius: var(--radius-sm); margin-bottom: .55rem; cursor: pointer;
}
.sf-radio-card:hover { border-color: var(--c-primary); }
.sf-radio-card input { margin-top: .2rem; accent-color: var(--c-primary); }
.sf-radio-card:has(input:checked) { border-color: var(--c-primary); background: #fff6f2; }

/* ---------------------------------------------------------------- alerts */

.sf-alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .87rem; border: 1px solid transparent; }
.sf-alert--success { background: #e8f5e9; border-color: #b7dfba; color: #1b5e20; }
.sf-alert--error { background: #fdecec; border-color: #f2c4c6; color: #8f1d1d; }
.sf-alert--info { background: #e3f2fd; border-color: #bbdefb; color: #0d47a1; }
.sf-alert--warn { background: #fff8e1; border-color: #f6c453; color: #7a4f00; }

/* ---------------------------------------------------------------- toasts */

.sf-toasts { position: fixed; bottom: 1rem; right: 1rem; z-index: 300; display: flex; flex-direction: column; gap: .55rem; max-width: 330px; }
.sf-toast {
  background: #241614; color: #fff; padding: .7rem .95rem; border-radius: var(--radius-sm);
  box-shadow: 0 12px 34px rgba(0,0,0,.3); font-size: .85rem; display: flex; gap: .55rem; align-items: flex-start;
  animation: sf-toast-in .22s ease;
}
.sf-toast--success { background: #2e7d32; }
.sf-toast--error { background: #c62828; }
.sf-toast.is-leaving { opacity: 0; transform: translateY(8px); transition: .28s; }
@keyframes sf-toast-in { from { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------- drawer */

.sf-drawer { position: fixed; inset: 0; z-index: 250; visibility: hidden; }
.sf-drawer.is-open { visibility: visible; }
.sf-drawer__scrim { position: absolute; inset: 0; background: rgba(15,10,8,.55); opacity: 0; transition: opacity .22s; }
.sf-drawer.is-open .sf-drawer__scrim { opacity: 1; }
.sf-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 92vw);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .24s ease; box-shadow: -12px 0 40px rgba(0,0,0,.24);
}
.sf-drawer--left .sf-drawer__panel { right: auto; left: 0; transform: translateX(-100%); }
.sf-drawer.is-open .sf-drawer__panel { transform: none; }
.sf-drawer__head { padding: .9rem 1rem; border-bottom: 1px solid #f3e9e2; display: flex; align-items: center; gap: .6rem; }
.sf-drawer__head h3 { margin: 0; }
.sf-drawer__close { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 22px; color: #8b7a75; line-height: 1; }
.sf-drawer__body { flex: 1; overflow-y: auto; }
.sf-drawer__foot { padding: 1rem; border-top: 1px solid #f3e9e2; background: #fdf9f6; }
.sf-drawer__empty { padding: 2.5rem 1rem; text-align: center; color: #8b7a75; }

.sf-mini-item { display: flex; gap: .7rem; padding: .7rem 1rem; border-bottom: 1px solid #f7efe9; }
.sf-mini-item img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex: 0 0 56px; }
.sf-mini-item__body { flex: 1; min-width: 0; }
.sf-mini-item__body a { font-size: .84rem; font-weight: 600; display: block; line-height: 1.3; }
.sf-mini-item__meta { font-size: .76rem; color: #8b7a75; }
.sf-mini-item__total { text-align: right; font-size: .84rem; }

/* mobile nav drawer */
.sf-mobile-nav { display: none; }
.sf-nav-open .sf-mobile-nav { display: block; }

/* ------------------------------------------------------------- info tiles */

.sf-usp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sf-usp__item {
  background: #fff; border: 1px solid #efe2da; border-radius: var(--radius);
  padding: 1.1rem; text-align: center;
}
.sf-usp__icon {
  width: 52px; height: 52px; margin: 0 auto .6rem; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-primary-light), #fff); color: var(--c-primary);
}
.sf-usp__icon .mi { font-size: 26px; }
.sf-usp__item h4 { margin-bottom: .25rem; font-size: .95rem; }
.sf-usp__item p { font-size: .82rem; color: #7a6a66; margin: 0; }

.sf-promo-strip {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  background: linear-gradient(90deg, var(--c-primary), var(--c-primary-dark));
  color: #fff; border-radius: var(--radius); padding: .85rem 1rem; font-size: .86rem; font-weight: 600;
}

.sf-testimonial {
  background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); padding: 1.1rem;
  display: flex; flex-direction: column; gap: .5rem; height: 100%;
}
.sf-testimonial__who { display: flex; align-items: center; gap: .6rem; margin-top: auto; }
.sf-testimonial__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

.sf-accordion { background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); overflow: hidden; }
.sf-accordion__item + .sf-accordion__item { border-top: 1px solid #f3e9e2; }
.sf-accordion__head {
  width: 100%; text-align: left; padding: .85rem 1rem; background: none; border: 0; cursor: pointer;
  font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .7rem; color: inherit;
}
.sf-accordion__head::after { content: '+'; margin-left: auto; font-size: 1.2rem; color: var(--c-primary); }
.sf-accordion__item.is-open .sf-accordion__head::after { content: '−'; }
.sf-accordion__body { display: none; padding: 0 1rem 1rem; font-size: .88rem; color: #5c4c48; }
.sf-accordion__item.is-open .sf-accordion__body { display: block; }

.sf-newsletter {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary) 60%, var(--c-secondary));
  color: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center;
}
.sf-newsletter h2 { color: #fff; }
.sf-newsletter form { display: flex; gap: .5rem; max-width: 460px; margin: 1rem auto 0; }
.sf-newsletter input { flex: 1; padding: .68rem .9rem; border: 0; border-radius: var(--radius-sm); font-size: .88rem; min-width: 0; }

/* --------------------------------------------------------------- footer */

.sf-footer { background: var(--c-footer); color: #cbb8b2; margin-top: 2rem; }
.sf-footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 1.8rem; padding: 2.4rem 0 1.8rem; }
.sf-footer--two-column .sf-footer__main { grid-template-columns: 1.5fr 1fr; }
.sf-footer--centered .sf-footer__main { grid-template-columns: 1fr; text-align: center; }
.sf-footer h4 { color: #fff; font-size: .92rem; margin-bottom: .8rem; }
.sf-footer a { color: #cbb8b2; font-size: .85rem; }
.sf-footer a:hover { color: var(--c-secondary); }
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.sf-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: .9rem 0;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; font-size: .78rem;
}
.sf-footer__social { display: flex; gap: .5rem; }
.sf-footer__social a {
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.1);
  display: grid; place-items: center; color: #fff;
}
.sf-footer__social a:hover { background: var(--c-secondary); color: #241614; }

.sf-whatsapp {
  position: fixed; bottom: 84px; right: 18px; width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; z-index: 120;
  box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.sf-to-top {
  position: fixed; bottom: 20px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--c-primary); color: #fff; cursor: pointer; z-index: 120;
  opacity: 0; pointer-events: none; transition: opacity .2s; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.26);
}
.sf-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* -------------------------------------------------------- account layout */

.sf-account { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 1.3rem; align-items: start; padding: 1.4rem 0 3rem; }
.sf-account__nav { background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); overflow: hidden; }
.sf-account__nav a { display: flex; align-items: center; gap: .6rem; padding: .68rem 1rem; font-size: .88rem; border-bottom: 1px solid #f7efe9; }
.sf-account__nav a:last-child { border-bottom: 0; }
.sf-account__nav a:hover { background: #fdf3ec; }
.sf-account__nav a.is-active { background: var(--c-primary); color: #fff; }

.sf-stat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.sf-stat-tile { background: #fff; border: 1px solid #efe2da; border-radius: var(--radius); padding: .9rem 1rem; }
.sf-stat-tile__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #a89a95; font-weight: 700; }
.sf-stat-tile__value { font-size: 1.3rem; font-weight: 800; color: #241614; }

.sf-status {
  display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem;
  border-radius: 999px; font-size: .72rem; font-weight: 800;
}
.sf-status--pending { background: #fff3e0; color: #e65100; }
.sf-status--confirmed, .sf-status--processing { background: #e3f2fd; color: #0d47a1; }
.sf-status--packed, .sf-status--shipped, .sf-status--out_for_delivery { background: #ede7f6; color: #4527a0; }
.sf-status--delivered { background: #e8f5e9; color: #1b5e20; }
.sf-status--cancelled { background: #ffebee; color: #b71c1c; }
.sf-status--refunded { background: #eceff1; color: #37474f; }

/* order tracking timeline */
.sf-track { display: flex; flex-wrap: wrap; }
.sf-track__step { flex: 1 1 100px; text-align: center; position: relative; min-width: 90px; }
.sf-track__dot {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: #e6d6cd; color: #a89a95; font-weight: 800; font-size: .78rem; position: relative; z-index: 2;
}
.sf-track__step.is-done .sf-track__dot { background: var(--c-accent); color: #fff; }
.sf-track__label { font-size: .72rem; margin-top: .4rem; color: #8b7a75; }
.sf-track__step.is-done .sf-track__label { color: #241614; font-weight: 700; }
.sf-track__step:not(:last-child)::after {
  content: ''; position: absolute; top: 15px; left: 50%; right: -50%; height: 3px; background: #e6d6cd; z-index: 1;
}
.sf-track__step.is-done:not(:last-child)::after { background: var(--c-accent); }

.sf-empty { text-align: center; padding: 3rem 1rem; color: #8b7a75; }
.sf-empty .mi { font-size: 52px; opacity: .35; }

.sf-page-head {
  background: linear-gradient(120deg, var(--c-primary-dark), var(--c-primary));
  color: #fff; padding: 2rem 0; margin-bottom: 0;
}
.sf-page-head h1 { color: #fff; margin: 0; }
.sf-page-head p { margin: .3rem 0 0; opacity: .9; }

.mi {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
  font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none;
  display: inline-block; white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.mi--fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .sf-shop { grid-template-columns: minmax(0, 1fr); }
  .sf-sidebar { position: static; }
  .sf-grid--products { grid-template-columns: repeat(min(3, var(--grid-cols)), minmax(0, 1fr)); }
  .sf-footer__main { grid-template-columns: 1fr 1fr; }
  .sf-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sf-cart, .sf-account, .sf-product { grid-template-columns: minmax(0, 1fr); }
  .sf-summary { position: static; }
  .sf-account__nav { display: flex; overflow-x: auto; }
  .sf-account__nav a { border-bottom: 0; border-right: 1px solid #f7efe9; white-space: nowrap; }
  .sf-nav { display: none; }
  .sf-search { display: none !important; }
  .sf-menu-toggle { display: inline-flex !important; }
  .sf-filter-toggle { display: inline-flex; }
  .sf-sidebar { display: none; }
  .sf-sidebar.is-open { display: block; }
  .sf-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sf-header__actions .sf-icon-btn:not(.sf-menu-toggle):not(.sf-header__cart-btn) { display: none !important; }
  .sf-header__cart-btn { display: inline-flex !important; padding: .3rem .4rem; }
  .sf-header__cart-btn > span:not(.mi):not(.sf-badge-count) { display: none !important; }
  .sf-header__cart-btn .sf-badge-count { background: #e11d48; color: #fff; top: 0; right: 0; min-width: 17px; height: 17px; font-size: .62rem; }
}

@media (max-width: 720px) {
  .sf-topbar { display: none; }
  .sf-header__main { flex-wrap: nowrap; gap: .6rem; padding: .5rem 0; justify-content: space-between; align-items: center; }
  .sf-search { display: none !important; }
  .sf-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-grid--3, .sf-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-row, .sf-row--3 { grid-template-columns: minmax(0, 1fr); }
  .sf-section { padding: 1.6rem 0; }
  .sf-hero__content { padding: 1.6rem 0; }
  .sf-newsletter form { flex-direction: column; }
  .sf-footer__main { grid-template-columns: 1fr; gap: 1.2rem; }
  .sf-toasts { left: .75rem; right: .75rem; max-width: none; }
}

@media (max-width: 420px) {
  .sf-grid--products, .sf-grid--3, .sf-grid--4, .sf-grid--6, .sf-usp { grid-template-columns: minmax(0, 1fr); }
  .sf-logo__text span { display: none; }
}

@media print {
  .sf-header, .sf-nav, .sf-footer, .sf-announce, .sf-topbar,
  .sf-whatsapp, .sf-to-top, .sf-drawer, .no-print { display: none !important; }
  body { background: #fff; }
}
