:root {
  --orange: #f97316;
  --orange-dark: #c2410c;
  --ink: #171717;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #fff7ed;
  --green: #15803d;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(249, 115, 22, 0.08), transparent 28%),
    linear-gradient(180deg, #fffaf5 0%, #fff 48%, #fffaf5 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button,
input,
textarea,
select {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(14px);
}

.site-header .brand {
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  font-size: 13px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #404040;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.menu-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.menu-links {
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.nav-actions {
  flex: 0 0 auto;
  gap: 10px;
}

.nav-links a {
  white-space: nowrap;
}

.nav-links a,
.cart-button,
.login-button {
  min-height: 42px;
}

.nav-links a:hover {
  color: var(--orange-dark);
}

.cart-button,
.login-button,
.load-more,
.checkout-submit,
.primary-link,
.secondary-link,
.text-button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.cart-button {
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}

.cart-button.has-items {
  background: #dc2626;
  animation: cartBlink 1.15s ease-in-out infinite;
}

.cart-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.cart-mobile-summary {
  display: none;
}

.cart-button.cart-pulse {
  animation: cartPulse 0.65s ease;
}

.cart-button.has-items.cart-pulse {
  animation:
    cartPulse 0.65s ease,
    cartBlink 1.15s ease-in-out infinite;
}

@keyframes cartBlink {

  0%,
  100% {
    background: #dc2626;
    box-shadow: 0 0 0 rgba(220, 38, 38, 0);
  }

  50% {
    background: #991b1b;
    box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.18);
  }
}

@keyframes cartPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(249, 115, 22, 0);
  }

  45% {
    transform: scale(1.08);
    box-shadow: 0 0 0 8px rgba(249, 115, 22, 0.18);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 16px rgba(249, 115, 22, 0);
  }
}

.cart-flyer {
  position: fixed;
  z-index: 1000;
  width: 68px;
  height: 68px;
  border: 3px solid #fff;
  border-radius: 10px;
  object-fit: cover;
  pointer-events: none;
  box-shadow: 0 18px 45px rgba(23, 23, 23, 0.28);
  transition:
    transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.72s ease;
}

.cart-toast {
  position: fixed;
  right: clamp(16px, 4vw, 42px);
  bottom: 24px;
  z-index: 1001;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #7c2d12;
  background: #fff7ed;
  box-shadow: 0 18px 45px rgba(23, 23, 23, 0.16);
  font-weight: 800;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.login-button {
  min-height: 42px;
  padding: 0 14px;
  color: var(--orange-dark);
  border: 1px solid #fed7aa;
  background: var(--soft);
}

.text-button {
  min-height: 40px;
  color: var(--orange-dark);
  background: transparent;
}

main {
  padding: 0 clamp(18px, 4vw, 64px) 64px;
}

.page-heading {
  padding: 54px 0 30px;
}

.checkout-hero {
  max-width: 900px;
  padding-bottom: 18px;
}

.page-heading h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.88fr) minmax(420px, 1.12fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: min(760px, calc(100vh - 84px));
  padding: clamp(34px, 6vw, 72px) 0 clamp(34px, 5vw, 62px);
}

.hero::before {
  position: absolute;
  right: -8vw;
  bottom: 8%;
  z-index: -1;
  width: min(520px, 42vw);
  height: min(520px, 42vw);
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.08);
  content: "";
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(52px, 7.2vw, 112px);
  line-height: 0.9;
}

h2 {
  font-size: clamp(26px, 3vw, 40px);
}

.hero-text {
  max-width: 560px;
  color: #525252;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-link {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.24);
}

.secondary-link {
  border: 1px solid var(--line);
  background: #fff;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-1px);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #7c2d12;
  background: rgba(255, 247, 237, 0.92);
  font-size: 13px;
  font-weight: 800;
}

.hero-highlights span::before {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.banner-shell {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  aspect-ratio: 1.9 / 1;
  border: 1px solid rgba(253, 186, 116, 0.55);
  border-radius: 12px;
  background: #111;
  box-shadow: 0 32px 90px rgba(194, 65, 12, 0.20);
}

.banner-shell::before {
  position: absolute;
  inset: 12px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  pointer-events: none;
  content: "";
}

.banner-slider,
.banner-slide {
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.banner-slide {
  display: none;
  object-fit: cover;
  object-position: center;
}

.banner-slide.active {
  display: block;
  animation: bannerReveal 0.55s ease;
}

@keyframes bannerReveal {
  from {
    opacity: 0.7;
    transform: scale(1.018);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.banner-overlay {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 3;
  display: grid;
  gap: 5px;
  max-width: min(360px, calc(100% - 56px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 10px;
  color: #fff;
  background: rgba(17, 24, 39, 0.42);
  backdrop-filter: blur(10px);
}

.banner-overlay span {
  color: #fed7aa;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.banner-overlay strong {
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.12;
}

.banner-dots {
  position: absolute;
  right: 28px;
  bottom: 30px;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.banner-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.banner-dots button.active {
  width: 28px;
  background: #fff;
}

.banner-fallback {
  display: grid;
  min-height: 360px;
  place-content: center;
  padding: 36px;
  color: #fff;
  background: linear-gradient(135deg, #111827, #f97316);
  text-align: center;
}

.banner-fallback span {
  font-size: 76px;
  font-weight: 900;
}

.banner-fallback strong {
  margin-top: 10px;
  font-size: 22px;
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 22px;
}

.search-box {
  display: grid;
  gap: 7px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-box input,
.checkout-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  outline-color: var(--orange);
}

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

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-image {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
  background: var(--soft);
}

.product-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.product-name {
  min-height: 48px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
}

.product-description {
  display: -webkit-box;
  min-height: 60px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--orange-dark);
  font-size: 20px;
  font-weight: 900;
}

.stock {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.add-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
  font-weight: 800;
}

.details-button {
  min-height: 42px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: var(--orange-dark);
  background: var(--soft);
  cursor: pointer;
  font-weight: 800;
}

.add-button:disabled {
  cursor: not-allowed;
  background: #d1d5db;
}

.center-actions {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 0 52px;
}

.load-more {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.status-text,
.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.profile-card {
  position: sticky;
  top: 96px;
}

.profile-single-layout {
  max-width: 980px;
  grid-template-columns: 1fr;
  margin: 0 auto;
}

.profile-single-layout .profile-card {
  position: static;
}

.profile-single-layout .checkout-panel {
  width: 100%;
}

.profile-single-layout .form-grid {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.profile-single-layout .checkout-submit {
  max-width: 360px;
}

.profile-single-layout .profile-address-block .checkout-submit {
  max-width: none;
}

.profile-avatar {
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 0 22px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.24);
  font-size: 24px;
  font-weight: 900;
}

.profile-address-block {
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 24px;
  border-top: 1px solid var(--line);
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf5, #fff);
}

.orders-panel {
  position: static;
}

.orders-page-panel {
  max-width: 1120px;
}

.order-history {
  display: grid;
  gap: 14px;
}

.order-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.order-card-head strong,
.order-card-head small {
  display: block;
}

.order-card-head small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.pending {
  color: #92400e;
  background: #fef3c7;
}

.status-pill.process {
  color: #075985;
  background: #e0f2fe;
}

.status-pill.delivered {
  color: #166534;
  background: #dcfce7;
}

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

.payment-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.payment-pill.paid {
  color: #166534;
  background: #dcfce7;
}

.payment-pill.waiting {
  color: #92400e;
  background: #fef3c7;
}

.payment-pill.failed {
  color: #991b1b;
  background: #fee2e2;
}

.payment-pill.none {
  color: #475569;
  background: #f1f5f9;
}

.order-lines {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7ed;
}

.order-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.order-lines span {
  font-weight: 800;
}

.order-lines small {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

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

.order-meta div {
  padding: 10px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
}

.order-meta dt,
.order-meta dd {
  margin: 0;
}

.order-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-meta dd {
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.checkout-panel,
.summary-panel,
.cart-drawer,
.auth-dialog,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-panel,
.summary-panel {
  padding: clamp(22px, 3vw, 34px);
  box-shadow: 0 18px 55px rgba(124, 45, 18, 0.07);
}

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

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.panel-heading>span {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.panel-heading h2 {
  line-height: 1.05;
}

.summary-heading {
  margin-bottom: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.address-section {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf5, #fff);
}

.address-section-head,
.coupon-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.mini-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.address-section-head strong {
  display: block;
  font-size: 16px;
}

.address-list {
  display: grid;
  gap: 10px;
}

.address-card {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #f3e4d6;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.address-card-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.address-card.selected {
  border-color: var(--orange);
  background: var(--soft);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.12);
}

.address-card:hover {
  transform: translateY(-1px);
  border-color: #fdba74;
}

.address-card strong,
.address-card small {
  display: block;
}

.address-card small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
}

.address-card em {
  color: var(--orange-dark);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.address-edit-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: var(--orange-dark);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.compact-button {
  min-width: 120px;
  padding: 0 14px;
}

.coupon-row {
  margin: 12px 0 0;
}

.coupon-row label {
  display: grid;
  flex: 1;
  gap: 7px;
  color: #404040;
  font-size: 13px;
  font-weight: 800;
}

.coupon-row label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.coupon-block {
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.coupon-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  outline-color: var(--orange);
}

.coupon-row .details-button {
  min-width: 112px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #404040;
  font-size: 13px;
  font-weight: 800;
}

.wide {
  grid-column: 1 / -1;
}

.shipping-options {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.shipping-options legend {
  padding: 0 8px;
  font-weight: 800;
}

.shipping-options label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.checkout-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  color: #fff;
  background: var(--orange);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.checkout-submit:hover {
  background: #ea580c;
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.22);
  transform: translateY(-1px);
}

.cart-items {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  background: #fff;
}

.cart-item img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--soft);
}

.cart-item strong,
.cart-item small {
  display: block;
}

.cart-item small {
  margin-top: 4px;
  color: var(--muted);
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-actions button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.totals {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.totals dt,
.totals dd {
  margin: 0;
}

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

.totals dd {
  font-weight: 900;
}

.grand-total {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 24px;
}

.grand-total dt {
  color: #111827;
  font-weight: 900;
}

.cart-drawer {
  width: min(480px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  padding: 20px;
}

.auth-dialog,
.product-dialog,
.image-dialog {
  width: min(440px, calc(100vw - 28px));
  padding: 0;
}

.product-dialog {
  width: min(980px, calc(100vw - 28px));
}

.image-dialog {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  background: transparent;
}

.auth-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 0;
}

.auth-panel label {
  display: grid;
  gap: 7px;
  color: #404040;
  font-size: 13px;
  font-weight: 800;
}

.auth-panel input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  outline-color: var(--orange);
}

.cart-drawer::backdrop,
.auth-dialog::backdrop,
.product-dialog::backdrop,
.image-dialog::backdrop {
  background: rgba(23, 23, 23, 0.45);
}

.product-dialog-inner {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 34px);
  align-items: start;
}

.product-detail-image {
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  cursor: zoom-in;
}

.product-detail-image img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.product-detail-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding-right: 32px;
}

.product-detail-copy h2,
.product-detail-copy .section-kicker,
.detail-description,
.detail-facts,
.detail-facts span,
.detail-facts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-description {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.7;
}

.detail-facts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 8px;
  background: var(--soft);
}

.detail-facts span {
  color: var(--orange-dark);
  font-size: 26px;
  font-weight: 900;
}

.detail-facts strong {
  color: var(--muted);
}

.image-dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 56px);
  margin: auto;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.image-close {
  position: fixed;
  top: 18px;
  right: 18px;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
}

.drawer-checkout {
  margin-top: 18px;
}

.success {
  color: var(--green);
}

.error {
  color: var(--danger);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

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

@media (max-width: 820px) {

  main {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .menu-links {
    justify-content: flex-start;
  }

  .nav-links a,
  .cart-button,
  .login-button {
    display: inline-flex;
    align-items: center;
  }

  .cart-button {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 80;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 14px;
    color: #fff;
    width: auto;
    min-width: 0;
    min-height: 66px;
    padding: 10px 14px;
    border-color: var(--orange);
    border-radius: 16px;
    background: var(--orange);
    box-shadow: 0 18px 42px rgba(194, 65, 12, 0.34);
    font-size: 14px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .cart-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .cart-button.has-items {
    min-width: 0;
    min-height: 66px;
    border-color: #dc2626;
    background: #dc2626;
    box-shadow: 0 16px 38px rgba(220, 38, 38, 0.32);
  }

  .cart-count {
    position: absolute;
    top: -9px;
    right: 14px;
    min-width: 28px;
    height: 28px;
    margin-left: 0;
    border: 2px solid var(--orange);
    color: var(--orange-dark);
    font-size: 12px;
  }

  .cart-button.has-items .cart-count {
    border-color: #dc2626;
  }

  .cart-mobile-summary {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 8px;
    min-width: 0;
  }

  .cart-mobile-summary span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
  }

  .cart-mobile-summary small,
  .cart-mobile-summary strong {
    min-width: 0;
    color: #fff;
    line-height: 1.1;
  }

  .cart-mobile-summary small {
    font-size: 10px;
    font-weight: 800;
    opacity: 0.82;
    text-transform: uppercase;
  }

  .cart-mobile-summary strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hero,
  .checkout-layout,
  .profile-layout,
  .product-detail-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .summary-panel {
    position: static;
  }

  .profile-card {
    position: static;
  }

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

  .profile-single-layout .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
  }

  body {
    background:
      radial-gradient(circle at 10% 0%, rgba(249, 115, 22, 0.08), transparent 32%),
      linear-gradient(180deg, #fffaf5 0%, #fff 44%, #fffaf5 100%);
  }

  main {
    padding: 0 14px calc(104px + env(safe-area-inset-bottom));
  }

  .site-header {
    padding: 12px 14px;
    align-items: center;
  }

  button,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .brand {
    gap: 10px;
    max-width: 100%;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 15px;
    line-height: 1.2;
  }

  .brand small {
    font-size: 11px;
  }

  .nav-links {
    width: 100%;
    overflow: visible;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0;
    font-size: 13px;
  }

  .menu-links {
    width: 100%;
    justify-content: center;
    gap: 8px;
    row-gap: 8px;
  }

  .nav-actions {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(253, 186, 116, 0.7);
  }

  .nav-links a,
  .cart-button,
  .login-button {
    flex: 0 1 auto;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #fff;
  }

  .nav-links a {
    color: #7c2d12;
  }

  .cart-button {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 14px;
    color: #fff;
    width: auto;
    min-width: 0;
    min-height: 66px;
    padding: 10px 14px;
    border-color: var(--orange);
    border-radius: 16px;
    background: var(--orange);
    box-shadow: 0 18px 42px rgba(194, 65, 12, 0.34);
    font-size: 14px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(24px);
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s ease;
  }

  .cart-button.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .cart-button.has-items {
    min-width: 0;
    min-height: 66px;
    border-color: #dc2626;
    background: #dc2626;
    box-shadow: 0 16px 38px rgba(220, 38, 38, 0.32);
  }

  .login-button {
    color: var(--orange-dark);
    min-width: min(140px, 40vw);
    background: var(--soft);
  }

  .cart-title {
    display: inline-flex;
    align-items: center;
    min-height: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
  }

  .cart-count {
    position: absolute;
    top: -9px;
    right: 14px;
    min-width: 28px;
    height: 28px;
    margin-left: 0;
    border: 2px solid var(--orange);
    color: var(--orange-dark);
    font-size: 12px;
  }

  .cart-button.has-items .cart-count {
    border-color: #dc2626;
  }

  .cart-mobile-summary {
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 8px;
    min-width: 0;
  }

  .cart-mobile-summary span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
  }

  .cart-mobile-summary small,
  .cart-mobile-summary strong {
    min-width: 0;
    color: #fff;
    line-height: 1.1;
  }

  .cart-mobile-summary small {
    font-size: 10px;
    font-weight: 800;
    opacity: 0.82;
    text-transform: uppercase;
  }

  .cart-mobile-summary strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page-heading {
    padding: 34px 0 18px;
  }

  .checkout-hero {
    padding-bottom: 8px;
  }

  .hero {
    gap: 24px;
    width: 100%;
    min-width: 0;
    padding: 28px 0 34px;
    overflow: hidden;
  }

  .hero-copy,
  .banner-shell {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-link,
  .secondary-link {
    justify-content: center;
    width: 100%;
    min-height: 48px;
  }

  .hero-highlights {
    gap: 8px;
  }

  .hero-highlights span {
    min-height: 32px;
    font-size: 12px;
  }

  .toolbar {
    gap: 14px;
    margin: 8px 0 16px;
  }

  .search-box {
    width: 100%;
  }

  .product-grid,
  .form-grid,
  .address-section-head,
  .coupon-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .product-grid {
    gap: 14px;
  }

  .product-card {
    display: grid;
    grid-template-columns: minmax(116px, 38%) minmax(0, 1fr);
    align-items: stretch;
    box-shadow: 0 14px 34px rgba(124, 45, 18, 0.08);
  }

  .product-image-button {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid #f3e4d6;
    background: #fff7ed;
  }

  .product-image-button::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(253, 186, 116, 0.9);
    border-radius: 999px;
    color: var(--orange-dark);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 18px rgba(124, 45, 18, 0.14);
    content: "+";
    font-size: 20px;
    font-weight: 900;
    line-height: 28px;
    text-align: center;
  }

  .product-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 168px;
    aspect-ratio: auto;
    object-fit: contain;
    padding: 12px;
  }

  .product-body {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 9px;
    min-width: 0;
    padding: 13px;
  }

  .product-name {
    min-height: 0;
    font-size: 15px;
    line-height: 1.38;
    overflow-wrap: anywhere;
  }

  .product-description {
    min-height: 0;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
  }

  .product-meta {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  .price {
    font-size: 18px;
  }

  .stock {
    padding-top: 2px;
    text-align: left;
  }

  .add-button,
  .details-button {
    min-height: 40px;
    width: 100%;
    padding: 0 10px;
    font-size: 13px;
  }

  .checkout-panel,
  .summary-panel {
    padding: 18px;
  }

  .panel-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .panel-heading>span {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  .profile-avatar {
    width: 76px;
    height: 76px;
    margin-bottom: 18px;
    border-radius: 14px;
    font-size: 20px;
  }

  .profile-address-block,
  .address-section,
  .coupon-block {
    padding: 14px;
  }

  .profile-single-layout .checkout-submit {
    max-width: none;
  }

  .address-card,
  .address-card-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .address-card em,
  .address-edit-button,
  .compact-button,
  .coupon-row .details-button {
    width: 100%;
    min-width: 0;
    text-align: center;
  }

  .cart-item {
    grid-template-columns: 48px 1fr;
    align-items: start;
  }

  .cart-item img {
    width: 48px;
    height: 48px;
  }

  .cart-actions {
    grid-column: 2;
    flex-wrap: wrap;
  }

  .order-card-head,
  .order-lines div {
    flex-direction: column;
    gap: 8px;
  }

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

  h1 {
    font-size: clamp(36px, 13vw, 54px);
    line-height: 0.98;
  }

  h2 {
    font-size: clamp(22px, 8vw, 30px);
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.55;
  }

  .banner-shell,
  .banner-slider,
  .banner-slide,
  .banner-fallback {
    min-height: 0;
  }

  .banner-shell {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .banner-slide {
    display: none;
    max-width: 100%;
    object-fit: contain;
    background: #fff7ed;
  }

  .banner-slider,
  .banner-slide,
  .banner-fallback {
    height: 100%;
  }

  .banner-overlay {
    display: none;
  }

  .banner-dots {
    right: 16px;
    bottom: 18px;
  }

  .cart-drawer,
  .auth-dialog,
  .product-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
  }

  .cart-drawer {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(74dvh, 640px);
    margin: 0;
    padding: 16px;
    border: 0;
    border-radius: 18px 18px 12px 12px;
    box-shadow: 0 24px 70px rgba(23, 23, 23, 0.28);
  }

  .cart-drawer .drawer-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 10px;
    background: #fff;
  }

  .cart-drawer .cart-items {
    max-height: calc(74dvh - 166px);
    overflow-y: auto;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .drawer-checkout {
    position: sticky;
    bottom: 0;
    margin-top: 14px;
    box-shadow: 0 -8px 20px rgba(255, 255, 255, 0.92);
  }

  .auth-panel {
    padding: 18px;
  }

  .product-dialog-inner {
    padding: 58px 16px 16px;
  }

  .product-detail-copy {
    padding-right: 0;
  }

  .detail-facts {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .image-close {
    top: 10px;
    right: 10px;
  }
}

@media (max-width: 380px) {
  main {
    padding-inline: 12px;
  }

  .product-card {
    grid-template-columns: minmax(102px, 36%) minmax(0, 1fr);
  }

  .product-image {
    min-height: 150px;
    padding: 8px;
  }

  .product-description {
    display: none;
  }

  .product-body {
    gap: 8px;
    padding: 11px;
  }

  .add-button,
  .details-button {
    min-height: 38px;
    font-size: 12px;
  }

  .hero-highlights span {
    width: 100%;
  }
}