/* ==========================================================================
   IC Center — design system
   White + turquoise. No navy, no blue, no purple.
   Written as tokens first so dark mode and theming are a variable swap.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   The Cairo @font-face rules live in fonts.css, which the layout links ONLY
   when the .woff2 files are actually present in static/fonts/ (see
   create_app → HAS_CUSTOM_FONT). That keeps a fresh checkout free of 404s
   while the system Arabic stack in --font renders correctly everywhere.
   Drop Cairo-{400,600,700,800}.woff2 into static/fonts/ to activate it.
   ------------------------------------------------------------------------ */
:root {
  /* Brand ---------------------------------------------------------------- */
  --turquoise:       #12B8AE;
  --turquoise-600:   #0FA69D;
  --turquoise-700:   #0C8A83;
  --turquoise-300:   #6ED7D0;
  --turquoise-100:   #CDF0ED;
  --turquoise-50:    #E8F8F7;
  --turquoise-25:    #F4FCFB;

  /* Neutrals — deliberately NEUTRAL grey, zero blue cast ------------------ */
  --ink:             #16191D;
  --ink-2:           #3C4248;
  --ink-3:           #6B7177;
  --ink-4:           #9AA0A6;
  --line:            #E4E7E9;
  --line-2:          #F0F2F3;
  --surface:         #FFFFFF;
  --surface-2:       #FAFBFB;
  --surface-3:       var(--turquoise-50);

  /* Status --------------------------------------------------------------- */
  --success:         #0E9F6E;
  --success-bg:      #E6F6F0;
  --danger:          #D64545;
  --danger-bg:       #FCECEC;
  --warning:         #B4690E;
  --warning-bg:      #FDF3E6;
  --info:            var(--turquoise-700);
  --info-bg:         var(--turquoise-50);

  /* Shape & motion ------------------------------------------------------- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(22,25,29,.05);
  --shadow-sm: 0 2px 8px rgba(22,25,29,.06);
  --shadow-md: 0 6px 20px rgba(22,25,29,.08);
  --shadow-lg: 0 16px 40px rgba(22,25,29,.10);
  --ring: 0 0 0 3px rgba(18,184,174,.28);

  --t-fast: 140ms cubic-bezier(.4,0,.2,1);
  --t-base: 220ms cubic-bezier(.4,0,.2,1);
  --t-slow: 420ms cubic-bezier(.22,1,.36,1);

  --font: "Cairo", "Tajawal", "Segoe UI", "Noto Sans Arabic",
          "Geeza Pro", "Dubai", Tahoma, system-ui, sans-serif;

  --header-h: 68px;
  --container: 1240px;
}

/* --- Dark mode -----------------------------------------------------------
   Turquoise stays the accent; surfaces become neutral charcoal (not navy). */
:root[data-theme="dark"] {
  --ink:        #EEF1F2;
  --ink-2:      #C3C9CD;
  --ink-3:      #969CA2;
  --ink-4:      #71777D;
  --line:       #2C3034;
  --line-2:     #23262A;
  --surface:    #16191B;
  --surface-2:  #1C2022;
  --surface-3:  #16302F;

  --turquoise-50:  #13302E;
  --turquoise-100: #17423F;
  --turquoise-700: #4FCFC6;

  --success-bg: #14312A;
  --danger-bg:  #35201F;
  --warning-bg: #332618;
  --info-bg:    #13302E;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.35);
  --shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.55);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

h1,h2,h3,h4,h5 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
a  { color: var(--turquoise-700); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--turquoise); }
img, svg, video { max-width: 100%; display: block; }
small { font-size: .8125rem; }

/* Numbers and prices read left-to-right even inside RTL text. */
.num, .price, bdi, time { unicode-bidi: plaintext; }

::selection { background: var(--turquoise-100); color: var(--ink); }

/* Visible focus for keyboard users only. */
:focus-visible {
  outline: 2px solid var(--turquoise);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 200;
  background: var(--turquoise); color: #fff; padding: .6rem 1rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm); transition: top var(--t-fast);
}
.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: 20px;
}
@media (max-width: 640px) { .container { padding-inline: 14px; } }

.section { padding-block: 44px; }
.section--tight { padding-block: 28px; }
.section--tint { background: var(--surface-3); }
@media (max-width: 640px) { .section { padding-block: 30px; } }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 20px; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--ink-3); font-size: .9rem; margin: 2px 0 0; }
.section-head .link {
  font-weight: 600; font-size: .9rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .35rem;
}
.section-head .link svg { transition: transform var(--t-fast); }
.section-head .link:hover svg { transform: translateX(-3px); }

.grid { display: grid; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--turquoise);
  --btn-fg: #fff;
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .66rem 1.25rem;
  font: inherit; font-weight: 600; font-size: .925rem;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-md);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
}
.btn:hover { --btn-bg: var(--turquoise-600); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--ring); outline: none; }
.btn[disabled], .btn.is-disabled {
  opacity: .5; cursor: not-allowed; transform: none;
}

.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--turquoise-700); --btn-bd: var(--turquoise-300);
}
.btn--ghost:hover { --btn-bg: var(--turquoise-50); --btn-fg: var(--turquoise-700); }

.btn--quiet {
  --btn-bg: transparent; --btn-fg: var(--ink-2); --btn-bd: var(--line);
}
.btn--quiet:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); }

.btn--soft { --btn-bg: var(--turquoise-50); --btn-fg: var(--turquoise-700); }
.btn--soft:hover { --btn-bg: var(--turquoise-100); --btn-fg: var(--turquoise-700); }

.btn--danger { --btn-bg: var(--danger); }
.btn--danger:hover { --btn-bg: #BF3A3A; }
.btn--danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: var(--danger); }
.btn--danger-ghost:hover { --btn-bg: var(--danger-bg); --btn-fg: var(--danger); }

.btn--lg { padding: .85rem 1.6rem; font-size: 1rem; border-radius: var(--r-md); }
.btn--sm { padding: .4rem .8rem; font-size: .825rem; border-radius: var(--r-sm); }
.btn--block { width: 100%; }
.btn--icon { padding: .5rem; aspect-ratio: 1; border-radius: var(--r-sm); }

/* ==========================================================================
   Forms
   ========================================================================== */
.field { display: block; margin-bottom: 1rem; }
.field > label, .label {
  display: block; font-weight: 600; font-size: .875rem;
  margin-bottom: .4rem; color: var(--ink-2);
}
.field .hint { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; }
.field .req { color: var(--danger); }

.input, .select, .textarea {
  width: 100%; padding: .66rem .85rem;
  font: inherit; font-size: .925rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--turquoise-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--turquoise); box-shadow: var(--ring);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.select {
  appearance: none; padding-inline-end: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7177' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left .8rem center;
}
.input[aria-invalid="true"], .textarea[aria-invalid="true"] {
  border-color: var(--danger);
}

.check {
  display: inline-flex; align-items: center; gap: .55rem;
  cursor: pointer; font-size: .9rem; user-select: none;
}
.check input[type="checkbox"], .check input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--turquoise);
  cursor: pointer; flex-shrink: 0; margin: 0;
}

.form-grid { display: grid; gap: 0 16px; grid-template-columns: repeat(2, 1fr); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Cards & surfaces
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.card--pad { padding: 20px; }
.card--hover { transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base); }
.card--hover:hover {
  border-color: var(--turquoise-300); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px;
}
.panel > h3, .panel > h2 { margin-top: 0; }
.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin: -20px -20px 18px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.panel__head h3 { margin: 0; font-size: 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .55rem; font-size: .75rem; font-weight: 700;
  border-radius: var(--r-sm); background: var(--turquoise-50);
  color: var(--turquoise-700); white-space: nowrap;
}
.badge--sale    { background: var(--danger-bg);  color: var(--danger); }
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--warn    { background: var(--warning-bg); color: var(--warning); }
.badge--muted   { background: var(--line-2);     color: var(--ink-3); }
.badge--solid   { background: var(--turquoise);  color: #fff; }

/* ==========================================================================
   Header
   ========================================================================== */
.announce {
  background: var(--turquoise); color: #fff;
  font-size: .85rem; font-weight: 600; text-align: center;
  padding: .5rem 1rem;
}
.announce a { color: #fff; text-decoration: underline; }

.header {
  position: sticky; top: 0; z-index: 90;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex; align-items: center; gap: 14px;
  height: var(--header-h);
}
.logo {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.15rem; color: var(--ink);
  letter-spacing: -.02em; flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--turquoise); color: #fff;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800;
  letter-spacing: 0;
}
.logo em { font-style: normal; color: var(--turquoise); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: .45rem .7rem; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav a:hover, .nav a.is-active { background: var(--turquoise-50); color: var(--turquoise-700); }

.header__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }

.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: transparent; border: none; color: var(--ink-2);
  cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.icon-btn:hover { background: var(--turquoise-50); color: var(--turquoise-700); }
.icon-btn__count {
  position: absolute; top: 3px; inset-inline-end: 3px;
  min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--turquoise); color: #fff;
  font-size: .68rem; font-weight: 800; line-height: 18px; text-align: center;
  border: 2px solid var(--surface); box-sizing: content-box;
}
.icon-btn__count[hidden] { display: none; }

/* --- Search --------------------------------------------------------------- */
.search { position: relative; flex: 1; max-width: 460px; }
.search__input {
  width: 100%; padding: .55rem 2.4rem .55rem .85rem;
  font: inherit; font-size: .9rem;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); color: var(--ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.search__input:focus {
  outline: none; background: var(--surface);
  border-color: var(--turquoise); box-shadow: var(--ring);
}
.search__btn {
  position: absolute; inset-inline-start: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  background: transparent; border: none; color: var(--ink-3); cursor: pointer;
  border-radius: var(--r-pill);
}
.search__btn:hover { color: var(--turquoise-700); }

.suggest {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 100;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  overflow: hidden; max-height: 420px; overflow-y: auto;
}
.suggest[hidden] { display: none; }
.suggest__item {
  display: flex; align-items: center; gap: .7rem;
  padding: .6rem .8rem; cursor: pointer; border: none; width: 100%;
  background: transparent; text-align: start; font: inherit; color: var(--ink);
  transition: background var(--t-fast);
}
.suggest__item:hover, .suggest__item.is-active { background: var(--turquoise-50); }
.suggest__item img, .suggest__ph {
  width: 42px; height: 42px; object-fit: contain; border-radius: var(--r-sm);
  background: var(--surface-2); flex-shrink: 0;
}
.suggest__name { font-weight: 600; font-size: .875rem; line-height: 1.4; }
.suggest__meta { font-size: .78rem; color: var(--ink-3); }
.suggest__price { margin-inline-start: auto; font-weight: 700; color: var(--turquoise-700); font-size: .85rem; }
.suggest__empty { padding: 1rem; text-align: center; color: var(--ink-3); font-size: .875rem; }

/* --- Mobile nav ------------------------------------------------------------ */
.burger { display: none; }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 85;
  background: var(--surface); padding: 20px;
  overflow-y: auto; display: none;
}
.mobile-nav.is-open { display: block; animation: slideDown var(--t-base); }
.mobile-nav a {
  display: block; padding: .8rem .6rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.mobile-nav a:hover { color: var(--turquoise-700); }

@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (max-width: 920px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 560px) {
  .header__bar { gap: 8px; }
  .logo span.logo__text { display: none; }
  .search { max-width: none; }
}

/* ==========================================================================
   Category cards (square)
   ========================================================================== */
.cat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 380px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  display: block; text-align: center; color: var(--ink);
  border-radius: var(--r-lg); padding: 10px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.cat-card:hover {
  color: var(--ink); border-color: var(--turquoise-300);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.cat-card__img {
  aspect-ratio: 1 / 1; width: 100%; border-radius: var(--r-md);
  background: var(--surface-3); overflow: hidden;
  display: grid; place-items: center; margin-bottom: 8px;
}
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__img svg { width: 38%; height: 38%; color: var(--turquoise); opacity: .75; }
.cat-card__title { font-weight: 700; font-size: .875rem; line-height: 1.4; }
.cat-card__sub { font-size: .75rem; color: var(--ink-3); }

/* ==========================================================================
   Carousel (shared by banners, products, brands)
   ========================================================================== */
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; }

.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), color var(--t-fast), opacity var(--t-fast);
}
.carousel__nav:hover { background: var(--turquoise); color: #fff; border-color: var(--turquoise); }
.carousel__nav--prev { inset-inline-end: -8px; }
.carousel__nav--next { inset-inline-start: -8px; }
.carousel__nav[disabled] { opacity: .3; cursor: default; }
@media (max-width: 920px) { .carousel__nav { display: none; } }

/* --- Hero banner ----------------------------------------------------------
   Fixed aspect-ratio box, so images loading late cannot shift the page (CLS). */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-3); }
.hero__viewport { position: relative; aspect-ratio: 21 / 8; }
@media (max-width: 900px) { .hero__viewport { aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .hero__viewport { aspect-ratio: 4 / 3; } }

.hero__slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(22,25,29,.62) 0%, rgba(22,25,29,.18) 55%, transparent 100%);
  display: flex; align-items: center;
}
.hero__content { padding: clamp(18px, 4vw, 54px); max-width: 620px; color: #fff; }
.hero__content h2 {
  color: #fff; font-size: clamp(1.25rem, 3.4vw, 2.4rem);
  margin-bottom: .35rem; text-shadow: 0 2px 14px rgba(0,0,0,.3);
}
.hero__content p {
  color: rgba(255,255,255,.92); font-size: clamp(.85rem, 1.6vw, 1.05rem);
  margin-bottom: 1rem; text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
@media (max-width: 560px) {
  .hero__content p { display: none; }
  .hero__content { padding: 16px; }
}

.hero__dots {
  position: absolute; bottom: 14px; inset-inline: 0; z-index: 4;
  display: flex; justify-content: center; gap: 7px;
}
.hero__dot {
  width: 8px; height: 8px; border-radius: var(--r-pill); border: none;
  background: rgba(255,255,255,.5); cursor: pointer; padding: 0;
  transition: width var(--t-base), background var(--t-base);
}
.hero__dot.is-active { width: 26px; background: #fff; }

/* ==========================================================================
   Product card
   ========================================================================== */
.product-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
}
@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

.pcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.pcard:hover { border-color: var(--turquoise-300); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.carousel__track .pcard { width: 228px; }
@media (max-width: 640px) { .carousel__track .pcard { width: 164px; } }

.pcard__media {
  position: relative; aspect-ratio: 1 / 1;
  background: var(--surface-2); overflow: hidden; display: block;
}
.pcard__media img {
  width: 100%; height: 100%; object-fit: contain; padding: 10px;
  transition: transform var(--t-slow);
}
.pcard:hover .pcard__media img { transform: scale(1.045); }
.pcard__media .ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ink-4); }
.pcard__media .ph svg { width: 34%; height: 34%; }

.pcard__flags {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start;
}
.pcard__body { padding: 11px 12px 13px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.pcard__brand {
  font-size: .72rem; font-weight: 700; color: var(--turquoise-700);
  text-transform: uppercase; letter-spacing: .03em;
}
.pcard__name {
  font-size: .875rem; font-weight: 600; line-height: 1.45; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.5em;
}
.pcard:hover .pcard__name { color: var(--turquoise-700); }
.pcard__price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin-top: 4px; }
.pcard__now { font-size: 1rem; font-weight: 800; color: var(--ink); }
.pcard__was { font-size: .8rem; color: var(--ink-4); text-decoration: line-through; }
.pcard__stock { font-size: .75rem; font-weight: 600; margin-top: 2px; }
.pcard__stock--in  { color: var(--success); }
.pcard__stock--low { color: var(--warning); }
.pcard__stock--out { color: var(--ink-4); }
.pcard__actions { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; }
.pcard__actions .btn { flex: 1; }

/* ==========================================================================
   Brand strip
   ========================================================================== */
.brand-card {
  width: 150px; padding: 16px 12px; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--ink-2);
  transition: border-color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
}
.brand-card:hover {
  border-color: var(--turquoise-300); box-shadow: var(--shadow-sm);
  transform: translateY(-2px); color: var(--turquoise-700);
}
.brand-card__logo {
  height: 46px; display: grid; place-items: center; margin-bottom: 8px;
}
.brand-card__logo img { max-height: 46px; width: auto; object-fit: contain; }
.brand-card__logo .ph {
  font-weight: 800; font-size: 1.15rem; color: var(--turquoise);
  letter-spacing: -.02em;
}
.brand-card__name { font-size: .825rem; font-weight: 700; }

/* ==========================================================================
   Promo cards
   ========================================================================== */
.promo-grid { display: grid; gap: 16px; }
.promo-grid--one   { grid-template-columns: 1fr; }
.promo-grid--two   { grid-template-columns: repeat(2, 1fr); }
.promo-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) {
  .promo-grid--two, .promo-grid--three { grid-template-columns: 1fr; }
}

.promo {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface-3);
  min-height: 170px; color: var(--ink);
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.promo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__body {
  position: relative; z-index: 2; padding: 22px;
  background: linear-gradient(to left, rgba(22,25,29,.58), transparent 70%);
  min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
}
.promo__body h3 { color: #fff; margin: 0 0 .2rem; font-size: 1.05rem; }
.promo__body p  { color: rgba(255,255,255,.9); margin: 0; font-size: .85rem; }
.promo--plain .promo__body { background: none; color: var(--ink); }
.promo--plain .promo__body h3 { color: var(--ink); }
.promo--plain .promo__body p  { color: var(--ink-3); }
.promo__badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3;
}

/* ==========================================================================
   News cards
   ========================================================================== */
.news-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.news-card { display: flex; flex-direction: column; height: 100%; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-card__media { aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__body { padding: 16px; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.news-card__body h3 { margin: 0; font-size: 1rem; line-height: 1.5; }
.news-card:hover .news-card__body h3 { color: var(--turquoise-700); }
.news-card__sum {
  color: var(--ink-3); font-size: .875rem; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__date { font-size: .78rem; color: var(--ink-4); margin-top: auto; padding-top: .5rem; }

/* ==========================================================================
   Listing page (filters + results)
   ========================================================================== */
.listing { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
@media (max-width: 920px) { .listing { grid-template-columns: 1fr; } }

.filters {
  position: sticky; top: calc(var(--header-h) + 14px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); overflow: hidden;
}
@media (max-width: 920px) {
  .filters { position: static; }
  .filters[hidden] { display: none; }
}
.filters__head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: var(--surface-2); display: flex; align-items: center; justify-content: space-between;
}
.filters__head h3 { margin: 0; font-size: .95rem; }
.fgroup { border-bottom: 1px solid var(--line-2); }
.fgroup:last-child { border-bottom: none; }
.fgroup > summary {
  padding: 12px 16px; font-weight: 700; font-size: .875rem; cursor: pointer;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after {
  content: ""; width: 8px; height: 8px; border-inline-end: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform var(--t-fast); margin-top: -4px;
}
.fgroup[open] > summary::after { transform: rotate(-135deg); margin-top: 2px; }
.fgroup__body { padding: 0 16px 14px; display: flex; flex-direction: column; gap: .45rem; }
.fgroup__body .check { font-size: .85rem; }
.fcount { color: var(--ink-4); font-size: .78rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .55rem; border: 1px solid var(--line);
  border-radius: var(--r-pill); font-size: .8rem; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.swatch:hover { border-color: var(--turquoise-300); }
.swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.swatch:has(input:checked) { border-color: var(--turquoise); background: var(--turquoise-50); }
.swatch__dot { width: 13px; height: 13px; border-radius: var(--r-pill); border: 1px solid var(--line); }

.toolbar {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar__count { color: var(--ink-3); font-size: .875rem; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .25rem .6rem; background: var(--turquoise-50); color: var(--turquoise-700);
  border-radius: var(--r-pill); font-size: .8rem; font-weight: 600;
}
.chip a { color: inherit; display: grid; place-items: center; opacity: .7; }
.chip a:hover { opacity: 1; }

/* ==========================================================================
   Product detail
   ========================================================================== */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 900px) { .pdp { grid-template-columns: 1fr; gap: 22px; } }

.gallery__main {
  aspect-ratio: 1 / 1; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: grid; place-items: center;
}
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  width: 66px; height: 66px; flex-shrink: 0; padding: 4px;
  background: var(--surface-2); border: 2px solid var(--line);
  border-radius: var(--r-sm); cursor: pointer; overflow: hidden;
  transition: border-color var(--t-fast);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-active { border-color: var(--turquoise); }
.gallery__thumb:hover { border-color: var(--turquoise-300); }

.pdp__brand { font-size: .82rem; font-weight: 700; color: var(--turquoise-700); text-transform: uppercase; }
.pdp__title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin: .25rem 0 .5rem; }
.pdp__meta { display: flex; gap: .9rem; flex-wrap: wrap; color: var(--ink-3); font-size: .82rem; margin-bottom: 1rem; }

.pdp__pricebox {
  background: var(--surface-3); border-radius: var(--r-lg);
  padding: 16px 18px; margin-bottom: 1.1rem;
}
.pdp__now { font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.pdp__was { font-size: 1rem; color: var(--ink-4); text-decoration: line-through; margin-inline-start: .6rem; }
.pdp__save { font-size: .85rem; color: var(--success); font-weight: 700; margin-top: .2rem; }

.optgroup { margin-bottom: 1.1rem; }
.optgroup__label { font-weight: 700; font-size: .875rem; margin-bottom: .5rem; }
.optgroup__label span { color: var(--ink-3); font-weight: 500; }
.optlist { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem; border: 1.5px solid var(--line);
  border-radius: var(--r-md); font-size: .875rem; font-weight: 600;
  cursor: pointer; background: var(--surface);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt:hover { border-color: var(--turquoise-300); }
.opt:has(input:checked) {
  border-color: var(--turquoise); background: var(--turquoise-50); color: var(--turquoise-700);
}
.opt.is-unavailable { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.opt__dot { width: 15px; height: 15px; border-radius: var(--r-pill); border: 1px solid var(--line); }

.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.qty button {
  width: 38px; height: 40px; border: none; background: var(--surface);
  color: var(--ink-2); font-size: 1.1rem; cursor: pointer; transition: background var(--t-fast);
}
.qty button:hover:not([disabled]) { background: var(--turquoise-50); color: var(--turquoise-700); }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty input {
  width: 48px; height: 40px; border: none; text-align: center;
  font: inherit; font-weight: 700; background: var(--surface); color: var(--ink);
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td {
  padding: .65rem .8rem; text-align: start; border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.spec-table th { width: 38%; color: var(--ink-3); font-weight: 600; background: var(--surface-2); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  padding: .7rem 1.1rem; border: none; background: transparent; font: inherit;
  font-weight: 700; font-size: .9rem; color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.tabs button:hover { color: var(--ink); }
.tabs button.is-active { color: var(--turquoise-700); border-bottom-color: var(--turquoise); }
.tabpanel[hidden] { display: none; }

/* ==========================================================================
   Add-to-cart confirmation panel
   Two choices only: continue shopping, or view cart. Never auto-redirects.
   ========================================================================== */
.atc-backdrop {
  position: fixed; inset: 0; z-index: 140; background: rgba(22,25,29,.4);
  display: grid; place-items: center; padding: 16px;
  animation: fadeIn var(--t-fast);
}
.atc-backdrop[hidden] { display: none; }
.atc {
  background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 410px;
  padding: 24px; text-align: center; animation: popIn var(--t-base);
}
.atc__check {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: var(--r-pill);
  background: var(--success-bg); color: var(--success);
  display: grid; place-items: center;
}
.atc__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .2rem; }
.atc__item {
  display: flex; align-items: center; gap: .7rem; text-align: start;
  background: var(--surface-2); border-radius: var(--r-md);
  padding: 10px; margin: 14px 0;
}
.atc__item img, .atc__item .ph {
  width: 50px; height: 50px; object-fit: contain; border-radius: var(--r-sm);
  background: var(--surface); flex-shrink: 0;
}
.atc__name { font-weight: 600; font-size: .875rem; line-height: 1.4; }
.atc__sub  { font-size: .8rem; color: var(--ink-3); }
.atc__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 400px) { .atc__actions { grid-template-columns: 1fr; } }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn  { from { opacity: 0; transform: scale(.95) translateY(8px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Cart & checkout
   ========================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-line {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: center;
}
.cart-line:last-child { border-bottom: none; }
.cart-line__media {
  width: 88px; height: 88px; border-radius: var(--r-md);
  background: var(--surface-2); overflow: hidden; display: grid; place-items: center;
}
.cart-line__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-line__name { font-weight: 600; font-size: .925rem; line-height: 1.5; }
.cart-line__variant { font-size: .82rem; color: var(--ink-3); }
.cart-line__unit { font-size: .82rem; color: var(--ink-3); margin-top: .2rem; }
.cart-line__total { font-weight: 800; white-space: nowrap; }
.cart-line__controls { display: flex; align-items: center; gap: .6rem; margin-top: .5rem; }
.cart-line.is-unavailable { opacity: .62; }
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 68px 1fr; }
  .cart-line__media { width: 68px; height: 68px; }
  .cart-line__total { grid-column: 2; text-align: start; }
}

.summary { position: sticky; top: calc(var(--header-h) + 14px); }
.summary__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; font-size: .925rem;
}
.summary__row--total {
  border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .8rem;
  font-size: 1.15rem; font-weight: 800;
}
.summary__row .muted { color: var(--ink-3); }

.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step {
  display: flex; align-items: center; gap: .5rem; font-size: .85rem;
  color: var(--ink-4); font-weight: 600;
}
.step__num {
  width: 24px; height: 24px; border-radius: var(--r-pill);
  background: var(--line-2); color: var(--ink-3);
  display: grid; place-items: center; font-size: .78rem; font-weight: 800;
}
.step.is-active { color: var(--turquoise-700); }
.step.is-active .step__num { background: var(--turquoise); color: #fff; }
.step.is-done .step__num { background: var(--success-bg); color: var(--success); }

/* ==========================================================================
   Account
   ========================================================================== */
.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
@media (max-width: 820px) { .account-layout { grid-template-columns: 1fr; } }

.account-nav { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.account-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem 1rem; font-weight: 600; font-size: .9rem; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); transition: background var(--t-fast), color var(--t-fast);
}
.account-nav a:last-child { border-bottom: none; }
.account-nav a:hover { background: var(--surface-2); color: var(--ink); }
.account-nav a.is-active {
  background: var(--turquoise-50); color: var(--turquoise-700);
  box-shadow: inset 3px 0 0 var(--turquoise);
}
:root[dir="rtl"] .account-nav a.is-active { box-shadow: inset -3px 0 0 var(--turquoise); }

.avatar {
  width: 88px; height: 88px; border-radius: var(--r-pill);
  background: var(--turquoise-50); color: var(--turquoise-700);
  display: grid; place-items: center; font-size: 2rem; font-weight: 800;
  overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; background: var(--surface);
}
.stat__label { font-size: .8rem; color: var(--ink-3); font-weight: 600; }
.stat__value { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-top: .2rem; }
.stat__meta  { font-size: .78rem; color: var(--ink-4); }
.stat--accent { background: var(--surface-3); border-color: var(--turquoise-100); }
.stat--accent .stat__value { color: var(--turquoise-700); }

/* ==========================================================================
   Wheel of fortune
   ========================================================================== */
.wheel-wrap { display: grid; place-items: center; gap: 22px; }
.wheel-stage { position: relative; width: min(420px, 88vw); aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; transition: transform 4.6s cubic-bezier(.17,.67,.17,1); }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; z-index: 3;
  border-inline: 15px solid transparent; border-top: 28px solid var(--turquoise);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.wheel-hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 64px; height: 64px; border-radius: var(--r-pill);
  background: var(--surface); border: 4px solid var(--turquoise);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  color: var(--turquoise-700); z-index: 2; box-shadow: var(--shadow-md);
}
.wheel-result {
  text-align: center; padding: 18px 22px; border-radius: var(--r-lg);
  background: var(--success-bg); color: var(--success); font-weight: 700;
  animation: popIn var(--t-base);
}
.wheel-result--none { background: var(--surface-2); color: var(--ink-2); }

/* ==========================================================================
   Tables (admin)
   ========================================================================== */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: .875rem; min-width: 620px; }
.table th, .table td { padding: .7rem .85rem; text-align: start; border-bottom: 1px solid var(--line-2); }
.table thead th {
  background: var(--surface-2); font-weight: 700; font-size: .8rem;
  color: var(--ink-2); white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
.table tbody tr:hover { background: var(--turquoise-25); }
:root[data-theme="dark"] .table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: none; }
.table .num { text-align: start; font-variant-numeric: tabular-nums; }
.table__thumb {
  width: 42px; height: 42px; object-fit: contain; border-radius: var(--r-sm);
  background: var(--surface-2);
}

/* ==========================================================================
   Flash messages, empty states, pagination
   ========================================================================== */
.flashes { position: fixed; top: calc(var(--header-h) + 12px); inset-inline: 0; z-index: 130; pointer-events: none; }
.flash {
  max-width: 540px; margin: 0 auto 8px; padding: .75rem 1rem;
  border-radius: var(--r-md); font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-md); pointer-events: auto;
  display: flex; align-items: center; gap: .6rem;
  animation: slideDown var(--t-base);
  background: var(--surface); border: 1px solid var(--line);
}
.flash--success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.flash--error   { background: var(--danger-bg);  color: var(--danger);  border-color: transparent; }
.flash--info    { background: var(--info-bg);    color: var(--info);    border-color: transparent; }
.flash__x { margin-inline-start: auto; background: none; border: none; color: inherit; cursor: pointer; opacity: .6; }
.flash__x:hover { opacity: 1; }

.empty { text-align: center; padding: 54px 20px; color: var(--ink-3); }
.empty svg { width: 58px; height: 58px; margin: 0 auto 14px; color: var(--turquoise-300); }
.empty h3 { color: var(--ink); margin-bottom: .35rem; }
.empty p { margin-bottom: 1.1rem; }

.notice {
  padding: .85rem 1rem; border-radius: var(--r-md); font-size: .875rem;
  border: 1px solid var(--line); background: var(--surface-2);
  display: flex; gap: .6rem; align-items: flex-start;
}
.notice--warn  { background: var(--warning-bg); border-color: transparent; color: var(--warning); }
.notice--info  { background: var(--info-bg);    border-color: transparent; color: var(--info); }
.notice--error { background: var(--danger-bg);  border-color: transparent; color: var(--danger); }
.notice svg { flex-shrink: 0; margin-top: 2px; }
.notice strong { display: block; }

.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 30px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 .6rem;
  display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--ink-2);
  transition: all var(--t-fast);
}
.pagination a:hover { border-color: var(--turquoise); color: var(--turquoise-700); background: var(--turquoise-50); }
.pagination .is-current { background: var(--turquoise); color: #fff; border-color: var(--turquoise); }
.pagination .is-gap { border: none; }

.breadcrumb { display: flex; gap: .4rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-4); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--turquoise-700); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--surface-2); border-top: 1px solid var(--line); margin-top: 56px; }
.footer__grid {
  display: grid; gap: 30px; padding-block: 44px;
  grid-template-columns: 1.6fr repeat(4, 1fr);
}
@media (max-width: 920px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: .9rem; margin-bottom: .8rem; color: var(--ink); }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer a { color: var(--ink-3); font-size: .875rem; }
.footer a:hover { color: var(--turquoise-700); }
.footer__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: 1.05rem; color: var(--turquoise-700);
  direction: ltr;
}
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-2);
  transition: all var(--t-fast);
}
.footer__social a:hover { background: var(--turquoise); color: #fff; border-color: var(--turquoise); }
.footer__bottom {
  border-top: 1px solid var(--line); padding-block: 18px;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-4);
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.muted { color: var(--ink-3); }
.small { font-size: .82rem; }
.strong { font-weight: 700; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: .5rem; } .mb-1 { margin-bottom: .5rem; }
.mt-2 { margin-top: 1rem; } .mb-2 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mb-3 { margin-bottom: 1.5rem; }
.hide { display: none !important; }
@media (max-width: 640px) { .hide-sm { display: none !important; } }
@media (min-width: 921px) { .show-md { display: none !important; } }

.prose { line-height: 1.85; }
.prose h2, .prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose img { border-radius: var(--r-md); margin-block: 1em; }

.skeleton {
  background: linear-gradient(90deg, var(--line-2) 25%, var(--surface-2) 50%, var(--line-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.spinner {
  width: 17px; height: 17px; border: 2px solid currentColor;
  border-top-color: transparent; border-radius: var(--r-pill);
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Print: orders and invoices should print cleanly. */
@media print {
  .header, .footer, .flashes, .no-print, .atc-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .panel { border-color: #ccc; box-shadow: none; }
}


/* Uploaded store logo. Height is fixed so the header bar never jumps; width
   follows the image's own ratio, capped so a very wide logo cannot push the
   search box off a phone screen. */
.logo__img {
  height: 40px; width: auto; max-width: 190px;
  object-fit: contain; display: block;
}
@media (max-width: 640px) { .logo__img { height: 34px; max-width: 132px; } }
.logo-preview {
  display: inline-flex; align-items: center; padding: 8px 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.logo-preview img { max-width: 220px; height: 46px; object-fit: contain; }
