/* Gucci-inspired Shopping Bag + Checkout — visual restoration */
:root {
  --gg-ink: #1b1b1b;
  --gg-muted: #666;
  --gg-line: #e5e5e5;
  --gg-line2: #d8d8d8;
  --gg-bg: #fff;
  --gg-soft: #f7f7f7;
  --gg-error: #b42318;
  --gg-max: 1200px;
  --gg-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body.gg-body {
  margin: 0;
  color: var(--gg-ink);
  background: var(--gg-bg);
  font-family: var(--gg-font);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 400;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

/* —— Checkout / Cart shared header —— */
.gg-checkout-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 40px;
  border-bottom: 1px solid var(--gg-line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.gg-logo {
  font-size: 22px;
  letter-spacing: .42em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none !important;
  justify-self: start;
}
.gg-header-center {
  justify-self: center;
  font-size: 12px;
  letter-spacing: .04em;
}
.gg-header-center a { text-decoration: underline; text-underline-offset: 3px; }
.gg-header-right {
  justify-self: end;
  font-size: 12px;
  color: var(--gg-muted);
}
.gg-bag-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1px solid var(--gg-line);
}
.gg-bag-header .gg-actions { justify-self: end; font-size: 12px; }
.gg-bag-header .gg-actions a { margin-left: 18px; }

/* —— Shopping Bag —— */
.gg-bag-page {
  max-width: var(--gg-max);
  margin: 0 auto;
  padding: 48px 40px 100px;
}
.gg-bag-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: .02em;
}
.gg-bag-count {
  margin: 0 0 36px;
  color: var(--gg-muted);
  font-size: 13px;
}
.gg-bag-layout {
  display: grid;
  grid-template-columns: 1.4fr .75fr;
  gap: 56px;
  align-items: start;
}
.gg-bag-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--gg-line);
}
.gg-bag-item:last-child { border-bottom: 1px solid var(--gg-line); }
.gg-bag-item figure {
  margin: 0;
  width: 120px;
  height: 150px;
  background: var(--gg-soft);
  overflow: hidden;
}
.gg-bag-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gg-bag-item-title {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
}
.gg-bag-meta {
  color: var(--gg-muted);
  font-size: 12px;
  margin: 4px 0;
}
.gg-bag-item-price {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.gg-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.gg-qty-row select {
  min-width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--gg-line2);
  background: #fff;
  appearance: auto;
}
.gg-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gg-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: 12px;
}
.gg-summary {
  border: 1px solid var(--gg-line);
  padding: 28px 24px;
  position: sticky;
  top: 88px;
  background: #fff;
}
.gg-summary h2 {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
}
.gg-sum-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0;
  font-size: 13px;
}
.gg-sum-row.total {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--gg-line);
  font-size: 15px;
  font-weight: 500;
}
.gg-cta {
  display: block;
  width: 100%;
  margin-top: 22px;
  padding: 16px 18px;
  background: #1b1b1b;
  color: #fff !important;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none !important;
  font-weight: 500;
}
.gg-cta:hover { background: #000; text-decoration: none !important; }
.gg-cta:disabled { opacity: .45; cursor: not-allowed; }
.gg-cta-outline {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  background: #fff;
  color: var(--gg-ink);
  text-align: center;
  border: 1px solid var(--gg-ink);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.gg-empty {
  padding: 80px 20px;
  text-align: center;
}
.gg-empty h1 {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 12px;
}
.gg-empty p { color: var(--gg-muted); margin: 0 0 28px; }

/* —— Checkout —— */
.gg-checkout-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 40px 100px;
}
.gg-guest-line {
  margin: 0 0 28px;
  font-size: 13px;
  color: var(--gg-muted);
}
.gg-guest-line strong { color: var(--gg-ink); font-weight: 500; }
.gg-checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: start;
}
.gg-section {
  border-top: 1px solid var(--gg-line);
  padding: 28px 0 8px;
}
.gg-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .01em;
}
.gg-section-title span.num {
  font-size: 22px;
  font-weight: 400;
}
.gg-fields-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.gg-field {
  margin-bottom: 18px;
}
.gg-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--gg-ink);
}
.gg-field input,
.gg-field select {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid var(--gg-line2);
  background: #fff;
  outline: none;
  border-radius: 0;
}
.gg-field input:focus,
.gg-field select:focus {
  border-color: #1b1b1b;
}
.gg-pay-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--gg-line);
  margin-bottom: 22px;
}
.gg-pay-tabs .tab {
  padding: 12px 18px 14px;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  color: var(--gg-muted);
}
.gg-pay-tabs .tab.active {
  color: var(--gg-ink);
  border-bottom-color: #1b1b1b;
}
.gg-card-note {
  font-size: 12px;
  color: var(--gg-muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.gg-error {
  background: #fef3f2;
  border: 1px solid #fecdca;
  color: var(--gg-error);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}
.gg-order-card {
  border: 1px solid var(--gg-line);
  padding: 0;
  position: sticky;
  top: 88px;
  background: #fff;
}
.gg-order-card .head {
  padding: 20px 22px 12px;
  border-bottom: 1px solid var(--gg-line);
}
.gg-order-card .head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}
.gg-order-card .head .count {
  margin: 6px 0 0;
  color: var(--gg-muted);
  font-size: 12px;
}
.gg-order-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--gg-line);
}
.gg-order-item figure {
  margin: 0;
  width: 64px;
  height: 64px;
  background: var(--gg-soft);
  overflow: hidden;
}
.gg-order-item figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gg-order-item .t { font-size: 13px; font-weight: 500; margin: 0 0 4px; }
.gg-order-item .m { font-size: 12px; color: var(--gg-muted); margin: 2px 0; }
.gg-order-totals { padding: 8px 22px 20px; }
.gg-gift-skip {
  font-size: 13px;
  color: var(--gg-muted);
  padding: 4px 0 12px;
}

@media (max-width: 920px) {
  .gg-checkout-header,
  .gg-bag-header { padding: 16px 18px; grid-template-columns: 1fr auto; }
  .gg-header-right { display: none; }
  .gg-bag-page,
  .gg-checkout-page { padding: 28px 18px 80px; }
  .gg-bag-layout,
  .gg-checkout-grid { grid-template-columns: 1fr; gap: 36px; }
  .gg-summary,
  .gg-order-card { position: static; }
  .gg-bag-item { grid-template-columns: 88px 1fr; }
  .gg-bag-item-price { grid-column: 2; }
  .gg-fields-2 { grid-template-columns: 1fr; }
}
