/* SebaChat homepage + product cards (Phase 1, 2026-09-26). Tokens follow design system "sebachat-fashion". */
.sh-home, .sh-card {
  --sh-bg: #F8F7F4; --sh-surface: #FFFFFF; --sh-ink: #111111; --sh-soft: #6F6A64;
  --sh-accent: #F15A3A; --sh-accent2: #C7431F; --sh-border: #E8E5E0; --sh-tint: #FDF0EB;
  --sh-r: 16px; --sh-full: 999px; --sh-gap: 16px;
  --sh-font: "Plus Jakarta Sans", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.sh-home { display: block; background: var(--sh-bg); color: var(--sh-ink); font-family: var(--sh-font); padding: 20px clamp(16px, 4vw, 40px) 8px; }
.sh-home *, .sh-card * { box-sizing: border-box; }
.sh-home a { text-decoration: none; color: inherit; }
.sh-home :focus-visible { outline: 2px solid var(--sh-accent); outline-offset: 2px; }
.sh-block__in, .sh-hero { max-width: 1240px; margin: 0 auto; }

/* header additions */
.seba-nav .seba-nav__combo { color: #F15A3A !important; font-weight: 700; }

/* footer: long links (email address) pushed the page 11px wider than a phone screen */
.seba-footer__col { min-width: 0; }
.seba-footer__col a { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .seba-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .seba-footer__brand { grid-column: 1 / -1; }
}

/* hero */
.sh-slides { position: relative; border-radius: var(--sh-r); overflow: hidden; aspect-ratio: 1600 / 582; max-width: 100%; background: #EFE9E1; }
.sh-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.sh-slide.is-on { opacity: 1; pointer-events: auto; }
.sh-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sh-slide__cta { position: absolute; left: 9.5%; bottom: 14%; background: var(--sh-accent); color: #fff !important; font-weight: 700; font-size: clamp(11px, 1.2vw, 15px); padding: .75em 1.6em; border-radius: var(--sh-full); box-shadow: 0 6px 18px -6px rgba(199,67,31,.55); }
.sh-slide__cta:hover { background: var(--sh-accent2); }
.sh-dots { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; }
.sh-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; background: rgba(17,17,17,.25); padding: 0; transition: width .3s; cursor: pointer; }
.sh-dots button.is-on { width: 24px; background: var(--sh-accent); }
.sh-harrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--sh-ink); font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.sh-harrow--prev { left: 12px; } .sh-harrow--next { right: 12px; }

/* section heads */
.sh-block { margin-top: 44px; }
.sh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sh-head h2 { margin: 0; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--sh-ink); }
.sh-head p { margin: 4px 0 0; color: var(--sh-soft); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; }
.sh-head__r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sh-viewall { font-weight: 700; font-size: 14px; color: var(--sh-accent) !important; padding: 6px 4px; white-space: nowrap; }
.sh-viewall:hover { color: var(--sh-accent2) !important; }
.sh-arr { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--sh-border); background: var(--sh-surface); color: var(--sh-ink); font-size: 20px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0; }
.sh-arr:hover { border-color: var(--sh-ink); }
.sh-arr:disabled { opacity: .35; cursor: default; border-color: var(--sh-border); }

/* departments */
.sh-depts { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sh-gap); }
.sh-dept { background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.sh-dept:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(90,50,30,.35); }
.sh-dept__ph { aspect-ratio: 1; overflow: hidden; background: #EFE9E1; display: block; }
.sh-dept__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.sh-dept:hover .sh-dept__ph img { transform: scale(1.04); }
.sh-dept__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; }
.sh-dept__meta b { font-size: 17px; font-weight: 800; }
.sh-dept__meta span { font-size: 12.5px; font-weight: 700; color: var(--sh-accent); white-space: nowrap; }

/* rails */
.sh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--sh-gap)) / 4); gap: var(--sh-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 4px; }
.sh-rail::-webkit-scrollbar { display: none; }

/* product card */
.sh-card { scroll-snap-align: start; background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .25s; font-family: var(--sh-font); color: var(--sh-ink); }
.sh-card:hover { box-shadow: 0 12px 28px -16px rgba(90,50,30,.4); }
.sh-card a { text-decoration: none; }
.sh-card__ph { position: relative; display: block; aspect-ratio: 1; background: #F1EEEA; overflow: hidden; }
.sh-card__ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .35s ease, transform .6s ease; }
.sh-card__ph img.is-on { opacity: 1; }
.sh-card:hover .sh-card__ph img.is-on { transform: scale(1.03); }
.sh-tag { position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--sh-accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--sh-full); }
.sh-tag--dark { background: var(--sh-ink); }
.sh-pips { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .25s; }
.sh-card:hover .sh-pips, .sh-card:focus-within .sh-pips { opacity: 1; }
.sh-pips i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.65); box-shadow: 0 0 0 .5px rgba(0,0,0,.15); }
.sh-pips i.is-on { background: var(--sh-accent); }
.sh-more { position: absolute; z-index: 2; right: 10px; top: 10px; background: rgba(255,255,255,.92); color: var(--sh-ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: var(--sh-full); transition: opacity .25s; }
.sh-card:hover .sh-more { opacity: 0; }
.sh-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sh-card__name { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--sh-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.sh-stars { display: flex; align-items: center; gap: 6px; margin-top: -2px; }
.sh-stars__s { position: relative; display: inline-block; font-size: 14px; line-height: 1; letter-spacing: 1px; color: #D9D4CE; }
.sh-stars__s b { position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap; color: #F5A623; font-weight: 400; }
.sh-stars small { font-size: 12px; color: var(--sh-soft); }
.sh-price { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.sh-price b { font-size: 16.5px; font-weight: 800; }
.sh-price s { font-size: 13px; color: var(--sh-soft); }
.sh-sold { font-size: 12px; color: var(--sh-soft); }
.sh-swatches { display: flex; align-items: center; gap: 6px; }
.sh-swatches span { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--sh-border); }
.sh-swatches small { font-size: 12px; color: var(--sh-soft); margin-left: 2px; }
.sh-btns { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sh-btns a { display: block; text-align: center; border-radius: var(--sh-full); padding: 9px 6px; font-weight: 700; font-size: 12.5px; line-height: 1.2; white-space: nowrap; color: #fff !important; }
.sh-btns .sh-add { background: var(--sh-ink); }
.sh-btns .sh-add:hover { background: #2c2825; }
.sh-btns .sh-add.loading { opacity: .6; }
.sh-btns .sh-buy { background: var(--sh-accent); }
.sh-btns .sh-buy:hover { background: var(--sh-accent2); }
.sh-btns .added_to_cart { display: none !important; }

/* combo band */
.sh-block--combo .sh-block__in { background: var(--sh-tint); border: 1px solid #F6D6CB; border-radius: var(--sh-r); padding: 24px; }
.sh-block--combo h2 span { color: var(--sh-accent); }
.sh-perk { background: var(--sh-surface); border: 1px solid #F3CFC2; color: var(--sh-accent2); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--sh-full); }
.sh-block--combo .sh-rail { grid-auto-columns: calc((100% - var(--sh-gap)) / 2); }
.sh-block--combo .sh-card { flex-direction: row; }
.sh-block--combo .sh-card__ph { width: 44%; flex-shrink: 0; aspect-ratio: auto; min-height: 220px; }
.sh-block--combo .sh-card__name { -webkit-line-clamp: 3; min-height: 0; font-size: 15px; }

/* shop by category */
.sh-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-tabs button { border: 1px solid var(--sh-border); background: var(--sh-surface); border-radius: var(--sh-full); padding: 8px 18px; font: 700 14px/1.2 var(--sh-font); color: var(--sh-ink); cursor: pointer; }
.sh-tabs button[aria-selected="true"] { background: var(--sh-ink); border-color: var(--sh-ink); color: #fff; }
.sh-subs { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--sh-gap); margin-top: 18px; }
.sh-subs[hidden] { display: none; }
.sh-sub { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.sh-sub__ph { aspect-ratio: 1; border-radius: var(--sh-r); overflow: hidden; background: #EFE9E1; border: 1px solid var(--sh-border); display: block; }
.sh-sub__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
a.sh-sub:hover .sh-sub__ph img { transform: scale(1.05); }
.sh-sub b { font-size: 14px; font-weight: 700; }
.sh-sub span { font-size: 12px; font-weight: 700; color: var(--sh-accent); margin-top: -6px; }
.sh-sub.is-soon .sh-sub__ph img { filter: grayscale(.5); opacity: .75; }
.sh-sub.is-soon span { color: var(--sh-soft); }

/* trust row */
.sh-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sh-gap); }
.sh-trust > div { background: var(--sh-surface); border: 1px solid var(--sh-border); border-radius: var(--sh-r); padding: 16px; display: flex; gap: 12px; align-items: center; }
.sh-trust i { width: 40px; height: 40px; border-radius: 50%; background: var(--sh-tint); color: var(--sh-accent); display: grid; place-items: center; flex-shrink: 0; font-style: normal; font-size: 18px; }
.sh-trust b { display: block; font-size: 14px; }
.sh-trust small { color: var(--sh-soft); font-size: 12.5px; }

/* toast */
.sh-toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: #111; color: #fff; font: 600 14px/1.4 "Plus Jakarta Sans", system-ui, sans-serif; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 9999; max-width: calc(100% - 32px); text-align: center; }
.sh-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sh-toast a { color: #FFB7A6; text-decoration: underline; pointer-events: auto; }

@media (max-width: 1000px) {
  .sh-rail { grid-auto-columns: calc((100% - 2 * var(--sh-gap)) / 3); }
  .sh-subs { grid-template-columns: repeat(3, 1fr); }
  .sh-trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sh-home { padding-top: 12px; }
  .sh-block { margin-top: 32px; }
  .sh-depts { gap: 10px; }
  .sh-dept__meta { flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 10px; }
  .sh-dept__meta b { font-size: 14px; }
  .sh-dept__meta span { font-size: 11px; }
  .sh-rail { grid-auto-columns: calc((100% - 12px) / 2.15); gap: 12px; }
  .sh-card__body { padding: 10px; }
  .sh-btns { gap: 4px; }
  .sh-btns a { font-size: 11.5px; padding: 8px 2px; }
  .sh-pips { opacity: 1; }
  .sh-more, .sh-arr, .sh-harrow { display: none; }
  .sh-block--combo .sh-block__in { padding: 16px; }
  .sh-block--combo .sh-rail { grid-auto-columns: 88%; }
  .sh-block--combo .sh-card__ph { min-height: 180px; }
  .sh-subs { gap: 10px; }
  .sh-trust { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sh-trust > div { flex-direction: column; align-items: flex-start; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-home *, .sh-card * { transition: none !important; scroll-behavior: auto !important; }
}
