@font-face {
  font-family: "Amazon Ember";
  src: url("../fonts/AmazonEmber-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("../fonts/AmazonEmber-Bold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Amazon Ember";
  src: url("../fonts/AmazonEmber-Heavy.woff2") format("woff2");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #0053e2;
  --blue-dark: #003da8;
  --blue-deep: #002f86;
  --orange: #ff7a00;
  --orange-dark: #d96600;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #e2e8f0;
  --soft: #f5f7fb;
  --soft-blue: #eef5ff;
  --good: #14833b;
  --bad: #c62828;
  --warn: #b45309;
  --card: #ffffff;
  --font-main: "Amazon Ember", Arial, Helvetica, sans-serif;
  --shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f5f7fb;
  color: var(--ink);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
a { color: inherit; }
button, input, select, textarea { font-family: var(--font-main); }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.app-shell { min-height: 100vh; padding-bottom: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: var(--blue);
  color: #fff;
  border-bottom: 1px solid var(--blue-dark);
}
.header-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(360px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 12px 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  width: 150px;
  height: auto;
  max-height: 52px;
  object-fit: contain;
  display: block;
}
.brand-copy { display: none; }
.header-search {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr 98px;
  align-items: center;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 18px;
  overflow: hidden;
}
.header-search:focus-within { border-color: var(--orange); }
.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 500;
  padding: 0 18px;
}
.header-search input::placeholder { color: #1450a8; opacity: 1; }
.header-search button {
  height: 100%;
  border: 0;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.header-search button img {
  width: 19px;
  height: 19px;
  display: block;
  filter: brightness(0) invert(1);
}
.header-search button:hover { background: var(--orange-dark); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  white-space: nowrap;
}
.header-action {
  text-decoration: none;
  color: #fff;
  line-height: 1.05;
  padding: 10px 0;
}
.header-action span {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .86);
  font-weight: 500;
}
.header-action strong {
  display: block;
  margin-top: 0;
  font-size: 17px;
  font-weight: 900;
}
.cart-link {
  position: relative;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #fff;
  min-width: 62px;
  line-height: 1;
}
.cart-icon {
  width: 30px;
  height: 30px;
  display: block;
  filter: brightness(0) invert(1);
}
.cart-badge,
.mobile-tabbar b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.cart-link .cart-badge {
  position: absolute;
  top: -7px;
  right: 5px;
}
.cart-link strong {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
}

.app-main {
  width: min(1480px, calc(100% - 40px));
  margin: 18px auto 86px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.primary-btn {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.primary-btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

.home-slides {
  margin: 0 0 18px;
}
.slide-viewport {
  overflow: hidden;
  border-radius: 14px;
}
.slide-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0 0 2px;
}
.slide-track::-webkit-scrollbar { display: none; }
.home-slide {
  position: relative;
  min-height: 258px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #dbeeff;
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  isolation: isolate;
}
.home-slide.has-image { background: #fff; }
.home-slide.no-image { background: var(--blue); }
.slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide-copy {
  position: relative;
  z-index: 2;
  width: 62%;
  min-width: 260px;
  color: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.home-slide.no-image .slide-copy { text-shadow: none; }
.slide-copy small { display: none; }
.slide-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.03;
  letter-spacing: -.045em;
  font-weight: 900;
}
.slide-copy p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
  max-width: 440px;
  font-weight: 600;
}
.slide-copy a {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: 8px;
  padding: 10px 18px;
  text-decoration: none;
  font-weight: 900;
  text-shadow: none;
}
.slide-copy a:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.slide-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}
.slide-fallback strong {
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.06em;
}
.slide-fallback span {
  font-weight: 900;
}
.slide-controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.slide-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.slide-indicators button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d4dbe7;
}
.slide-indicators button.active {
  background: var(--orange);
}

.secondary-btn {
  background: #fff;
  color: var(--blue);
  border-color: #b9c9e6;
}
.secondary-btn:hover { border-color: var(--blue); background: var(--soft-blue); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero > div:first-child {
  padding: 28px;
  background: #fff;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
  color: var(--ink);
}
.hero p {
  margin: 0;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.5;
  max-width: 780px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-card {
  background: var(--blue);
  color: #fff;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 12px;
}
.hero-mini {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: var(--blue-dark);
  border-radius: 10px;
}
.hero-mini strong {
  display: block;
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}
.hero-mini span {
  display: block;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 700;
}
.search-large {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  background: #fff;
  border: 2px solid #d6e2f5;
  border-radius: 10px;
  padding: 7px;
  max-width: 720px;
}
.search-large input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 12px;
  font-weight: 500;
  font-size: 16px;
}

.section { margin-top: 28px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.section-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}
.section-head a {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
}
.section-head a:hover { text-decoration: underline; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.category-card {
  min-height: 64px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .04);
}
.category-card:hover,
.product-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(0, 83, 226, .10);
}
.category-thumb {
  width: 34px;
  height: 34px;
  object-fit: cover;
  background: var(--soft-blue);
  border: 1px solid #d6e2f5;
  border-radius: 8px;
}
.category-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  color: var(--ink);
}
.category-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.product-card {
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .04);
}
.product-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-body {
  display: grid;
  gap: 6px;
  flex: 1;
  padding: 12px;
  min-height: 118px;
}
.product-title {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.28;
  min-height: 36px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title:hover { color: var(--blue); text-decoration: underline; }
.product-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  min-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-row {
  min-height: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}
.price {
  color: #0b1f3a;
  font-size: 18px;
  font-weight: 900;
}
.old-price {
  color: #7b8794;
  font-size: 13px;
  font-weight: 500;
  text-decoration: line-through;
}
.badges {
  position: absolute;
  left: 8px;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.badge,
.product-tag,
.stock-label {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--blue-dark);
  border: 1px solid #c8d7ef;
  border-radius: 5px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.badge.orange,
.product-tag.orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.badge.green,
.product-tag.green { background: #e9f8ef; color: var(--good); border-color: #b8e5c7; }
.badge.blue,
.product-tag.blue { background: #eaf2ff; color: var(--blue); border-color: #c8d7ef; }
.card-actions {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
}
.card-actions button {
  min-height: 38px;
  border: 1px solid #c8d7ef;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
}
.card-actions button:hover { background: var(--soft-blue); }
.card-actions .cart-btn {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.card-actions .cart-btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }

 .banner-grid { display: grid; gap: 14px; }
.banner-grid.twin { grid-template-columns: 1fr 1fr; }
.banner-card-public {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(17, 24, 39, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.banner-card-public:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 16px 32px rgba(0, 83, 226, .13);
}
.banner-card-public.has-bg-image,
.banner-card-public.text-only {
  min-height: 190px;
  padding: 22px;
  display: flex;
  align-items: center;
  background-color: #fff;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.banner-card-public.text-only {
  background-color: var(--blue);
  color: #fff;
  border-color: var(--blue-dark);
}
.banner-card-public::after { display: none; content: none; }
.banner-content { position: relative; z-index: 2; max-width: 52%; }
.banner-content h3 {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.22);
}
.banner-content p {
  margin: 0 0 14px;
  color: #fff;
  line-height: 1.45;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,.18);
}
.banner-content a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  background: var(--orange);
  color: #fff;
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
}


.listing-layout {
  display: grid;
  grid-template-columns: 276px 1fr;
  gap: 18px;
  align-items: start;
}
.filter-panel {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 16px rgba(17, 24, 39, .04);
}
.filter-panel h3 { margin: 0 0 12px; font-size: 18px; }
.filter-panel label {
  display: block;
  margin: 12px 0 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.filter-panel input,
.filter-panel select,
.variation-box select,
.qty-row input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
  padding: 11px 10px;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #c8d7ef;
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 900;
  text-decoration: none;
  font-size: 13px;
}
.chip.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}
.gallery { display: grid; gap: 12px; }
.main-photo {
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow);
}
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; overflow: auto; padding-bottom: 4px; }
.thumb {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  padding: 0;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.breadcrumb {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.detail-card h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0;
}
.detail-price .price { font-size: 32px; color: #0b1f3a; }
.detail-desc {
  color: #3f4b5b;
  line-height: 1.65;
  font-weight: 500;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}
.info-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}
.info-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.info-box strong { display: block; margin-top: 4px; }
.variation-box {
  border: 1px solid #c8d7ef;
  background: #f8fbff;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.variation-box label {
  display: block;
  margin: 10px 0 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.qty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 0;
}
.qty-row input { width: 94px; text-align: center; font-weight: 900; }
.notice-box {
  border: 1px solid #ffd4ad;
  background: #fff7ed;
  color: #8a3d00;
  border-radius: 10px;
  padding: 12px;
  font-weight: 500;
  line-height: 1.45;
  margin: 14px 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}
.cart-items { display: grid; gap: 12px; }
.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.cart-item img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  background: #f1f5f9;
  border-radius: 8px;
}
.cart-item h3 { margin: 0 0 5px; font-size: 16px; }
.cart-summary {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0;
  font-weight: 700;
}
.summary-line.total {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  font-size: 22px;
}


.profile-card {
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.profile-card h2 { margin: 0 0 8px; font-size: 28px; }
.profile-card p { margin: 0 0 16px; color: var(--muted); line-height: 1.55; font-weight: 500; }

.skeleton {
  background: #e7edf6;
  border-radius: 10px;
  animation: skeletonPulse 1.2s ease-in-out infinite;
}
@keyframes skeletonPulse {
  0%, 100% { opacity: .58; }
  50% { opacity: 1; }
}
.skeleton-slides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.skeleton-slide { height: 258px; border-radius: 14px; }
.skeleton-title { width: 230px; height: 28px; margin-bottom: 9px; }
.skeleton-title.wide { width: min(420px, 85%); height: 36px; }
.skeleton-subtitle { width: 320px; max-width: 72%; height: 16px; }
.skeleton-subtitle.wide { width: min(360px, 75%); }
.skeleton-category { min-height: 64px; }
.skeleton-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.skeleton-product-img { aspect-ratio: 1 / 1; width: 100%; }
.skeleton-product-line { height: 15px; width: 92%; }
.skeleton-product-line.short { width: 68%; }
.skeleton-product-price { width: 118px; height: 24px; }
.skeleton-detail-photo { aspect-ratio: 1 / 1; width: 100%; border-radius: 12px; }
.skeleton-thumb { width: 76px; height: 76px; flex: 0 0 auto; border-radius: 8px; }
.skeleton-paragraph { height: 86px; width: 100%; }
.skeleton-paragraph.small { height: 54px; width: 88%; }

.placeholder-img,
.image-failed {
  width: 100%;
  height: 100%;
  min-height: 140px;
  background: #eaf2ff;
  position: relative;
}
.placeholder-img::after,
.image-failed::after {
  content: "Gulio";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 900;
  font-size: 22px;
}
.empty-state,
.error-state,
.setup-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.empty-state h2,
.error-state h2,
.setup-panel h1 { margin: 0 0 8px; }
.empty-state p,
.error-state p,
.setup-panel p,
.setup-panel li {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}
.muted { color: var(--muted); }
.loader {
  min-height: 55vh;
  display: grid;
  place-items: center;
}
.loader-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.spin {
  width: 20px;
  height: 20px;
  border: 3px solid #c8d7ef;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.mobile-tabbar { display: none; }
.hidden { display: none !important; }

#toast {
  border-radius: 10px !important;
  background: var(--blue) !important;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 14px;
  }
  .header-actions { gap: 12px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 940px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    padding: 10px 14px;
    min-height: auto;
  }
  .header-search {
    grid-column: 1 / -1;
    order: 5;
    height: 48px;
    grid-template-columns: 1fr 84px;
  }
  .header-actions { display: none; }
  .brand-copy small { display: none; }
  .hero,
  .detail-layout,
  .cart-layout,
  .listing-layout { grid-template-columns: 1fr; }
  .filter-panel,
  .cart-summary { position: static; }
  .slide-track { grid-auto-columns: 100%; }
  .skeleton-slides { grid-template-columns: 1fr; }
  .skeleton-slides .second { display: none; }
  .home-slide { min-height: 250px; }
  .slide-copy { width: 68%; min-width: 0; padding: 26px; }
  .hero-card { grid-template-columns: repeat(3, 1fr); }
  .hero-mini { grid-template-columns: 1fr; gap: 4px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .app-shell { padding-bottom: 72px; }
  .site-header { position: sticky; }
  .header-inner {
    grid-template-columns: 1fr;
    gap: 9px;
    justify-items: center;
    padding: 9px 12px 11px;
  }
  .brand {
    width: 100%;
    justify-content: center;
    gap: 0;
  }
  .brand-logo {
    width: 145px;
    height: auto;
    max-height: 50px;
  }
  .brand-copy { display: none; }
  .header-search {
    grid-column: 1 / -1;
    width: 100%;
    height: 45px;
    border-radius: 13px;
    grid-template-columns: 1fr 54px;
  }
  .header-search input {
    font-size: 15px;
    padding: 0 13px;
  }
  .header-search button span { display: none; }
  .header-search button img { width: 20px; height: 20px; }
  .header-actions { display: none !important; }
  .app-main { width: calc(100% - 18px); margin-top: 10px; margin-bottom: 20px; }
  .home-slides { margin-bottom: 14px; }
  .slide-viewport { border-radius: 12px; }
  .slide-track { grid-auto-columns: 100%; gap: 10px; }
  .home-slide { min-height: 210px; border-radius: 12px; }
  .slide-copy { width: 74%; min-width: 0; padding: 22px 18px; }
  .slide-copy h1 { font-size: 29px; line-height: 1.04; }
  .slide-copy p { font-size: 14px; line-height: 1.3; margin-top: 8px; }
  .slide-copy a { min-height: 40px; margin-top: 14px; padding: 9px 14px; }
  .slide-controls { margin-top: 8px; }
  .hero > div:first-child { padding: 20px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 15px; }
  .search-large { grid-template-columns: 1fr; }
  .hero-card { grid-template-columns: 1fr; padding: 14px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 22px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .category-card { grid-template-columns: 36px 1fr; min-height: 68px; padding: 8px; }
  .category-thumb { width: 36px; height: 36px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-body { padding: 10px; min-height: 118px; }
  .product-title { font-size: 13px; min-height: 34px; }
  .product-meta { font-size: 11px; }
  .price { font-size: 15px; }
  .card-actions { grid-template-columns: 1fr; }
  .card-actions button:first-child { display: none; }
  .banner-grid.twin { grid-template-columns: 1fr; }
  .banner-card-public.text-only,
  .banner-card-public.has-bg-image { min-height: 150px; padding: 18px; }
  .banner-card-public { min-height: 150px; padding: 18px; }
  .banner-content { max-width: 68%; }
  .info-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 17px; }
  .cart-item { grid-template-columns: 74px 1fr; }
  .cart-item img { width: 74px; height: 74px; }
  .cart-item .item-actions { grid-column: 1 / -1; }
  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(17, 24, 39, .10);
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-tabbar a {
    display: grid;
    place-items: center;
    gap: 2px;
    text-decoration: none;
    color: #334155;
    font-size: 10px;
    font-weight: 900;
    padding: 8px 3px 7px;
    min-height: 58px;
  }
  .mobile-tabbar a.active { color: var(--blue); background: #fff; }
  .tab-icon {
    width: 22px;
    height: 22px;
    display: block;
    object-fit: contain;
  }
  .mobile-tabbar a:not(.active) .tab-icon { opacity: .76; }
  .tab-cart-wrap { position: relative; display: grid; place-items: center; }
  .mobile-tabbar b {
    position: absolute;
    top: -8px;
    right: -13px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    border-radius: 6px;
    border: 1px solid #fff;
  }
}

@media (max-width: 520px) {
  .slide-copy { width: 82%; }
  .banner-content { max-width: 74%; }
  .home-slide { min-height: 196px; }
  .slide-copy h1 { font-size: 25px; }
  .slide-copy p { font-size: 13px; }
}

@media (max-width: 400px) {
  .header-search { grid-template-columns: 1fr 50px; }
  .header-search input { font-size: 14px; padding-left: 12px; }
  .product-grid,
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v54B9 desktop header SVG actions + live status */
.header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-action-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.live-dot {
  position: absolute;
  top: 6px;
  left: 15px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, .65);
  transform: scale(0);
  opacity: 0;
}
.header-action-live.is-live .live-dot {
  opacity: 1;
  transform: scale(1);
  animation: gulioLivePulse 1.25s ease-out infinite;
}
@keyframes gulioLivePulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
  70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* v54B9 centered GulioLive banner after categories */
.live-home-section {
  display: flex;
  justify-content: center;
}
.live-home-card {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: stretch;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.live-home-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 18px 36px rgba(0, 83, 226, .14);
}
.live-home-image {
  min-height: 230px;
  background: #eef2f7;
  overflow: hidden;
}
.live-home-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.live-home-card:hover .live-home-image img {
  transform: scale(1.035);
}
.live-home-copy {
  background: var(--blue);
  color: #ffffff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.live-status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.live-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dc2626;
  border: 1px solid #fff;
}
.live-home-copy h2 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 900;
}
.live-home-copy p {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}
.live-home-button {
  margin-top: 18px;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 900;
}

@media (max-width: 720px) {
  .live-home-card { grid-template-columns: 1fr; }
  .live-home-image { min-height: 165px; }
  .live-home-copy { padding: 18px; }
  .live-home-copy h2 { font-size: 27px; }
  .live-home-copy p { font-size: 13px; }
}


/* v54C product detail web UX */
.product-detail-page { margin-top: 0; }
.product-top-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px;
}
.detail-back-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 900;
}
.detail-back-link:hover { text-decoration: underline; }
.detail-layout-v54c {
  grid-template-columns: minmax(0, .95fr) minmax(390px, .8fr);
  align-items: start;
}
.gallery-v54c {
  position: sticky;
  top: 96px;
}
.detail-main-photo {
  position: relative;
  border-radius: 8px;
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}
.detail-main-photo img { object-fit: cover; }
.detail-discount,
.detail-image-count {
  position: absolute;
  z-index: 3;
  border-radius: 6px;
  font-weight: 900;
  line-height: 1;
}
.detail-discount {
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  padding: 7px 9px;
  font-size: 13px;
}
.detail-image-count {
  right: 12px;
  bottom: 12px;
  background: rgba(255,255,255,.95);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 6px 9px;
  font-size: 12px;
}
.detail-thumbs { padding: 2px 0 5px; }
.detail-thumbs .thumb {
  width: 82px;
  height: 82px;
  border-radius: 7px;
  transition: border-color .16s ease, transform .16s ease;
}
.detail-thumbs .thumb.active,
.detail-thumbs .thumb:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.detail-card-v54c {
  border-radius: 8px;
  padding: 22px;
  box-shadow: none;
}
.detail-brand {
  color: var(--blue);
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.detail-card-v54c h1 {
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.detail-category-path {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: -2px;
}
.detail-price-v54c {
  margin: 15px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.detail-price-v54c .price {
  color: var(--orange);
  font-size: 32px;
}
.variation-box-v54c {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}
.variation-box-v54c > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
}
.variation-combo-grid,
.option-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.variation-choice,
.option-choice {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 12px;
  min-height: 42px;
  font-weight: 900;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.variation-choice {
  min-width: 112px;
  display: grid;
  gap: 4px;
  text-align: center;
}
.variation-choice small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.variation-choice.active,
.option-choice.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.variation-choice.active small { color: rgba(255,255,255,.9); }
.variation-choice:disabled {
  opacity: .48;
  cursor: not-allowed;
  background: #f1f5f9;
}
.option-group-v54c { margin-top: 12px; }
.option-group-v54c:first-of-type { margin-top: 0; }
.option-title-v54c {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 5px;
}
.option-title-v54c strong { color: var(--blue); }
.stock-line-v54c {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
}
.stock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.stock-dot.good { background: var(--good); }
.stock-dot.warn { background: var(--orange); }
.stock-dot.bad { background: var(--bad); }
.quantity-box-v54c {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  font-weight: 900;
}
.quantity-stepper {
  display: inline-grid;
  grid-template-columns: 38px 56px 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.quantity-stepper button,
.quantity-stepper input {
  border: 0;
  background: #fff;
  text-align: center;
  font-weight: 900;
  color: var(--ink);
}
.quantity-stepper button {
  color: var(--blue);
  font-size: 20px;
}
.quantity-stepper button:hover { background: var(--soft-blue); }
.selected-option-line {
  margin-top: 8px;
  background: var(--soft-blue);
  border-left: 4px solid var(--blue);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
}
.detail-actions-v54c {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.detail-actions-v54c button:disabled,
.mobile-product-action-bar button:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.detail-safety-note { margin-top: 12px; }
.detail-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  gap: 14px;
  align-items: start;
  margin-top: 18px;
}
.detail-panel-v54c {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
}
.detail-panel-v54c h2 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.15;
}
.detail-bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.detail-bullets li {
  position: relative;
  padding-left: 16px;
  color: #334155;
  font-weight: 700;
  line-height: 1.45;
}
.detail-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.condition-list-v54c,
.policy-list-v54c {
  display: grid;
  gap: 8px;
}
.condition-list-v54c div,
.policy-list-v54c div {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  border-bottom: 1px solid #eef2f7;
  padding: 0 0 8px;
}
.condition-list-v54c div:last-child,
.policy-list-v54c div:last-child { border-bottom: 0; padding-bottom: 0; }
.condition-list-v54c span,
.policy-list-v54c span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.condition-list-v54c strong,
.policy-list-v54c strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}
.policies-panel-v54c { grid-column: 1 / -1; }
.mobile-product-action-bar { display: none; }

@media (max-width: 940px) {
  .gallery-v54c { position: static; }
  .detail-layout-v54c,
  .detail-lower-grid { grid-template-columns: 1fr; }
  .policies-panel-v54c { grid-column: auto; }
}

@media (max-width: 720px) {
  .product-detail-page { padding-bottom: 76px; }
  .product-top-line { display: none; }
  .detail-layout-v54c { gap: 10px; }
  .detail-main-photo {
    border-radius: 7px;
    aspect-ratio: 1 / 1;
  }
  .detail-thumbs .thumb { width: 70px; height: 70px; }
  .detail-card-v54c {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .detail-card-v54c h1 { font-size: 21px; }
  .detail-price-v54c .price { font-size: 24px; }
  .detail-actions-v54c { display: none; }
  .detail-safety-note { font-size: 12px; }
  .variation-box-v54c,
  .stock-line-v54c,
  .quantity-box-v54c,
  .notice-box,
  .detail-panel-v54c {
    border-radius: 7px;
  }
  .variation-choice { min-width: calc(50% - 4px); }
  .detail-lower-grid { margin-top: 12px; }
  .condition-list-v54c div,
  .policy-list-v54c div { grid-template-columns: 100px 1fr; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-product-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 88;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 9px 10px;
    box-shadow: 0 -6px 18px rgba(17,24,39,.10);
  }
  .mobile-product-action-bar .primary-btn,
  .mobile-product-action-bar .secondary-btn {
    min-height: 46px;
    border-radius: 7px;
  }
}


/* v54C2 product detail balance fixes */
@media (min-width: 941px) {
  .detail-layout-v54c {
    grid-template-columns: minmax(340px, .70fr) minmax(430px, 1fr);
    gap: 18px;
  }
  .gallery-v54c {
    top: 92px;
  }
  .detail-main-photo {
    aspect-ratio: 4 / 3;
    max-height: 470px;
  }
  .detail-main-photo img {
    object-fit: contain;
    background: #ffffff;
  }
  .detail-thumbs .thumb {
    width: 68px;
    height: 68px;
  }
  .detail-card-v54c {
    padding: 18px;
  }
  .detail-card-v54c h1 {
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.1;
    margin-bottom: 5px;
  }
  .detail-price-v54c {
    margin: 11px 0;
    padding-bottom: 11px;
  }
  .detail-price-v54c .price {
    font-size: 28px;
  }
  .variation-box-v54c,
  .stock-line-v54c,
  .quantity-box-v54c,
  .notice-box {
    margin-top: 10px;
  }
  .variation-choice,
  .option-choice {
    min-height: 38px;
    padding: 8px 10px;
  }
  .detail-actions-v54c {
    margin-top: 11px;
  }
  .detail-actions-v54c .primary-btn,
  .detail-actions-v54c .secondary-btn {
    min-height: 40px;
  }
  .detail-safety-note {
    font-size: 12px;
    padding: 10px;
    margin-top: 10px;
  }
  .detail-lower-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
    gap: 12px;
    margin-top: 14px;
  }
  .detail-panel-v54c {
    padding: 15px;
  }
  .detail-panel-v54c h2 {
    font-size: 18px;
  }
  .detail-bullets {
    gap: 6px;
  }
  .detail-bullets li {
    font-size: 13px;
    line-height: 1.35;
  }
  .policy-list-v54c div {
    grid-template-columns: 100px 1fr;
  }
  .related-section {
    margin-top: 20px;
  }
}

@media (min-width: 1181px) {
  .product-detail-page {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 720px) {
  .detail-main-photo img {
    object-fit: cover;
  }
}


/* v54D Cart Page Web UX */
.cart-page-v54d {
  margin-top: 0;
}
.cart-head-v54d {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 14px;
}
.cart-head-v54d h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 900;
}
.cart-head-v54d p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 500;
}
.cart-layout-v54d {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}
.cart-list-card-v54d,
.cart-summary-v54d,
.empty-cart-v54d {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.cart-list-card-v54d {
  overflow: hidden;
}
.cart-line-v54d {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 126px 138px;
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-bottom: 1px solid var(--line);
}
.cart-line-v54d:last-child { border-bottom: 0; }
.cart-line-v54d.out { background: #fff7f7; }
.cart-image-v54d {
  width: 92px;
  height: 92px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
}
.cart-image-v54d img,
.cart-image-v54d .placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
}
.cart-title-row-v54d {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.cart-title-v54d {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 15.5px;
  line-height: 1.18;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-title-v54d:hover { color: var(--blue); text-decoration: underline; }
.cart-remove-icon-v54d {
  width: 28px;
  height: 28px;
  border: 1px solid #fee2e2;
  border-radius: 7px;
  background: #fff;
  color: #b91c1c;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}
.cart-remove-icon-v54d:hover { background: #fee2e2; }
.cart-meta-v54d {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-stock-v54d {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}
.cart-stock-v54d.good { color: var(--good); }
.cart-stock-v54d.warn { color: var(--warn); }
.cart-stock-v54d.bad { color: var(--bad); }
.cart-qty-v54d {
  height: 40px;
  display: inline-grid;
  grid-template-columns: 38px 42px 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.cart-qty-v54d button {
  height: 40px;
  border: 0;
  background: #fff;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}
.cart-qty-v54d button:hover:not(:disabled) { background: var(--soft-blue); }
.cart-qty-v54d button:disabled { color: #94a3b8; cursor: not-allowed; background: #f8fafc; }
.cart-qty-v54d strong {
  display: grid;
  place-items: center;
  min-height: 40px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}
.cart-price-v54d {
  text-align: right;
  display: grid;
  gap: 3px;
}
.cart-price-v54d strong {
  color: var(--blue-dark);
  font-size: 17px;
  font-weight: 900;
}
.cart-price-v54d span,
.cart-price-v54d s {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.cart-price-mobile-v54d { display: none; }
.cart-summary-v54d {
  position: sticky;
  top: 96px;
  padding: 18px;
}
.cart-summary-v54d h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.cart-summary-row-v54d {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 11px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.cart-summary-row-v54d strong {
  color: var(--ink);
  text-align: right;
  font-weight: 900;
}
.cart-summary-row-v54d .muted-value { color: var(--muted); font-size: 12.5px; }
.cart-summary-row-v54d.total {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  color: var(--ink);
  font-size: 18px;
}
.cart-summary-row-v54d.total strong {
  color: var(--blue-dark);
  font-size: 22px;
}
.cart-checkout-v54d {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 0;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  opacity: .55;
  cursor: not-allowed;
}
.cart-safe-note-v54d {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 600;
}
.empty-cart-v54d {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 34px 22px;
  text-align: center;
}
.empty-cart-v54d img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  opacity: .9;
}
.empty-cart-v54d h2 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.empty-cart-v54d p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 600;
}

@media (max-width: 940px) {
  .cart-layout-v54d { grid-template-columns: 1fr; }
  .cart-summary-v54d { position: static; }
}

@media (max-width: 720px) {
  .cart-head-v54d {
    align-items: flex-start;
    margin-bottom: 10px;
  }
  .cart-head-v54d h1 { font-size: 26px; }
  .cart-head-v54d p { font-size: 12.5px; }
  .cart-continue-v54d { display: none; }
  .cart-line-v54d {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 11px;
    padding: 11px;
  }
  .cart-image-v54d { width: 74px; height: 74px; }
  .cart-title-v54d { font-size: 14px; }
  .cart-meta-v54d { font-size: 11.5px; }
  .cart-stock-v54d { font-size: 11.5px; margin-top: 5px; }
  .cart-qty-v54d {
    grid-column: 2;
    width: 120px;
    height: 38px;
    grid-template-columns: 36px 40px 36px;
    justify-self: start;
  }
  .cart-qty-v54d button,
  .cart-qty-v54d strong { height: 38px; min-height: 38px; }
  .cart-price-v54d { display: none; }
  .cart-price-mobile-v54d {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
  }
  .cart-price-mobile-v54d span {
    color: var(--blue-dark);
    font-size: 15px;
    font-weight: 900;
  }
  .cart-price-mobile-v54d s {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
  }
  .cart-summary-v54d { padding: 15px; }
  .cart-summary-v54d h2 { font-size: 19px; }
  .cart-summary-row-v54d.total strong { font-size: 20px; }
  .empty-cart-v54d { min-height: 310px; padding: 26px 18px; }
  .empty-cart-v54d img { width: 82px; height: 82px; }
}

/* v54E auth, profile, and checkout gate */
.auth-page-v54e,
.profile-page-v54e {
  min-height: 62vh;
  display: grid;
  place-items: start center;
  padding-top: 18px;
}
.auth-card-v54e,
.profile-card-v54e,
.profile-guest-v54e {
  width: min(100%, 520px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.auth-brand-v54e {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.auth-brand-v54e img {
  width: 96px;
  max-height: 44px;
  object-fit: contain;
  background: var(--blue);
  border-radius: 10px;
  padding: 6px;
}
.auth-brand-v54e h1,
.profile-card-v54e h2,
.profile-guest-v54e h2 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.035em;
}
.auth-brand-v54e p,
.profile-card-v54e p,
.profile-guest-v54e p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.auth-toggle-v54e {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
}
.auth-toggle-v54e a {
  min-height: 40px;
  display: grid;
  place-items: center;
  text-decoration: none;
  border-radius: 9px;
  color: var(--ink);
  font-weight: 900;
}
.auth-toggle-v54e a.active {
  background: var(--blue);
  color: #fff;
}
.google-btn-v54e {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
}
.google-btn-v54e:hover { border-color: var(--blue); background: var(--soft-blue); }
.auth-divider-v54e {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}
.auth-divider-v54e::before,
.auth-divider-v54e::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.auth-form-v54e,
.profile-form-v54e {
  display: grid;
  gap: 10px;
}
.form-grid-v54e.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.auth-form-v54e label,
.profile-form-v54e label {
  display: grid;
  gap: 5px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}
.auth-form-v54e input,
.profile-form-v54e input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  outline: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  background: #fff;
}
.auth-form-v54e input:focus,
.profile-form-v54e input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,83,226,.10); }
.auth-submit-v54e { width: 100%; min-height: 48px; }
.auth-hint-v54e,
.auth-small-v54e {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}
.forgot-link-v54e {
  color: var(--blue);
  font-weight: 900;
  text-decoration: none;
  justify-self: end;
}
.forgot-link-v54e:hover { text-decoration: underline; }
.auth-actions-v54e {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 15px;
}
.profile-guest-v54e { text-align: center; }
.profile-guest-v54e img {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  opacity: .9;
}
.profile-top-v54e {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 13px;
}
.profile-avatar-v54e {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  font-size: 19px;
}
.profile-phone-v54e.warn { color: var(--orange); font-weight: 900; }
.profile-notice-v54e {
  margin: 12px 0 14px;
  border: 1px solid #ffd4ad;
  background: #fff7ed;
  color: #8a3d00;
  border-radius: 10px;
  padding: 11px;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}
.profile-links-v54e {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.profile-links-v54e a,
.profile-links-v54e button {
  color: var(--blue);
  background: transparent;
  border: 0;
  text-decoration: none;
  font-weight: 900;
  padding: 8px 0;
}
.cart-checkout-v54d:not(:disabled) {
  cursor: pointer;
  background: var(--orange);
  color: #fff;
}
.cart-checkout-v54d:not(:disabled):hover { background: var(--orange-dark); }
@media (max-width: 720px) {
  .auth-page-v54e,
  .profile-page-v54e { padding-top: 8px; }
  .auth-card-v54e,
  .profile-card-v54e,
  .profile-guest-v54e { padding: 16px; border-radius: 12px; }
  .auth-brand-v54e { align-items: flex-start; }
  .auth-brand-v54e img { width: 82px; max-height: 40px; }
  .auth-brand-v54e h1,
  .profile-card-v54e h2,
  .profile-guest-v54e h2 { font-size: 25px; }
  .form-grid-v54e.two { grid-template-columns: 1fr; gap: 9px; }
  .auth-actions-v54e { display: grid; grid-template-columns: 1fr; }
  .auth-actions-v54e a { width: 100%; }
}

/* v54G - Web checkout connected to synced cart */
.checkout-page-v54g {
  max-width: 1220px;
  margin: 0 auto;
  padding: 18px 18px 96px;
}
.checkout-head-v54g {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.checkout-head-v54g h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.05;
  color: var(--text);
  font-weight: 900;
}
.checkout-head-v54g p,
.checkout-muted-v54g {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}
.checkout-layout-v54g {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}
.checkout-main-v54g {
  display: grid;
  gap: 14px;
}
.checkout-card-v54g,
.checkout-summary-v54g,
.checkout-auth-card-v54g,
.checkout-skeleton-v54g {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .04);
}
.checkout-card-v54g { padding: 15px; }
.checkout-card-v54g h2,
.checkout-summary-v54g h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
}
.checkout-auth-card-v54g,
.checkout-skeleton-v54g {
  max-width: 560px;
  margin: 26px auto;
  padding: 24px;
  text-align: center;
}
.form-grid-v54g.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid-v54g label,
.full-label-v54g,
.payment-proof-v54g {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}
.form-grid-v54g input,
.full-label-v54g input,
.coupon-row-v54g input,
.payment-proof-v54g input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}
.form-grid-v54g input:focus,
.full-label-v54g input:focus,
.coupon-row-v54g input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 83, 226, .08);
}
.choice-grid-v54g,
.payment-grid-v54g {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 12px;
}
.choice-card-v54g,
.payment-card-v54g,
.option-card-v54g {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 11px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.choice-card-v54g strong,
.payment-card-v54g strong,
.option-card-v54g strong {
  display: block;
  color: var(--text);
  font-weight: 900;
  font-size: 13.5px;
}
.choice-card-v54g span,
.option-card-v54g small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
  font-weight: 700;
}
.choice-card-v54g.selected,
.payment-card-v54g.selected,
.option-card-v54g.selected {
  border-color: var(--blue);
  background: #eef6ff;
  box-shadow: 0 0 0 2px rgba(0, 83, 226, .08);
}
.checkout-option-list-v54g {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.option-card-v54g {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.option-card-v54g b {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}
.full-label-v54g { margin-top: 10px; }
.checkout-check-v54g {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.checkout-check-v54g input { width: 17px; height: 17px; }
.payment-card-v54g {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
}
.payment-card-v54g img {
  max-width: 82px;
  max-height: 28px;
  object-fit: contain;
}
.payment-icon-v54g {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 28px;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}
.selected-payment-v54g {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 11px;
  padding: 12px;
  margin-top: 10px;
}
.selected-payment-v54g strong {
  color: var(--text);
  font-weight: 900;
}
.selected-payment-v54g p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.4;
}
.payment-proof-v54g { margin-top: 10px; }
.coupon-row-v54g {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.checkout-items-v54g {
  display: grid;
  gap: 9px;
}
.checkout-item-v54g {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}
.checkout-item-v54g:last-child { border-bottom: 0; padding-bottom: 0; }
.checkout-item-img-v54g {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  background: #f8fafc;
  overflow: hidden;
  border: 1px solid var(--line);
}
.checkout-item-img-v54g img { width: 100%; height: 100%; object-fit: cover; }
.checkout-item-v54g strong {
  display: block;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.2;
}
.checkout-item-v54g span,
.checkout-item-v54g small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
  font-weight: 700;
}
.checkout-item-v54g b {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}
.checkout-summary-v54g {
  padding: 16px;
  position: sticky;
  top: 94px;
}
.checkout-warning-v54g {
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #9a3412;
  border-radius: 10px;
  padding: 11px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}
.checkout-ok-v54g {
  color: #15803d !important;
  font-weight: 900 !important;
}
.order-success-v54g {
  display: grid;
  place-items: center;
  min-height: 56vh;
  padding: 26px 18px 100px;
}
.order-success-v54g article {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .07);
}
.success-mark-v54g {
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 34px;
  font-weight: 900;
}
.order-success-v54g h1 { margin: 0 0 7px; color: var(--text); font-size: 28px; }
.order-success-v54g p { color: var(--muted); font-weight: 700; line-height: 1.45; }
.order-success-v54g strong { display: block; color: var(--blue); font-size: 18px; margin-top: 9px; }
.order-success-actions-v54g {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 17px;
}
@media (max-width: 980px) {
  .checkout-layout-v54g { grid-template-columns: 1fr; }
  .checkout-summary-v54g { position: static; }
}
@media (max-width: 720px) {
  .checkout-page-v54g { padding: 10px 10px 96px; }
  .checkout-head-v54g { align-items: stretch; display: grid; }
  .checkout-head-v54g h1 { font-size: 25px; }
  .checkout-card-v54g,
  .checkout-summary-v54g { border-radius: 12px; padding: 13px; }
  .form-grid-v54g.two,
  .choice-grid-v54g,
  .payment-grid-v54g,
  .coupon-row-v54g { grid-template-columns: 1fr; }
  .option-card-v54g { align-items: flex-start; }
  .checkout-item-v54g { grid-template-columns: 50px 1fr; }
  .checkout-item-v54g b { grid-column: 2; }
}


/* v54G2/v54G3 - Checkout polish: orange CTA, blue delivery flow, Google Places Dar autocomplete */
.cart-checkout-v54d:not(:disabled) {
  opacity: 1;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(255, 122, 0, .20);
}
.cart-checkout-v54d:disabled {
  opacity: .52;
}
.checkout-summary-v54g .cart-checkout-v54d,
.cart-summary-v54d .cart-checkout-v54d {
  background: var(--orange);
  color: #fff;
  border: 0;
}
.checkout-card-delivery-v54g {
  border-color: rgba(0,83,226,.16);
}
.checkout-card-title-row-v54g {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.checkout-card-title-row-v54g h2 {
  margin-bottom: 4px;
}
.delivery-step-label-v54g {
  margin: 10px 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.delivery-type-grid-v54g {
  margin-bottom: 5px;
}
.checkout-smooth-line-v54g {
  height: 1px;
  width: 100%;
  margin: 12px 0 10px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,83,226,.26) 14%, rgba(0,83,226,.26) 86%, transparent 100%);
}
.choice-card-v54g,
.option-card-v54g {
  transition: background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.choice-card-v54g:hover,
.option-card-v54g:hover {
  transform: translateY(-1px);
  border-color: rgba(0,83,226,.42);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
}
.choice-card-v54g.selected {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(0,83,226,.20);
}
.choice-card-v54g.selected strong,
.choice-card-v54g.selected span {
  color: #fff;
}
.option-card-v54g.selected {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 22px rgba(0,83,226,.16);
}
.option-card-v54g.selected strong,
.option-card-v54g.selected small,
.option-card-v54g.selected b {
  color: #fff;
}
.selected-delivery-result-v54g {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 10px 0 12px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(0,83,226,.18);
  background: #f8fbff;
}
.selected-delivery-result-v54g.muted {
  display: block;
  color: var(--muted);
  font-weight: 800;
}
.selected-delivery-result-v54g span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 3px;
}
.selected-delivery-result-v54g strong {
  display: block;
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
}
.selected-delivery-result-v54g p,
.selected-delivery-result-v54g small {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}
.selected-delivery-result-v54g b {
  color: var(--orange);
  font-weight: 900;
  white-space: nowrap;
}
.dar-street-autocomplete-v54g {
  position: relative;
  margin-top: 10px;
}
.dar-autocomplete-panel-v54g {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid rgba(0,83,226,.14);
  background: #f8fbff;
  border-radius: 11px;
}
.dar-autocomplete-panel-v54g p {
  margin: 0;
  padding: 4px 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.dar-autocomplete-panel-v54g button {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
  transition: border-color .16s ease, background .16s ease;
}
.dar-autocomplete-panel-v54g button:hover {
  border-color: var(--blue);
  background: var(--soft-blue);
}
.dar-autocomplete-panel-v54g button span {
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
}
.dar-autocomplete-panel-v54g button small {
  color: var(--muted);
  font-weight: 700;
  font-size: 11.5px;
}

@media (max-width: 720px) {
  .selected-delivery-result-v54g { grid-template-columns: 1fr; }
  .selected-delivery-result-v54g b { justify-self: start; }
}


/* v54G3 - Google Places autocomplete states */
.dar-autocomplete-panel-v54g.warning {
  border-color: rgba(255, 122, 0, .22);
  background: #fff7ed;
}
.dar-autocomplete-panel-v54g p {
  display: flex;
  align-items: center;
  gap: 6px;
}
.places-powered-v54g {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}
.dar-autocomplete-panel-v54g button small {
  color: var(--blue);
}

/* v55B Web Profile + My Orders + Support */
.profile-page-v55b,
.orders-page-v55b,
.order-detail-page-v55b,
.support-page-v55b,
.support-thread-page-v55b {
  max-width: 1180px;
  margin: 0 auto;
}
.profile-head-v55b {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.profile-head-v55b h1,
.orders-page-v55b h1,
.order-detail-page-v55b h1,
.support-page-v55b h1,
.support-thread-page-v55b h1 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
  font-weight: 900;
}
.profile-head-v55b p,
.orders-page-v55b p,
.order-detail-page-v55b p,
.support-page-v55b p,
.support-thread-page-v55b p { color: var(--muted); font-weight: 600; }
.profile-logout-v55b {
  border: 1px solid #c8d7ef;
  background: #fff;
  color: var(--blue);
  border-radius: 8px;
  min-height: 42px;
  padding: 9px 13px;
  font-weight: 900;
}
.profile-card-v55b,
.profile-section-v55b,
.detail-info-card-v55b,
.support-thread-card-v55b {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.profile-header-v55b {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
}
.profile-avatar-v55b {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  border-radius: 14px;
  font-size: 20px;
  font-weight: 900;
}
.profile-avatar-v55b img { width: 100%; height: 100%; object-fit: cover; }
.profile-header-v55b h2 { margin: 0; font-size: 20px; font-weight: 900; }
.profile-header-v55b p { margin: 3px 0 0; color: var(--muted); font-weight: 600; }
.profile-phone-v55b { color: var(--muted); }
.profile-phone-v55b.warn { color: var(--orange); font-weight: 900; }
.profile-notice-v55b {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #8a3d00;
  border-radius: 10px;
  padding: 12px 14px;
}
.profile-notice-v55b strong { font-weight: 900; }
.profile-notice-v55b span { font-weight: 700; }
.profile-tile-grid-v55b {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.profile-tile-v55b {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
}
.profile-tile-v55b:hover,
.order-card-v55b:hover,
.support-case-card-v55b:hover,
.support-mini-card-v55b:hover { border-color: var(--blue); box-shadow: 0 12px 26px rgba(0,83,226,.10); }
.profile-tile-v55b.attention { border-color: var(--orange); background: #fffaf4; }
.profile-tile-icon-v55b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft-blue);
  font-size: 21px;
}
.profile-tile-v55b strong { display: block; font-size: 15px; font-weight: 900; }
.profile-tile-v55b small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-tile-v55b b { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 24px; border-radius: 8px; background: var(--blue); color: #fff; padding: 3px 8px; font-size: 12px; font-weight: 900; }
.profile-tile-v55b.attention b { background: var(--orange); }
.profile-tile-v55b i,
.order-card-side-v55b i,
.support-case-card-v55b i,
.support-mini-card-v55b i { color: var(--muted); font-style: normal; font-size: 24px; }
.profile-section-v55b { margin-top: 18px; padding: 18px; }
.profile-section-v55b h2,
.detail-info-card-v55b h2 { margin: 0 0 10px; color: var(--ink); font-size: 18px; font-weight: 900; }
.profile-form-v55b { display: grid; gap: 12px; }
.profile-form-v55b label,
.support-modal-card-v55b label { display: grid; gap: 6px; color: #334155; font-size: 12px; font-weight: 900; }
.profile-form-v55b input,
.profile-form-v55b select,
.support-modal-card-v55b input,
.support-modal-card-v55b select,
.support-modal-card-v55b textarea,
.support-reply-v55b textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  padding: 11px 10px;
}
.profile-saved-head-v55b { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.profile-saved-head-v55b h2 { margin: 0; }
.profile-saved-head-v55b button { border: 0; background: transparent; color: var(--blue); font-weight: 900; }
.saved-delivery-card-v55b,
.saved-delivery-empty-v55b {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 13px;
}
.saved-delivery-card-v55b strong { display: block; color: var(--blue); font-weight: 900; }
.saved-delivery-card-v55b span { display: block; margin-top: 4px; color: var(--ink); font-weight: 900; }
.saved-delivery-card-v55b small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.45; font-weight: 700; }
.saved-delivery-empty-v55b { color: var(--muted); font-weight: 700; }
.payment-radio-list-v55b { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.payment-radio-list-v55b label { grid-template-columns: auto 1fr; align-items: start; padding: 9px; border-radius: 8px; }
.payment-radio-list-v55b label:hover { background: var(--soft-blue); }
.payment-radio-list-v55b input { width: auto; margin-top: 3px; accent-color: var(--blue); }
.payment-radio-list-v55b strong { display: block; color: var(--ink); font-size: 14px; }
.payment-radio-list-v55b small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.35; }
.profile-save-v55b { width: 100%; min-height: 50px; }
.profile-small-note-v55b { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-weight: 600; }
.orders-list-v55b,
.support-list-v55b { display: grid; gap: 10px; }
.order-card-v55b {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
}
.order-thumb-v55b { width: 66px; height: 66px; border-radius: 8px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; }
.order-thumb-v55b img,
.order-thumb-v55b .placeholder-img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.order-card-main-v55b { min-width: 0; }
.order-card-main-v55b strong { display: block; color: var(--ink); font-size: 15px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-main-v55b span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card-main-v55b small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.order-card-main-v55b em { display: block; margin-top: 8px; color: var(--orange); font-style: normal; font-size: 13px; font-weight: 900; }
.order-card-side-v55b { display: grid; justify-items: end; gap: 6px; }
.order-card-side-v55b b { color: var(--orange); font-weight: 900; }
.status-tag-v55b { display: inline-flex; align-items: center; min-height: 25px; border-radius: 7px; padding: 5px 9px; font-size: 12px; font-weight: 900; }
.status-tag-v55b.warn { background: #fff7ed; color: #9a3412; }
.status-tag-v55b.good { background: #e9f8ef; color: var(--good); }
.status-tag-v55b.bad { background: #fee2e2; color: var(--bad); }
.status-tag-v55b.blue { background: var(--soft-blue); color: var(--blue); }
.order-detail-grid-v55b { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 16px; align-items: start; }
.order-detail-main-v55b,
.order-detail-side-v55b { display: grid; gap: 12px; }
.order-detail-side-v55b { position: sticky; top: 96px; }
.detail-info-card-v55b { padding: 16px; }
.info-row-v55b { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid #eef2f7; padding: 8px 0; }
.info-row-v55b:last-child { border-bottom: 0; }
.info-row-v55b span { color: var(--muted); font-weight: 700; }
.info-row-v55b strong { color: var(--ink); text-align: right; font-weight: 900; overflow-wrap: anywhere; }
.info-row-v55b strong.highlight { color: var(--orange); }
.pin-card-v55b { display: grid; place-items: center; text-align: center; gap: 6px; background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; border-radius: 12px; padding: 18px; }
.pin-card-v55b.pickup { background: var(--soft-blue); color: var(--blue); border-color: #c8d7ef; }
.pin-card-v55b small { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.pin-card-v55b strong { font-size: 36px; letter-spacing: .08em; font-weight: 900; }
.pin-card-v55b p { margin: 0; color: inherit; font-weight: 800; }
.order-items-v55b { display: grid; gap: 10px; }
.order-item-v55b { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.order-item-v55b > div { width: 58px; height: 58px; border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.order-item-v55b img,
.order-item-v55b .placeholder-img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.order-item-v55b strong { display: block; font-weight: 900; }
.order-item-v55b small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.order-item-v55b b { color: var(--orange); font-weight: 900; }
.support-card-v55b p { margin: 0 0 12px; color: var(--muted); font-weight: 700; line-height: 1.45; }
.support-mini-list-v55b { display: grid; gap: 8px; margin-bottom: 10px; }
.support-mini-card-v55b { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--ink); text-decoration: none; }
.support-mini-card-v55b.attention { border-color: var(--orange); background: #fff7ed; }
.support-mini-card-v55b strong { display: block; font-size: 13px; font-weight: 900; }
.support-mini-card-v55b small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.support-case-card-v55b { display: grid; grid-template-columns: 42px 1fr auto auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 6px 16px rgba(17,24,39,.04); }
.support-case-card-v55b.attention { border-color: var(--orange); background: #fffaf4; }
.support-case-card-v55b > span { width: 42px; height: 42px; display: grid; place-items: center; background: var(--soft-blue); border-radius: 9px; font-size: 21px; }
.support-case-card-v55b strong { display: block; font-weight: 900; }
.support-case-card-v55b small,
.support-case-card-v55b em { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 700; }
.support-case-card-v55b b { background: var(--orange); color: #fff; border-radius: 99px; padding: 4px 8px; font-size: 11px; font-weight: 900; }
.support-thread-card-v55b { padding: 14px; }
.support-messages-v55b { min-height: 320px; display: grid; align-content: start; gap: 10px; margin-bottom: 12px; }
.support-bubble-v55b { max-width: min(78%, 640px); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #f8fafc; }
.support-bubble-v55b.customer { justify-self: end; background: var(--blue); color: #fff; border-color: var(--blue); }
.support-bubble-v55b.admin { justify-self: start; }
.support-bubble-v55b strong { display: block; font-size: 12px; font-weight: 900; }
.support-bubble-v55b p { margin: 5px 0; color: inherit; font-weight: 700; white-space: pre-wrap; }
.support-bubble-v55b small { display: block; opacity: .78; font-size: 11px; font-weight: 700; }
.support-reply-v55b { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.support-closed-v55b { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; color: var(--muted); font-weight: 800; }
.support-modal-v55b { display: none; position: fixed; inset: 0; z-index: 250; padding: 14px; }
.support-modal-v55b.open { display: grid; place-items: end center; }
.support-modal-backdrop-v55b { position: absolute; inset: 0; background: rgba(15,23,42,.42); }
.support-modal-card-v55b { position: relative; width: min(100%, 560px); display: grid; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 12px 12px; padding: 16px; box-shadow: 0 24px 80px rgba(15,23,42,.28); }
.support-modal-head-v55b { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-modal-head-v55b h2 { margin: 0; font-size: 22px; font-weight: 900; }
.support-modal-head-v55b button { width: 36px; height: 36px; border: 0; border-radius: 8px; background: #f1f5f9; color: var(--ink); font-size: 24px; font-weight: 900; }

/* v55B2 support icon polish: no emoji icons and admin replies always display as Support */
.profile-tile-icon-v55b img,
.support-case-icon-v55b img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.support-send-btn-v55b {
  gap: 8px;
}
.support-send-btn-v55b img {
  width: 18px;
  height: 18px;
  display: block;
  filter: brightness(0) invert(1);
}
.support-bubble-v55b.admin strong {
  color: var(--blue);
}

@media (max-width: 940px) {
  .order-detail-grid-v55b { grid-template-columns: 1fr; }
  .order-detail-side-v55b { position: static; }
}
@media (max-width: 720px) {
  .profile-page-v55b,
  .orders-page-v55b,
  .order-detail-page-v55b,
  .support-page-v55b,
  .support-thread-page-v55b { max-width: none; }
  .profile-head-v55b { align-items: flex-start; }
  .profile-tile-v55b { grid-template-columns: 42px minmax(0,1fr) auto; }
  .profile-tile-v55b i { display: none; }
  .profile-section-v55b { padding: 14px; }
  .order-card-v55b { grid-template-columns: 58px minmax(0,1fr); }
  .order-thumb-v55b { width: 58px; height: 58px; }
  .order-card-side-v55b { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .info-row-v55b { align-items: flex-start; }
  .info-row-v55b span { flex: 0 0 116px; }
  .order-item-v55b { grid-template-columns: 52px 1fr; }
  .order-item-v55b > div { width: 52px; height: 52px; }
  .order-item-v55b b { grid-column: 2; }
  .support-reply-v55b { grid-template-columns: 1fr; }
  .support-bubble-v55b { max-width: 88%; }
}


.order-thumb-v55b > img[src$="cart.svg"] {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: none;
}

/* v56A GulioLive web */
.live-page-v56a {
  margin-top: 0;
}
.live-top-v56a {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.live-top-v56a .secondary-btn { justify-self: end; }
.live-logo-v56a {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}
.live-logo-v56a span { color: var(--blue); }
.live-logo-v56a b { color: var(--orange); }
.live-layout-v56a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}
.live-main-v56a,
.live-side-v56a { min-width: 0; }
.live-video-v56a {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #050505;
  border: 1px solid #111827;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow);
}
.live-video-v56a iframe,
.live-video-v56a img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.live-video-fallback-v56a { background: #111827; }
.live-video-overlay-v56a {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  color: #fff;
  text-align: center;
  background: rgba(0,0,0,.46);
}
.live-video-overlay-v56a strong {
  font-size: 24px;
  font-weight: 900;
}
.live-video-overlay-v56a span {
  color: rgba(255,255,255,.84);
  font-weight: 800;
}
.live-info-bar-v56a {
  margin-top: 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.live-info-bar-v56a strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 900;
}
.live-status-pill-v56a {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #fff;
  background: #334155;
  font-size: 11px;
  font-weight: 900;
}
.live-status-pill-v56a.live { background: var(--orange); }
.live-status-pill-v56a.upcoming { background: var(--blue); }
.live-status-pill-v56a.ended { background: #111827; }
.live-viewers-v56a {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.live-actions-v56a {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.live-action-btn-v56a {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}
.live-action-btn-v56a.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}
.live-action-btn-v56a:disabled { opacity: .5; cursor: not-allowed; }
.live-pinned-v56a,
.live-note-v56a,
.live-coupon-v56a,
.live-products-v56a,
.live-comments-v56a {
  margin-top: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(17,24,39,.04);
}
.live-pinned-v56a { padding: 12px; }
.live-pinned-head-v56a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.live-pinned-head-v56a span,
.live-pinned-head-v56a b {
  display: inline-flex;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 900;
}
.live-pinned-head-v56a span { background: #fff3e8; color: var(--orange); }
.live-pinned-head-v56a b { background: var(--soft-blue); color: var(--blue); }
.live-pinned-head-v56a small {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}
.live-pinned-body-v56a {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.live-pinned-img-v56a {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
}
.live-pinned-img-v56a img,
.live-pinned-img-v56a .placeholder-img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.live-pinned-body-v56a a { color: inherit; text-decoration: none; }
.live-pinned-body-v56a h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.12;
  font-weight: 900;
}
.live-pinned-body-v56a p {
  margin: 5px 0 0;
  color: var(--muted);
  font-weight: 700;
}
.live-price-row-v56a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 9px;
}
.live-price-row-v56a strong {
  color: var(--orange);
  font-size: 22px;
  font-weight: 900;
}
.live-price-row-v56a s { color: var(--muted); font-size: 13px; }
.live-pinned-actions-v56a {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.live-pinned-actions-v56a .primary-btn,
.live-pinned-actions-v56a .secondary-btn { min-height: 40px; }
.live-pinned-actions-v56a button:disabled { opacity: .55; cursor: not-allowed; }
.live-note-v56a { padding: 14px; }
.live-note-v56a strong { color: var(--ink); }
.live-coupon-v56a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #fff7ed;
  border-color: #fed7aa;
}
.live-coupon-v56a small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.live-coupon-v56a strong {
  color: var(--orange);
  font-size: 20px;
  font-weight: 900;
}
.live-products-v56a { padding: 14px; }
.live-product-rail-v56a {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 164px;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: thin;
}
.live-mini-product-v56a {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}
.live-mini-img-v56a {
  position: relative;
  display: block;
  height: 128px;
  background: #eef2f7;
  overflow: hidden;
}
.live-mini-img-v56a img,
.live-mini-img-v56a .placeholder-img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.live-stock-v56a {
  position: absolute;
  left: 7px;
  top: 7px;
  border-radius: 5px;
  padding: 4px 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}
.live-stock-v56a.in { background: var(--blue); }
.live-stock-v56a.low { background: var(--orange); }
.live-stock-v56a.out { background: #111827; }
.live-mini-body-v56a { padding: 9px; display: grid; gap: 6px; }
.live-mini-body-v56a a {
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-mini-body-v56a strong { color: var(--orange); font-size: 13px; }
.live-mini-body-v56a button {
  min-height: 32px;
  border: 0;
  border-radius: 7px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}
.live-mini-body-v56a button:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.live-comments-v56a {
  position: sticky;
  top: 96px;
  margin-top: 0;
  padding: 13px;
}
.live-comments-head-v56a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.live-comments-head-v56a h2 { margin: 0; font-size: 20px; }
.live-comments-head-v56a p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-weight: 800; }
.live-comments-head-v56a span {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--soft-blue);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}
.live-comment-list-v56a {
  display: grid;
  gap: 8px;
  max-height: 468px;
  overflow: auto;
  padding-right: 2px;
}
.live-comment-v56a {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  padding: 9px;
}
.live-comment-v56a div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.live-comment-v56a strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-comment-v56a small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.live-comment-v56a p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}
.live-comment-empty-v56a {
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 9px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}
.live-comment-form-v56a {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 8px;
  margin-top: 10px;
}
.live-comment-form-v56a input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 700;
}
.live-comment-form-v56a button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.live-comment-form-v56a button img {
  width: 15px;
  height: 15px;
  filter: brightness(0) invert(1);
}
.live-comment-form-v56a button:disabled,
.live-comment-form-v56a input:disabled { opacity: .58; cursor: not-allowed; }
.live-empty-v56a {
  min-height: 52vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px 18px;
  box-shadow: var(--shadow);
}
.live-empty-v56a h1 { margin: 0; color: var(--ink); font-size: 32px; }
.live-empty-v56a p { margin: 0; max-width: 520px; color: var(--muted); line-height: 1.5; font-weight: 700; }

@media (max-width: 980px) {
  .live-layout-v56a { grid-template-columns: 1fr; }
  .live-comments-v56a { position: static; }
  .live-comment-list-v56a { max-height: 360px; }
}

@media (max-width: 720px) {
  .live-top-v56a {
    grid-template-columns: auto 1fr auto;
    margin: 0 -2px 10px;
  }
  .live-logo-v56a { font-size: 23px; }
  .live-top-v56a .secondary-btn,
  .live-top-v56a .detail-back-link { font-size: 12px; padding: 8px 9px; min-height: 36px; }
  .live-layout-v56a { gap: 10px; }
  .live-video-v56a { border-radius: 9px; margin-left: -9px; margin-right: -9px; border-left: 0; border-right: 0; }
  .live-info-bar-v56a { grid-template-columns: auto 1fr; }
  .live-viewers-v56a { grid-column: 2; }
  .live-actions-v56a { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .live-action-btn-v56a { min-height: 39px; font-size: 12px; }
  .live-pinned-body-v56a { grid-template-columns: 92px 1fr; gap: 10px; }
  .live-pinned-img-v56a { width: 92px; height: 92px; }
  .live-pinned-body-v56a h2 { font-size: 16px; }
  .live-pinned-body-v56a p { display: none; }
  .live-price-row-v56a strong { font-size: 17px; }
  .live-pinned-actions-v56a { gap: 6px; }
  .live-pinned-actions-v56a .primary-btn,
  .live-pinned-actions-v56a .secondary-btn { flex: 1; min-height: 38px; padding: 8px 9px; font-size: 12px; }
  .live-product-rail-v56a { grid-auto-columns: 142px; }
  .live-mini-img-v56a { height: 112px; }
  .live-comments-v56a { margin-bottom: 10px; }
  .live-comment-form-v56a { grid-template-columns: 1fr 76px; }
}

/* v56A2 GulioLive video + engagement polish */
.live-top-spacer-v56a {
  justify-self: end;
  min-width: 70px;
  min-height: 1px;
}
.live-sticky-stage-v56a {
  position: relative;
  z-index: 12;
}
.live-video-v56a {
  border: 0;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}
.live-video-cover-v56a {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: #050505;
  color: #fff;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  isolation: isolate;
}
.live-video-cover-v56a img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .24s ease;
}
.live-video-cover-v56a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0,0,0,.38);
}
.live-video-cover-v56a:hover img {
  transform: scale(1.045);
}
.live-video-cover-v56a strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.live-video-play-v56a {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 18px 42px rgba(0,0,0,.28);
  transition: transform .16s ease, background .16s ease;
}
.live-video-play-v56a b {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 19px solid #fff;
}
.live-video-cover-v56a:hover .live-video-play-v56a {
  background: var(--orange-dark);
  transform: scale(1.07);
}
.live-video-overlay-v56a a {
  margin-top: 8px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 8px 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}
.live-actions-v56a {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.live-action-btn-v56a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.live-action-btn-v56a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.live-action-btn-v56a:hover:not(:disabled),
.live-action-btn-v56a:focus-visible:not(:disabled) {
  border-color: var(--blue);
  background: var(--soft-blue);
  color: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,83,226,.12);
}
.live-action-btn-v56a.active:hover:not(:disabled) {
  background: var(--orange-dark);
  color: #fff;
  border-color: var(--orange-dark);
}
.live-pinned-img-v56a,
.live-mini-img-v56a,
.live-mini-product-v56a,
.live-pinned-actions-v56a a,
.live-pinned-actions-v56a button,
.live-coupon-v56a button,
.live-mini-body-v56a button,
.live-comment-form-v56a button,
.live-video-overlay-v56a a {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.live-pinned-img-v56a:hover,
.live-mini-product-v56a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,83,226,.12);
}
.live-pinned-actions-v56a a:hover,
.live-pinned-actions-v56a button:hover:not(:disabled),
.live-coupon-v56a button:hover,
.live-mini-body-v56a button:hover:not(:disabled),
.live-comment-form-v56a button:hover:not(:disabled),
.live-video-overlay-v56a a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255,122,0,.18);
}
.live-comments-v56a {
  border: 0;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.live-comment-v56a {
  border: 0;
  background: #f4f7fb;
  border-radius: 10px;
}
.live-comment-empty-v56a {
  border: 0;
  background: #f4f7fb;
}
.live-comment-form-v56a input {
  border-color: transparent;
  background: #f4f7fb;
}
.live-comment-form-v56a input:focus {
  outline: 2px solid rgba(0,83,226,.20);
}

@media (max-width: 720px) {
  .live-sticky-stage-v56a {
    position: sticky;
    top: 108px;
    z-index: 35;
    background: #f5f7fb;
    padding-bottom: 7px;
    margin-left: -9px;
    margin-right: -9px;
  }
  .live-video-v56a {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0 0 10px 10px;
  }
  .live-info-bar-v56a,
  .live-actions-v56a {
    margin-left: 9px;
    margin-right: 9px;
  }
  .live-actions-v56a { grid-template-columns: repeat(2, 1fr); }
  .live-video-play-v56a {
    width: 56px;
    height: 56px;
  }
}


/* v56A3 GulioLive smooth playback + mobile comments fix */
.live-video-v56a iframe {
  display: block;
  background: #050505;
}
.live-comments-v56a {
  display: flex;
  flex-direction: column;
  border: 0 !important;
  box-shadow: none !important;
}
.live-comment-list-v56a {
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.live-comment-v56a,
.live-comment-empty-v56a {
  border: 0 !important;
  box-shadow: none !important;
}
.live-comment-form-v56a {
  flex: 0 0 auto;
}
.live-comment-form-v56a input {
  border: 0 !important;
  box-shadow: inset 0 0 0 1px transparent;
}
.live-comment-form-v56a input:focus {
  outline: 0;
  box-shadow: inset 0 0 0 2px rgba(0,83,226,.24);
}
.live-action-btn-v56a:active,
.live-pinned-actions-v56a a:active,
.live-pinned-actions-v56a button:active:not(:disabled),
.live-coupon-v56a button:active,
.live-mini-body-v56a button:active:not(:disabled),
.live-comment-form-v56a button:active:not(:disabled),
.live-mini-product-v56a:active {
  transform: translateY(0) scale(.985);
}
.live-mini-product-v56a,
.live-pinned-v56a,
.live-coupon-v56a,
.live-comments-v56a {
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.live-pinned-v56a:hover,
.live-coupon-v56a:hover,
.live-comments-v56a:hover {
  box-shadow: 0 14px 30px rgba(0,83,226,.08) !important;
}

@media (max-width: 980px) {
  .live-comment-list-v56a {
    max-height: 320px;
  }
}

@media (max-width: 720px) {
  .live-page-v56a {
    padding-bottom: 86px;
  }
  .live-top-v56a {
    margin-bottom: 6px;
  }
  .live-sticky-stage-v56a {
    top: 106px;
    z-index: 65;
    box-shadow: 0 8px 20px rgba(15,23,42,.08);
  }
  .live-info-bar-v56a {
    margin-top: 7px;
    padding: 8px 10px;
  }
  .live-actions-v56a {
    margin-top: 7px;
  }
  .live-side-v56a {
    min-height: 0;
  }
  .live-comments-v56a {
    margin-top: 10px;
    padding: 11px;
    overflow: visible;
  }
  .live-comment-list-v56a {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto;
    padding-right: 0;
    padding-bottom: 8px;
  }
  .live-comment-v56a {
    padding: 8px 9px;
  }
  .live-comment-form-v56a {
    position: sticky;
    bottom: calc(58px + env(safe-area-inset-bottom));
    z-index: 70;
    grid-template-columns: 1fr 72px;
    margin: 8px -2px -2px;
    padding: 8px 0 0;
    background: #ffffff;
    box-shadow: 0 -8px 18px rgba(255,255,255,.94);
  }
  .live-comment-form-v56a input,
  .live-comment-form-v56a button {
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .live-sticky-stage-v56a {
    top: 101px;
  }
  .live-action-btn-v56a span {
    font-size: 11px;
  }
}


/* v56B3 compact brand footer + legal policy polish */
.site-footer,
.site-footer * {
  font-family: var(--font-main);
}
.site-footer {
  width: 100%;
  background: #0053e2;
  color: #ffffff;
  margin-top: 26px;
  overflow: hidden;
}
.footer-top-line {
  height: 4px;
  background: var(--orange);
}
.footer-inner {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 16px 0 12px;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(130px, .55fr));
  gap: 18px;
  align-items: start;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 5px;
}
.footer-brand img {
  width: 112px;
  height: auto;
  object-fit: contain;
}
.footer-brand-block p {
  max-width: 390px;
  margin: 0;
  color: rgba(255,255,255,.78);
  line-height: 1.38;
  font-size: 13px;
  font-weight: 400;
}
.footer-links {
  display: grid;
  gap: 6px;
  align-content: start;
}
.footer-links h2 {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
}
.footer-links a {
  width: fit-content;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 400;
  transition: color .16s ease, transform .16s ease;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
  transform: translateX(3px);
  outline: 0;
}
.footer-bottom {
  width: min(1480px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 0 11px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,.66);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}
.policy-page-v56b2 {
  max-width: 1040px;
  margin: 0 auto;
}
.policy-hero-v56b2,
.policy-card-v56b2 {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.policy-hero-v56b2 {
  padding: 24px;
}
.policy-hero-v56b2 h1 {
  margin: 0 0 8px;
  color: var(--blue-deep);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 700;
}
.policy-hero-v56b2 p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
}
.policy-card-v56b2 {
  margin-top: 14px;
  padding: 22px 24px;
}
.policy-card-v56b2 h2 {
  margin: 18px 0 7px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}
.policy-card-v56b2 h2:first-child { margin-top: 0; }
.policy-card-v56b2 p,
.policy-card-v56b2 li {
  color: #475569;
  line-height: 1.68;
  font-size: 14px;
  font-weight: 400;
}
.policy-card-v56b2 ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.policy-card-v56b2 strong {
  color: var(--blue);
  font-weight: 600;
}
.policy-card-v56b2 p:first-child {
  margin-top: 0;
}
.policy-actions-v56b2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.policy-actions-v56b2 a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 14px;
  text-decoration: none;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  transition: background .16s ease, transform .16s ease;
}
.policy-actions-v56b2 a.secondary {
  background: var(--blue);
}
.policy-actions-v56b2 a:hover {
  transform: translateY(-2px);
}
.policy-actions-v56b2 a:not(.secondary):hover { background: var(--orange-dark); }
.policy-actions-v56b2 a.secondary:hover { background: var(--blue-dark); }

@media (max-width: 940px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .footer-brand-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-footer {
    margin-top: 18px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
  .footer-inner {
    width: calc(100% - 24px);
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    padding: 14px 0 10px;
  }
  .footer-brand-block {
    grid-column: 1 / -1;
  }
  .footer-brand img {
    width: 112px;
  }
  .footer-brand-block p {
    font-size: 13px;
    line-height: 1.4;
  }
  .footer-links h2 { font-size: 13px; }
  .footer-links a { font-size: 12.5px; }
  .footer-bottom {
    width: calc(100% - 24px);
    flex-direction: column;
    gap: 4px;
    padding: 7px 0 10px;
    font-size: 11.5px;
  }
  .policy-hero-v56b2,
  .policy-card-v56b2 {
    padding: 18px;
  }
}
