@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --brand: #ff7a00;
  --brand-dark: #e56700;
  --brand-secondary: #ffb266;
  --brand-soft: #ffe6cc;
  --ink: #333333;
  --muted: #6b7280;
  --bg: #fff6ed;
  --card: #ffffff;
  --line: rgba(17, 24, 39, 0.12);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 15% -10%, #fff6ed, transparent 60%),
    radial-gradient(900px 600px at 95% 5%, #ffe8d5, transparent 60%),
    var(--bg);
}

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: var(--brand);
  color: white;
  font-size: 13px;
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

.top-links,
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.top-links a,
.top-actions a {
  color: inherit;
}

.top-links a:hover,
.top-actions a:hover {
  opacity: 0.92;
}

.top-actions > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.topbar-notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 40;
}

.topbar-notification-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 16px;
}

.topbar-notification-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  cursor: pointer;
}

.topbar-notification-badge {
  display: inline-flex;
  align-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  justify-content: center;
}

.topbar-notification-dropdown {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  width: min(420px, calc(100vw - 32px));
  display: none;
  color: var(--ink);
  background: white;
  border: 1px solid #f0ddd0;
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  animation: rise 0.18s ease;
}

.topbar-notification-menu:hover .topbar-notification-dropdown,
.topbar-notification-menu:focus-within .topbar-notification-dropdown,
.topbar-notification-menu.is-open .topbar-notification-dropdown {
  display: block;
}

.topbar-notification-head {
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #7c746c;
  background: linear-gradient(180deg, #ffffff 0%, #fff8f3 100%);
  border-bottom: 1px solid #f3e4d8;
}

.topbar-notification-status {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff2e9;
  color: var(--brand-dark);
  font-size: 13px;
}

.topbar-notification-status.is-error {
  background: #ffe8e8;
  color: #b91c1c;
}

.topbar-notification-list {
  display: grid;
  max-height: 360px;
  overflow: auto;
  background: linear-gradient(180deg, #fff8f5 0%, #fff 100%);
}

.topbar-notification-placeholder {
  padding: 26px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.topbar-notification-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 18px;
  color: inherit;
  border-bottom: 1px solid #f5e7de;
  transition: background 0.18s ease;
}

.topbar-notification-item:last-child {
  border-bottom: none;
}

.topbar-notification-item:hover {
  opacity: 1;
  background: #fff3eb;
}

.topbar-notification-item.is-unread {
  background: linear-gradient(180deg, #fff7f2 0%, #fff 100%);
}

.topbar-notification-thumb {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff0e6 0%, #fff8f3 100%);
  border: 1px solid #f1ddd0;
}

.topbar-notification-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-notification-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  line-height: 1;
}

.topbar-notification-content {
  min-width: 0;
}

.topbar-notification-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-notification-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.topbar-notification-copy {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #5f584f;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.topbar-notification-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.topbar-notification-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 999px;
  background: #ee4d2d;
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.12);
}

.topbar-notification-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  background: white;
  border-top: 1px solid #f0ddd0;
  font-size: 14px;
  font-weight: 600;
}

.auth-inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.auth-inline a {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.auth-user {
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.user-menu {
  position: relative;
  display: none;
  align-items: center;
}

.user-menu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 999px;
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  overflow: hidden;
}

.avatar-initial {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.user-name {
  font-weight: 600;
  font-size: 13px;
}

.user-dropdown {
  position: absolute;
  top: 38px;
  right: 0;
  width: 190px;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 6px 0;
  display: none;
  z-index: 20;
}

.user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 24px;
  width: 10px;
  height: 10px;
  background: white;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.user-dropdown a,
.user-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
  background: #f5f5f7;
}

.user-menu:hover .user-dropdown,
.user-menu:focus-within .user-dropdown {
  display: block;
}

.auth-inline.hidden {
  display: none;
}

.header {
  background: linear-gradient(180deg, var(--brand), var(--brand-secondary));
  color: white;
  padding: 18px 0 26px;
}

.header-inner {
  display: grid;
  grid-template-columns: 220px 1fr 220px;
  gap: 20px;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 24px;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: white;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.search-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  background: white;
  padding: 8px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.search-wrap input {
  border: none;
  flex: 1;
  font-size: 14px;
  outline: none;
}

.search-wrap button {
  border: none;
  background: var(--brand);
  color: white;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
}

.pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.cart-entry {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: 0 18px 32px rgba(120, 46, 0, 0.16);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.cart-entry:hover,
.cart-entry.is-active {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.cart-entry-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.cart-entry-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-entry-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: white;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid rgba(255, 122, 0, 0.16);
  box-shadow: 0 12px 22px rgba(120, 46, 0, 0.16);
}

.hero {
  margin-top: 16px;
  padding-bottom: 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.hero-banner {
  min-width: 0;
  background:
    linear-gradient(90deg, rgba(37, 24, 11, 0.82) 0%, rgba(37, 24, 11, 0.58) 34%, rgba(37, 24, 11, 0.16) 72%),
    radial-gradient(420px 260px at 88% 18%, rgba(255, 219, 186, 0.26), transparent 72%),
    var(--hero-banner-image, none) center right / cover no-repeat,
    linear-gradient(120deg, var(--brand), var(--brand-secondary));
  border-radius: var(--radius);
  color: white;
  padding: 30px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-banner.hero-slider {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  min-height: 0;
  background: #eaf3ff;
  border: 1px solid var(--line);
  align-self: stretch;
}

.hero-banner.hero-slider::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 72px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 18, 32, 0.22) 100%);
  transform: none;
  width: auto;
}

.hero-slider-viewport {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  min-width: 0;
  width: 100%;
  height: 100%;
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slider-slide {
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-slider-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider-dots {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.hero-slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 78px;
  border: none;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.32));
  color: white;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.hero-slider-arrow span {
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.hero-slider-arrow-prev {
  left: 0;
  border-radius: 0 18px 18px 0;
}

.hero-slider-arrow-next {
  right: 0;
  border-radius: 18px 0 0 18px;
}

.hero-banner.hero-slider:hover .hero-slider-arrow,
.hero-banner.hero-slider:focus-within .hero-slider-arrow {
  opacity: 1;
  pointer-events: auto;
}

.hero-slider-arrow:hover {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), rgba(15, 23, 42, 0.48));
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.hero-slider-dot {
  width: 18px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.hero-slider-dot:hover {
  transform: translateY(-1px);
}

.hero-slider-dot.is-active {
  width: 34px;
  background: white;
}

.hero-banner-content {
  position: relative;
  z-index: 1;
  max-width: min(460px, 72%);
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -12% -36% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 70%);
  transform: rotate(10deg);
}

.hero-banner h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(30px, 3.2vw, 52px);
  line-height: 1.08;
  margin: 0 0 12px;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.hero-banner p {
  margin: 0 0 20px;
  max-width: 460px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 248, 242, 0.94);
}

.hero-banner .cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  background: white;
  color: var(--brand);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-banner .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.hero-side {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 14px;
  height: 100%;
  align-self: stretch;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  border-radius: var(--radius);
  background: #eaf5ff;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.promo-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.promo-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.promo-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 12px;
}

.section {
  margin-top: 24px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.section-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
}

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

.section-link {
  color: var(--brand-dark);
  font-weight: 600;
  font-size: 14px;
}

.category-section .section-title h3 {
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #617286;
}

.category-section .section-subtitle {
  margin-bottom: 18px;
}

.category-carousel {
  position: relative;
  --category-arrow-size: 26px;
  --category-arrow-icon-size: 16px;
  --category-arrow-offset: 8px;
  --category-arrow-hover-scale: 3;
}

.category-carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.category-grid {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.category-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(var(--category-columns, 10), minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.category-card {
  height: 100%;
  min-height: 226px;
  padding: 24px 12px 18px;
  text-align: center;
  background: white;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.category-link:hover {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(255, 241, 226, 0.92));
}

.category-icon {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff3e3, #ffe7cd);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 500;
  margin: 0 auto 18px;
}

.category-name {
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.category-meta {
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.category-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: var(--category-arrow-size);
  height: var(--category-arrow-size);
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #7b7b7b;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-carousel-arrow:hover {
  transform: translateY(-50%) scale(var(--category-arrow-hover-scale));
  box-shadow: 0 20px 36px rgba(15, 23, 42, 0.18);
}

.category-carousel-arrow[hidden] {
  display: none;
}

.category-carousel-arrow span {
  font-size: var(--category-arrow-icon-size);
  line-height: 1;
}

.category-carousel-arrow-prev {
  left: var(--category-arrow-offset);
}

.category-carousel-arrow-next {
  right: var(--category-arrow-offset);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

#storeFeaturedProducts.product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
}

#catalogProductGrid.product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
}

.product-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: grid;
  grid-template-rows: 160px 1fr;
  position: relative;
  isolation: isolate;
  animation: rise 0.4s ease both;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card-link {
  display: block;
  color: inherit;
}

.product-card-link:hover .product-card {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
}

.product-thumb {
  position: relative;
  background: linear-gradient(140deg, #fff2ea, #ffd6c9);
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #c23b2b;
  overflow: hidden;
}

.product-thumb.has-image {
  background: #faf7f3;
}

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

#storeFeaturedProducts.product-grid .product-card,
#catalogProductGrid.product-grid .product-card,
.related-products-track .product-card {
  grid-template-rows: 220px 1fr;
}

#storeFeaturedProducts.product-grid .product-thumb.has-image,
#catalogProductGrid.product-grid .product-thumb.has-image,
.related-products-track .product-thumb.has-image {
  background: #ffffff;
}

#storeFeaturedProducts.product-grid .product-thumb img,
#catalogProductGrid.product-grid .product-thumb img,
.related-products-track .product-thumb img {
  object-fit: contain;
  box-sizing: border-box;
}

.product-thumb span {
  background: rgba(255, 255, 255, 0.75);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.product-thumb.thumb-2 {
  background: linear-gradient(140deg, #ffe8d6, #ffc3a5);
}

.product-thumb.thumb-3 {
  background: linear-gradient(140deg, #e6f6ff, #c4ebff);
  color: #1c6aa0;
}

.product-thumb.thumb-4 {
  background: linear-gradient(140deg, #f2f2ff, #d7d8ff);
  color: #4a4bb5;
}

.product-thumb.thumb-5 {
  background: linear-gradient(140deg, #fff3c4, #ffe49d);
  color: #b86c00;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

.discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: white;
  color: var(--brand);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}

.product-body {
  padding: 10px 12px 12px;
  display: grid;
  gap: 6px;
  position: relative;
  z-index: 1;
  background: white;
}

.product-title {
  font-size: 13px;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.price {
  color: var(--brand);
  font-weight: 700;
}

.product-shop {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

.sold {
  font-size: 12px;
  color: var(--muted);
}

.catalog-page {
  padding-bottom: 32px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 288px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 14px;
}

.catalog-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.catalog-content {
  min-width: 0;
}

.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.catalog-hero {
  background: linear-gradient(120deg, #fff7f0, #ffffff);
  border: 1px solid rgba(255, 122, 0, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.catalog-intro h1 {
  margin: 12px 0 8px;
  font-family: "Sora", sans-serif;
  font-size: 32px;
  line-height: 1.15;
}

.catalog-filters {
  display: grid;
  gap: 14px;
  align-content: start;
}

.catalog-filter-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.catalog-filter-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.catalog-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.catalog-price-field {
  display: flex;
  align-items: center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: white;
  padding: 0 14px;
}

.catalog-price-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  font-size: 13px;
}

.catalog-price-field input[type="number"]::-webkit-outer-spin-button,
.catalog-price-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.catalog-price-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.catalog-price-separator {
  color: var(--muted);
  font-weight: 600;
}

.catalog-filter-apply {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5a2a, #ff7d45);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.catalog-check-list,
.catalog-rating-list {
  display: grid;
  gap: 12px;
}

.catalog-check-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--ink);
}

.catalog-check-item input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.catalog-rating-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.catalog-rating-btn.is-active .catalog-rating-stars,
.catalog-rating-btn:hover .catalog-rating-stars,
.catalog-rating-btn.is-active .catalog-rating-label,
.catalog-rating-btn:hover .catalog-rating-label {
  color: var(--brand-dark);
}

.catalog-rating-stars {
  color: #f7a51a;
  letter-spacing: 1px;
  font-size: 22px;
  line-height: 1;
}

.catalog-rating-label {
  color: var(--ink);
  font-size: 16px;
}

.catalog-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.catalog-results-section {
  margin-top: 18px;
}

.catalog-chip {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.catalog-chip:hover,
.catalog-chip.active {
  transform: translateY(-1px);
  border-color: rgba(255, 122, 0, 0.38);
  color: var(--brand-dark);
}

.catalog-empty {
  margin-top: 16px;
  border: 1px dashed rgba(255, 122, 0, 0.32);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  border-radius: 16px;
  padding: 18px 20px;
}

.status[hidden],
.catalog-empty[hidden] {
  display: none;
}

.load-more {
  margin: 24px auto 60px;
  display: block;
  padding: 12px 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 600;
}

.product-page {
  padding-bottom: 56px;
}

.product-breadcrumb {
  margin-bottom: 14px;
}

body[data-page="product"] .container {
  max-width: 1380px;
}

body[data-page="product"] {
  --product-media-main-height: clamp(445px, calc(100vh - 370px), 480px);
  --product-media-thumb-min: 68px;
  --product-media-thumbs-visible: 5;
  --product-media-thumb-gap: 6px;
  --product-video-stage-width: 260px;
}

body[data-page="product"] .topbar .container {
  padding-top: 6px;
  padding-bottom: 6px;
}

body[data-page="product"] .header {
  padding: 14px 0 18px;
}

body[data-page="product"] .hero {
  margin-top: 10px;
}

.product-shell[hidden] {
  display: none;
}

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

.product-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 122, 0, 0.14);
  border-radius: 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.1), transparent 70%);
  pointer-events: none;
}

.product-gallery-panel,
.product-info-panel {
  position: relative;
  z-index: 1;
}

.product-gallery-panel {
  display: grid;
  gap: 5px;
  align-self: start;
}

.product-media-main {
  height: var(--product-media-main-height);
  min-height: var(--product-media-main-height);
  border-radius: 20px;
  background: linear-gradient(140deg, #fffaf4, #fff1e2);
  border: 1px solid rgba(255, 122, 0, 0.14);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.product-media-frame {
  width: 100%;
  height: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.product-media-frame-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.product-media-frame-video {
  background: #151515;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-video-stage {
  flex: 0 0 auto;
  width: min(100%, calc(var(--product-media-main-height) - 12px));
  height: min(100%, calc(var(--product-media-main-height) - 12px));
  max-width: 100%;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #151515;
}

.product-media-frame-image > img.product-media-object {
  display: none;
}

.product-media-object {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.product-media-main.is-video {
  background: #151515;
}

.product-media-main.is-video .product-video-object {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: #151515;
}

.product-media-empty {
  height: 100%;
  min-height: var(--product-media-main-height);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 600;
  padding: 20px;
  text-align: center;
}

.product-media-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 12px;
}

.product-media-thumbs-wrap {
  position: relative;
}

.product-media-thumbs-viewport {
  overflow: hidden;
}

.product-media-thumbs {
  display: flex;
  gap: var(--product-media-thumb-gap);
  transition: transform 0.24s ease;
  will-change: transform;
  margin-top: 5px;
}

.product-media-thumb {
  flex: 0 0
    calc(
      (100% - (var(--product-media-thumb-gap) * (var(--product-media-thumbs-visible) - 1))) /
        var(--product-media-thumbs-visible)
    );
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: white;
  border-radius: 14px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.product-media-thumb img,
.product-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-media-thumb:hover,
.product-media-thumb.active {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 12px 24px rgba(255, 122, 0, 0.18);
}

.product-media-thumb-label {
  position: absolute;
  inset: auto 8px 8px auto;
  background: rgba(17, 24, 39, 0.78);
  color: white;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.product-media-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #6b7280;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-media-nav:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.2);
}

.product-media-nav[hidden] {
  display: none;
}

.product-media-nav span {
  font-size: 22px;
  line-height: 1;
}

.product-media-nav-prev {
  left: -12px;
}

.product-media-nav-next {
  right: -12px;
}

.product-share-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.product-share-icons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-share-icons span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid rgba(17, 24, 39, 0.1);
  font-weight: 700;
  color: var(--brand-dark);
}

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

.product-heading {
  display: grid;
  gap: 10px;
}

.product-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.detail-badge.primary {
  background: linear-gradient(120deg, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0.26));
  color: var(--brand-dark);
}

.detail-badge.ghost {
  background: white;
  border: 1px solid rgba(17, 24, 39, 0.1);
  color: #556273;
}

.product-heading h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
}

.product-meta-row strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
}

.product-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-stars {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.rating-stars span {
  color: #d1d5db;
  font-size: 20px;
}

.rating-stars span.active {
  color: #f59e0b;
}

.product-meta-sep {
  width: 1px;
  height: 22px;
  background: rgba(17, 24, 39, 0.12);
}

.product-price-box {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 122, 0, 0.14), rgba(255, 244, 230, 0.95));
  border: 1px solid rgba(255, 122, 0, 0.14);
}

.product-price-line {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}

.product-price-line strong {
  font-family: "Sora", sans-serif;
  font-size: clamp(30px, 2.8vw, 36px);
  line-height: 1;
  color: var(--brand-dark);
}

.product-price-line span {
  color: var(--brand-dark);
  font-weight: 600;
}

.voucher-chip-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.voucher-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px dashed rgba(255, 122, 0, 0.4);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

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

.product-highlight-card {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  padding: 14px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.product-highlight-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.product-highlight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.product-highlight-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
}

.product-picker-block {
  display: grid;
  gap: 10px;
  padding-top: 0;
}

.product-picker-block[hidden] {
  display: none !important;
}

.product-picker-header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.product-picker-header span {
  color: var(--muted);
  font-weight: 500;
}

.product-picker-header strong {
  color: var(--ink);
  font-size: 15px;
}

.variant-chip-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

#productVariantOptions.has-groups {
  display: grid;
  gap: 16px;
}

.product-variant-group {
  display: grid;
  gap: 10px;
}

.product-variant-group + .product-variant-group {
  padding-top: 8px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.product-variant-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-variant-group-head strong {
  font-size: 14px;
}

.product-variant-group-head span {
  color: var(--muted);
  font-size: 12px;
}

.product-variant-group.is-disabled {
  opacity: 0.9;
}

.product-variant-group-empty {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  color: var(--muted);
  font-size: 13px;
  background: rgba(248, 250, 252, 0.7);
}

.variant-chip {
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.variant-chip strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.variant-chip span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.variant-chip:hover,
.variant-chip.active {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 0, 0.55);
  box-shadow: 0 10px 22px rgba(255, 122, 0, 0.14);
}

.variant-chip:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
  transform: none;
}

.variant-chip.soldout:not(.active) {
  border-color: rgba(148, 163, 184, 0.24);
}

.quantity-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 40px 80px 40px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: white;
}

.quantity-stepper button,
.quantity-stepper input {
  height: 42px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
}

.quantity-stepper button {
  cursor: pointer;
  font-size: 22px;
  color: var(--ink);
}

.quantity-stepper input {
  border-left: 1px solid rgba(17, 24, 39, 0.1);
  border-right: 1px solid rgba(17, 24, 39, 0.1);
  font-weight: 700;
  outline: none;
}

.product-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.primary-outline-btn,
.primary-fill-btn {
  min-width: 168px;
  border-radius: 14px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.primary-outline-btn {
  border: 1px solid rgba(255, 122, 0, 0.45);
  background: rgba(255, 122, 0, 0.08);
  color: var(--brand-dark);
}

.primary-fill-btn {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: white;
  box-shadow: 0 14px 28px rgba(229, 103, 0, 0.22);
}

.primary-outline-btn:hover,
.primary-fill-btn:hover {
  transform: translateY(-2px);
}

.primary-outline-btn:disabled,
.primary-fill-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.product-inline-status {
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 248, 240, 0.95);
  color: var(--brand-dark);
  border: 1px solid rgba(255, 122, 0, 0.18);
  font-size: 14px;
}

.product-inline-status.error {
  background: #ffe8e8;
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.14);
}

.shop-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.shop-summary-main {
  display: flex;
  gap: 16px;
  align-items: center;
}

.shop-summary-avatar {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-secondary));
  color: white;
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}

.shop-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-summary-avatar span {
  font-size: 28px;
  line-height: 1;
}

.shop-summary-main h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.shop-summary-main p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shop-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shop-summary-stats div {
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.9), white);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.shop-summary-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.shop-summary-stats strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.product-content-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.3fr);
  gap: 20px;
  align-items: start;
}

.product-detail-card,
.product-description-card,
.review-panel {
  border-radius: 22px;
}

.product-spec-grid {
  display: grid;
  grid-template-columns: minmax(120px, 160px) 1fr;
  row-gap: 14px;
  column-gap: 16px;
}

.product-spec-grid dt {
  color: var(--muted);
  font-weight: 500;
}

.product-spec-grid dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.product-description {
  color: #374151;
  line-height: 1.82;
  white-space: pre-wrap;
}

.review-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.review-summary-card {
  min-width: 180px;
  text-align: center;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(255, 235, 214, 0.92));
  border: 1px solid rgba(255, 122, 0, 0.12);
}

.review-summary-card strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 30px;
  color: var(--brand-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.review-summary-card span {
  color: var(--muted);
  font-size: 14px;
}

.review-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.review-filter-btn {
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: white;
  color: #374151;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease,
    box-shadow 0.18s ease;
}

.review-filter-btn:hover {
  border-color: rgba(255, 122, 0, 0.32);
  color: var(--brand-dark);
}

.review-filter-btn.active {
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.34);
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 1px rgba(255, 122, 0, 0.1);
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.review-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  flex-wrap: wrap;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.review-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  font-weight: 700;
  color: var(--brand-dark);
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(255, 235, 214, 0.92));
  border: 1px solid rgba(255, 122, 0, 0.14);
}

.review-author-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.review-author strong {
  font-size: 15px;
}

.review-author span {
  color: var(--muted);
  font-size: 13px;
}

.review-copy {
  margin: 0;
  color: #374151;
  line-height: 1.75;
  white-space: pre-wrap;
}

.review-copy.is-muted {
  color: var(--muted);
}

.review-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-media-card {
  position: relative;
  width: min(150px, 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #f8fafc;
}

.review-media-card img,
.review-media-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-media-card video {
  background: #111827;
}

.review-media-card.is-video::after {
  content: "Video";
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: white;
  background: rgba(17, 24, 39, 0.78);
}

.review-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.review-page-btn {
  min-width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: white;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.review-page-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.related-section {
  margin-top: 4px;
}

.related-carousel {
  position: relative;
}

.related-products-track {
  --related-columns: 6;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--related-columns) - 1) * 14px) / var(--related-columns)
  );
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 10px;
}

.related-products-track::-webkit-scrollbar {
  display: none;
}

.related-products-track > .product-card-link {
  min-width: 0;
  scroll-snap-align: start;
}

.related-products-track .product-card {
  height: 100%;
}

.related-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #7b7b7b;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.related-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.03);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.2);
}

.related-carousel-arrow[hidden] {
  display: none;
}

.related-carousel-arrow span {
  font-size: 34px;
  line-height: 1;
}

.related-carousel-arrow-prev {
  left: -14px;
}

.related-carousel-arrow-next {
  right: -14px;
}

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.status.error {
  background: #ffe5e5;
  color: #b91c1c;
}

.account-wrapper,
.orders-wrapper {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
}

.side-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 16px;
  height: fit-content;
}

.side-card h4 {
  margin: 0 0 10px;
}

.side-menu {
  display: grid;
  gap: 8px;
}

.side-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.account-nav-badge {
  min-width: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ee4d2d;
  color: white;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.side-menu a.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 600;
}

.panel-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}

.account-content {
  min-width: 0;
}

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

.panel-title {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
}

.panel-sub {
  color: var(--muted);
  margin-bottom: 18px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  align-items: start;
}

.form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.form-row label {
  color: var(--muted);
}

.form-row input {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.form-row input:disabled {
  background: #f4f4f6;
  color: var(--muted);
}

.inline-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.inline-links a {
  color: #0b74d1;
  font-weight: 600;
  font-size: 13px;
}

.radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.save-btn {
  background: var(--brand);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
}

.avatar-box {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  text-align: center;
}

.avatar-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f2f2f2;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.avatar-box button {
  background: white;
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

.avatar-box p {
  color: var(--muted);
  font-size: 12px;
}

.account-form-shell {
  max-width: 720px;
}

.account-form-shell .save-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.address-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.address-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: #ee4d2d;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.address-add-btn span[aria-hidden="true"] {
  font-size: 24px;
  line-height: 1;
}

.address-list {
  display: grid;
}

.address-empty-card {
  border: 1px dashed #d7d5de;
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 12px;
  justify-items: start;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
}

.address-empty-card strong {
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.address-empty-card p {
  margin: 0;
  color: var(--muted);
}

.address-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid #f0eef4;
  position: relative;
}

.address-card:first-child {
  padding-top: 0;
}

.address-card:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.address-card-main {
  min-width: 0;
}

.address-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding-right: 194px;
}

.address-card-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15px;
}

.address-card-contact strong {
  font-size: 15px;
}

.address-card-divider {
  color: #d0cad5;
}

.address-link-btn {
  border: none;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  line-height: 1.2;
  position: absolute;
  top: 26px;
  right: 0;
  width: 174px;
  text-align: center;
}

.address-card-text {
  margin: 0;
  max-width: 760px;
  color: #6e6773;
  line-height: 1.65;
}

.address-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.address-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #e6dfd8;
  background: #fff;
  color: #706658;
  font-size: 12px;
  font-weight: 600;
}

.address-tag.is-default {
  border-color: #ee4d2d;
  background: #fff7f4;
  color: #ee4d2d;
}

.address-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 34px;
}

.address-secondary-btn {
  min-width: 174px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid #d8d6df;
  background: white;
  color: #5f5966;
  cursor: pointer;
}

.address-secondary-btn:disabled {
  cursor: default;
  color: #9f98a8;
  background: #fafafa;
}

.notification-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

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

.notification-empty-card {
  border: 1px dashed #d7d5de;
  border-radius: 16px;
  padding: 28px;
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, #fffdfa 0%, #fff 100%);
}

.notification-empty-card strong {
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.notification-empty-card p {
  margin: 0;
  color: var(--muted);
}

.notification-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #ece7e0;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.notification-card.is-unread {
  border-color: #ffd4bd;
  background: linear-gradient(180deg, #fff8f4 0%, #fff 100%);
  box-shadow: 0 10px 24px rgba(238, 77, 45, 0.08);
}

.notification-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.notification-thumb {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff3eb 0%, #fffaf7 100%);
  border: 1px solid #f4ddd1;
}

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

.notification-thumb-fallback {
  font-size: 28px;
  line-height: 1;
}

.notification-body {
  min-width: 0;
}

.notification-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.notification-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.notification-copy {
  margin: 0;
  color: #554d44;
  line-height: 1.6;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.notification-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: #ee4d2d;
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.12);
}

.notification-action {
  display: flex;
  justify-content: flex-end;
}

.notification-action-btn {
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #eadfd6;
  background: white;
  color: #5d564d;
  font-weight: 600;
  cursor: pointer;
}

.notification-action-btn:hover {
  border-color: #ee4d2d;
  color: #ee4d2d;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.38);
}

.account-modal[hidden] {
  display: none;
}

.account-modal-open {
  overflow: hidden;
}

.account-modal-dialog {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 16px;
  background: white;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.24);
  padding: 28px;
}

.account-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.account-modal-head h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 24px;
  line-height: 1.35;
}

.account-modal-close {
  border: none;
  background: transparent;
  color: #686273;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0;
}

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

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

.address-group {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.address-group legend {
  padding: 0 8px;
  color: #898292;
  font-size: 14px;
}

.address-region-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.address-field span,
.address-type-label {
  color: #857e8d;
  font-size: 14px;
}

.address-field input,
.address-field textarea,
.address-field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  font: inherit;
  color: var(--text);
}

.address-field .custom-select {
  position: relative;
  width: 100%;
}

.address-field .custom-select-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.address-field .custom-select-trigger {
  position: relative;
  width: 100%;
  min-height: 52px;
  padding: 14px 44px 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.address-field .custom-select-trigger:hover {
  border-color: rgba(238, 77, 45, 0.32);
}

.address-field .custom-select.is-open .custom-select-trigger,
.address-field .custom-select-trigger:focus-visible {
  outline: none;
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.address-field .custom-select-trigger:disabled {
  background: #f4f3f7;
  color: #a59fac;
  cursor: not-allowed;
  pointer-events: none;
}

.address-field .custom-select-current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-field .custom-select-arrow {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #8b8492;
  border-bottom: 2px solid #8b8492;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.address-field .custom-select.is-open .custom-select-arrow {
  transform: translateY(-30%) rotate(-135deg);
}

.address-field .custom-select-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.16);
}

.address-field .custom-select-options {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
}

.address-field .custom-select-option {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: white;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.address-field .custom-select-option:hover,
.address-field .custom-select-option:focus-visible {
  outline: none;
  border-color: rgba(238, 77, 45, 0.25);
  background: #fff7f4;
}

.address-field .custom-select-option.is-selected {
  border-color: #ee4d2d;
  background: #fff7f4;
  color: #ee4d2d;
}

.address-field .custom-select-empty {
  padding: 12px;
  border-radius: 10px;
  background: #faf7f4;
  color: #8a8490;
}

.address-field textarea {
  min-height: 96px;
  resize: vertical;
}

.address-field input:focus,
.address-field textarea:focus,
.address-field select:focus {
  outline: none;
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.address-map-card {
  overflow: hidden;
  border-radius: 14px;
  background: #f7eedb;
}

.address-map-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 18px 16px;
}

.address-map-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: #ecb241;
  color: white;
  font-weight: 700;
}

.address-map-note strong {
  display: block;
  color: #de8f11;
  margin-bottom: 4px;
}

.address-map-note p {
  margin: 0;
  color: #6f6457;
  line-height: 1.45;
}

.address-map-preview {
  position: relative;
  height: 220px;
  background: #eef1f4;
}

.address-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.address-map-frame[hidden] {
  display: none;
}

.address-map-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #6e655d;
  line-height: 1.55;
  background:
    linear-gradient(30deg, transparent 0 46%, rgba(187, 205, 219, 0.65) 46% 48%, transparent 48% 100%),
    linear-gradient(82deg, transparent 0 40%, rgba(187, 205, 219, 0.65) 40% 42%, transparent 42% 100%),
    linear-gradient(132deg, transparent 0 30%, rgba(187, 205, 219, 0.55) 30% 32%, transparent 32% 100%),
    linear-gradient(170deg, transparent 0 55%, rgba(187, 205, 219, 0.6) 55% 57%, transparent 57% 100%),
    radial-gradient(circle at 14% 78%, #bddfc4 0 15%, transparent 16%),
    linear-gradient(135deg, #eef2f5 0%, #f6f8fb 100%);
}

.address-map-empty[hidden] {
  display: none;
}

.address-map-link {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(194, 188, 179, 0.9);
  color: #5e554d;
  font-size: 12px;
  font-weight: 700;
}

.address-map-link[hidden] {
  display: none;
}

.address-type-block {
  display: grid;
  gap: 12px;
}

.address-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.address-type-btn {
  min-width: 140px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #dbd9e1;
  background: white;
  color: #48424d;
  cursor: pointer;
  font-weight: 600;
}

.address-type-btn.active {
  border-color: #ee4d2d;
  background: #fff7f4;
  color: #ee4d2d;
}

.address-flag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}

.address-flag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6f6975;
}

.address-flag input {
  width: 18px;
  height: 18px;
  accent-color: #ee4d2d;
}

.address-flag.is-disabled {
  color: #c7c1cb;
}

.address-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-top: 4px;
}

.address-cancel-btn {
  border: none;
  background: transparent;
  color: #5f5966;
  cursor: pointer;
  padding: 12px 18px;
  font-weight: 600;
}

.address-submit-btn {
  min-width: 210px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #ee4d2d;
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.order-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.order-tabs a {
  padding: 6px 2px;
  color: var(--muted);
}

.order-tabs a.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
  font-weight: 600;
}

.order-search {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f1f1f1;
  padding: 10px 12px;
  border-radius: 8px;
}

.order-card {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 16px;
  margin-bottom: 16px;
}

.order-item-list {
  display: grid;
  gap: 12px;
}

.order-item + .order-item {
  border-top: 1px dashed rgba(17, 24, 39, 0.1);
  padding-top: 12px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.order-meta {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
}

.order-status {
  color: #10b981;
  font-weight: 600;
}

.order-status.status-pending {
  color: #f97316;
}

.order-status.status-confirmed {
  color: #f59e0b;
}

.order-status.status-shipping,
.order-status.status-delivered {
  color: #0ea5e9;
}

.order-status.status-received {
  color: #10b981;
}

.order-status.status-cancelled {
  color: #ef4444;
}

.order-status.status-returned {
  color: #8b5cf6;
}

.order-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
}

.order-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.order-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}

.order-actions .actions {
  display: flex;
  gap: 10px;
}

.order-actions button {
  border: 1px solid var(--line);
  background: white;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
}

.order-actions button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.order-actions .secondary-accent {
  border-color: rgba(255, 122, 0, 0.38);
  color: var(--brand);
  background: white;
}

.order-actions .primary {
  background: var(--brand);
  color: white;
  border: none;
}

.review-modal-dialog {
  width: min(860px, 100%);
}

.review-modal-list {
  display: grid;
  gap: 16px;
}

.review-modal-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.7), white);
}

.review-modal-product {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.review-modal-product .order-thumb {
  width: 72px;
  height: 72px;
}

.review-modal-copy {
  min-width: 0;
}

.review-modal-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
}

.review-modal-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.review-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.review-rating-row strong {
  font-size: 14px;
}

.review-star-list {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.review-star-btn {
  border: none;
  background: transparent;
  padding: 0;
  color: #d1d5db;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: color 0.16s ease, transform 0.16s ease;
}

.review-star-btn:hover,
.review-star-btn:focus-visible,
.review-star-btn.active {
  color: #f59e0b;
  transform: translateY(-1px);
}

.review-star-btn:focus-visible {
  outline: none;
}

.review-rating-label {
  color: #b45309;
  font-size: 14px;
  font-weight: 700;
}

.review-modal-comment {
  width: 100%;
  min-height: 132px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.review-modal-comment:focus {
  outline: none;
  border-color: #ee4d2d;
  box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.12);
}

.review-media-section {
  display: grid;
  gap: 12px;
}

.review-media-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.review-upload-chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 122, 0, 0.35);
  background: rgba(255, 248, 241, 0.85);
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 600;
}

.review-upload-chip.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.review-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.review-upload-chip.disabled .review-upload-input {
  pointer-events: none;
}

.review-media-hint {
  color: var(--muted);
  font-size: 13px;
}

.review-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.review-media-preview {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #f8fafc;
}

.review-media-preview img,
.review-media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-media-preview video {
  background: #111827;
}

.review-media-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: white;
  background: rgba(17, 24, 39, 0.78);
}

.review-media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.72);
  color: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.review-media-empty,
.review-media-status {
  color: var(--muted);
  font-size: 14px;
}

.review-media-status {
  color: var(--brand-dark);
  font-weight: 600;
}

.review-modal-actions {
  gap: 12px;
}

.review-modal-actions .address-submit-btn[disabled],
.review-modal-actions .address-cancel-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.cart-page {
  padding-bottom: 40px;
}

.cart-page-hero {
  display: grid;
  gap: 10px;
  padding: 24px 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 235, 0.92));
  border: 1px solid rgba(255, 122, 0, 0.14);
  box-shadow: var(--shadow);
}

.cart-page-hero h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
}

.cart-shell {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.cart-shell[hidden],
.cart-empty-state[hidden] {
  display: none;
}

.cart-table-head,
.cart-shop-card,
.cart-summary-bar,
.cart-empty-state {
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.cart-table-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.8fr) 120px 170px 140px 92px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 18px;
  color: #6b7280;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 4px;
  background: white center / 12px 12px no-repeat;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.cart-check input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.2 8.2 6.5 11.5 12.8 4.8' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.cart-check input:indeterminate {
  background-color: var(--brand);
  border-color: var(--brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8h9' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E");
}

.cart-check input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.18);
}

.cart-group-list {
  display: grid;
  gap: 16px;
}

.cart-shop-card {
  border-radius: 22px;
  overflow: hidden;
}

.cart-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 248, 241, 0.96), rgba(255, 255, 255, 0.96));
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.cart-shop-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  font-size: 18px;
}

.cart-shop-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-shop-meta {
  color: var(--muted);
  font-size: 13px;
}

.cart-item-list {
  display: grid;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.8fr) 120px 170px 140px 92px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
}

.cart-item-row + .cart-item-row {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.cart-item-row.is-busy {
  opacity: 0.6;
}

.cart-item-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.cart-item-thumb {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff8f1;
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

.cart-item-thumb span {
  color: var(--brand-dark);
  font-weight: 700;
}

.cart-item-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cart-item-title {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
}

.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.cart-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f5f5f7;
}

.cart-item-col,
.cart-item-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.cart-col-label {
  display: none;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-unit-price {
  color: var(--muted);
  font-weight: 600;
}

.cart-line-total {
  font-family: "Sora", sans-serif;
  color: var(--brand-dark);
  font-size: 16px;
}

.cart-qty-control {
  display: inline-grid;
  grid-template-columns: 38px 64px 38px;
  align-items: center;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.cart-qty-btn {
  height: 40px;
  border: 0;
  background: #faf6f1;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}

.cart-qty-input {
  width: 100%;
  height: 40px;
  border: 0;
  border-left: 1px solid rgba(17, 24, 39, 0.08);
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  text-align: center;
  font: inherit;
  outline: none;
  background: white;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-qty-input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.cart-remove-btn,
.cart-clear-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #ef4444;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cart-remove-btn:hover,
.cart-clear-btn:hover {
  color: #dc2626;
}

.cart-item-stock {
  color: #f97316;
  font-size: 12px;
  font-weight: 600;
}

.cart-summary-bar {
  position: sticky;
  bottom: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: 22px;
}

.cart-summary-actions,
.cart-summary-total {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cart-summary-meta {
  color: var(--muted);
  font-size: 14px;
}

.cart-summary-total {
  justify-content: flex-end;
}

.cart-summary-total strong {
  font-family: "Sora", sans-serif;
  font-size: 24px;
  color: var(--brand-dark);
}

.cart-summary-note {
  color: var(--muted);
  font-size: 13px;
}

.cart-checkout-btn,
.cart-empty-state a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5a2a, #ff7d45);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(255, 122, 0, 0.24);
}

.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.cart-empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 28px;
  border-radius: 22px;
  margin-top: 6px;
}

.cart-empty-state h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.cart-empty-state p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

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

@media (max-width: 980px) {
  body[data-page="product"] {
    --product-media-main-height: 520px;
    --product-media-thumb-min: 74px;
    --product-video-stage-width: 284px;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }
  .header-actions {
    justify-content: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-rows: auto;
    height: auto;
  }

  .hero-banner {
    min-height: 240px;
    padding: 22px;
    background-position: center;
  }

  .hero-banner.hero-slider {
    display: block;
    padding: 0;
    height: auto;
    min-height: 0;
  }

  .hero-slider-viewport {
    height: auto;
    aspect-ratio: 10 / 3;
  }

  .hero-slider-arrow {
    width: 34px;
    height: 62px;
  }

  .hero-slider-arrow-prev {
    left: 0;
  }

  .hero-slider-arrow-next {
    right: 0;
  }

  .hero-banner-content {
    max-width: 100%;
  }

  .promo-banner {
    display: block;
    background: white;
  }

  .promo-banner img {
    height: auto;
  }

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

  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-price-row {
    grid-template-columns: 1fr;
  }

  .catalog-price-separator {
    display: none;
  }

  .account-wrapper,
  .orders-wrapper,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .cart-table-head {
    display: none;
  }

  .cart-item-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .cart-item-main,
  .cart-item-col,
  .cart-item-actions {
    grid-column: 2;
  }

  .cart-item-main {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .cart-col-label {
    display: block;
  }

  .cart-summary-bar {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .cart-summary-total {
    justify-content: space-between;
  }

  .avatar-box {
    border-left: none;
    padding-left: 0;
  }

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

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

  .product-hero-card,
  .shop-summary-card,
  .product-content-grid,
  .product-highlight-grid {
    grid-template-columns: 1fr;
  }

  .related-products-track {
    --related-columns: 4;
  }

  #storeFeaturedProducts.product-grid .product-card,
  #catalogProductGrid.product-grid .product-card,
  .related-products-track .product-card {
    grid-template-rows: 204px 1fr;
  }

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

  .category-carousel-arrow {
    width: var(--category-arrow-size);
    height: var(--category-arrow-size);
  }

  .category-carousel {
    --category-arrow-size: 20px;
    --category-arrow-icon-size: 12px;
    --category-arrow-offset: 6px;
    --category-arrow-hover-scale: 2.9;
  }
}

@media (max-width: 720px) {
  .topbar-notification-dropdown {
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 24px));
  }

  .topbar-notification-head,
  .topbar-notification-footer {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar-notification-item {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
  }

  .topbar-notification-thumb {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .address-panel-head,
  .address-card,
  .address-card-head,
  .address-form-grid,
  .address-region-grid,
  .address-form-actions,
  .notification-card {
    grid-template-columns: 1fr;
  }

  .address-panel-head,
  .address-card-head,
  .notification-panel-head {
    display: grid;
  }

  .address-card-actions {
    justify-content: flex-start;
  }

  .address-card-head {
    padding-right: 0;
  }

  .address-link-btn {
    position: static;
    width: 100%;
    text-align: left;
  }

  .address-secondary-btn,
  .address-submit-btn,
  .address-cancel-btn,
  .address-add-btn,
  .notification-action-btn {
    width: 100%;
  }

  .notification-card {
    gap: 14px;
    padding: 16px;
  }

  .notification-thumb {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .notification-action {
    justify-content: flex-start;
  }

  .address-form-actions {
    display: grid;
  }

  .account-modal {
    padding: 12px;
  }

  .account-modal-dialog {
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 14px;
  }

  body[data-page="product"] {
    --product-media-main-height: 340px;
    --product-media-thumb-min: 0;
    --product-media-thumbs-visible: 4;
    --product-video-stage-width: 180px;
  }

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

  .product-hero-card {
    padding: 16px;
    border-radius: 20px;
  }

  .product-heading h1 {
    font-size: 24px;
  }

  .product-price-line strong {
    font-size: 32px;
  }

  .cart-page-hero {
    padding: 20px;
  }

  .cart-shop-head,
  .cart-item-row,
  .cart-summary-bar {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cart-item-main {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .cart-item-thumb {
    width: 76px;
    height: 76px;
    border-radius: 14px;
  }

  .cart-qty-control {
    grid-template-columns: 36px 56px 36px;
  }

  .cart-summary-actions,
  .cart-summary-total {
    align-items: flex-start;
  }
  .product-media-nav {
    width: 30px;
    height: 30px;
  }

  .product-media-nav span {
    font-size: 18px;
  }

  .product-media-nav-prev {
    left: -8px;
  }

  .product-media-nav-next {
    right: -8px;
  }

  .product-share-row,
  .product-meta-row,
  .quantity-row,
  .review-header {
    align-items: flex-start;
  }

  .product-spec-grid {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .related-products-track {
    --related-columns: 2;
  }

  #storeFeaturedProducts.product-grid .product-card,
  #catalogProductGrid.product-grid .product-card,
  .related-products-track .product-card {
    grid-template-rows: 182px 1fr;
  }

  .related-carousel-arrow {
    width: 42px;
    height: 42px;
  }

  .related-carousel-arrow span {
    font-size: 26px;
  }

  .related-carousel-arrow-prev {
    left: -6px;
  }

  .related-carousel-arrow-next {
    right: -6px;
  }

  .shop-summary-card,
  .shop-summary-stats {
    grid-template-columns: 1fr;
  }

  .quantity-stepper {
    grid-template-columns: 42px 74px 42px;
  }

  .primary-outline-btn,
  .primary-fill-btn {
    width: 100%;
  }

  .category-section .section-title h3 {
    font-size: 16px;
  }

  .category-carousel-viewport {
    border-radius: 20px;
  }

  .category-card {
    min-height: 188px;
    padding: 18px 10px 14px;
  }

  .category-icon {
    width: 64px;
    height: 64px;
    font-size: 24px;
    margin-bottom: 12px;
  }

  .category-name {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .category-meta {
    font-size: 11px;
  }

  .category-carousel {
    --category-arrow-size: 18px;
    --category-arrow-icon-size: 11px;
    --category-arrow-offset: 4px;
    --category-arrow-hover-scale: 2.8;
  }
}

.checkout-page {
  padding-bottom: 60px;
}

.checkout-hero p {
  margin: 0;
  color: var(--muted);
}

.checkout-shell {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.checkout-shell[hidden] {
  display: none;
}

.checkout-section {
  display: grid;
  gap: 12px;
}

.checkout-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-section-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 22px;
}

.checkout-section-sub {
  color: var(--muted);
  font-size: 14px;
}

.checkout-address-card {
  display: grid;
  gap: 14px;
}

.checkout-address-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkout-address-head h2 {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
  font-size: 18px;
}

.checkout-address-info {
  display: grid;
  gap: 6px;
}

.checkout-address-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-weight: 700;
}

.checkout-address-text {
  color: var(--muted);
  line-height: 1.6;
}

.checkout-address-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-address-empty {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  border: 1px dashed #e6dfd8;
  background: #fffdfa;
}

.checkout-address-empty[hidden],
.checkout-address-info[hidden] {
  display: none;
}

.checkout-address-empty strong {
  font-family: "Sora", sans-serif;
  font-size: 16px;
}

.checkout-address-empty p {
  margin: 0;
  color: var(--muted);
}

.checkout-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.checkout-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 120px 100px 140px;
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: #6b7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-shop-list {
  display: grid;
  gap: 16px;
}

.checkout-item-list {
  display: grid;
}

.checkout-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 120px 100px 140px;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
}

.checkout-item-row + .checkout-item-row {
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.checkout-item-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.checkout-item-main .cart-item-thumb {
  width: 96px;
  height: 96px;
}

.checkout-item-info {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.checkout-item-price,
.checkout-item-qty,
.checkout-item-total {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.checkout-qty {
  font-weight: 600;
}

.checkout-col-label {
  display: none;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.checkout-shop-footer {
  display: grid;
  gap: 16px;
  padding: 16px 20px 20px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
  background: #fffdfb;
}

.checkout-shop-voucher,
.checkout-shop-shipping {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.checkout-shop-voucher h4,
.checkout-shop-shipping h4 {
  margin: 0;
  font-size: 15px;
}

.checkout-shop-voucher p,
.checkout-shop-shipping p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ghost-btn {
  border: 1px dashed #e4dfd5;
  background: white;
  color: #8b7f6f;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.ghost-btn:hover:not(:disabled) {
  border-color: rgba(255, 122, 0, 0.38);
  color: var(--brand-dark);
  background: rgba(255, 247, 240, 0.82);
}

.ghost-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.checkout-shipping-options {
  display: grid;
  gap: 10px;
  width: 100%;
}

.checkout-ship-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: white;
  cursor: pointer;
}

.checkout-ship-option.is-active {
  border-color: rgba(255, 122, 0, 0.5);
  background: rgba(255, 245, 235, 0.7);
}

.checkout-ship-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkout-ship-info {
  display: grid;
  gap: 4px;
}

.checkout-ship-info strong {
  font-size: 14px;
}

.checkout-ship-info span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-ship-fee {
  font-weight: 700;
  color: var(--brand-dark);
}

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

.checkout-voucher-stack {
  display: grid;
  gap: 18px;
}

.checkout-voucher-stack .checkout-voucher-row + .checkout-voucher-row {
  padding-top: 18px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
}

.checkout-voucher-row h3 {
  margin: 0;
  font-size: 16px;
}

.checkout-voucher-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-voucher-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkout-voucher-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 245, 235, 0.9);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 600;
}

.checkout-voucher-chip.is-code {
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent);
}

.checkout-modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.checkout-voucher-list {
  display: grid;
  gap: 12px;
}

.checkout-voucher-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  background: white;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease,
    background 0.18s ease;
}

.checkout-voucher-card:hover {
  border-color: rgba(255, 122, 0, 0.35);
  transform: translateY(-1px);
}

.checkout-voucher-card.is-active {
  border-color: rgba(255, 122, 0, 0.48);
  background: rgba(255, 247, 240, 0.88);
  box-shadow: 0 18px 26px rgba(255, 122, 0, 0.1);
}

.checkout-voucher-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.checkout-voucher-card-code {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.checkout-voucher-card-save {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
}

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

.checkout-voucher-card-main strong {
  font-size: 15px;
}

.checkout-voucher-card-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.checkout-payment h3 {
  margin-top: 0;
}

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

.payment-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: white;
  cursor: pointer;
}

.payment-option.is-active {
  border-color: rgba(255, 122, 0, 0.5);
  background: rgba(255, 245, 235, 0.7);
}

.payment-option input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.payment-option-text {
  display: grid;
  gap: 4px;
}

.payment-option-text strong {
  font-size: 15px;
}

.payment-option-text span {
  font-size: 12px;
  color: var(--muted);
}

.checkout-summary {
  display: grid;
  gap: 12px;
}

.checkout-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-discount-row strong {
  color: #15803d;
}

.checkout-summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
}

.checkout-summary-total strong {
  font-family: "Sora", sans-serif;
  color: var(--brand-dark);
}

.checkout-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff7ed;
  color: #b45309;
  font-size: 13px;
}

.checkout-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.checkout-address-list .address-card-head {
  padding-right: 0;
}

.checkout-address-list .address-card-actions {
  padding-top: 0;
}

@media (max-width: 900px) {
  .checkout-address-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkout-table-head {
    display: none;
  }

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

  .checkout-item-main {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .checkout-item-main .cart-item-thumb {
    width: 80px;
    height: 80px;
  }

  .checkout-item-price,
  .checkout-item-qty,
  .checkout-item-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .checkout-col-label {
    display: inline;
  }
}
