/* ============================================
   SOFYA MARKET — Premium Marketplace Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --gold: #C9962F;
  --gold2: #F4D77B;
  --gold-text: #B8860B;
  --gold-gradient: linear-gradient(135deg, #F4D77B, #C9962F);
  --ink-deep: #0A0908;
  --ink-header: #0E0C0A;
  --surface-page: #F7F5F2;
  --surface-card: #FFFFFF;
  --surface-cream: #FBF7EF;
  --surface-cream2: #F1E7D3;
  --text-primary: #1A1714;
  --text-product: #3A332B;
  --text-muted: #8A8178;
  --text-light: #F6EFDD;
  --text-light2: #C7BBA0;
  --text-light3: #E8DFCB;
  --text-sub: #9A8E76;
  --text-struck: #B3A892;
  --border-gold-16: rgba(201,150,47,.16);
  --border-gold-22: rgba(201,150,47,.22);
  --border-gold-28: rgba(201,150,47,.28);
  --border-gold-30: rgba(201,150,47,.30);
  --border-gold-35: rgba(201,150,47,.35);
  --hdbg: #0E0C0A;
  --hdsub: #9A8E76;
  --hdico: #E8DFCB;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; }
body.sofya-market {
  margin: 0;
  font-family: var(--font-body);
  background: var(--surface-page);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.sofya-market ::-webkit-scrollbar { height: 9px; width: 9px; }
body.sofya-market ::-webkit-scrollbar-track { background: transparent; }
body.sofya-market ::-webkit-scrollbar-thumb { background: #d8d0c4; border-radius: 8px; }

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: var(--font-body); }

.sm-container {
  max-width: 1320px;
  margin: 0 auto;
}

/* Gold gradient text helper */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== 1. UTILITY BAR ===== */
.sm-utility {
  background: var(--ink-deep);
  color: var(--text-sub);
  font-size: 12.5px;
}
.sm-utility__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sm-utility__left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sm-utility__left strong {
  color: var(--text-light3);
  font-weight: 600;
}
.sm-utility__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.sm-utility__right a {
  color: var(--text-sub);
  transition: color .15s;
}
.sm-utility__right a:hover {
  color: var(--text-light3);
}
.sm-utility__lang {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--gold);
}

/* ===== 2. HEADER ===== */
.sm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hdbg);
  border-bottom: 1px solid var(--border-gold-22);
}
.sm-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.sm-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}
.sm-logo__monogram {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 32% 28%, #1c1812, #000);
  border: 2px solid var(--gold);
  box-shadow: 0 0 0 1px rgba(244,215,123,.25), 0 6px 18px rgba(201,150,47,.22);
}
.sm-logo__monogram span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 29px;
  line-height: 1;
}
.sm-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.sm-logo__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 5px;
}
.sm-logo__sub {
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--hdsub);
  margin-top: 4px;
}

/* Search */
.sm-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 780px;
}
.sm-catalog-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #1A1410;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 18px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(201,150,47,.28);
  transition: opacity .15s;
}
.sm-catalog-btn:hover { opacity: .9; }
.sm-search__input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-gold-30);
}
.sm-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-primary);
}
.sm-search__btn {
  background: var(--gold-gradient);
  border: none;
  padding: 0 16px;
  align-self: stretch;
  display: flex;
  align-items: center;
  color: #1A1410;
}

/* Header Actions */
.sm-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.sm-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--hdico);
  font-family: var(--font-body);
  transition: color .15s;
}
.sm-action-btn:hover { color: var(--gold); }
.sm-action-btn__label {
  font-size: 11.5px;
  font-weight: 600;
}
.sm-action-btn__icon {
  position: relative;
}
.sm-badge {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: #1A1410;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Login button (olchamarket style) */
.sm-login-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px 0 12px;
  border-radius: 12px;
  border: 1px solid var(--border-gold-30);
  background: transparent;
  color: var(--hdico);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: .2s;
  white-space: nowrap;
}
.sm-login-btn:hover {
  color: var(--gold);
  border-color: var(--border-gold-35);
  background: rgba(201,150,47,.08);
}
.sm-login-btn svg { flex-shrink: 0; }

/* Category Nav */
.sm-catnav {
  border-top: 1px solid var(--border-gold-16);
}
.sm-catnav__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
}
.sm-catnav__inner::-webkit-scrollbar { height: 0; }
.sm-catnav__link {
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--hdsub);
  white-space: nowrap;
  transition: color .15s;
}
.sm-catnav__link:hover {
  color: var(--gold);
}

/* ===== 3. MAIN CONTENT ===== */
.sm-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== 4. HERO ===== */
.sm-hero {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 18px;
  margin-bottom: 30px;
}
.sm-hero__banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 382px;
  background: linear-gradient(120deg, #100D0A 0%, #23190E 52%, #3A2A12 100%);
  border: 1px solid var(--border-gold-28);
  display: flex;
  align-items: center;
  padding: 48px;
}
.sm-hero__text {
  position: relative;
  z-index: 2;
  max-width: 58%;
}
.sm-hero__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}
.sm-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  line-height: 1.06;
  color: var(--text-light);
  margin: 0 0 14px;
}
.sm-hero__sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-light2);
  margin: 0 0 24px;
  max-width: 390px;
}
.sm-hero__cta {
  background: var(--gold-gradient);
  color: #1A1410;
  border: none;
  font-weight: 700;
  font-size: 14.5px;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(201,150,47,.3);
  transition: opacity .15s;
}
.sm-hero__cta:hover { opacity: .9; }
.sm-hero__img {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 236px;
  height: 268px;
  border-radius: 16px;
  background: repeating-linear-gradient(45deg, rgba(244,215,123,.10), rgba(244,215,123,.10) 11px, rgba(244,215,123,.035) 11px, rgba(244,215,123,.035) 22px);
  border: 1px solid var(--border-gold-30);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-hero__img span {
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(244,215,123,.55);
}

/* Hero Dots */
.sm-hero__dots {
  position: absolute;
  left: 48px;
  bottom: 26px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.sm-hero__dot {
  height: 6px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.sm-hero__dot--active {
  width: 26px;
  background: var(--gold-gradient);
}
.sm-hero__dot--inactive {
  width: 8px;
  background: rgba(255,255,255,.32);
}

/* Hero slide transition */
.sm-hero__slide {
  display: none;
}
.sm-hero__slide.active {
  display: block;
}

/* Side Promos */
.sm-hero__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.sm-promo {
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  min-height: 182px;
  border: 1px solid var(--border-gold-35);
}
.sm-promo--dark {
  background: linear-gradient(135deg, #15110B, #2E2110);
}
.sm-promo--cream {
  background: linear-gradient(135deg, #FBF7EF, #F1E7D3);
}
.sm-promo__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
}
.sm-promo__kicker--gold { color: var(--gold); }
.sm-promo__kicker--brown { color: #B8860B; }
.sm-promo__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  margin: 10px 0 0;
  line-height: 1.12;
}
.sm-promo__link {
  font-weight: 700;
  font-size: 13px;
  margin-top: 12px;
  transition: opacity .15s;
}
.sm-promo__link:hover { opacity: .8; }
.sm-promo__link--gold { color: var(--gold); }
.sm-promo__link--brown { color: #B8860B; }

/* ===== 5. TRUST STRIP ===== */
.sm-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid rgba(201,150,47,.18);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 38px;
}
.sm-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sm-trust__icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244,215,123,.2), rgba(201,150,47,.1));
  border: 1px solid var(--border-gold-35);
  color: var(--gold);
}
.sm-trust__title {
  font-weight: 700;
  font-size: 14px;
}
.sm-trust__sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== 6. SECTION HEADERS ===== */
.sm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sm-section-header__left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sm-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  margin: 0;
}
.sm-tag {
  background: var(--gold-gradient);
  color: #1A1410;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 7px;
}
.sm-view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: opacity .15s;
}
.sm-view-all:hover { opacity: .8; }

/* ===== 7. CATEGORIES ===== */
.sm-categories {
  margin-bottom: 40px;
}
.sm-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}
.sm-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 14px;
  padding: 16px 8px;
  transition: transform .15s, box-shadow .15s;
}
.sm-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(201,150,47,.14);
}
.sm-cat-tile__img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,150,47,.2);
  overflow: hidden;
  background: #f3eee5;
}
.sm-cat-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-cat-tile__name {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

/* ===== 8. PREMIUM BANNER ===== */
.sm-premium {
  margin-bottom: 44px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(120deg, #0E0C0A, #2A1E0E 58%, #4A3514);
  border: 1px solid var(--border-gold-35);
  padding: 42px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.sm-premium__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
}
.sm-premium__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--text-light);
  margin: 12px 0 8px;
  line-height: 1.08;
}
.sm-premium__sub {
  font-size: 14px;
  color: var(--text-light2);
  margin: 0;
  max-width: 560px;
  line-height: 1.5;
}
.sm-premium__cta {
  background: var(--gold-gradient);
  color: #1A1410;
  border: none;
  font-weight: 700;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 13px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(201,150,47,.32);
  transition: opacity .15s;
}
.sm-premium__cta:hover { opacity: .9; }

/* ===== 9. PRODUCT ROW ===== */
.sm-product-section {
  margin-bottom: 42px;
}
.sm-product-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 0 10px;
}
.sm-product-row::-webkit-scrollbar { height: 6px; }

/* ===== 10. PRODUCT CARD ===== */
.sm-card {
  flex: 0 0 224px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.sm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(26,23,20,.1);
  border-color: rgba(201,150,47,.4);
}
.sm-card__img-wrap {
  position: relative;
}
.sm-card__img {
  aspect-ratio: 1/1;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f0e8;
}
.sm-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-card__discount {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gold-gradient);
  color: #1A1410;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
}
.sm-card__wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .15s;
}
.sm-card__wishlist:hover {
  color: var(--gold);
}
.sm-card__body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.sm-card__prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.sm-card__price {
  font-weight: 800;
  font-size: 15.5px;
  color: var(--text-primary);
}
.sm-card__old-price {
  font-size: 12px;
  color: var(--text-struck);
  text-decoration: line-through;
}
.sm-card__name {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-product);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}
.sm-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}
.sm-card__rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold);
  font-weight: 600;
}
.sm-card__rating-sep {
  color: #cbc3b6;
}
.sm-card__add-btn {
  margin-top: 6px;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--gold);
  color: var(--gold-text);
  font-weight: 700;
  font-size: 13px;
  padding: 9px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .15s;
}
.sm-card__add-btn:hover {
  background: var(--gold-gradient);
  color: #1A1410;
  border-color: transparent;
}

/* ===== 11. FOOTER ===== */
.sm-footer {
  background: var(--ink-deep);
  color: var(--text-sub);
  margin-top: 40px;
  border-top: 1px solid rgba(201,150,47,.2);
}
.sm-footer__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 44px 18px 24px;
}
.sm-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 32px;
}
.sm-footer__brand p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-sub);
  margin: 0 0 18px;
  max-width: 280px;
}
.sm-footer__socials {
  display: flex;
  gap: 10px;
}
.sm-footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-gold-30);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  transition: background .15s;
}
.sm-footer__social:hover {
  background: rgba(201,150,47,.12);
}
.sm-footer__col-title {
  color: var(--text-light3);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 15px;
}
.sm-footer__links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.sm-footer__link {
  color: var(--text-sub);
  font-size: 13px;
  transition: color .15s;
}
.sm-footer__link:hover {
  color: var(--text-light3);
}
.sm-footer__app-badge {
  border: 1px solid var(--border-gold-30);
  border-radius: 11px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-light2);
  transition: background .15s;
}
.sm-footer__app-badge:hover {
  background: rgba(201,150,47,.08);
}
.sm-footer__app-badge-sm {
  font-size: 9px;
  color: var(--text-sub);
}
.sm-footer__app-badge-lg {
  font-weight: 700;
  color: var(--text-light3);
}
.sm-footer__divider {
  height: 1px;
  background: var(--border-gold-16);
  margin: 32px 0 20px;
}
.sm-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.sm-footer__copy {
  font-size: 12.5px;
  color: #7d735f;
}
.sm-footer__payments {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.sm-footer__payment {
  border: 1px solid rgba(201,150,47,.25);
  border-radius: 7px;
  padding: 6px 11px;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: .5px;
  color: var(--text-light2);
}

/* ===== 14. PRODUCT GRID (for load-more layout) ===== */
.sm-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 4px 0 10px;
}
.sm-product-grid .sm-card {
  flex: unset;
}

/* ===== 12. RESPONSIVE ===== */

/* Tablet < 1040px */
@media (max-width: 1039px) {
  .sm-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sm-cat-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .sm-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Hero collapse < 880px */
@media (max-width: 879px) {
  .sm-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 26px;
  }
  .sm-hero__banner {
    min-height: auto;
    padding: 30px 22px;
  }
  .sm-hero__text {
    max-width: 100%;
  }
  .sm-hero__img {
    display: none;
  }
  .sm-hero__side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .sm-promo {
    min-height: 118px;
  }
  .sm-premium {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .sm-premium__cta {
    width: 100%;
    text-align: center;
  }
  .sm-premium__title {
    font-size: 25px;
  }
  .sm-all-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone < 760px */
@media (max-width: 759px) {
  .sm-utility__right { display: none; }

  .sm-header__inner {
    padding: 12px 14px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .sm-search {
    display: none;
  }
  .sm-catalog-btn { display: none; }
  .sm-actions { margin-left: auto; gap: 14px; }
  .sm-login-btn { height: 36px; padding: 0 10px; font-size: 12px; gap: 4px; }
  .sm-login-btn svg { width: 17px; height: 17px; }

  .sm-main { padding: 16px 14px; }

  .sm-hero__banner { padding: 30px 22px; border-radius: 16px; }
  .sm-hero__title { font-size: 29px; line-height: 1.08; }
  .sm-hero__dots { left: 22px; bottom: 16px; }

  .sm-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 18px;
    margin-bottom: 30px;
  }

  .sm-cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .sm-h2 { font-size: 23px; }

  .sm-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .sm-product-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-x: visible;
    padding: 2px 0 6px;
  }
  .sm-card {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px;
  }

  .sm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .sm-footer__brand {
    grid-column: 1 / -1;
  }

  .sm-premium {
    margin-bottom: 40px;
  }
  .sm-premium__title {
    font-size: 25px;
  }

  .sm-all-categories {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .sm-all-cat-tile {
    padding: 14px;
  }
  .sm-all-cat-tile__img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }
  .sm-page-title {
    font-size: 26px;
    margin-bottom: 20px;
  }
  .sm-category-header {
    margin-bottom: 20px;
  }

}

/* Extra small < 480px */
@media (max-width: 479px) {
  .sm-hero__title { font-size: 26px; }
  .sm-hero__sub { font-size: 13px; }
}

/* ===== 13. LAZY IMAGE LOADING ===== */
.sm-lazy-wrap {
  position: relative;
  overflow: hidden;
}
.sm-lazy-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  background: linear-gradient(110deg, #f5f0e8 30%, #ece5d8 50%, #f5f0e8 70%);
  background-size: 200% 100%;
  animation: sm-shimmer 1.5s ease-in-out infinite;
}
.sm-lazy-loader svg {
  color: var(--text-struck);
  opacity: .5;
}
@keyframes sm-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.sm-lazy-wrap img {
  opacity: 0;
  transition: opacity .3s ease;
}
.sm-lazy-wrap img.sm-lazy-loaded {
  opacity: 1;
}
.sm-hidden { display: none !important; }
.sm-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--text-struck);
  z-index: 1;
}

/* ===== 15. LOAD MORE BUTTON ===== */
.sm-load-more-wrap {
  text-align: center;
  padding-top: 28px;
}
.sm-load-more-spinner {
  display: none;
  margin-bottom: 12px;
}
@keyframes sm-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sm-load-more-spinner svg {
  animation: sm-spin 1s linear infinite;
  color: var(--gold);
}
.sm-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-text);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.sm-load-more-btn:hover {
  background: var(--gold-gradient);
  color: #1A1410;
  border-color: transparent;
}
.sm-load-more-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ===== 16. BREADCRUMB ===== */
.sm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sm-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.sm-breadcrumb a:hover {
  color: var(--gold);
}
.sm-breadcrumb span:last-child {
  color: var(--text-primary);
  font-weight: 600;
}
.sm-breadcrumb svg {
  color: var(--text-muted);
  opacity: .5;
  flex-shrink: 0;
}

/* ===== 17. PAGE TITLE ===== */
.sm-page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  color: var(--text-primary);
  margin: 0 0 28px;
  letter-spacing: -0.5px;
}

/* ===== 18. CATEGORIES PAGE ===== */
.sm-all-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sm-all-cat-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border-gold-16);
  border-radius: 16px;
  text-decoration: none;
  transition: all .25s;
}
.sm-all-cat-tile:hover {
  border-color: var(--gold);
  box-shadow: 0 6px 24px rgba(201,150,47,.12);
  transform: translateY(-2px);
}
.sm-all-cat-tile__img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--surface-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sm-all-cat-tile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sm-all-cat-tile__img svg {
  color: var(--gold);
}
.sm-all-cat-tile__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sm-all-cat-tile__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sm-all-cat-tile__count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 19. CATEGORY PAGE ===== */
.sm-category-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.sm-category-count {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== 20. EMPTY STATE ===== */
.sm-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  background: rgba(201,150,47,.04);
  border: 1px dashed var(--border-gold-22);
  border-radius: 20px;
}
.sm-empty-state__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  margin: 20px 0 10px;
  color: var(--text-primary);
}
.sm-empty-state__sub {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 24px;
}
.sm-empty-state__btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 12px;
  background: var(--gold-gradient);
  color: #1A1410;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .2s;
}
.sm-empty-state__btn:hover {
  opacity: .85;
}
