:root {
  --white: #ffffff;
  --black: #000000;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --text: #0f1115;
  --muted: #6b717a;
  --muted-2: #9ca2ab;
  --line: rgba(15, 17, 21, 0.08);
  --line-2: rgba(15, 17, 21, 0.12);
  --line-md: rgba(15, 17, 21, 0.12);
  --shadow: 0 20px 60px rgba(12, 18, 28, 0.08);
  --shadow-lg: 0 35px 80px rgba(8, 15, 26, 0.14);
  --blue: #1d1d1f;
  --blue-h: #3a3a3c;
  --green: #000000;
  --r-xl: 20px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.sb-site {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.sb-site.is-locked {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.wrap,
.section-inner,
.trust-inner {
  width: min(calc(100% - 40px), var(--wrap));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(243, 243, 245, 0.72)),
    rgba(243, 243, 245, 0.72);
  border-bottom: 1px solid rgba(15, 17, 21, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  width: auto;
  height: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

.ghost-btn,
.primary-btn,
.bag-btn,
.mobile-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.ghost-btn,
.mobile-link-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
}

.ghost-btn:hover,
.mobile-link-btn:hover {
  background: var(--white);
}

.primary-btn {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #1d1d1f;
  background: #1d1d1f;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.primary-btn:hover {
  background: #3a3a3c;
  border-color: #3a3a3c;
  transform: translateY(-1px);
}

.bag-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
}

.bag-btn:hover {
  background: var(--white);
}

.bag-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.75;
}

.cart-badge,
.mobile-bag-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111111;
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
}

.mobile-bag-count-inline {
  position: static;
  margin-left: 12px;
}

.mobile-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  align-items: center;
  justify-content: center;
}

.mobile-toggle:hover {
  background: var(--white);
}

.mobile-toggle svg {
  width: 18px;
  height: 18px;
}

.mobile-panel-overlay {
  position: fixed;
  inset: 68px 0 0;
  z-index: 58;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.mobile-panel-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-panel {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 59;
  width: 100%;
  padding: 8px 16px 20px;
  border-bottom: 1px solid rgba(15, 17, 21, 0.05);
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.82), rgba(243, 243, 245, 0.9)),
    rgba(243, 243, 245, 0.9);
  box-shadow: 0 24px 60px rgba(15, 17, 21, 0.08);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transform-origin: top center;
  transition: transform 0.4s var(--ease), opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}

.mobile-link:hover,
.mobile-link.active {
  background: #f5f6f8;
}

.mob-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.mob-actions > * {
  flex: 1 1 0;
}

.cart-overlay {
  position: fixed;
  inset: 68px 0 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(66vh, 620px);
  border-bottom: 1px solid rgba(15, 17, 21, 0.05);
  border-radius: 0 0 30px 30px;
  background: #f3f3f5;
  box-shadow: 0 24px 60px rgba(15, 17, 21, 0.08);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  transform-origin: top center;
  transition: transform 0.4s var(--ease), opacity 0.25s ease, visibility 0.25s ease;
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px min(36px, 4vw) 16px;
  border-bottom: 1px solid rgba(15, 17, 21, 0.05);
  background: transparent;
}

.cart-header h2 {
  font-size: clamp(24px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.cart-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15, 17, 21, 0.06);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.cart-close:hover {
  background: rgba(15, 17, 21, 0.1);
  color: var(--text);
}

.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px min(40px, 4vw) 8px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

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

.cart-item-image {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg);
}

.cart-item-details {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name price"
    "meta price"
    "actions remove";
  column-gap: 14px;
  row-gap: 6px;
  align-items: start;
}

.cart-item-name {
  grid-area: name;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cart-item-size {
  grid-area: meta;
  color: var(--muted);
  font-size: 12.5px;
}

.cart-item-price {
  grid-area: price;
  align-self: start;
  white-space: nowrap;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.cart-item-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.quantity-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.quantity-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 15px;
  font-weight: 300;
}

.quantity-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.quantity-value {
  min-width: 24px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
}

.remove-btn {
  grid-area: remove;
  align-self: end;
  justify-self: end;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.remove-btn:hover {
  color: var(--text);
}

.cart-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(15, 17, 21, 0.05);
  background: transparent;
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cart-subtotal-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-subtotal-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.cart-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 15px;
  border-radius: 980px;
  background: #1d1d1f;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cart-checkout-btn:hover {
  background: #3a3a3c;
  transform: scale(1.005);
}

.page-content {
  width: 100%;
}

.page-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-section.alt {
  background: var(--bg);
}

.section-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-h2 {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
}

.section-sub {
  max-width: 48ch;
  margin-top: 12px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: -0.01em;
}

.section-sub-tight {
  margin-bottom: 28px;
}

.apple-grid {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(15, 17, 21, 0.06);
  border-radius: 28px;
  background: var(--line);
  box-shadow: 0 16px 32px rgba(12, 18, 28, 0.05);
}

.apple-grid-cell {
  padding: 30px 26px;
  background: var(--white);
  transition: background 0.2s var(--ease);
}

.apple-grid-cell:hover {
  background: #fafafa;
}

.sr {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.sr.vis {
  opacity: 1;
  transform: none;
}

.site-footer {
  position: relative;
  border-top: 1px solid rgba(15, 17, 21, 0.05);
  background: rgba(243, 243, 245, 0.72);
  color: var(--muted);
  padding: 52px 0 36px;
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(15, 17, 21, 0.07);
}

.footer-col h4,
.footer-col-heading {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

.footer-col-toggle {
  display: none;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.footer-bottom-logo {
  width: auto;
  height: 14px;
  flex-shrink: 0;
  filter: brightness(0);
  opacity: 0.45;
}

.footer-copyright,
.footer-region {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.footer-copyright,
.footer-region {
  color: var(--muted-2);
}

@media (max-width: 1100px) {
  .footer-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .nav,
  .header-actions {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .page-section {
    padding: 72px 0;
  }
}

@media (max-width: 760px) {
  .wrap,
  .section-inner,
  .trust-inner {
    width: min(calc(100% - 24px), var(--wrap));
  }

  .header-inner {
    min-height: 64px;
  }

  .mobile-panel,
  .mobile-panel-overlay,
  .cart-overlay,
  .cart-panel {
    top: 64px;
  }

  .mobile-panel-overlay,
  .cart-overlay {
    inset: 64px 0 0;
  }

  .page-section {
    padding: 64px 0;
  }

  .cart-panel {
    max-height: min(72vh, 680px);
    border-radius: 0 0 28px 28px;
  }

  .cart-header {
    padding: 18px 20px 14px;
  }

  .cart-header h2 {
    font-size: 22px;
  }

  .cart-items {
    padding: 14px 20px 8px;
  }

  .cart-footer {
    padding: 12px 20px 20px;
  }

  .cart-subtotal-value {
    font-size: 22px;
  }
}

@media (max-width: 600px) {
  .site-footer .wrap {
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
    border-bottom: none;
  }

  .footer-col {
    padding: 0 12px;
    border-top: 1px solid rgba(15, 17, 21, 0.06);
  }

  .footer-col:first-child {
    border-top: 0;
  }

  .footer-col:last-child {
    border-bottom: 1px solid rgba(15, 17, 21, 0.09);
  }

  .footer-col-heading {
    display: none;
  }

  .footer-col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 0;
    padding: 15px 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
  }

  .footer-col-toggle span {
    pointer-events: none;
  }

  .footer-chevron {
    transition: transform 0.2s var(--ease);
  }

  .footer-col ul {
    display: none;
    gap: 0;
    padding: 0 4px;
  }

  .footer-col.open ul {
    display: grid;
    padding: 0 4px 14px;
  }

  .footer-col ul li {
    padding: 9px 0;
    border-top: 1px solid rgba(15, 17, 21, 0.05);
  }

  .footer-col ul li:first-child {
    border-top: none;
  }

  .footer-col.open .footer-chevron {
    transform: rotate(180deg);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 22px;
    margin-top: 0;
    border-top: 1px solid rgba(15, 17, 21, 0.09);
  }

  .footer-bottom-left {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }
}
