:root {
  --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --bg-main: #f4efe8;
  --bg-secondary: #e7ddd1;
  --surface-shell: rgba(255, 250, 244, 0.72);
  --surface-card: rgba(255, 252, 247, 0.86);
  --surface-muted: rgba(255, 248, 238, 0.68);
  --surface-strong: #fffdf9;
  --text-main: #20160f;
  --text-soft: #695748;
  --text-faint: #9c8777;
  --border-soft: rgba(68, 40, 20, 0.08);
  --border-strong: rgba(68, 40, 20, 0.15);
  --accent: #182535;
  --accent-strong: #0e1825;
  --accent-soft: #d9e2ef;
  --gold: #c5894b;
  --gold-soft: rgba(197, 137, 75, 0.16);
  --success-bg: #ddf5e5;
  --success-text: #18613a;
  --error-bg: #fde2de;
  --error-text: #a73b32;
  --shadow-soft: 0 24px 80px rgba(50, 31, 20, 0.08);
  --shadow-card: 0 22px 48px rgba(43, 24, 14, 0.08);
  --shadow-hover: 0 28px 56px rgba(19, 28, 39, 0.14);
  --radius-2xl: 36px;
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --transition: 180ms ease;
}

body[data-theme="dark"] {
  --bg-main: #0d141c;
  --bg-secondary: #111b25;
  --surface-shell: rgba(13, 20, 28, 0.74);
  --surface-card: rgba(17, 27, 37, 0.9);
  --surface-muted: rgba(20, 32, 45, 0.76);
  --surface-strong: #162230;
  --text-main: #f7efe6;
  --text-soft: #bda997;
  --text-faint: #907f72;
  --border-soft: rgba(255, 240, 226, 0.08);
  --border-strong: rgba(255, 240, 226, 0.15);
  --accent: #f4e5d1;
  --accent-strong: #fff6ec;
  --accent-soft: rgba(213, 227, 242, 0.12);
  --gold: #f0b26f;
  --gold-soft: rgba(240, 178, 111, 0.14);
  --success-bg: rgba(28, 79, 53, 0.92);
  --success-text: #d9f5e3;
  --error-bg: rgba(126, 44, 38, 0.92);
  --error-text: #ffd4d0;
  --shadow-soft: 0 28px 90px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 26px 54px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 30px 62px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at bottom right, rgba(197, 137, 75, 0.18), rgba(197, 137, 75, 0) 28%),
    linear-gradient(145deg, var(--bg-main), var(--bg-secondary));
  transition: background var(--transition), color var(--transition);
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at top left, rgba(240, 178, 111, 0.08), rgba(240, 178, 111, 0) 28%),
    radial-gradient(circle at bottom right, rgba(102, 134, 168, 0.12), rgba(102, 134, 168, 0) 24%),
    linear-gradient(145deg, var(--bg-main), var(--bg-secondary));
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

strong {
  font-weight: 800;
}

.app-body {
  padding: 24px;
}

.site-shell {
  position: relative;
  min-height: calc(100vh - 48px);
  max-width: 1460px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 40px;
  background: var(--surface-shell);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(22px);
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.site-shell::before {
  top: -160px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
}

.site-shell::after {
  right: -100px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(197, 137, 75, 0.12), rgba(197, 137, 75, 0));
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 30px 40px 14px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-block {
  display: grid;
  gap: 6px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  color: var(--accent-strong);
}

.brand-logo-img {
  height: clamp(76px, 7.5vw, 108px);
  width: auto;
  object-fit: contain;
}

.products-footer-brand .brand-logo-img {
  height: clamp(96px, 9vw, 136px);
}

body[data-theme="dark"] .brand-logo-img {
  filter: invert(1) brightness(2);
}

.brand-tagline {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
}

.theme-toggle,
.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-main);
  backdrop-filter: blur(16px);
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .nav-pill {
  background: rgba(18, 31, 43, 0.82);
}

.theme-toggle:hover,
.nav-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.theme-toggle {
  --toggle-pad: 8px;
  --toggle-gap: 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  inline-size: 184px;
  min-width: 184px;
  padding: var(--toggle-pad);
  overflow: hidden;
  cursor: pointer;
}

.theme-toggle-icon {
  position: absolute;
  top: var(--toggle-pad);
  left: var(--toggle-pad);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc((100% - (var(--toggle-pad) * 2) - var(--toggle-gap)) / 2);
  min-width: 0;
  min-height: 0;
  height: calc(100% - (var(--toggle-pad) * 2));
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition);
}

body[data-theme="dark"] .theme-toggle-icon {
  color: #1b2430;
  background: rgba(240, 178, 111, 0.92);
  transform: translateX(calc(100% + var(--toggle-gap)));
}

.theme-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 34px;
  padding-left: calc(50% + 10px);
  padding-right: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color var(--transition),
    padding var(--transition),
    justify-content var(--transition);
}

body[data-theme="dark"] .theme-toggle-label {
  justify-content: flex-start;
  padding-left: 10px;
  padding-right: calc(50% + 10px);
}

.nav-pill-strong {
  color: #fff;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

body[data-theme="dark"] .nav-pill-strong {
  color: #102031;
  border-color: #fff2e0;
  background: linear-gradient(135deg, #fff2e0, #f4d4b0);
}

.nav-pill-cart {
  gap: 12px;
}

.nav-pill-language {
  font-weight: 700;
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

body[data-theme="dark"] .nav-count {
  color: #1b2430;
  background: rgba(240, 178, 111, 0.92);
}

.nav-user {
  padding: 0 4px;
  color: var(--text-soft);
  font-weight: 600;
  white-space: nowrap;
}

.page-container {
  position: relative;
  z-index: 1;
  padding: 12px 40px 40px;
}

.flash-toast-wrap {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1200;
  pointer-events: none;
}

.flash-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(440px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  padding: 18px 20px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(92, 121, 151, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(31, 47, 70, 0.12);
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
}

.flash-toast.success {
  color: #256f48;
}

.flash-toast.error {
  color: #b74b40;
}

body[data-theme="dark"] .flash-toast {
  border-color: rgba(182, 205, 232, 0.14);
  background: rgba(17, 27, 37, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body[data-theme="dark"] .flash-toast.success {
  color: #bfeacb;
}

body[data-theme="dark"] .flash-toast.error {
  color: #ffc1bb;
}

.flash-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.flash-toast-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #49a1df;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

.flash-toast.success .flash-toast-icon-badge {
  background: #cfeeda;
  color: #256f48;
}

.flash-toast.error .flash-toast-icon-badge {
  background: #f8d7d2;
  color: #b74b40;
}

body[data-theme="dark"] .flash-toast-icon-badge {
  background: #49a1df;
  color: #fff;
}

body[data-theme="dark"] .flash-toast.success .flash-toast-icon-badge {
  background: rgba(92, 176, 117, 0.24);
  color: #bfeacb;
}

body[data-theme="dark"] .flash-toast.error .flash-toast-icon-badge {
  background: rgba(220, 105, 90, 0.24);
  color: #ffc1bb;
}

.flash-toast-content {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.flash-toast-message {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.flash-toast-close {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  color: #8d98a7;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme="dark"] .flash-toast-close {
  background: rgba(255, 255, 255, 0.08);
  color: #b8c2ce;
}

.flash-toast-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  border-radius: 0 0 18px 18px;
  transform-origin: left center;
  animation: flash-toast-progress 6.5s linear forwards;
}

.flash-toast.success .flash-toast-progress {
  background: linear-gradient(90deg, #8fd8ac, #68be8a);
}

.flash-toast.error .flash-toast-progress {
  background: linear-gradient(90deg, #f2a099, #e27065);
}

body[data-theme="dark"] .flash-toast.success .flash-toast-progress {
  background: linear-gradient(90deg, #70c28d, #58a878);
}

body[data-theme="dark"] .flash-toast.error .flash-toast-progress {
  background: linear-gradient(90deg, #ee8e85, #d96358);
}

@keyframes flash-toast-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.auth-panel,
.auth-form-card,
.center-card,
.hero-stat-card,
.filter-panel,
.product-modern-card,
.product-gallery-panel,
.product-info-panel,
.product-detail-section,
.cart-main-panel,
.cart-summary-panel,
.card {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

/* ── .alert — đồng bộ với flash-toast ── */
.alert {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  min-width: 0;
  padding: 18px 52px 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(92, 121, 151, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(31, 47, 70, 0.1);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  z-index: 60;
  transition: opacity var(--transition), transform var(--transition);
}

/* icon badge — giống flash-toast-icon-badge */
.alert::before {
  content: "i";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #49a1df;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

/* progress bar bottom */
.alert::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  border-radius: 0 0 18px 18px;
}

.alert.success {
  color: #256f48;
}

.alert.success::before {
  background: #cfeeda;
  color: #256f48;
}

.alert.success::after {
  background: linear-gradient(90deg, #8fd8ac, #68be8a);
}

.alert.error {
  color: #b74b40;
}

.alert.error::before {
  background: #f8d7d2;
  color: #b74b40;
}

.alert.error::after {
  background: linear-gradient(90deg, #f2a099, #e27065);
}

body[data-theme="dark"] .alert {
  border-color: rgba(182, 205, 232, 0.14);
  background: rgba(17, 27, 37, 0.96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .alert.success {
  color: #bfeacb;
}

body[data-theme="dark"] .alert.success::before {
  background: rgba(92, 176, 117, 0.24);
  color: #bfeacb;
}

body[data-theme="dark"] .alert.success::after {
  background: linear-gradient(90deg, #70c28d, #58a878);
}

body[data-theme="dark"] .alert.error {
  color: #ffc1bb;
}

body[data-theme="dark"] .alert.error::before {
  background: rgba(220, 105, 90, 0.24);
  color: #ffc1bb;
}

body[data-theme="dark"] .alert.error::after {
  background: linear-gradient(90deg, #ee8e85, #d96358);
}

.alert.is-hiding {
  opacity: 0;
  transform: translateY(-4px);
}

.alert-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  z-index: 1;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.05);
  color: #8d98a7;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme="dark"] .alert-close {
  background: rgba(255, 255, 255, 0.08);
  color: #b8c2ce;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 32px rgba(24, 37, 53, 0.2);
}

body[data-theme="dark"] .btn-primary {
  color: #102031;
  background: linear-gradient(135deg, #fff1dc, #f0bb82);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.btn-secondary {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: rgba(255, 255, 255, 0.54);
}

body[data-theme="dark"] .btn-secondary {
  background: rgba(20, 32, 45, 0.72);
}

.btn-inline {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
}

.btn-detail-action {
  min-width: 150px;
}

.form,
.auth-form {
  display: grid;
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-main);
  outline: none;
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

body[data-theme="dark"] .form-group input,
body[data-theme="dark"] .form-group select,
body[data-theme="dark"] .form-group textarea {
  background: rgba(13, 23, 34, 0.82);
}

.form-group textarea {
  min-height: 150px;
  padding-top: 16px;
  padding-bottom: 16px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(197, 137, 75, 0.5);
  box-shadow: 0 0 0 4px rgba(197, 137, 75, 0.12);
}

.error-text {
  color: var(--error-text);
  font-size: 0.86rem;
  font-weight: 600;
}

.btn-row,
.auth-action-stack,
.checkout-actions,
.cart-summary-actions,
.product-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-inline-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
  text-align: center;
}

.auth-inline-links a {
  color: var(--accent-strong);
  font-weight: 700;
}

.dot-divider {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: 26px;
  align-items: stretch;
}

.auth-showcase {
  position: relative;
  overflow: hidden;
  padding: 46px 40px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0) 28%),
    linear-gradient(135deg, rgba(24, 37, 53, 0.08), rgba(197, 137, 75, 0.08)),
    var(--surface-card);
}

.auth-showcase::before {
  content: "";
  position: absolute;
  right: -84px;
  bottom: -110px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 137, 75, 0.18), rgba(197, 137, 75, 0));
}

.showcase-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-bottom: 28px;
}

.showcase-title,
.auth-form-card h2,
.center-card h2,
.products-hero-copy h1,
.product-info-panel h1,
.section-heading-row h2,
.cart-main-panel h1,
.cart-summary-panel h2,
.card h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  color: var(--accent-strong);
}

.showcase-title {
  font-size: clamp(3.2rem, 5vw, 5.2rem);
  line-height: 0.95;
}

.showcase-text,
.auth-subtitle,
.center-card p,
.products-hero-copy p,
.section-heading-row p,
.summary-copy,
.card p {
  color: var(--text-soft);
  line-height: 1.8;
}

.showcase-text {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: 1.04rem;
}

.showcase-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 16px;
}

.showcase-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body[data-theme="dark"] .showcase-card {
  background: rgba(15, 26, 37, 0.84);
}

.showcase-card-large {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.showcase-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.18;
  color: var(--accent-strong);
}

.showcase-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.75;
}

.showcase-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.showcase-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  font-weight: 700;
}

body[data-theme="dark"] .showcase-tags span {
  background: rgba(20, 32, 45, 0.78);
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}

.auth-form-card {
  width: 100%;
  max-width: 540px;
  padding: 36px;
}

.auth-form-card h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.auth-subtitle {
  margin: 10px 0 24px;
  font-size: 1rem;
}

.center-card-wrap {
  max-width: 820px;
  margin: 12px auto 0;
}

.center-card {
  padding: 36px;
}

.center-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}

.center-card p {
  margin: 0 0 22px;
}

.success-card {
  text-align: center;
}

.success-order-box {
  margin: 26px 0;
  padding: 14px;
  border-radius: 22px;
  background: var(--surface-muted);
  border: 1px solid var(--border-soft);
}

.products-page,
.product-detail-page,
.cart-page,
.checkout-page,
.checkout-success-page {
  display: grid;
  gap: 22px;
}

.products-catalog-shell {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%),
    var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}

.products-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
}

.products-hero-copy {
  padding: 36px;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.56), rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, rgba(24, 37, 53, 0.08), rgba(197, 137, 75, 0.12)),
    var(--surface-card);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow-card);
}

.products-hero-copy h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.4rem);
  line-height: 0.98;
}

.products-hero-copy p {
  max-width: 680px;
  margin: 16px 0 0;
  font-size: 1.02rem;
}

.products-hero-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-stat-card {
  padding: 26px;
}

.hero-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  color: var(--accent-strong);
}

.hero-stat-card small {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-stat-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-music-card {
  display: grid;
  gap: 20px;
  grid-column: span 2;
}

.hero-music-head {
  display: grid;
  gap: 12px;
}

.hero-music-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-music-track {
  display: block;
  margin-top: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.98;
  color: var(--accent-strong);
  max-width: 100%;
}

.hero-music-artist {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.music-live-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(73, 161, 223, 0.14);
  color: #2471ab;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="dark"] .music-live-pill {
  background: rgba(73, 161, 223, 0.2);
  color: #8bcdfd;
}

.hero-music-copy-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 210px;
  overflow: hidden;
}

.music-rhythm-mark {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  height: 210px;
  min-height: 210px;
  padding: 0;
  overflow: hidden;
}

.music-rhythm-mark span {
  flex: 1 1 0;
  min-width: 10px;
  max-width: 18px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(45, 45, 45, 0.72));
  box-shadow:
    0 0 10px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(0, 0, 0, 0.14),
    0 16px 36px rgba(0, 0, 0, 0.18);
  transform-origin: center bottom;
  transition: height 70ms linear, opacity 70ms linear, transform 70ms linear;
}

.music-youtube-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.hero-music-copy {
  display: none;
}

.music-track-meta .music-track-note {
  display: none;
}

.music-progress-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.music-time-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-strong);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--border-soft);
}

body[data-theme="dark"] .music-time-pill {
  background: rgba(20, 32, 45, 0.78);
}

.music-time-pill-end {
  background: rgba(73, 161, 223, 0.12);
  color: #2471ab;
}

body[data-theme="dark"] .music-time-pill-end {
  background: rgba(73, 161, 223, 0.18);
  color: #8bcdfd;
}

.music-progress,
.music-volume-wrap input {
  width: 100%;
  accent-color: #2471ab;
}

.music-console-row {
  display: flex;
  justify-content: center;
}

.music-primary-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-width: min(100%, 320px);
  padding: 10px 20px;
  border-radius: 999px;
  background: #202020;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.music-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition: transform var(--transition), color var(--transition), opacity var(--transition);
}

.music-icon-btn:hover:not(.music-icon-btn-strong) {
  transform: translateY(-1px);
  color: #fff;
}

.music-icon-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.music-icon-btn-strong {
  width: 74px;
  height: 74px;
  background: #fff;
  color: #202020;
}

.music-icon-btn-strong:hover,
.music-icon-btn-strong:focus-visible {
  transform: translateY(-1px);
  background: #f5efe8;
  color: #202020;
}

.music-icon-btn-strong svg {
  width: 34px;
  height: 34px;
}

.music-volume-wrap {
  display: grid;
  gap: 8px;
  min-width: min(100%, 280px);
}

.music-volume-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.music-track-meta {
  display: grid;
  align-items: center;
  grid-template-columns: auto minmax(220px, 300px);
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 0;
}

.music-track-counter {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(73, 161, 223, 0.12);
  color: #2471ab;
  font-size: 0.92rem;
  font-weight: 800;
}

body[data-theme="dark"] .music-track-counter {
  background: rgba(73, 161, 223, 0.18);
  color: #8bcdfd;
}

.music-track-note {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  color: var(--text-soft);
  font-size: 0.9rem;
  text-align: right;
}

#productsResultsRegion {
  display: grid;
  gap: 22px;
}

#productsResultsRegion.is-loading {
  opacity: 0.58;
  transition: opacity var(--transition);
}

.hero-cache-card {
  display: grid;
  gap: 20px;
  grid-column: span 2;
}

.hero-cache-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-cache-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-cache-indicator.hit {
  background: rgba(34, 197, 94, 0.12);
  color: #18743e;
}

.hero-cache-indicator.miss {
  background: rgba(245, 158, 11, 0.14);
  color: #a86208;
}

body[data-theme="dark"] .hero-cache-indicator.hit {
  color: #98efb5;
}

body[data-theme="dark"] .hero-cache-indicator.miss {
  color: #ffd086;
}

.hero-cache-actions {
  display: flex;
  justify-content: flex-end;
}

.cache-clear-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--surface-muted);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cache-clear-control:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.cache-clear-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 800;
}

.cache-clear-text,
.cache-clear-trash {
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-panel,
.product-detail-section,
.cart-main-panel,
.cart-summary-panel,
.product-gallery-panel,
.product-info-panel {
  padding: 28px;
}

.filter-panel {
  position: relative;
  z-index: 40;
  overflow: visible;
  position: sticky;
  top: 16px;
  margin-top: -4px;
  backdrop-filter: blur(22px);
}

.filter-form-modern {
  display: grid;
  gap: 18px;
}

.filter-modern-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.7fr) auto;
  gap: 16px;
  align-items: end;
}

.search-field-shell {
  position: relative;
}

.filter-form-modern,
.form-group {
  overflow: visible;
}

.form-group.form-group-wide {
  position: relative;
  z-index: 41;
}

.form-group.form-group-category {
  position: relative;
  z-index: 41;
}

.search-field-shell input {
  padding-right: 52px;
}

.search-clear-btn {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.06);
  color: #8d98a7;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

body[data-theme="dark"] .search-clear-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #b8c2ce;
}

.search-clear-btn[hidden] {
  display: none;
}

.search-history-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.search-history-panel[hidden] {
  display: none;
}

.search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.search-history-head strong {
  color: var(--accent-strong);
  font-size: 0.92rem;
}

.search-history-trash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-soft);
  cursor: pointer;
}

body[data-theme="dark"] .search-history-trash {
  background: rgba(255, 255, 255, 0.08);
}

.search-history-trash svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.search-history-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-history-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

body[data-theme="dark"] .search-history-chip {
  background: rgba(20, 32, 45, 0.72);
}

.category-select-shell {
  position: relative;
}

.category-select-native {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.category-select-trigger {
  position: relative;
  width: 100%;
  min-height: 58px;
  padding: 0 48px 0 16px;
  border: 1px solid rgba(227, 201, 171, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 247, 240, 0.94));
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow:
    0 10px 24px rgba(222, 206, 188, 0.24),
    inset 0 0 0 4px rgba(250, 241, 229, 0.78);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    transform var(--transition);
}

body[data-theme="dark"] .category-select-trigger {
  background: rgba(13, 23, 34, 0.82);
}

.category-select-trigger:focus-visible,
.category-select-shell.is-open .category-select-trigger {
  border-color: rgba(214, 177, 136, 0.95);
  box-shadow:
    0 12px 28px rgba(222, 206, 188, 0.3),
    inset 0 0 0 4px rgba(250, 241, 229, 0.92),
    0 0 0 4px rgba(214, 177, 136, 0.12);
  transform: translateY(-1px);
}

.category-select-label {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 500;
}

.category-select-chevron {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  color: #1b2532;
  transform: translateY(-50%);
  transition: transform var(--transition), color var(--transition);
}

.category-select-chevron svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-select-shell.is-open .category-select-chevron {
  transform: translateY(-50%) rotate(180deg);
  color: var(--accent-strong);
}

.category-select-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 60;
  width: min(100%, 440px);
  display: grid;
  gap: 8px;
  max-height: 300px;
  padding: 10px;
  overflow: auto;
  border: 1px solid rgba(242, 230, 216, 0.95);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow:
    0 24px 50px rgba(187, 164, 137, 0.18),
    0 6px 18px rgba(226, 212, 196, 0.28);
  backdrop-filter: blur(20px);
}

.category-select-panel[hidden] {
  display: none;
}

.category-select-panel::-webkit-scrollbar {
  width: 10px;
}

.category-select-panel::-webkit-scrollbar-track {
  margin: 10px 0;
  background: transparent;
}

.category-select-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255, 253, 249, 0.98);
  border-radius: 999px;
  background: rgba(131, 131, 131, 0.78);
}

.category-select-option {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.category-select-option:hover {
  background: rgba(238, 226, 211, 0.54);
  transform: translateY(-1px);
}

.category-select-option.is-selected {
  background: linear-gradient(180deg, rgba(244, 231, 214, 0.95), rgba(239, 223, 203, 0.96));
  color: var(--accent-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body[data-theme="dark"] .category-select-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="dark"] .category-select-panel {
  background: rgba(17, 27, 37, 0.98);
  border: 1px solid rgba(255, 240, 226, 0.12);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.38),
    0 6px 18px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .category-select-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(17, 27, 37, 0.98);
  background: rgba(255, 255, 255, 0.22);
}

body[data-theme="dark"] .category-select-option {
  color: #f7efe6;
}

body[data-theme="dark"] .category-select-option.is-selected {
  background: rgba(240, 178, 111, 0.16);
  color: #fff6ec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body[data-theme="dark"] .category-select-chevron {
  color: #f7efe6;
}

.filter-action-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.empty-products-state {
  padding: 40px 34px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.empty-products-state h3 {
  margin: 0 0 12px;
  font-size: 1.9rem;
  color: var(--accent-strong);
}

.empty-products-state p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.products-grid-modern,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.products-grid-modern {
  position: relative;
  z-index: 1;
}

.products-page .products-grid-modern {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.products-page .product-modern-card {
  position: relative;
  min-height: 430px;
  perspective: 1600px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.products-page .product-card-flip {
  position: relative;
  min-height: 430px;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.products-page .product-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  backface-visibility: hidden;
}

.products-page .product-card-face-front {
  min-height: 100%;
}

.products-page .product-card-face-front.product-modern-image {
  min-height: 100%;
  padding: 18px;
}

.products-page .product-card-face-back {
  display: grid;
  grid-template-rows: 180px minmax(0, 1fr);
  transform: rotateY(180deg);
}

.products-page .product-modern-image-back {
  min-height: 180px;
  border-radius: 0;
}

.products-page .product-modern-image {
  min-height: 180px;
  padding: 18px;
}

.products-page .product-modern-image span {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.88rem;
}

.products-page .product-modern-body {
  gap: 12px;
  padding: 16px;
}

.products-page .product-modern-category {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.76rem;
}

.products-page .product-modern-body h3 {
  font-size: 1.1rem;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-page .product-modern-description {
  min-height: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-page .product-modern-footer {
  display: grid;
  gap: 12px;
}

.products-page .product-modern-price {
  font-size: 1.15rem;
}

.products-page .product-card-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
  align-items: center;
  width: 100%;
  gap: 6px;
}

.products-page .product-card-actions > * {
  min-width: 0;
}

.products-page .product-inline-form {
  display: block;
}

.products-page .product-inline-form .btn,
.products-page .product-ghost-btn {
  width: 100%;
}

.products-page .product-ghost-btn,
.products-page .btn-inline {
  min-height: 40px;
  min-width: 0;
  padding: 0 14px;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .products-page .product-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
    border-color: transparent;
  }

  .products-page .product-modern-card:hover .product-card-flip {
    transform: rotateY(180deg);
  }

  .products-page .product-modern-card:hover .product-card-face {
    box-shadow: var(--shadow-hover);
    border-color: rgba(197, 137, 75, 0.26);
  }
}

@media (hover: none), (pointer: coarse) {
  .products-page .product-modern-card {
    min-height: auto;
    perspective: none;
  }

  .products-page .product-card-flip {
    min-height: auto;
    transform: none;
  }

  .products-page .product-card-face {
    position: relative;
    inset: auto;
    backface-visibility: visible;
  }

  .products-page .product-card-face-front {
    display: none;
  }

  .products-page .product-card-face-back {
    transform: none;
  }
}

@media (min-width: 1080px) {
  .products-page .products-grid-modern {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product-modern-card {
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.product-modern-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(197, 137, 75, 0.26);
}

.product-modern-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 24px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(24, 37, 53, 0.1), rgba(197, 137, 75, 0.18)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(239, 229, 216, 0.94));
}

body[data-theme="dark"] .product-modern-image {
  background:
    linear-gradient(145deg, rgba(240, 178, 111, 0.08), rgba(213, 227, 242, 0.06)),
    linear-gradient(180deg, rgba(16, 27, 39, 0.88), rgba(22, 34, 48, 0.96));
}

.product-modern-image span,
.cart-item-media span,
.product-gallery-main strong,
.product-gallery-thumb strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(24, 37, 53, 0.08);
}

body[data-theme="dark"] .product-modern-image span,
body[data-theme="dark"] .cart-item-media span,
body[data-theme="dark"] .product-gallery-main strong,
body[data-theme="dark"] .product-gallery-thumb strong {
  background: rgba(255, 250, 244, 0.12);
}

.product-image-link {
  transition: opacity var(--transition);
}

.product-image-link:hover {
  opacity: 0.92;
}

.product-modern-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.product-modern-category,
.product-detail-category {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-modern-body h3 {
  margin: 0;
  font-size: 1.48rem;
  line-height: 1.16;
  color: var(--accent-strong);
}

.product-modern-description {
  margin: 0;
  min-height: 76px;
  color: var(--text-soft);
  line-height: 1.75;
}

.product-modern-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-modern-price,
.product-detail-price,
.cart-item-subtotal {
  color: var(--accent-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.product-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-inline-form {
  margin: 0;
}

.product-ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
}

body[data-theme="dark"] .product-ghost-btn {
  background: rgba(20, 32, 45, 0.72);
}

.product-ghost-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.pagination-modern {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px auto 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.68);
  box-shadow: 0 16px 34px rgba(43, 24, 14, 0.08);
  backdrop-filter: blur(18px);
}

body[data-theme="dark"] .pagination-modern {
  border-color: rgba(255, 240, 226, 0.1);
  background: rgba(17, 27, 37, 0.84);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.page-link-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(68, 40, 20, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
}

body[data-theme="dark"] .page-link-modern {
  border-color: rgba(255, 240, 226, 0.08);
  background: rgba(20, 32, 45, 0.72);
}

.page-link-modern:hover {
  transform: translateY(-1px);
  border-color: rgba(197, 137, 75, 0.24);
  box-shadow: 0 14px 28px rgba(24, 37, 53, 0.1);
}

.page-link-modern.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: var(--accent);
  box-shadow: 0 16px 30px rgba(24, 37, 53, 0.2);
}

body[data-theme="dark"] .page-link-modern.active {
  color: #102031;
  border-color: #fff2e0;
  background: linear-gradient(135deg, #fff2e0, #f0bb82);
}

.products-footer {
  position: relative;
  display: grid;
  gap: 26px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-main);
  box-shadow: none;
  overflow: visible;
}

body[data-theme="dark"] .products-footer {
  background: transparent;
  border-color: transparent;
}

.products-footer::before {
  content: none;
}

.products-footer-newsletter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, rgba(24, 37, 53, 0.9), rgba(29, 53, 80, 0.88));
  color: #f6ede4;
  box-shadow: 0 18px 36px rgba(8, 22, 39, 0.14);
}

body[data-theme="dark"] .products-footer-newsletter {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 40%),
    linear-gradient(135deg, rgba(20, 38, 59, 0.95), rgba(17, 27, 37, 0.95));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.products-footer-eyebrow {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.products-footer-newsletter h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
  color: #f6ede4;
}

.products-footer-newsletter p {
  margin: 12px 0 0;
  max-width: 640px;
  color: rgba(246, 237, 228, 0.84);
  line-height: 1.75;
}

.products-footer-subscribe {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  align-self: center;
}

.products-footer-subscribe input {
  width: 100%;
  min-height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #f7efe6;
  color: var(--accent-strong);
  outline: none;
}

.products-footer-subscribe input::placeholder {
  color: #7b8998;
}

.products-footer-subscribe .btn {
  min-width: 148px;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

body[data-theme="dark"] .products-footer-subscribe input {
  background: rgba(255, 248, 238, 0.92);
  color: #162638;
}

body[data-theme="dark"] .products-footer-subscribe .btn {
  color: #102031;
  border-color: #fff2e0;
  background: linear-gradient(135deg, #fff2e0, #f0bb82);
}

.products-footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(160px, 1fr));
  gap: 26px;
}

.products-footer-brand {
  display: grid;
  gap: 14px;
}

.products-footer-brand .brand-logo {
  color: var(--text-main);
}

.products-footer-brand p,
.products-footer-links span,
.products-footer-links a {
  color: var(--text-soft);
  line-height: 1.8;
}

.products-footer-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.products-footer-links h3 {
  margin: 0 0 4px;
  color: var(--text-main);
  font-size: 1.18rem;
}

.products-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-faint);
}

.products-footer-bottom-links {
  display: none;
}

.product-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 600;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 22px;
}

.product-gallery-panel {
  display: grid;
  gap: 16px;
}

.product-gallery-main {
  display: grid;
  place-items: center;
  gap: 16px;
  min-height: 360px;
  padding: 30px;
  text-align: center;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(24, 37, 53, 0.08), rgba(197, 137, 75, 0.14)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(239, 229, 216, 0.9));
}

body[data-theme="dark"] .product-gallery-main {
  background:
    linear-gradient(145deg, rgba(240, 178, 111, 0.08), rgba(213, 227, 242, 0.06)),
    linear-gradient(180deg, rgba(16, 27, 39, 0.88), rgba(22, 34, 48, 0.96));
}

.product-gallery-label {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-gallery-main small {
  color: var(--text-soft);
  font-size: 0.98rem;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-gallery-thumb {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-muted);
}

.product-gallery-thumb span {
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.product-info-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.product-info-panel h1 {
  font-size: clamp(2.6rem, 4vw, 3.8rem);
  line-height: 0.96;
}

.product-detail-description {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.86;
}

.product-detail-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.product-detail-tax {
  color: var(--text-soft);
  font-size: 0.94rem;
}

.product-detail-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.highlight-card {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-muted);
}

.highlight-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.highlight-card strong {
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.product-purchase-form {
  display: grid;
  gap: 16px;
}

.product-quantity-row {
  display: grid;
  gap: 8px;
}

.product-quantity-row label {
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-quantity-row input {
  max-width: 160px;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-main);
  outline: none;
}

body[data-theme="dark"] .product-quantity-row input {
  background: rgba(13, 23, 34, 0.82);
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading-row h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-heading-row p {
  max-width: 460px;
  margin: 0;
}

.review-card {
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--surface-muted);
}

.review-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.review-card-head strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
  color: var(--accent-strong);
}

.review-card-head span {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.review-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 800;
}

.review-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: var(--accent-strong);
}

.review-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.78;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.cart-main-panel h1 {
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 0.98;
}

.cart-heading-row {
  margin-bottom: 24px;
}

.cart-page .empty-products-state {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 52px 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at bottom right, rgba(73, 161, 223, 0.14), rgba(73, 161, 223, 0) 44%),
    linear-gradient(145deg, rgba(24, 37, 53, 0.25), rgba(12, 28, 43, 0.32)),
    rgba(9, 25, 40, 0.62);
  box-shadow:
    0 26px 52px rgba(6, 19, 33, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.cart-page .empty-products-state::before {
  content: "";
  width: 62px;
  height: 62px;
  margin-bottom: 4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 58%),
    rgba(9, 25, 40, 0.68);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.cart-page .empty-products-state h3 {
  margin: 0;
  color: #f7efe6;
  font-size: clamp(2.1rem, 3.2vw, 3rem);
  line-height: 1.06;
}

.cart-page .empty-products-state p {
  margin: 0;
  max-width: 700px;
  color: rgba(247, 239, 230, 0.8);
  font-size: 1.05rem;
  line-height: 1.7;
}

.cart-empty-actions {
  margin-top: 8px;
}

.cart-empty-actions .btn {
  min-width: 220px;
  min-height: 60px;
  padding: 0 30px;
  border-radius: 20px;
  font-size: 1.08rem;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(234, 193, 142, 0.18);
}

body[data-theme="dark"] .cart-page .empty-products-state {
  border-color: rgba(255, 240, 226, 0.14);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at bottom right, rgba(73, 161, 223, 0.18), rgba(73, 161, 223, 0) 44%),
    linear-gradient(145deg, rgba(18, 36, 56, 0.9), rgba(10, 24, 38, 0.92));
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .cart-page .empty-products-state::before {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 58%),
    rgba(9, 25, 40, 0.82);
}

.cart-summary-panel {
  position: sticky;
  top: 24px;
}

.cart-summary-panel h2 {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.summary-copy {
  margin: 0 0 20px;
  font-size: 0.96rem;
}

.cart-item-list,
.checkout-mini-list {
  display: grid;
  gap: 16px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--surface-muted);
}

.cart-item-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(24, 37, 53, 0.08), rgba(197, 137, 75, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(239, 229, 216, 0.9));
  text-align: center;
}

body[data-theme="dark"] .cart-item-media {
  background:
    linear-gradient(145deg, rgba(240, 178, 111, 0.08), rgba(213, 227, 242, 0.06)),
    linear-gradient(180deg, rgba(16, 27, 39, 0.88), rgba(22, 34, 48, 0.96));
}

.cart-item-content {
  display: grid;
  gap: 18px;
}

.cart-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.cart-item-top h3 {
  margin: 10px 0 8px;
  font-size: 1.46rem;
  color: var(--accent-strong);
}

.cart-item-price-note {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.cart-item-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-quantity-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-quantity-form label {
  color: var(--text-soft);
  font-weight: 700;
}

.cart-quantity-form input {
  width: 96px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-main);
}

body[data-theme="dark"] .cart-quantity-form input {
  background: rgba(13, 23, 34, 0.82);
}

.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-soft);
}

.summary-line span {
  color: var(--text-soft);
}

.summary-line strong {
  color: var(--accent-strong);
}

.summary-line-total strong {
  font-size: 1.4rem;
}

.cart-summary-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.checkout-span-2 {
  grid-column: span 2;
}

.checkout-mini-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-muted);
}

.checkout-mini-item div {
  display: grid;
  gap: 4px;
}

.checkout-mini-item span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.checkout-method-note {
  display: none;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.checkout-method-note.is-active {
  display: block;
}

.checkout-voucher-panel {
  display: grid;
  gap: 14px;
  margin-top: 2px;
  padding: 28px;
  position: static;
  top: auto;
  backdrop-filter: blur(18px);
}

.checkout-side-column {
  grid-column: 2;
  align-self: start;
  display: grid;
  gap: 22px;
}

.checkout-voucher-head {
  display: grid;
  gap: 6px;
}

.checkout-voucher-head strong,
.checkout-voucher-head span {
  display: block;
}

.checkout-voucher-suggest {
  display: grid;
  gap: 10px;
}

.checkout-voucher-suggest-label {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-voucher-chip-list {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scroll-behavior: smooth;
  padding-bottom: 2px;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.checkout-voucher-chip {
  position: relative;
  display: inline-grid;
  grid-template-columns: minmax(260px, 1fr) 138px;
  align-items: stretch;
  width: 580px;
  max-width: 100%;
  flex: 0 0 580px;
  min-height: 126px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #080a0f;
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  scroll-snap-align: start;
}

.checkout-voucher-chip-list::-webkit-scrollbar {
  display: none;
}

.checkout-voucher-carousel {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.checkout-voucher-chip-list-wrap {
  min-width: 0;
  overflow: hidden;
}

.voucher-scroll-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--accent-strong);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

body[data-theme="dark"] .voucher-scroll-btn {
  background: rgba(20, 32, 45, 0.74);
}

.voucher-scroll-btn:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.checkout-voucher-chip::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -6px;
  width: 12px;
  background:
    radial-gradient(circle at left 6px top 6px, var(--bg-main) 5px, transparent 5.5px) 0 0 / 12px 18px repeat-y;
}

.checkout-voucher-chip-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 22px;
  text-align: left;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-right: 0;
  margin: 16px 0 16px 16px;
}

.checkout-voucher-chip-value-row {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.checkout-voucher-chip-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.checkout-voucher-chip-value {
  color: #ffbf2f;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.checkout-voucher-chip-sideword {
  color: #f4f7fb;
  font-style: normal;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  align-self: flex-end;
  margin-bottom: 0.1em;
}

.checkout-voucher-chip-tail {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  padding: 14px 10px;
  background:
    radial-gradient(circle at 0 6px, var(--bg-main) 5px, transparent 5.5px) left top / 10px 18px repeat-y,
    radial-gradient(circle at 100% 6px, var(--bg-main) 6px, transparent 6.5px) right top / 12px 18px repeat-y,
    #f7b610;
}

.checkout-voucher-chip-tail span {
  color: #101722;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.checkout-voucher-chip-tail img {
  width: 82px;
  height: 82px;
  display: block;
  padding: 6px;
  border-radius: 0;
  background: #fff;
  object-fit: cover;
}

.checkout-voucher-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.26);
}

body[data-theme="dark"] .checkout-voucher-chip {
  border: 0;
}

.checkout-voucher-head .checkout-voucher-chip-value {
  color: #ffbf2f;
}

.checkout-voucher-head .checkout-voucher-chip-kicker,
.checkout-voucher-head .checkout-voucher-chip-sideword {
  color: #f4f7fb;
}

.checkout-voucher-head strong {
  color: var(--accent-strong);
  font-size: 1.12rem;
  line-height: 1.25;
}

.checkout-voucher-head span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.7;
}

.checkout-voucher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.checkout-voucher-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-main);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.checkout-voucher-form input::placeholder {
  color: var(--text-faint);
}

.checkout-voucher-form input:focus {
  border-color: rgba(197, 137, 75, 0.5);
  box-shadow: 0 0 0 4px rgba(197, 137, 75, 0.12);
}

body[data-theme="dark"] .checkout-voucher-form input {
  background: rgba(13, 23, 34, 0.82);
  border-color: rgba(255, 240, 226, 0.16);
}

.checkout-voucher-form .btn {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  justify-self: start;
  padding: 0 24px;
}

.checkout-voucher-active {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed var(--border-soft);
}

.checkout-voucher-active span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.checkout-voucher-active strong {
  color: var(--accent-strong);
}

.checkout-voucher-active .btn {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 14px;
}

body[data-theme="dark"] .checkout-voucher-panel {
  position: static;
  top: auto;
}

.payment-flow-panel {
  display: grid;
  gap: 20px;
}

.payment-order-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.payment-order-banner > div,
.payment-method-panel,
.payment-guidance {
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: var(--surface-muted);
}

.payment-order-banner span,
.payment-bank-meta span {
  display: block;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.payment-order-banner strong {
  display: block;
  margin-top: 10px;
  color: var(--accent-strong);
  font-size: 1.2rem;
}

.payment-method-panel {
  display: grid;
  gap: 18px;
}

.payment-method-card {
  position: relative;
  min-height: 210px;
  padding: 24px;
  border-radius: 28px;
  color: #f9efe4;
  background: linear-gradient(145deg, #16263a, #203552 58%, #34527a);
  box-shadow: var(--shadow-card);
}

.payment-method-card-visa strong {
  display: block;
  margin: 50px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: 0.14em;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.82rem;
  font-weight: 700;
}

.payment-guidance {
  display: grid;
  gap: 12px;
}

.payment-guidance h3 {
  margin: 0;
}

.payment-guidance p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.payment-bank-meta {
  display: grid;
  gap: 8px;
}

.payment-qr-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: #ffffff;
}

.payment-qr-shell img {
  width: min(100%, 320px);
  height: auto;
  display: block;
}

.payment-action-form {
  display: flex;
  justify-content: flex-start;
}

.orders-shell {
  gap: 20px;
}

.orders-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.order-status-card,
.order-history-card {
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: var(--surface-muted);
}

.order-status-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.order-status-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
  color: var(--accent-strong);
}

.orders-filter-form {
  padding: 20px;
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
    var(--surface-card);
  box-shadow:
    0 16px 34px rgba(24, 37, 53, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.orders-filter-form .form-group {
  min-width: min(100%, 340px);
}

.orders-filter-form .category-select-panel {
  width: min(100%, 280px);
}

.orders-filter-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.orders-history-list {
  display: grid;
  gap: 16px;
}

.order-history-head,
.order-history-meta {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.order-history-main {
  display: grid;
  gap: 7px;
  min-width: min(100%, 340px);
}

.order-history-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(73, 161, 223, 0.12);
  border: 1px solid rgba(73, 161, 223, 0.18);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-history-main strong,
.order-history-total {
  color: var(--accent-strong);
  font-size: 1.28rem;
}

.order-history-date,
.order-history-meta span,
.order-history-note {
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}

.order-history-side {
  display: grid;
  justify-items: end;
  gap: 12px;
}

.order-history-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.44), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, rgba(24, 37, 53, 0.04), rgba(73, 161, 223, 0.08)),
    var(--surface-muted);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.order-history-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(73, 161, 223, 0.95), rgba(197, 137, 75, 0.95));
  opacity: 0.8;
}

.order-history-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(17, 29, 45, 0.11);
}

.order-history-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.order-history-meta span {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

body[data-theme="dark"] .order-history-meta span {
  background: rgba(14, 25, 36, 0.72);
}

.order-history-meta span strong {
  color: var(--accent-strong);
  font-size: 0.96rem;
}

.order-history-note {
  margin: 0;
  padding: 10px 14px;
  border: 1px dashed rgba(198, 86, 71, 0.38);
  border-radius: 14px;
  background: rgba(198, 86, 71, 0.1);
}

.order-history-card .checkout-mini-list {
  gap: 10px;
}

.order-history-card .checkout-mini-item {
  padding: 14px 16px;
  border-radius: 16px;
}

body[data-theme="dark"] .orders-filter-form {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 42%),
    rgba(17, 27, 37, 0.9);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body[data-theme="dark"] .order-history-code {
  background: rgba(73, 161, 223, 0.2);
  border-color: rgba(73, 161, 223, 0.28);
  color: #8bcdfd;
}

body[data-theme="dark"] .order-history-card {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 44%),
    linear-gradient(145deg, rgba(73, 161, 223, 0.08), rgba(240, 178, 111, 0.06)),
    rgba(16, 27, 39, 0.88);
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.order-status-pill.is-pending,
.order-status-card.is-pending {
  background: rgba(226, 174, 52, 0.14);
  border-color: rgba(226, 174, 52, 0.18);
}

.order-status-pill.is-paid,
.order-status-card.is-paid {
  background: rgba(67, 158, 108, 0.14);
  border-color: rgba(67, 158, 108, 0.18);
}

.order-status-pill.is-cancelled,
.order-status-card.is-cancelled {
  background: rgba(198, 86, 71, 0.14);
  border-color: rgba(198, 86, 71, 0.18);
}

.payment-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 17, 28, 0.36);
  backdrop-filter: blur(10px);
}

.payment-loading-card {
  width: min(100%, 420px);
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.payment-loading-card strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 1.2rem;
  color: var(--accent-strong);
}

.payment-loading-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.8;
}

.payment-loading-spinner {
  display: inline-block;
  width: 54px;
  height: 54px;
  border: 4px solid rgba(197, 137, 75, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: payment-spin 0.85s linear infinite;
}

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

.success-actions {
  justify-content: center;
}

.card {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 36px;
}

.card h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}

.card ul {
  padding-left: 20px;
  color: var(--text-soft);
  line-height: 1.8;
}

.card hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 22px 0;
}

@media (max-width: 1200px) {
  .auth-layout,
  .products-hero,
  .product-detail-hero,
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-panel {
    position: static;
  }

  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .products-footer-newsletter,
  .products-footer-grid {
    grid-template-columns: 1fr;
  }

  .products-footer-subscribe {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .products-page .products-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .orders-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-order-banner {
    grid-template-columns: 1fr;
  }

  .checkout-side-column {
    grid-column: auto;
  }

  .order-history-meta {
    grid-template-columns: 1fr;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-header-inner,
  .section-heading-row,
  .cart-item-top {
    flex-direction: column;
    align-items: start;
  }

  .auth-layout {
    gap: 20px;
  }

  .products-hero-side,
  .products-grid-modern,
  .product-detail-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-music-card,
  .hero-cache-card {
    grid-column: span 2;
  }

  .filter-modern-grid,
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .products-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-span-2 {
    grid-column: auto;
  }

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

  .checkout-voucher-form .btn {
    width: 100%;
    justify-self: stretch;
  }

  .product-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .products-page .products-grid-modern {
    grid-template-columns: 1fr;
  }

  .orders-status-grid {
    grid-template-columns: 1fr;
  }

  .cart-page .empty-products-state {
    padding: 36px 22px;
    border-radius: 24px;
  }

  .cart-page .empty-products-state h3 {
    font-size: 2rem;
  }

  .cart-page .empty-products-state p {
    font-size: 0.98rem;
  }

  .cart-empty-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    font-size: 1rem;
  }

  .orders-filter-form .form-group {
    min-width: 100%;
  }

  .order-history-side {
    width: 100%;
    justify-items: start;
  }

  .app-body {
    padding: 14px;
  }

  .site-shell {
    min-height: calc(100vh - 28px);
    border-radius: 28px;
  }

  .site-header,
  .page-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .theme-toggle,
  .nav-pill {
    min-height: 46px;
  }

  .theme-toggle {
    inline-size: 172px;
    min-width: 172px;
  }

  .auth-showcase,
  .auth-form-card,
  .center-card,
  .products-hero-copy,
  .filter-panel,
  .product-detail-section,
  .product-gallery-panel,
  .product-info-panel,
  .cart-main-panel,
  .cart-summary-panel {
    padding: 22px;
  }

  .showcase-grid,
  .products-hero-side,
  .products-grid-modern,
  .review-grid,
  .product-detail-highlights,
  .product-gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-music-card,
  .hero-cache-card {
    grid-column: auto;
  }

  .cart-item-card {
    grid-template-columns: 1fr;
  }

  .cart-item-media {
    min-height: 160px;
  }

  .product-modern-footer,
  .cart-item-actions-row,
  .checkout-actions,
  .product-action-row {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card-actions {
    width: 100%;
  }

  .product-card-actions > * {
    flex: 1 1 0;
  }

  .product-ghost-btn,
  .btn-inline,
  .btn-detail-action {
    width: 100%;
  }

  .music-console-row {
    width: 100%;
    justify-content: center;
  }

  .music-primary-controls {
    width: 100%;
    gap: 18px;
  }

  .music-track-meta {
    grid-template-columns: 1fr;
  }

  .hero-music-topline {
    flex-wrap: wrap;
  }

  .music-volume-wrap {
    min-width: 0;
    width: 100%;
  }

  .music-volume-label {
    text-align: left;
  }

  .filter-panel {
    top: 10px;
  }

  .products-footer {
    padding: 0;
  }

  .products-footer-newsletter {
    padding: 22px;
  }

  .products-footer-subscribe {
    flex-direction: column;
    align-items: stretch;
  }

  .products-footer-subscribe .btn {
    width: 100%;
  }

  .alert {
    top: 84px;
  }
}

@media (max-width: 520px) {
  .brand-tagline {
    font-size: 0.88rem;
  }

  .showcase-title,
  .products-hero-copy h1,
  .product-info-panel h1,
  .cart-main-panel h1 {
    font-size: 2.4rem;
  }

  .auth-form-card h2,
  .center-card h2,
  .section-heading-row h2,
  .cart-summary-panel h2 {
    font-size: 2rem;
  }

  .flash-toast-wrap {
    right: 12px;
    left: 12px;
  }

  .flash-toast {
    min-width: 0;
    max-width: none;
  }

  .alert {
    top: 76px;
    padding-right: 48px;
    padding-left: 58px;
  }

  .products-footer-newsletter h2 {
    font-size: 2rem;
  }

  .products-footer-bottom-links {
    gap: 12px;
  }

  .checkout-voucher-chip {
    grid-template-columns: minmax(0, 1fr) 110px;
    width: 460px;
    max-width: 100%;
    flex-basis: 460px;
    min-height: 108px;
  }

  .checkout-voucher-chip-main {
    margin: 12px 0 12px 12px;
    padding: 12px 14px;
  }

  .checkout-voucher-chip-value {
    font-size: 2.6rem;
  }

  .checkout-voucher-chip-sideword {
    font-size: 0.94rem;
    right: -6px;
  }

  .checkout-voucher-chip-tail img {
    width: 62px;
    height: 62px;
  }

  .voucher-scroll-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
}

.product-modern-image {
  position: relative;
  overflow: hidden;
}

.product-modern-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.products-page .product-modern-image,
.products-page .product-modern-image-back {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.products-page .product-modern-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-detail-main-img {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-detail-thumb-img {
  width: 100%;
  height: 88px;
  display: block;
  object-fit: contain;
  object-position: center;
}
