/* Kiswani Mix — customer storefront */

:root {
  --st-red: #8a151b;
  --st-red-dark: #5c0d12;
  --st-gold: #c4954a;
  --st-cream: #f7f2f0;
  --st-surface: #ffffff;
  --st-ink: #1c1212;
  --st-muted: #6b5555;
  --st-line: #ead9d9;
  --st-shadow: 0 18px 40px rgba(92, 13, 18, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

html[lang="ar"] {
  --font-body: "Cairo", "DM Sans", sans-serif;
}

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

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--st-ink);
  background: #f6f1ee;
}

a {
  color: var(--st-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.st-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 252, 250, 0.94);
  border-bottom: 1px solid rgba(138, 21, 27, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.st-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.st-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--st-ink);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
}

.st-brand:hover {
  text-decoration: none;
}

.st-brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 149, 74, 0.45);
  background: #fff;
  flex-shrink: 0;
}

.st-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.st-brand-text strong {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.st-brand-text small {
  font-size: 0.72rem;
  color: var(--st-muted);
  font-weight: 500;
}

.st-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.st-nav a {
  position: relative;
  color: var(--st-ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.st-nav a:hover {
  color: var(--st-red);
  text-decoration: none;
  background: rgba(138, 21, 27, 0.05);
}

.st-nav a.is-active {
  color: var(--st-red-dark);
  background: rgba(138, 21, 27, 0.08);
}

.st-nav-mobile-extra {
  display: none;
}

.st-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  margin-inline-start: auto;
}

.st-header-actions a {
  color: var(--st-ink);
  font-weight: 600;
  text-decoration: none;
}

.st-lang {
  display: inline-flex;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.st-lang button {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
  color: var(--st-muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
}

.st-lang button.active {
  background: var(--st-red);
  color: #fff;
}

.st-cart-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--st-line);
  color: var(--st-red-dark);
  text-decoration: none;
}

.st-cart-btn:hover {
  border-color: #d7b4b4;
  background: #fff8f6;
  text-decoration: none;
}

.st-cart-btn em {
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  font-style: normal;
  min-width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  background: var(--st-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  padding: 0 0.25rem;
  border: 2px solid #fff;
}

.st-login-btn {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--st-red);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

.st-login-btn:hover {
  background: var(--st-red-dark);
}

.st-user-menu {
  position: relative;
  z-index: 60;
}

.st-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 42px;
  padding: 0 0.55rem 0 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--st-ink);
}

.st-user-trigger:hover,
.st-user-menu.is-open .st-user-trigger {
  border-color: #d7b4b4;
  background: #fff8f6;
}

.st-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--st-red), var(--st-red-dark));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.st-user-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
}

.st-chevron {
  opacity: 0.55;
}

.st-user-dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  /* Header actions stay on the physical right even in RTL, so anchor physically */
  right: 0;
  left: auto;
  width: max-content;
  min-width: 11rem;
  max-width: min(15rem, calc(100vw - 1.25rem));
  background: #fff;
  border: 1px solid rgba(138, 21, 27, 0.12);
  border-radius: 14px;
  box-shadow:
    0 4px 10px rgba(28, 18, 18, 0.06),
    0 18px 36px rgba(28, 18, 18, 0.16);
  padding: 0.35rem;
  z-index: 70;
  display: none;
  gap: 0.05rem;
}

.st-user-menu.is-open .st-user-dropdown {
  display: grid;
}

.st-user-dropdown[hidden] {
  display: none !important;
}

.st-user-dropdown a,
.st-user-dropdown button {
  display: block;
  width: 100%;
  text-align: start;
  border: 0;
  background: transparent;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  color: var(--st-ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.st-user-dropdown a:hover,
.st-user-dropdown button:hover {
  background: #fff4ef;
  color: var(--st-red-dark);
  text-decoration: none;
}

.st-user-dropdown form {
  margin: 0;
  padding-top: 0.3rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--st-line);
}

.st-user-dropdown form button {
  color: #8a3038;
}

.st-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--st-line);
  background: #fff;
  padding: 0;
  cursor: pointer;
  place-items: center;
  gap: 4px;
  flex-direction: column;
}

.st-menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--st-red-dark);
  border-radius: 2px;
}

.st-inline-form {
  display: inline;
}

.st-link-btn {
  border: 0;
  background: none;
  color: var(--st-red);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.st-link-btn:hover {
  text-decoration: underline;
}

/* Messages */
.st-messages {
  max-width: 1180px;
  margin: 0.75rem auto 0;
  padding: 0 1.25rem;
  display: grid;
  gap: 0.5rem;
}

.st-flash {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--st-line);
}

.st-flash-success { border-color: #b7d7b0; background: #f3fbf1; }
.st-flash-error,
.st-flash-error ul { border-color: #e4b4b4; background: #fff5f5; color: var(--st-red-dark); }
.st-flash-info { border-color: #d8c8a8; background: #fffaf0; }

.st-field-error,
.st-field-error ul {
  color: var(--st-red);
  font-size: 0.9rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

/* ========== Home page ========== */
.st-home {
  background: #f6f1ee;
  font-family: "Cairo", "DM Sans", sans-serif;
}

.home-hero {
  background: #1c1212;
}

.home-hero-photo {
  height: min(46vh, 420px);
  overflow: hidden;
  background: #2a1612;
}

.home-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  animation: home-zoom 20s ease-in-out infinite alternate;
}

.home-hero-bar {
  background: linear-gradient(135deg, #6b0f14, #8a151b 45%, #5c0d12);
  color: #fff;
}

.home-hero-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  animation: home-rise 0.7s ease both;
}

.home-hero-brand {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  color: #fff;
}

.home-hero-text h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(0.98rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32ch;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  background: #fff;
  color: #5c0d12;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.home-btn:hover {
  background: #fff4ef;
  color: #5c0d12;
  text-decoration: none;
  transform: translateY(-1px);
}

.home-section {
  padding: 3rem 0 2.25rem;
}

.home-section-soft {
  background: rgba(255, 255, 255, 0.55);
  padding-bottom: 3.5rem;
}

.home-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.home-head {
  margin-bottom: 1.4rem;
}

.home-head h1,
.home-head h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Cairo", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #1c1212;
}

.home-head p {
  margin: 0.35rem 0 0;
  color: #6b5555;
}

.home-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.home-link {
  color: #8a151b;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.home-link:hover {
  text-decoration: underline;
}

.home-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.home-cat {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #3f080c;
  box-shadow: 0 10px 28px rgba(28, 18, 18, 0.08);
}

.home-cat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(28, 18, 18, 0.78));
}

.home-cat span {
  position: absolute;
  z-index: 1;
  inset-inline: 0.85rem;
  bottom: 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.home-cat:hover {
  text-decoration: none;
}

.home-cat:hover img {
  transform: scale(1.05);
}

.home-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.home-product {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ead9d9;
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(92, 13, 18, 0.1);
  text-decoration: none;
}

.home-product-img {
  aspect-ratio: 1;
  background: #efe6e2;
  overflow: hidden;
}

.home-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.home-product:hover .home-product-img img {
  transform: scale(1.04);
}

.home-product-ph {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  color: #8a151b;
}

.home-product-info {
  padding: 0.85rem 0.95rem 1rem;
  display: grid;
  gap: 0.2rem;
}

.home-product-info small {
  color: #6b5555;
  font-size: 0.78rem;
}

.home-product-info h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
}

.home-product-info strong {
  color: #8a151b;
  margin-top: 0.15rem;
}

.home-ways {
  padding: 2.75rem 0 3.25rem;
  background: #fff;
  border-top: 1px solid #ead9d9;
}

.home-ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.home-ways-grid strong {
  display: block;
  font-size: 1.15rem;
  color: #8a151b;
  margin-bottom: 0.35rem;
}

.home-ways-grid p {
  margin: 0;
  color: #6b5555;
  line-height: 1.55;
}

.home-empty {
  color: #6b5555;
  grid-column: 1 / -1;
}

@keyframes home-zoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .home-cats,
  .home-products {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-ways-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}

@media (max-width: 640px) {
  .home-hero-photo {
    height: min(42vh, 320px);
  }

  .home-hero-bar-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .home-hero-text h1 {
    max-width: none;
  }

  .home-btn {
    width: 100%;
  }

  .home-head-row {
    flex-direction: column;
    align-items: start;
  }
}

/* ========== Shared UI ========== */
.st-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.st-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.st-btn-primary {
  background: var(--st-red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(138, 21, 27, 0.28);
}

.st-btn-primary:hover {
  background: var(--st-red-dark);
  color: #fff;
}

.st-btn-ghost {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.st-hero .st-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.st-btn-wide {
  width: 100%;
}

/* Sections / pages */
.st-section,
.st-page {
  padding: 2.5rem 0 3.5rem;
}

.st-section-alt {
  background: rgba(255, 255, 255, 0.45);
  max-width: none;
  padding-inline: max(1.25rem, calc((100% - 1180px) / 2 + 1.25rem));
}

.st-section-head {
  margin-bottom: 1.75rem;
}

.st-section-head h2,
.st-page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}

.st-section-head p,
.st-page-head p,
.st-muted {
  color: var(--st-muted);
}

.st-page-head {
  margin-bottom: 1.75rem;
}

.st-section-foot {
  margin-top: 2rem;
  text-align: center;
}

.st-empty,
.st-empty-state {
  color: var(--st-muted);
  padding: 2rem 0;
}

.st-empty-state {
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

/* Categories */
.st-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.st-category {
  position: relative;
  display: grid;
  place-items: end start;
  min-height: 160px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(160deg, var(--st-red-dark), var(--st-red));
  box-shadow: var(--st-shadow);
  transition: transform 0.25s ease;
}

.st-category:hover {
  transform: translateY(-4px);
  text-decoration: none;
}

.st-category img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-category span {
  position: relative;
  z-index: 1;
  padding: 1rem;
  font-weight: 600;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  width: 100%;
}

/* Products */
.st-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.st-product {
  display: flex;
  flex-direction: column;
  background: var(--st-surface);
  border: 1px solid rgba(138, 21, 27, 0.08);
  border-radius: 18px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(28, 18, 18, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: st-rise 0.7s ease both;
}

.st-product:hover {
  transform: translateY(-5px);
  box-shadow: var(--st-shadow);
  text-decoration: none;
}

.st-product-media {
  aspect-ratio: 1;
  background: #f0e7e4;
  overflow: hidden;
}

.st-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.st-product:hover .st-product-media img {
  transform: scale(1.05);
}

.st-product-placeholder {
  width: 100%;
  height: 100%;
  min-height: 160px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #f0e7e4, #e7d2d2);
  color: var(--st-red);
  font-family: var(--font-display);
  font-size: 3rem;
}

.st-product-body {
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.st-product-cat {
  margin: 0;
  color: var(--st-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.st-product-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.st-price {
  margin: 0;
  color: var(--st-red);
  font-weight: 700;
}

.st-price-lg {
  font-size: 1.6rem;
  font-family: var(--font-display);
}

/* Filters */
.st-filters {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 220px) auto;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 18px;
}

.st-filters input,
.st-filters select,
.st-checkout-form input,
.st-checkout-form select,
.st-checkout-form textarea,
.st-auth-form input,
.st-buy-form input,
.st-buy-form select,
.st-qty-form input {
  width: 100%;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--st-ink);
}

.st-filters input,
.st-filters select {
  background: #f7f2f0;
  border-color: transparent;
}

.st-filters input:focus,
.st-checkout-form input:focus,
.st-checkout-form select:focus,
.st-checkout-form textarea:focus,
.st-auth-form input:focus,
.st-buy-form input:focus,
.st-buy-form select:focus {
  outline: 2px solid rgba(138, 21, 27, 0.25);
  border-color: var(--st-red);
}

/* Product detail */
.st-product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.st-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  background: #f0e7e4;
}

.st-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.st-gallery-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.st-product-info h1,
.st-product-buy h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.st-desc {
  line-height: 1.6;
  color: var(--st-muted);
}

.st-buy-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
  max-width: 360px;
}

.st-buy-form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.st-custom-weight {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  background: #fff8f5;
  border: 1px solid #efd2c8;
  border-radius: 14px;
}

.st-custom-weight-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.st-custom-weight-unit {
  font-weight: 700;
  color: var(--st-muted);
  min-width: 1.5rem;
}

.st-custom-hint {
  margin: 0;
  font-size: 0.82rem;
}

/* Cart / checkout */
.st-cart-layout,
.st-checkout-layout,
.st-order-detail {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.st-cart-lines {
  display: grid;
  gap: 0.85rem;
}

.st-cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 16px;
}

.st-cart-thumb {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0e7e4;
}

.st-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-cart-meta h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.st-qty-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.st-qty-form input {
  width: 72px;
}

.st-cart-line-total {
  text-align: end;
  display: grid;
  gap: 0.35rem;
}

.st-cart-summary,
.st-confirm-panel,
.st-auth-panel,
.st-panel {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: none;
}

.st-cart-summary h2,
.st-order-detail h2,
.st-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.st-cart-summary dl,
.st-confirm-meta,
.st-order-detail dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.st-cart-summary dl > div,
.st-confirm-meta > div,
.st-order-detail dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.st-cart-summary dt,
.st-confirm-meta dt,
.st-order-detail dt {
  color: var(--st-muted);
}

.st-cart-summary dd,
.st-confirm-meta dd,
.st-order-detail dd {
  margin: 0;
  font-weight: 600;
}

.st-total {
  padding-top: 0.65rem;
  border-top: 1px solid var(--st-line);
  font-size: 1.1rem;
}

.st-cart-summary .st-btn {
  margin-top: 0.75rem;
}

.st-summary-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.st-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--st-muted);
}

.st-summary-list strong {
  color: var(--st-ink);
}

.st-checkout-form {
  display: grid;
  gap: 1.25rem;
}

.st-checkout-form fieldset {
  margin: 0;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  background: #fff;
}

.st-checkout-form legend {
  padding: 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.st-checkout-form label {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.st-option-list ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.st-option-list:not(:has(ul)) {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.st-option-list li {
  margin: 0;
}

.st-option-list label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-option-list input {
  width: auto;
  accent-color: var(--st-red);
}

.st-option-list label:has(input:checked) {
  border-color: var(--st-red);
  box-shadow: 0 0 0 3px rgba(138, 21, 27, 0.12);
}

.st-payment-sections .st-muted {
  margin: 0.35rem 0 0.75rem;
}

.st-payment-group {
  margin-top: 1rem;
}

.st-payment-group-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.st-payment-hint {
  margin: 0 0 0.55rem !important;
  font-size: 0.88rem;
}

.st-payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.st-payment-option span {
  display: grid;
  gap: 0.15rem;
}

.st-payment-option small {
  font-weight: 500;
}

.st-payment-option input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--st-red);
}

.st-payment-option:has(input:checked) {
  border-color: var(--st-red);
  box-shadow: 0 0 0 3px rgba(138, 21, 27, 0.12);
}

.st-checkbox-row {
  display: flex;
  align-items: end;
}

.st-checkbox-row label {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  margin: 0 !important;
  font-weight: 600;
  cursor: pointer;
}

.st-checkbox-row input[type="checkbox"] {
  width: auto;
  accent-color: var(--st-red);
}

.st-address-list label {
  align-items: flex-start;
  line-height: 1.35;
}

.st-area-fee {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: rgba(196, 149, 74, 0.12);
  color: var(--st-red-dark);
  font-weight: 600;
}



.st-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Auth / confirm / orders */
.st-auth {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.st-auth-panel {
  width: min(440px, 100%);
}

.st-auth-panel h1,
.st-confirm-panel h1 {
  margin: 0.2rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 2.3rem;
}

.st-auth-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.st-auth-form label {
  font-weight: 600;
  font-size: 0.92rem;
}

.st-auth-switch {
  margin-top: 1.25rem;
  color: var(--st-muted);
}

.st-confirm {
  display: grid;
  place-items: center;
}

.st-confirm-panel {
  width: min(640px, 100%);
  text-align: center;
}

.st-eyebrow {
  margin: 0;
  color: var(--st-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.st-confirm-meta {
  margin: 1.5rem 0 !important;
  text-align: start;
}

.st-order-list {
  display: grid;
  gap: 0.75rem;
}

.st-order-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.st-order-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--st-shadow);
  text-decoration: none;
}

.st-order-row-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.st-badge {
  display: inline-flex;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(138, 21, 27, 0.08);
  color: var(--st-red);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Footer */
.st-footer {
  margin-top: 2rem;
  border-top: 1px solid rgba(138, 21, 27, 0.1);
  background: linear-gradient(180deg, transparent, rgba(138, 21, 27, 0.05));
}

.st-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.st-footer-brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.st-footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.st-footer-brand p {
  margin: 0.15rem 0 0;
  color: var(--st-muted);
}

.st-footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
  .st-product-layout,
  .st-cart-layout,
  .st-checkout-layout,
  .st-order-detail {
    grid-template-columns: 1fr;
  }

  .st-filters {
    grid-template-columns: 1fr;
  }

  .st-cart-line {
    grid-template-columns: 72px 1fr;
  }

  .st-qty-form,
  .st-cart-line-total {
    grid-column: 1 / -1;
  }

  .st-cart-line-total {
    text-align: start;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .st-nav {
    display: none;
  }

  .st-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: #fffdfb;
    border-bottom: 1px solid var(--st-line);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.25rem;
    box-shadow: 0 18px 30px rgba(92, 13, 18, 0.08);
    flex: none;
  }

  .st-nav a {
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
  }

  .st-nav-mobile-extra {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--st-line);
  }

  .st-nav-mobile-extra button {
    border: 0;
    background: transparent;
    text-align: start;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    font: inherit;
    font-weight: 600;
    color: var(--st-ink);
    cursor: pointer;
  }

  .st-menu-toggle {
    display: inline-grid;
  }

  .st-user-name {
    display: none;
  }

  .st-header-inner {
    position: relative;
  }

  .st-brand-text small {
    display: none;
  }

  .st-form-grid {
    grid-template-columns: 1fr;
  }

  .st-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .st-header-actions {
    gap: 0.4rem;
  }

  .st-hero-content {
    padding-top: 5.5rem;
  }
}

/* ========== Design unification (all pages) ========== */
.st-panel .st-btn,
.st-cart-summary .st-btn {
  margin-top: 0.75rem;
}

.st-gallery {
  display: grid;
  gap: 0.75rem;
}

.st-gallery-main {
  border: 1px solid #ead9d9;
}

.st-order-row {
  box-shadow: none;
}

.st-order-row:hover {
  box-shadow: 0 10px 28px rgba(92, 13, 18, 0.08);
}

.st-btn-ghost {
  background: #fff;
  color: var(--st-red);
  border-color: #ead9d9;
}

.st-btn-ghost:hover {
  background: #fff4ef;
  color: var(--st-red-dark);
}

.st-footer {
  margin-top: 0;
  background: #fff;
  border-top: 1px solid #ead9d9;
}

.st-confirm-panel {
  width: min(640px, 100%);
  text-align: center;
}

.st-auth-panel {
  width: min(440px, 100%);
}

.st-confirm-meta {
  text-align: start;
}

html[dir="rtl"] .st-cart-line-total,
html[dir="rtl"] .km-bar-value {
  text-align: start;
}

@media (max-width: 900px) {
  .st-product-layout,
  .st-cart-layout,
  .st-checkout-layout,
  .st-order-detail {
    grid-template-columns: 1fr;
  }
}

/* Empty states */
.st-empty-state {
  padding: 3rem 1.25rem;
  background: #fff;
  border: 1px dashed #e2cfcf;
  border-radius: 20px;
  margin-top: 0.5rem;
}

.st-empty-state p {
  margin: 0;
  font-size: 1.05rem;
}

/* Auth polish */
.st-auth {
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(196, 149, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(138, 21, 27, 0.08), transparent 50%),
    #f6f1ee;
}

.st-auth-panel {
  box-shadow: 0 18px 40px rgba(92, 13, 18, 0.08);
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.5rem;
}

.st-auth-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.st-auth-brand-center {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.st-form-actions-center {
  justify-content: center;
}

.st-auth-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(196, 149, 74, 0.4);
}

.st-auth-brand strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.st-product-cat {
  margin: 0;
  color: var(--st-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.st-product-buy .st-price-lg {
  margin: 0.75rem 0;
}

.st-buy-form {
  max-width: 420px;
}

.st-checkout-form legend {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--st-red-dark);
  padding-inline: 0.25rem;
}

.st-page {
  min-height: 55vh;
}

/* ========== Profile / Account ========== */
.pf {
  padding-bottom: 3rem;
}

.pf-hero {
  background:
    radial-gradient(ellipse 70% 90% at 10% 0%, rgba(196, 149, 74, 0.22), transparent 55%),
    linear-gradient(135deg, #4a0a0e 0%, #8a151b 48%, #6e1016 100%);
  color: #fff;
  padding: 2rem 0 2.25rem;
}

.pf-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pf-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.pf-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}

.pf-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  font-weight: 700;
}

.pf-identity h1,
.pf-subhero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.pf-meta {
  margin: 0.35rem 0 0;
  opacity: 0.85;
}

.pf-stats {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.pf-stats > div {
  min-width: 96px;
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
}

.pf-stats span {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.pf-stats small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

.pf-subhero {
  background:
    linear-gradient(180deg, rgba(138, 21, 27, 0.06), transparent 70%),
    #f7f2f0;
  padding: 1.6rem 0 0.4rem;
  border-bottom: 1px solid transparent;
}

.pf-subhero .pf-kicker {
  color: var(--st-red);
  opacity: 1;
}

.pf-subhero h1 {
  color: var(--st-red-dark);
}

.pf-subhero p {
  margin: 0.35rem 0 0;
  color: var(--st-muted);
  max-width: 36rem;
}

.pf-subhero-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pf-body {
  padding-top: 1.25rem;
}

.pf-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1.15rem;
  scrollbar-width: none;
}

.pf-tabs::-webkit-scrollbar {
  display: none;
}

.pf-tabs a {
  flex: 0 0 auto;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--st-ink);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--st-line);
  white-space: nowrap;
}

.pf-tabs a:hover {
  border-color: #d7b4b4;
  text-decoration: none;
  color: var(--st-red);
}

.pf-tabs a.is-active {
  background: var(--st-red);
  border-color: var(--st-red);
  color: #fff;
}

.pf-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.pf-panel {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 20px;
  padding: 1.25rem 1.35rem;
}

.pf-panel-wide {
  margin-bottom: 1rem;
}

.pf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.pf-panel-head h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--st-red-dark);
}

.pf-panel-head a {
  font-weight: 700;
  text-decoration: none;
}

.pf-dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.pf-dl > div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f3e8e8;
}

.pf-dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pf-dl dt {
  font-size: 0.78rem;
  color: var(--st-muted);
  font-weight: 600;
}

.pf-dl dd {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.pf-address-preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.pf-address-preview li {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #f3e8e8;
}

.pf-address-preview li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pf-address-preview p {
  margin: 0.2rem 0 0;
}

.pf-address-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pf-address-label em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--st-red);
  background: #fff1ec;
  border: 1px solid #efd2c8;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.pf-orders {
  display: grid;
  gap: 0.55rem;
}

.pf-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid #f0e4e4;
  background: #fffcfb;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.pf-order:hover {
  border-color: #d7b4b4;
  text-decoration: none;
  transform: translateY(-1px);
}

.pf-order p {
  margin: 0.2rem 0 0;
}

.pf-order-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: end;
}

.pf-order-meta span {
  font-size: 0.8rem;
  color: var(--st-muted);
  font-weight: 600;
}

.pf-empty {
  margin: 0 0 0.85rem;
  color: var(--st-muted);
}

.pf-empty-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.pf-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.pf-address {
  background: #fff;
  border: 1px solid var(--st-line);
  border-radius: 20px;
  padding: 1.2rem 1.3rem;
}

.pf-address.is-default {
  border-color: #d4a8a8;
  background:
    linear-gradient(180deg, #fff8f5, #fff);
}

.pf-address p {
  margin: 0.25rem 0 0;
}

.pf-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f0e4e4;
}

.pf-address-actions a,
.pf-address-actions button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--st-red);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.pf-address-actions .is-danger {
  color: #a11f2c;
}

.pf-form {
  max-width: 720px;
}

.pf-form .st-form-grid {
  margin-bottom: 1.25rem;
}

.pf-form input,
.pf-form select,
.pf-form textarea {
  width: 100%;
  border: 1px solid #ead9d9;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #fff;
}

.pf-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  color: #5c3d3d;
}

.pf-form .st-field {
  margin: 0;
}

.pf-form .st-field-wide {
  grid-column: 1 / -1;
}

.pf-form .st-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  cursor: pointer;
}

.pf-form .st-check input {
  width: auto;
}

.st-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.st-form-actions-center {
  justify-content: center;
}

.st-panel .st-form-actions {
  margin-top: 1.25rem;
}

.home-product-info h3 {
  min-height: 2.7em;
}

.st-cart-line {
  align-items: stretch;
}

@media (max-width: 720px) {
  .st-cart-line {
    grid-template-columns: 72px 1fr;
  }

  .st-qty-form,
  .st-cart-line-total {
    grid-column: 1 / -1;
  }

  .st-order-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .st-order-row-meta {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

/* ========== Lahza payment overlay ========== */
body.st-lahza-open {
  overflow: hidden;
}

.st-lahza-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(40, 12, 14, 0.55);
  backdrop-filter: blur(4px);
}

.st-lahza-overlay[hidden] {
  display: none !important;
}

.st-lahza-overlay-card {
  width: min(400px, 100%);
  padding: 1.75rem 1.5rem;
  border-radius: 18px;
  background: #fffaf8;
  border: 1px solid #ead9d9;
  box-shadow: 0 24px 60px rgba(40, 12, 14, 0.28);
  text-align: center;
}

.st-lahza-overlay-card h2 {
  margin: 0.85rem 0 0.4rem;
  font-family: "Cormorant Garamond", "Cairo", serif;
  font-size: 1.55rem;
  color: var(--st-red-dark, #5c0d12);
}

.st-lahza-overlay-text,
.st-lahza-overlay-hint {
  margin: 0;
  color: #6b4a4a;
  line-height: 1.55;
  font-size: 0.95rem;
}

.st-lahza-overlay-hint {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.st-lahza-overlay-card .st-btn {
  margin-top: 1.1rem;
}

.st-lahza-spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto;
  border-radius: 50%;
  border: 2.5px solid #ead9d9;
  border-top-color: var(--st-red, #8b1a21);
  animation: st-lahza-spin 0.75s linear infinite;
}

@keyframes st-lahza-spin {
  to { transform: rotate(360deg); }
}

/* ========== Order detail ========== */
.od-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.od-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.od-hero-total {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--st-red-dark);
}

.od-pay-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem 1.35rem;
  border-radius: 20px;
  border: 1px solid rgba(196, 149, 74, 0.45);
  background: linear-gradient(180deg, rgba(196, 149, 74, 0.12), rgba(255, 255, 255, 0.9));
}

.od-pay-callout strong {
  display: block;
  color: var(--st-red-dark);
}

.od-pay-callout p {
  margin: 0.2rem 0 0;
  color: var(--st-muted);
  font-size: 0.9rem;
}

.od-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.od-main,
.od-side {
  display: grid;
  gap: 1rem;
}

/* Items */
.od-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.od-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #f3e8e8;
  border-radius: 16px;
  background: #fffdfc;
}

.od-item.is-unavailable {
  opacity: 0.7;
  border-style: dashed;
}

.od-item-thumb {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  background: #f0e7e4;
}

.od-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.od-item-thumb .st-product-placeholder {
  min-height: 0;
  font-size: 1.6rem;
}

.od-item-info h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.od-item-info h3 a {
  color: inherit;
}

.od-item-sub {
  margin: 0.25rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--st-muted);
  font-size: 0.82rem;
}

.od-item-sub span:not(:last-child)::after {
  content: "·";
  margin-inline-start: 0.5rem;
}

.od-item-note {
  margin: 0.35rem 0 0;
  color: var(--st-muted);
  font-size: 0.82rem;
}

.od-item-flag {
  margin: 0.35rem 0 0;
  color: var(--st-red);
  font-size: 0.8rem;
  font-weight: 700;
}

.od-item-amounts {
  display: grid;
  gap: 0.15rem;
  justify-items: end;
  text-align: end;
  white-space: nowrap;
}

.od-item-qty {
  color: var(--st-muted);
  font-size: 0.85rem;
}

.od-item-discount {
  color: var(--st-gold);
  font-size: 0.82rem;
  font-weight: 600;
}

.od-totals {
  margin: 1.1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--st-line);
  display: grid;
  gap: 0.6rem;
}

.od-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.od-totals dt {
  color: var(--st-muted);
}

.od-totals dd {
  margin: 0;
  font-weight: 600;
}

.od-totals .st-total dd {
  color: var(--st-red-dark);
  font-weight: 700;
}

/* Timeline */
.od-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.od-timeline-step {
  position: relative;
  padding-inline-start: 1.6rem;
}

.od-timeline-step::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--st-line);
}

.od-timeline-step::after {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 1.15rem;
  bottom: -1rem;
  width: 2px;
  background: var(--st-line);
}

.od-timeline-step:last-child::after {
  display: none;
}

.od-timeline-step.is-current::before {
  background: var(--st-red);
  border-color: var(--st-red);
}

.od-timeline-body {
  display: grid;
  gap: 0.15rem;
}

.od-timeline-body strong {
  font-size: 0.95rem;
}

.od-timeline-body span {
  font-size: 0.8rem;
}

.od-timeline-body p {
  margin: 0.2rem 0 0;
  color: var(--st-muted);
  font-size: 0.85rem;
}

.od-notes {
  margin: 0;
  color: var(--st-muted);
  line-height: 1.6;
}

.od-side-actions {
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .od-layout {
    grid-template-columns: 1fr;
  }

  .od-hero-meta {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .od-item {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .od-item-thumb {
    width: 60px;
    height: 60px;
  }

  .od-item-amounts {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: start;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.6rem;
  }
}
