:root {
  --accent: #6600FF;
  --accent-hover: #5700db;
  --text: #111;
  --muted: #666;
  --border: #ededed;
  --bg: #f5f5f5;
  --panel: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

button { font: inherit; }

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  background: rgba(245,245,245,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.brand {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  letter-spacing: -0.02em;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  align-items: center;
}

nav a:hover,
.cart-link:hover {
  color: var(--accent);
}

.cart-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  cursor: pointer;
}

.product {
  min-height: calc(100svh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(13.7781px, 2.679075vw, 36.7416px) clamp(20px, 4vw, 54px) 4px;
}

.product-gallery {
  position: relative;
  min-width: 0;
}

.gallery-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  appearance: none;
  border: 0;
  background: transparent;
  color: #77777754;
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1;
  font-weight: 200;
  cursor: pointer;
  padding: 8px 12px;
}

.gallery-arrow:hover {
  color: var(--accent);
}

.gallery-prev {
  left: calc(3.125% + 12px);
}

.gallery-next {
  right: calc(3.125% + 12px);
}

.info {
  align-self: center;
  max-width: 360px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}

h1 {
  margin: 0 0 2px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.price {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.05em;
}

.status {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  width: auto;
  min-width: 110px;
  padding: 0 14px;
  border: 1px solid #000;
  border-radius: 999px;
  background: var(--bg);
  color: #000;
  font-size: 12px;
  cursor: pointer;
}

.button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg);
}

.copy {
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.copy p {
  margin: 0 0 16px;
}













.footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 3px 24px 6px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(245, 245, 245, 0.72);
  backdrop-filter: blur(8px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(500px, 100vw);
  height: 100svh;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.94);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform .24s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(14px);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-header,
.subtotal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.cart-header {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.cart-close,
.clear-cart {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.cart-empty {
  padding: 28px 0;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  aspect-ratio: 1;
  object-fit: cover;
  background: #f7f7f7;
}

.cart-item p {
  margin: 0 0 6px;
}

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

.quantity button {
  width: 22px;
  height: 22px;
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cart-footer {
  margin-top: auto;
  padding-top: 0;
  border-top: 1px solid var(--border);
}

.subtotal {
  margin-bottom: 16px;
}

.checkout {
  appearance: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  margin-bottom: 14px;
}

.checkout:hover {
  background: var(--accent-hover);
}

.clear-cart {
  width: 100%;
  text-align: center;
}

@media (max-width: 980px) {
  .info {
    min-height: 0;
    display: block;
  }

  .product {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
  }

  .info {
    order: -1;
    max-width: none;
  }

  .gallery-arrow {
    font-size: 44px;
    padding: 8px;
  }

  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }

  .gallery-stage {
    aspect-ratio: 16 / 11;
  }

  .button {
    width: auto;
    min-height: 40px;
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
    letter-spacing: -0.035em;
  }

  .price {
    font-size: 22px;
  }

  .status,
  .copy {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 520px) {
  .header {
    padding: 0 16px;
  }

  nav {
    gap: 14px;
  }

  .product {
    padding-left: 16px;
    padding-right: 16px;
  }

  .footer {
    padding: 20px 16px;
  }

  .cart-drawer {
    padding: 18px 16px;
  }
}


[data-cart-count] {
  color: var(--accent);
}







.brand.is-black {
  color: #000;
}

[data-cart-count] {
  color: var(--accent);
}

.dimensions {
  margin-top: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid #ddd;
  color: var(--muted);
  font-size: 13px;
  min-height: 122px;
}

.dimensions-toggle {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.dimensions-toggle::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.dimensions.is-open .dimensions-toggle::after {
  content: "−";
}

.dimensions-content {
  visibility: hidden;
}

.dimensions.is-open .dimensions-content {
  visibility: visible;
}

.dimensions-content p {
  margin: 12px 0 0;
}


@media (max-width: 980px) {
  .gallery-prev {
    left: 8px;
  }

  .gallery-next {
    right: 8px;
  }
}




/* Desktop keeps Dimensions inside the right-hand info column. */
.dimensions-mobile {
  display: none;
}

.dimensions-desktop {
  display: block;
}

/* Mobile places Dimensions after the gallery. */
@media (max-width: 980px) {
  .dimensions-desktop {
    display: none;
  }

  .dimensions-mobile {
    display: block;
    order: 0;
    grid-column: 1;
    max-width: none;
    margin-top: 16px;
  }

  .info {
    order: -2;
  }

  .product-gallery {
    order: -1;
  }
}








html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}


.footer a {
  color: var(--muted);
  text-decoration: none;
}

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






.cart-returns {
  margin: 0;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.cart-returns-toggle {
  appearance: none;
  width: 100%;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.cart-returns-toggle::after {
  content: "+";
  float: right;
  color: var(--muted);
}

.cart-returns.is-open .cart-returns-toggle::after {
  content: "−";
}

.cart-returns-content {
  display: none;
  padding: 0 0 16px;
}

.cart-returns.is-open .cart-returns-content {
  display: block;
}

.cart-returns-content p {
  margin: 0 0 12px;
}

.cart-returns-content p:last-child {
  margin-bottom: 0;
}


.checkout[disabled] {
  cursor: wait;
  opacity: 0.6;
}

.cart-overlay[hidden] { display: none; }


.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: transparent;
  backdrop-filter: none;
}

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

.checkout-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 13px;
}

.checkout-panel-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.checkout-message {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.checkout-summary div:last-child {
  color: var(--text);
}

.checkout-submit[disabled],
.checkout[disabled] {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 640px) {
  }


#card-element {
  min-height: 38px;
  padding: 10px 10px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}


.checkout-panel {
  width: min(100%, 500px);
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  background: #fff;
  border-left: 1px solid var(--border);
  padding: 14px 20px calc(18px + env(safe-area-inset-bottom));
  backdrop-filter: none;
  box-sizing: border-box;
}

.checkout-form {
  height: calc(100dvh - 50px - env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.checkout-block {
  display: grid;
  gap: 5px;
  min-height: 0;
}

.checkout-block h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.checkout-payment-block {
  gap: 10px;
}



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

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.checkout-divider::before,
.checkout-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.checkout-summary {
  margin-top: auto;
  display: grid;
  gap: 5px;
  padding: 8px 0 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.checkout-summary div:last-child {
  color: var(--text);
  padding-top: 4px;
}

.checkout-submit {
  min-height: 38px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  flex: 0 0 auto;
}

.checkout-submit[disabled],
.checkout[disabled] {
  cursor: wait;
  opacity: 0.6;
}

#card-element {
  min-height: 46px;
  padding: 14px 12px;
  border: 1px solid #ddd;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  .checkout-panel {
    width: 100%;
    border-left: 0;
  }
}


#shipping-address-element,
#card-element {
  --stripe-field-spacing: 8px;
}

.checkout-panel .Input,
.checkout-panel input,
.checkout-panel select {
  min-height: 38px;
}













.cart-item > div {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;
  min-width: 0;
}

.cart-item > div > p {
  margin: 0;
}

.cart-item > div > p:first-child {
  grid-column: 1;
  grid-row: 1;
  color: var(--text);
}

.cart-item > div > p:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  color: var(--muted);
}

.cart-item .quantity {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}


.checkout-shipping-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shipping-info {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  line-height: 1;
  cursor: help;
  padding: 0;
}

.shipping-info-popup {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 80;
  width: 230px;
  transform: translateX(-50%);
  padding: 10px 11px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.shipping-info-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -4px) rotate(45deg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.shipping-info:hover .shipping-info-popup,
.shipping-info:focus-visible .shipping-info-popup,
.shipping-info:focus .shipping-info-popup {
  opacity: 1;
  pointer-events: auto;
}
