/**
 * General store — premium bag (cart)
 * Scope: body.gn-cart-chrome
 */
body.gn-cart-chrome {
  --gn-ink: #1c2420;
  --gn-muted: #64748b;
  --gn-forest: #2f6b4f;
  --gn-line: rgba(28, 36, 32, 0.08);
  --gn-soft: #eef3f0;
  --gn-surface: #ffffff;
  --gn-bg: #fafafa;
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--gn-ink);
  background:
    radial-gradient(900px 380px at 0% -8%, rgba(47, 107, 79, 0.06), transparent 55%),
    radial-gradient(700px 320px at 100% 0%, rgba(28, 36, 32, 0.04), transparent 50%),
    var(--gn-bg);
  -webkit-font-smoothing: antialiased;
}

body.gn-cart-chrome .shop-strip {
  display: none !important;
}

body.gn-cart-chrome .cart-nav {
  background: rgba(250, 250, 250, 0.92);
  border-bottom-color: var(--gn-line);
  box-shadow: none;
}

body.gn-cart-chrome .cart-nav-back {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 600;
  color: var(--gn-ink);
}

body.gn-cart-chrome .cart-nav-title {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gn-ink);
}

body.gn-cart-chrome .cart-nav-verified {
  color: var(--gn-muted);
}

body.gn-cart-chrome .cart-nav-verified i {
  color: var(--gn-forest);
}

body.gn-cart-chrome .cart-page {
  max-width: 1100px;
  padding-top: 1rem;
}

/* Page intro */
body.gn-cart-chrome .gn-cart-head {
  margin: 0.15rem 0 1.15rem;
  max-width: 36rem;
}

body.gn-cart-chrome .gn-cart-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gn-muted);
}

body.gn-cart-chrome .gn-cart-title,
body.gn-cart-chrome .cart-title {
  margin: 0;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--gn-ink);
}

body.gn-cart-chrome .gn-cart-sub {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  color: var(--gn-muted);
  font-weight: 500;
  line-height: 1.45;
}

/* Empty */
body.gn-cart-chrome .cart-empty {
  background: var(--gn-surface);
  border: 1px solid var(--gn-line);
  border-radius: 20px;
  padding: 2.5rem 1.5rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

body.gn-cart-chrome .cart-empty .gn-cart-empty-icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--gn-soft);
  color: var(--gn-ink);
  font-size: 1.2rem;
}

body.gn-cart-chrome .cart-empty h2 {
  margin: 0 0 0.4rem;
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.gn-cart-chrome .cart-empty p {
  color: var(--gn-muted);
  margin-bottom: 1.15rem;
}

body.gn-cart-chrome .cart-empty a {
  background: var(--gn-ink);
  border-radius: 999px;
  letter-spacing: 0.06em;
}

body.gn-cart-chrome .cart-empty a:hover {
  background: #111;
}

/* Free shipping */
body.gn-cart-chrome .cart-free-ship {
  background: var(--gn-surface);
  border: 1px solid var(--gn-line);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

body.gn-cart-chrome .cart-free-ship-fill {
  background: linear-gradient(90deg, var(--gn-forest), #3d8a64);
}

/* Items */
body.gn-cart-chrome .cart-list {
  background: var(--gn-surface);
  border: 1px solid var(--gn-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

body.gn-cart-chrome .cart-item {
  padding: 1rem 1.05rem;
  gap: 0.9rem;
  border-bottom-color: var(--gn-line);
}

body.gn-cart-chrome .cart-item:last-child {
  border-bottom: 0;
}

body.gn-cart-chrome .cart-item-media {
  width: 88px;
  flex: 0 0 88px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gn-soft);
}

body.gn-cart-chrome .cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

body.gn-cart-chrome .cart-item-badge {
  display: none !important;
}

body.gn-cart-chrome .cart-item-name {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--gn-ink);
}

body.gn-cart-chrome .cart-item-meta {
  color: var(--gn-muted);
  font-size: 0.78rem;
}

body.gn-cart-chrome .cart-item-price,
body.gn-cart-chrome .cart-item-line {
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.gn-cart-chrome .cart-item-qty {
  background: #f8faf9;
  border-color: var(--gn-line);
}

body.gn-cart-chrome .cart-item-qty button {
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.gn-cart-chrome .cart-item-remove {
  color: var(--gn-muted);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Summary */
body.gn-cart-chrome .cart-aside-card {
  background: var(--gn-surface);
  border: 1px solid var(--gn-line);
  border-radius: 20px;
  padding: 1.1rem;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

body.gn-cart-chrome .cart-summary-total-btn {
  background: #f6f8f7;
  border-color: var(--gn-line);
  border-radius: 14px;
}

body.gn-cart-chrome .cart-summary-total-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gn-muted);
  font-weight: 700;
}

body.gn-cart-chrome .cart-summary-total-val {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

body.gn-cart-chrome .cart-summary-hint,
body.gn-cart-chrome .cart-summary-note {
  color: var(--gn-muted);
  font-size: 0.8rem;
}

body.gn-cart-chrome .cart-aside-cta,
body.gn-cart-chrome .sticky-checkout-cta {
  background: linear-gradient(180deg, #24352c 0%, #1c2420 100%) !important;
  border-radius: 999px !important;
  letter-spacing: 0.1em !important;
  box-shadow: 0 12px 28px rgba(28, 36, 32, 0.28) !important;
}

body.gn-cart-chrome .btn-shop {
  color: var(--gn-ink);
  font-weight: 700;
}

body.gn-cart-chrome .sticky-checkout {
  background: rgba(250, 250, 250, 0.94);
  border-top: 1px solid var(--gn-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Rails */
body.gn-cart-chrome .cart-rail-title {
  font-family: 'Syne', 'DM Sans', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.gn-cart-chrome .cart-rail-card {
  background: var(--gn-surface);
  border: 1px solid var(--gn-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

body.gn-cart-chrome .cart-rail-media {
  aspect-ratio: 3 / 4;
}

body.gn-cart-chrome .cart-price-secure i {
  color: var(--gn-forest);
}

@media (min-width: 900px) {
  body.gn-cart-chrome .cart-layout {
    gap: 1.25rem 1.85rem;
  }
  body.gn-cart-chrome .cart-layout-aside {
    position: sticky;
    top: 5.5rem;
  }
}

/* Text overflow / long-falling fixes */
body.gn-cart-chrome .cart-nav { display: none !important; }
body.gn-cart-chrome {
  padding-top: 0 !important; /* glass nav owns offset */
}
body.gn-cart-chrome .gn-cart-kicker {
  letter-spacing: 0.08em;
}
body.gn-cart-chrome .gn-cart-title,
body.gn-cart-chrome .cart-title {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.gn-cart-chrome .cart-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}
body.gn-cart-chrome .cart-item-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
body.gn-cart-chrome .cart-item-price-row {
  gap: 6px;
}
body.gn-cart-chrome .cart-item-price,
body.gn-cart-chrome .cart-item-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.gn-cart-chrome .cart-aside-cta,
body.gn-cart-chrome .sticky-checkout-cta {
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 16px !important;
  padding-right: 16px !important;
}
body.gn-cart-chrome .cart-summary-total-val {
  overflow-wrap: anywhere;
  word-break: break-word;
}
body.gn-cart-chrome .cart-price-row span {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 62%;
  text-align: right;
}
body.gn-cart-chrome .cart-price-row span:first-child {
  max-width: 38%;
  text-align: left;
}
body.gn-cart-chrome .cart-rail-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Product page chrome when using glass floating bar */
body.gn-pdp-chrome .shop-nav { display: none !important; }
body.gn-pdp-chrome .shop-strip { display: none !important; }
body.gn-pdp-chrome { padding-top: 0 !important; }
