/* ==========================================================================
   Components
   Shared, reusable UI pieces. Page-specific components (product gallery,
   checkout stepper) live in their own stylesheet — this file only holds
   things used on more than one page.
   ========================================================================== */

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-secondary), #FF6A00);
  color: #fff;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-secondary-hover), var(--color-secondary));
  box-shadow: 0 10px 22px rgba(var(--color-secondary-rgb), 0.24);
  transform: translateY(-1px);
}

.btn--dark {
  background: var(--color-primary);
  color: #fff;
}
.btn--dark:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-primary);
}

.btn--full { width: 100%; }

/* --------------------------------------------------------------------- */
/* Badge                                                                  */
/* --------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  line-height: 1;
}

/* --------------------------------------------------------------------- */
/* Navbar                                                                 */
/* --------------------------------------------------------------------- */
.navbar-root {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid rgba(223, 231, 238, 0.72);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}

.navbar-root.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  height: var(--header-height);
}

.navbar__logo {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  flex-shrink: 0;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, var(--color-primary) 0%, #ff6a00 45%, var(--color-primary) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: logo-sheen 5s linear infinite;
  transition: transform 0.25s var(--ease-out);
  display: inline-block;
  position: relative; /* same reasoning as .navbar__mobile-toggle above */
  z-index: 1;
}

.navbar__logo:hover {
  transform: scale(1.045);
}

@keyframes logo-sheen {
  to { background-position: -220% center; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar__logo { animation: none; }
}

.navbar__mobile-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: calc(var(--space-2) * -1); /* offsets the added padding so the icon still lines up visually with the content below it */
  color: var(--color-primary);
  position: relative; /* keeps this above .navbar__search.is-active regardless of stacking context */
  z-index: 1;
}

.navbar__mobile-toggle svg {
  width: 24px;
  height: 24px;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-shrink: 0;
}

.navbar__item--mega {
  position: relative;
}

.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  padding-block: var(--space-2);
  position: relative;
}

.navbar__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-out);
}

.navbar__item--mega > .navbar__link[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.navbar__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-secondary);
  transition: width var(--duration-fast) var(--ease-out);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__search {
  position: relative;
  flex: 1;
  max-width: 480px;
  margin-left: auto;
}

.navbar__search-icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  translate: 0 -50%;
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
  pointer-events: none;
}

.navbar__search input {
  width: 100%;
  height: 42px;
  padding-inline: var(--space-7) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-sm);
}

.navbar__search input:focus-visible {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-focus);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.navbar__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  color: var(--color-primary);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.navbar__action:hover {
  background: rgba(var(--color-primary-rgb), 0.06);
}

.navbar__action svg {
  width: 20px;
  height: 20px;
}

.navbar__action .badge {
  position: absolute;
  top: 2px;
  right: 2px;
}

.navbar__action--search-mobile {
  display: none;
}

/* Theme toggle — the sun/moon crossfade+rotate is keyed purely off
   [data-theme="dark"] on <html>; navbar.js only flips that attribute. */
.navbar__theme-icon-wrap {
  position: relative;
  width: 20px;
  height: 20px;
}

.navbar__theme-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--duration-base) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}

.navbar__theme-icon svg {
  width: 20px;
  height: 20px;
}

.navbar__theme-icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.navbar__theme-icon--moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}

[data-theme="dark"] .navbar__theme-icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

[data-theme="dark"] .navbar__theme-icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .navbar__theme-icon { transition: opacity var(--duration-fast) linear; transform: none !important; }
}

/* Marketplace navigation: compact, search-led B2B browsing. */
.marketplace-utility { background: #17202b; color: rgba(255,255,255,.72); font-size: 12px; }
.marketplace-utility__inner, .marketplace-nav__inner { min-height: 34px; display:flex; align-items:center; justify-content:space-between; gap: var(--space-4); }
.marketplace-utility a { color: inherit; margin-left: var(--space-4); }
.navbar__logo span { color: #ff6a00; }
.navbar__search { max-width: 670px; }
.navbar__search input { height: 46px; border: 2px solid #ff6a00; border-radius: 7px 0 0 7px; padding-right: 92px; background:#fff; }
.navbar__search button { position:absolute; right:0; top:0; height:46px; padding:0 18px; border-radius:0 6px 6px 0; background:#ff6a00; color:#fff; font-weight:700; font-size:var(--fs-sm); }
.navbar__actions { gap: var(--space-3); }
.navbar__action { width:44px; height:54px; flex-direction:column; gap:1px; border-radius:0; }
.navbar__action small { font-size:10px; white-space:nowrap; color:var(--color-text-muted); }
.marketplace-nav { border-top:1px solid var(--color-border); border-bottom:1px solid var(--color-border); background:#fff; }
.marketplace-nav__inner { min-height: 44px; }
.marketplace-nav .navbar__nav { height:44px; gap: var(--space-6); }
.marketplace-nav .navbar__link { height:44px; padding:0; font-weight:600; }
.marketplace-nav .navbar__item--mega .navbar__link { color:#18212c; }

[data-theme="dark"] .navbar__search input { background: var(--color-surface); color: var(--color-text); }
[data-theme="dark"] .marketplace-nav { background: var(--color-surface); }
[data-theme="dark"] .marketplace-nav .navbar__item--mega .navbar__link { color: var(--color-text); }

.marketplace-nav__sell {
  color:#d95000; font-size:var(--fs-sm); font-weight:700;
  position:relative; display:inline-flex; align-items:center; gap:6px;
  animation: sell-glow 2.6s ease-in-out infinite;
}
.marketplace-nav__sell::after {
  content:''; position:absolute; left:0; right:0; bottom:-3px; height:2px;
  background:#d95000; transform:scaleX(0); transform-origin:right;
  transition: transform 0.3s var(--ease-out);
}
.marketplace-nav__sell:hover::after { transform:scaleX(1); transform-origin:left; }
.marketplace-nav__sell-arrow { display:inline-block; transition: transform 0.25s var(--ease-out); }
.marketplace-nav__sell:hover .marketplace-nav__sell-arrow { transform: translateX(4px); }

@keyframes sell-glow {
  0%, 100% { text-shadow: 0 0 0 rgba(217, 80, 0, 0); }
  50%      { text-shadow: 0 0 10px rgba(217, 80, 0, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
  .marketplace-nav__sell { animation: none; }
}

/* --------------------------------------------------------------------- */
/* Mega menu                                                              */
/* --------------------------------------------------------------------- */
.mega-menu {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 50%;
  translate: -50% 0;
  width: min(760px, 90vw);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-6);
  animation: fade-in-down var(--duration-base) var(--ease-out);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.mega-menu__heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.mega-menu__list li + li {
  margin-top: var(--space-2);
}

.mega-menu__list a {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.mega-menu__list a:hover {
  color: var(--color-secondary);
}

/* --------------------------------------------------------------------- */
/* Mobile drawer                                                          */
/* --------------------------------------------------------------------- */
.mobile-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-primary-rgb), 0.5);
  z-index: var(--z-overlay);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-surface);
  z-index: var(--z-modal);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  translate: -100% 0;
  transition: translate var(--duration-base) var(--ease-standard);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  translate: 0 0;
}

.mobile-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer__close {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.mobile-drawer__search {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-drawer__search svg {
  position: absolute;
  left: var(--space-3);
  width: 18px;
  height: 18px;
  color: var(--color-text-muted);
}

.mobile-drawer__search input {
  width: 100%;
  height: 42px;
  padding-inline: var(--space-7) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.mobile-drawer__nav a {
  padding-block: var(--space-3);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-drawer__theme-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-3);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  text-align: left;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  margin-top: var(--space-9);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
}

.footer .navbar__logo {
  color: #fff;
}

.footer__tagline {
  margin-top: var(--space-3);
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}

.footer__socials {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.footer__social {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__social:hover {
  background: rgba(255, 255, 255, 0.1);
}

.footer__heading {
  color: #fff;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-4);
}

.footer__list li + li {
  margin-top: var(--space-3);
}

.footer__list a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--duration-fast) var(--ease-out);
}

.footer__list a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom .text-muted {
  color: rgba(255, 255, 255, 0.5);
}

.footer__payments {
  display: flex;
  gap: var(--space-2);
}

.footer__payment-badge {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.7);
}

.footer__payment-badge--soon {
  border-style: dashed;
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------- */
/* Product card                                                           */
/* --------------------------------------------------------------------- */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.product-card:active {
  transform: scale(0.98);
  transition: transform var(--duration-fast) var(--ease-out);
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--color-bg);
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-card__badge {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  color: #fff;
}

.product-card__badge--discount { background: var(--color-danger); }
.product-card__badge--new      { background: var(--color-secondary); }
.product-card__badge--stock    { background: var(--color-text-muted); }

.product-card__wishlist {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.product-card__wishlist:hover {
  transform: scale(1.08);
}

.product-card__wishlist svg {
  width: 16px;
  height: 16px;
}

.product-card__wishlist.is-active {
  color: var(--color-danger);
}

.product-card__wishlist.is-active svg {
  fill: currentColor;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-5);
  flex: 1;
}

.product-card__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  font-family: var(--font-body);
  color: var(--color-text);
}

.product-card__name a:hover {
  color: var(--color-secondary);
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-block: var(--space-1);
}

.product-card__stars {
  color: var(--color-accent);
  font-size: var(--fs-sm);
  letter-spacing: 1px;
}

/* Half-star rating: layers a filled star, clipped to its left half, over
   an empty star — both glyphs are ★/☆ only, so this renders correctly on
   every device font instead of depending on a rarer half-star character. */
.star-half {
  position: relative;
  display: inline-block;
}

.star-half::after {
  content: '★';
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  color: var(--color-accent);
}

.product-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
  margin-bottom: var(--space-3);
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.product-card__old-price {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.product-card__add {
  margin-top: auto;
}

.product-card__add svg {
  width: 16px;
  height: 16px;
}

.product-card__add:disabled {
  background: var(--color-border);
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* --------------------------------------------------------------------- */
/* Quantity selector — used on the product page and cart page             */
/* --------------------------------------------------------------------- */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}

.quantity-selector__btn {
  width: 40px;
  height: 48px;
  font-size: var(--fs-md);
  color: var(--color-primary);
  transition: background-color var(--duration-fast) var(--ease-out);
}

.quantity-selector__btn:hover {
  background: var(--color-bg);
}

.quantity-selector__input {
  width: 48px;
  height: 48px;
  text-align: center;
  border-inline: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  -moz-appearance: textfield;
}

.quantity-selector__input::-webkit-outer-spin-button,
.quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-selector--sm .quantity-selector__btn,
.quantity-selector--sm .quantity-selector__input {
  height: 36px;
  width: 32px;
}

.quantity-selector--sm .quantity-selector__input {
  width: 40px;
}

/* --------------------------------------------------------------------- */
/* Form fields — used by checkout, login, register, and account forms     */
/* --------------------------------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.form-field input,
.form-field select {
  height: 46px;
  padding-inline: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 1px rgba(10, 23, 38, 0.02);
  background: var(--color-surface);
  font-size: var(--fs-sm);
}

.form-field input:focus-visible,
.form-field select:focus-visible {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-focus);
}

.form-field input.is-invalid {
  border-color: var(--color-danger);
}

.field-error {
  min-height: 1em;
  font-size: var(--fs-xs);
  color: var(--color-danger);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.form-checkbox input {
  margin-top: 3px;
  accent-color: var(--color-secondary);
}

/* --------------------------------------------------------------------- */
/* Toast                                                                  */
/* --------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  bottom: var(--space-5);
  right: var(--space-5);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: min(360px, calc(100vw - var(--space-6)));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: fade-in-up var(--duration-base) var(--ease-out);
}

.toast.is-leaving {
  animation: toast-out var(--duration-fast) var(--ease-out) forwards;
}

.toast__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast--success .toast__icon { color: var(--color-success); }
.toast--error   .toast__icon { color: var(--color-danger); }
.toast--info    .toast__icon { color: var(--color-secondary); }

.toast__message {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--color-text);
}

.toast__close {
  flex-shrink: 0;
  font-size: var(--fs-lg);
  line-height: 1;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------- */
/* Empty state — used by wishlist and other list-style pages              */
/* --------------------------------------------------------------------- */
.empty-state {
  text-align: center;
  padding-block: var(--space-9);
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: var(--space-3);
}

.empty-state p {
  margin-bottom: var(--space-6);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------- */
/* Breadcrumb — used by shop, product, cart, checkout, account, wishlist  */
/* --------------------------------------------------------------------- */
.breadcrumb {
  padding-block: var(--space-5);
}

.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: var(--space-2);
  color: var(--color-border);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb li[aria-current="page"] {
  color: var(--color-text);
  font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------- */
/* Card — generic bordered panel, used by help centre and the new         */
/* static info pages (shipping, returns, about, careers, legal).          */
/* --------------------------------------------------------------------- */
.card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.card > summary {
  cursor: pointer;
  list-style: none;
}

.card > summary::-webkit-details-marker { display: none; }

.card > summary::after {
  content: '+';
  float: right;
  color: var(--color-text-muted);
  font-weight: var(--fw-medium);
}

.card[open] > summary::after { content: '\2212'; }

/* --------------------------------------------------------------------- */
/* Static content pages (Shipping Info, Returns & Refunds, FAQs, About,   */
/* Careers, Privacy Policy, Terms of Service)                             */
/* --------------------------------------------------------------------- */
.page-hero {
  padding-block: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.page-hero p.text-muted {
  max-width: 62ch;
  margin-top: var(--space-3);
}

.content-section {
  margin-bottom: var(--space-8);
}

.content-section h2 {
  margin-bottom: var(--space-4);
}

.content-section p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.content-section ul {
  list-style: disc;
  padding-left: 1.4em;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
}

.info-card-grid .card h3 {
  margin-bottom: var(--space-2);
  font-size: var(--fs-md);
}

.info-card-grid .card p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: var(--space-4);
}

.step-list li {
  counter-increment: step;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.step-list li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(var(--color-secondary-rgb), 0.1);
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.step-list li div p {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  margin: 0;
}

.step-list li div strong {
  display: block;
  margin-bottom: var(--space-1);
}

.team-value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
