:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --border: #e5e7eb;
  --primary: #2c2c2c;
  --accent: #0060ff;
  --samsung-blue: #0a6cff;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px rgba(18, 18, 18, 0.08);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

.is-hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;

  background: var(--bg);
  color: #111827;
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #111827;
  text-decoration: none;
}

.brand-logo {
  height: 73px;
  display: block;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  gap: 12px;
  margin-left: 32px;
  flex: 1 1 auto;
}

.primary-nav a {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.primary-nav a.is-active {
  background: #111827;
  color: #fff;
}

.primary-nav a:not(.is-active):hover {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.support-link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
}

.support-link:hover {
  color: #111827;
}

.btn.compact {
  min-height: 46px;
  padding: 0 24px;
  font-size: 15px;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 24px) 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.header-hidden .page {
  padding-top: 24px;
}

.header-hidden .site-header {
  display: none;
}

.hero-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 24px 12px;
  border-radius: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  background: #fff;
  box-shadow: none;
  position: sticky;
  top: calc(var(--header-height) + 12px);
  z-index: 40;
  margin-bottom: 24px;
}

.header-hidden .hero-bar {
  top: 12px;
}

.hero-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-info {
  flex: 1 1 auto;
}

.header-hotline {
  margin-left: auto;
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-hotline strong {
  color: #111827;
}

.hotline-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: #eef2ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hotline-icon svg {
  width: 16px;
  height: 16px;
}

.hotline-label {
  color: #6b7280;
}

.hero-pricing {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 0 0 auto;
  position: relative;
  padding-top: 36px;
}

.hero-pricing .price-block {
  margin-right: 4px;
}

.flash-sale {
  position: absolute;
  top: -6px;
  right: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px 3px 8px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ef4444, #f97316);
  color: #fff;
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
  overflow: hidden;
  animation: flashPulse 2.6s ease-in-out infinite;
  transform-origin: right top;
  transform: scale(0.5);
}

.flash-sale::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.4), transparent 55%);
  pointer-events: none;
}

.flash-badge {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(4px);
}

.flash-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: auto;
  white-space: nowrap;
  align-items: flex-end;
}

.flash-highlight {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flash-copy span {
  font-size: 10px;
  color: #fff7db;
  font-weight: 600;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .hero-pricing {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0;
  }

  .flash-sale {
    position: static;
    transform: scale(1);
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 16px;
    margin-bottom: 8px;
  }
}

.flash-sale.is-ending {
  animation-duration: 1.2s;
  background: linear-gradient(120deg, #b91c1c, #f97316);
  box-shadow: 0 18px 36px rgba(185, 28, 28, 0.45);
}

.flash-sale.is-finished {
  animation: none;
  background: linear-gradient(120deg, #475569, #334155);
  box-shadow: none;
}

.flash-sale.is-finished .flash-badge {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(15, 23, 42, 0.65);
}

.flash-sale.is-finished .flash-copy span {
  color: #e2e8f0;
}

@keyframes flashPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 18px 32px rgba(239, 68, 68, 0.35);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 24px 38px rgba(249, 115, 22, 0.4);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 18px 32px rgba(239, 68, 68, 0.35);
  }
}

.price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 8px;
  text-align: right;
}

.price {
  font-size: 32px;
  font-weight: 600;
}

.price-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 13px;
  gap: 2px;
  color: #6b7280;
}

.old-price {
  color: #9ca3af;
  text-decoration: line-through;
}

.saving {
  color: var(--samsung-blue);
  font-weight: 600;
}

.hero-tabs {
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

.tab {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
}

.tab.is-active {
  color: #111827;
  border: 1px solid var(--border);
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-image {
  position: relative;
  width: 100%;
  padding: 32px;
  border-radius: 40px;
  background: linear-gradient(180deg, #fff, #eef1f5);
  min-height: 520px;
  overflow: hidden;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 32px;
  background: #fff;
  border-radius: 32px;
  z-index: 0;
}

.hero-video {
  margin: 24px 0;
  border-radius: 32px;
  background: #fff;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-video video {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.hero-video figcaption {
  margin: 12px 8px 4px;
  font-size: 14px;
  color: #6b7280;
}

.hero-frame {
  position: absolute;
  inset: 40px;
  border-radius: 32px;
  width: calc(100% - 80px);
  height: calc(100% - 80px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.hero-frame.active {
  opacity: 1;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thumb {
  border: none;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.thumb.active {
  background: #111;
  color: #fff;
}

.thumb img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.story-block {
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  margin-top: 24px;
  border: 1px solid var(--border);
  box-shadow: calc(var(--shadow) * 0.4);
}

.story-title {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 12px;
}

.story-body {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #1f2937;
}

.specs article {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.specs .label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: #9ca3af;
}

.specs .value {
  margin: 8px 0 0;
  font-weight: 600;
}

.configurator {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card header {
  margin-bottom: 12px;
}

.card header h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.card header p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.hero-info {
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.hero-bar h1 {
  margin: 0 0 8px;
}

.hero-bar .lede {
  color: #6b7280;
  margin-bottom: 16px;
}

.price {
  font-size: 32px;
  font-weight: 600;
}

.btn {
  border: none;
  border-radius: 999px;
  min-height: 56px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: #111827;
  color: #fff;
}

.btn.blue {
  background: var(--samsung-blue);
  color: #fff;
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.btn.secondary {
  background: #fff;
  color: #111;
  border: 1px solid var(--border);
}

.btn.ghost {
  background: #fff;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, 0.12);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 0 32px;
  min-height: 52px;
}

.btn.ghost:hover {
  border-color: rgba(17, 24, 39, 0.4);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.16);
}

.btn.full {
  width: 100%;
}

.option {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  min-height: 84px;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border 0.2s, background 0.2s, color 0.2s;
}

.option.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.option .title {
  font-weight: 600;
}

.option .desc {
  font-size: 13px;
  color: inherit;
  opacity: 0.82;
  line-height: 1.4;
}

.option .adjust {
  font-size: 12px;
  color: inherit;
  opacity: 0.9;
}

.option.color {
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.option.color .swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
}

.option.color.is-active .swatch {
  border-color: #fff;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quantity-card .quantity-control {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding-top: 8px;
}

.quantity-card .quantity-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.stock-remaining {
  font-size: 13px;
  color: #111827;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 16px;
  background: #ecfccb;
  border: 1px solid #d9f99d;
  white-space: nowrap;
}

.qty-btn {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #f9fafb;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.qty-btn:hover {
  background: #e5e7eb;
}

.qty-btn:active {
  transform: scale(0.96);
}

#quantityInput {
  width: 96px;
  height: 52px;
  border-radius: 18px;
  border: 1px solid var(--border);
  font-size: 20px;
  text-align: center;
  font-weight: 600;
  color: #111827;
}

.quantity-line {
  border-top: 1px dashed rgba(17, 24, 39, 0.1);
  margin-top: 4px;
  padding-top: 8px;
  font-weight: 600;
}

.input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.input input {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-size: 15px;
}

.hint {
  font-size: 14px;
  color: #6b7280;
}

.link {
  border: none;
  background: none;
  color: #2563eb;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 0 0;
}


.site-footer {
  grid-column: 1 / -1;
  margin-top: 48px;
}

.footer-card {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border-radius: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.footer-section {
  min-width: 0;
}

.footer-map {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-title {
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0;
}

.footer-text {
  max-width: 360px;
  margin: 0;
  font-size: 16px;
  color: #111827;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #111827;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-icon svg {
  width: 20px;
  height: 20px;
}

.map-frame {
  width: 280px;
  max-width: 100%;
  height: 180px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1024px) {
  .footer-card {
    grid-template-columns: 1fr 1fr;
  }

  .footer-map {
    grid-column: 1 / -1;
  }

  .map-frame {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 640px) {
  .footer-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .footer-map {
    align-items: stretch;
  }
}

.option.care {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  min-height: 96px;
}

.option.care input {
  accent-color: #111827;
  width: 22px;
  height: 22px;
}

.option.care .tag {
  margin-left: auto;
  text-align: right;
}

.option.care .badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  margin-bottom: 4px;
}

.summary .breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.summary .breakdown div {
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-size: 14px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 16px;
}

.cart-page {
  align-items: flex-start;
}

.cart-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-card {
  padding: 28px;
}

.cart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.cart-card-header h1 {
  margin: 4px 0 0;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px 140px;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #f9fafb;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.item-name {
  margin: 0;
  font-weight: 600;
}

.item-variant {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.item-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  color: #4b5563;
}

.cart-item-qty,
.cart-item-price {
  font-weight: 600;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.qty-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
}

.qty-inline-form button {
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  color: #111827;
}

.qty-inline-form input[type="number"] {
  width: 48px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  background: transparent;
}

.qty-inline-form input[type="number"]::-webkit-outer-spin-button,
.qty-inline-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-inline-form input[type="number"] {
  -moz-appearance: textfield;
}

.cart-item-price {
  text-align: right;
  font-size: 17px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-form label {
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-form input,
.checkout-form textarea {
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.payment-methods {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-methods legend {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.payment-methods label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.payment-methods input {
  width: 18px;
  height: 18px;
  accent-color: #111827;
}

.summary-card {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-lines div {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: #6b7280;
}

.summary-lines strong {
  color: #111827;
}

.summary-discount-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.summary-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  letter-spacing: 0.02em;
}

.summary-countdown::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}

.summary-note {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.empty-cart {
  padding: 24px;
  border-radius: 24px;
  border: 1px dashed var(--border);
  background: #fff;
  color: #6b7280;
  text-align: center;
}

.alert {
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.5;
}

.alert.success {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #065f46;
}

.alert.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.alert.warning {
  background: #fefce8;
  border-color: #fef08a;
  color: #854d0e;
}

.alert ul {
  margin: 0;
  padding-left: 18px;
}

.order-success-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.order-success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.order-success-details .label {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  color: #9ca3af;
  margin: 0 0 4px;
}

.order-success-details .value {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.order-success-details .value.highlight {
  font-size: 20px;
  color: #0f172a;
}

.code-line {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.order-success-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-success-items h2 {
  margin: 4px 0 4px;
}

.order-success-note {
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  background: #f8fafc;
}

.order-success-payment {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fbfbfe;
}

.order-success-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.order-success-qr img {
  width: 240px;
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 12px;
  background: #fff;
}

.order-success-payment-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.order-success-payment-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #374151;
  align-items: center;
}

.order-success-payment-list strong {
  font-size: 15px;
  color: #111827;
}

.order-success-payment-list li {
  text-align: center;
  width: 100%;
}

.countdown-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.countdown-chip.is-critical {
  background: #fff5f5;
  border-color: rgba(248, 113, 113, 0.6);
  color: #b91c1c;
}

.order-success-status {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 23, 42, 0.1);
}

.order-success-status p {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.order-success-status [data-sepay-status-text] {
  font-size: 1.05rem;
  font-weight: 700;
}

.order-success-status [data-sepay-status-text][data-status="pending"] {
  color: #b91c1c;
  font-size: 1.2rem;
}

.order-success-status [data-sepay-status-text][data-status="paid"] {
  color: #065f46;
  font-size: 1.2rem;
}

.order-success-thanks {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: #065f46;
  font-weight: 600;
}

.btn.ghost-icon {
  width: 52px;
  min-height: 52px;
  padding: 0;
  font-size: 22px;
}

.order-success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mobile-action-bar {
  display: none;
}

.mobile-action-pricing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-action-pricing small {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  color: #9ca3af;
  display: block;
  margin-bottom: 4px;
}

.mobile-action-pricing strong {
  font-size: 20px;
  display: block;
}

.mobile-shipping-badge {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
}

.mobile-shipping-badge[data-state="free"] {
  color: #059669;
}

.mobile-action-buttons {
  display: flex;
  gap: 8px;
}

.mobile-action-buttons .btn {
  flex: 1;
  min-height: 50px;
}

@media (max-width: 1024px) {
  .page {
    grid-template-columns: 1fr;
  }

  .hero-bar {
    position: static;
    top: 0;
  }

  .hero-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-pricing {
    width: 100%;
    justify-content: space-between;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .primary-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .header-actions {
    margin-left: auto;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 12px;
  }

  .cart-item-qty,
  .cart-item-price {
    text-align: left;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  body.has-mobile-action .page {
    padding-bottom: 220px;
  }

  .page {
    padding: calc(var(--header-height) + 12px) 16px 140px;
    gap: 32px;
  }

  .header-inner {
    padding: 14px 16px;
    gap: 12px;
  }

  .brand-logo {
    height: 56px;
  }

  .header-hotline {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
  }

  .cart-card,
  .summary-card,
  .checkout-card {
    padding: 24px;
  }

  .cart-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item {
    padding: 14px 16px;
  }

  .checkout-form label {
    font-size: 13px;
  }

  .order-success-payment {
    padding: 16px;
  }

  .order-success-qr {
    flex-direction: column;
  }

  .mobile-action-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.15);
    padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 16px);
    z-index: 90;
  }
}

@media (max-width: 640px) {
  .card,
  .hero-image,
  .thumb,
  .specs article {
    border-radius: 20px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .hero-pricing {
    flex-direction: column;
    align-items: flex-start;
  }

  .price-block {
    align-items: flex-start;
    text-align: left;
    margin-right: 0;
  }

  .hero-tabs {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions .btn.compact {
    flex: 1;
    width: auto;
  }

  .mobile-action-pricing {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-action-buttons {
    flex-direction: column;
  }
}

/* No additional min-width overrides needed for new hero layout */
