/* store2 main stylesheet — values pulled from live Shopify computed styles. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('./tokens.css');

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--color-text-soft);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--tr-fast); }
a:hover { color: var(--color-link); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin: 0 0 var(--sp-md);
  line-height: var(--lh-tight);
  font-weight: var(--fw-heading);
  color: var(--color-text);
  letter-spacing: var(--ls-heading);
}
h1 { font-size: var(--fs-h1-mobile); }
h2 { font-size: var(--fs-h2-mobile); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-semibold); }
h4 { font-size: var(--fs-h4); font-weight: var(--fw-semibold); }
h5 { font-size: var(--fs-h5); font-weight: var(--fw-semibold); }
h6 { font-size: var(--fs-h6); font-weight: var(--fw-semibold); }
@media (min-width: 768px) {
  h1 { font-size: var(--fs-h1); }
  h2 { font-size: var(--fs-h2); }
}
p { margin: 0 0 var(--sp-md); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--fw-regular);
  line-height: 1;
  letter-spacing: 1px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--tr-base), color var(--tr-base), border-color var(--tr-base);
  min-height: 48px;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover, .btn-primary:focus { background: var(--color-primary-hover); color: var(--color-text-inverse); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] {
  background: var(--color-surface-alt); color: var(--color-text-muted); cursor: not-allowed;
}
.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(17,17,17,0.5);
  padding: 13px 30px;
}
.btn-secondary:hover { background: rgba(17,17,17,0.04); color: var(--color-text); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; min-height: 36px; font-size: 14px; letter-spacing: 0.5px; }

/* ─── Forms ───────────────────────────────────────────────── */
.field { display: block; margin-bottom: var(--sp-md); }
.field label { display: block; margin-bottom: var(--sp-xs); font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--color-text); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-background);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-btn);
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-brand-green-light);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

/* ─── Header ──────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--color-text-soft);
  background: var(--color-background);
  position: sticky; top: 0; z-index: 100;
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-lg);
  padding: 20px 0;
  min-height: 130px;
}
@media (min-width: 990px) {
  .site-header__inner { padding: 24px 30px; }
}
.site-header__logo {
  justify-self: start;
  display: flex;
  align-items: center;
}
.site-header__logo a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}
.site-header__logo img {
  height: 80px;
  width: auto;
  max-width: 220px;
}
@media (min-width: 990px) {
  .site-header__logo img { height: 110px; max-width: 260px; }
}
.site-nav { display: none; justify-self: center; }
.site-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 30px; justify-content: center; }
.site-nav a {
  color: var(--color-text);
  font-weight: var(--fw-regular);
  font-size: 15px;
  letter-spacing: 0.3px;
  padding: 8px 0;
}
.site-nav a:hover { color: var(--color-primary); }
.site-header__icons { display: flex; gap: 20px; align-items: center; justify-self: end; }
.site-header__icons a, .site-header__icons button {
  background: none; border: none; padding: 4px; cursor: pointer; color: var(--color-text);
  display: inline-flex; align-items: center; gap: 4px;
}
.site-header__icons a:hover, .site-header__icons button:hover { color: var(--color-primary); }
.cart-count {
  background: var(--color-primary); color: white; font-size: 11px;
  border-radius: var(--radius-pill); padding: 0 6px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.menu-toggle { display: inline-flex; align-items: center; padding: 4px; }
@media (min-width: 990px) {
  .site-nav { display: block; }
  .menu-toggle { display: none; }
}

/* Mobile slide-out menu */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity var(--tr-base);
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 84%; max-width: 360px; background: var(--color-background);
  transform: translateX(-100%); transition: transform var(--tr-base);
  padding: var(--sp-lg);
}
.mobile-menu.open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.mobile-menu li a { color: var(--color-text); font-size: 18px; font-weight: var(--fw-medium); }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: var(--color-background);
}
@media (min-width: 768px) {
  .hero { padding: 100px 0 80px; }
}
.hero .eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-md);
  text-align: center;
}
.hero h1 {
  margin-bottom: var(--sp-md);
  text-align: center;
  font-weight: var(--fw-heading);
  letter-spacing: var(--ls-heading);
}
.hero p.lede {
  color: var(--color-text-soft);
  font-size: 17px;
  max-width: 700px;
  margin: 0 auto var(--sp-xl);
  line-height: 1.5;
  text-align: center;
}
.hero__divider {
  width: 40%;
  max-width: 320px;
  height: 1px;
  background: var(--color-border-strong);
  margin: 12px auto var(--sp-xl);
  border: none;
}
.hero .feature-row {
  display: flex;
  gap: 56px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--color-text-soft);
  margin-top: 0;
}
.hero .feature-row .check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero .feature-row .check::before {
  content: "";
  width: 18px; height: 18px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* ─── Section heading ─────────────────────────────────────── */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section h2 { text-align: center; margin-bottom: var(--sp-xl); font-weight: var(--fw-heading); }
.section .eyebrow { text-align: center; }

/* ─── Product grid ────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-lg);
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}
.product-card { display: block; text-decoration: none; color: var(--color-text); }
.product-card__image {
  aspect-ratio: 1 / 1;
  background: var(--color-surface-alt);
  overflow: hidden; margin-bottom: var(--sp-md);
  border-radius: var(--radius-btn);
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr-slow); }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__title { font-size: 15px; font-weight: var(--fw-medium); margin: 0 0 var(--sp-xs); line-height: 1.35; color: var(--color-text); }
.product-card__vendor { font-size: 12px; color: var(--color-text-muted); margin-bottom: 4px; }
.product-card__price { font-size: 15px; color: var(--color-text); font-weight: var(--fw-semibold); }

/* Featured collections grid */
.collections-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
@media (min-width: 768px) { .collections-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); } }
.collection-card {
  display: block; position: relative; overflow: hidden;
  text-decoration: none; color: var(--color-text);
}
.collection-card__image {
  aspect-ratio: 4 / 3; background: var(--color-surface-alt); overflow: hidden;
  border-radius: var(--radius-btn);
}
.collection-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tr-slow); }
.collection-card:hover .collection-card__image img { transform: scale(1.04); }
.collection-card__body { padding: var(--sp-md) 0; }
.collection-card__eyebrow { font-size: var(--fs-xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-primary); margin-bottom: 4px; font-weight: var(--fw-semibold); }
.collection-card__title { font-size: 18px; font-weight: var(--fw-semibold); margin: 0 0 var(--sp-xs); color: var(--color-text); }
.collection-card__desc { color: var(--color-text-soft); font-size: 14px; }

/* ─── Feature row band ────────────────────────────────────── */
.feature-band {
  background: var(--color-surface-alt);
  padding: var(--sp-xl) 0;
}
.feature-band__grid {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-lg);
}
@media (min-width: 768px) { .feature-band__grid { grid-template-columns: repeat(4, 1fr); } }
.feature-item__title {
  font-size: 11px; letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--color-text); font-weight: var(--fw-semibold); margin-bottom: 6px;
  display: inline-flex; align-items: center; gap: 8px;
}
.feature-item__title::before {
  content: "";
  width: 14px; height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
  flex-shrink: 0;
}
.feature-item__body { font-size: 14px; color: var(--color-text-soft); }

/* ─── Product detail ──────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr; gap: var(--sp-xl); padding: var(--sp-xl) 0; }
@media (min-width: 768px) { .product-detail { grid-template-columns: 1.1fr 1fr; gap: 56px; } }
.product-gallery__main { background: var(--color-surface-alt); aspect-ratio: 1 / 1; overflow: hidden; margin-bottom: var(--sp-md); cursor: zoom-in; border-radius: var(--radius-btn); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__thumbs { display: flex; gap: var(--sp-sm); flex-wrap: wrap; }
.product-gallery__thumb { width: 72px; height: 72px; background: var(--color-surface-alt); border: 1px solid transparent; cursor: pointer; border-radius: var(--radius-btn); padding: 0; overflow: hidden; }
.product-gallery__thumb.active { border-color: var(--color-primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info .vendor { color: var(--color-text-muted); font-size: 13px; margin-bottom: var(--sp-xs); }
.product-info h1 { font-size: 30px; margin-bottom: var(--sp-md); font-weight: var(--fw-regular); letter-spacing: 0.5px; text-align: left; color: var(--color-text); }
@media (min-width: 768px) { .product-info h1 { font-size: 36px; } }
.product-info .price { font-size: 22px; font-weight: var(--fw-semibold); color: var(--color-text); margin-bottom: var(--sp-lg); }
.variant-selector { margin-bottom: var(--sp-md); }
.variant-selector label { font-size: 14px; font-weight: var(--fw-medium); display: block; margin-bottom: 6px; color: var(--color-text); }
.variant-selector select { width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-btn); }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--color-border-strong); border-radius: var(--radius-btn); margin-right: var(--sp-md); }
.qty-control button { background: none; border: none; padding: 8px 14px; font-size: 18px; cursor: pointer; color: var(--color-text); }
.qty-control input { width: 48px; border: none; text-align: center; font-size: 16px; padding: 8px 0; -moz-appearance: textfield; background: transparent; }
.qty-control input::-webkit-outer-spin-button, .qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-actions { display: flex; align-items: center; gap: var(--sp-md); flex-wrap: wrap; margin-bottom: var(--sp-lg); }
.product-description { padding-top: var(--sp-lg); border-top: 1px solid var(--color-border); margin-top: var(--sp-lg); }
.product-description h3 { font-size: 13px; letter-spacing: var(--ls-caps); text-transform: uppercase; font-weight: var(--fw-semibold); }

/* ─── Cart ────────────────────────────────────────────────── */
.cart { padding: var(--sp-xl) 0 var(--sp-3xl); }
.cart h1 { text-align: center; margin-bottom: var(--sp-xl); font-weight: var(--fw-regular); }
.cart-empty { text-align: center; padding: 96px 0; }
.cart-empty h2 { font-size: 32px; margin-bottom: var(--sp-lg); font-weight: var(--fw-regular); }
.cart-line {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--sp-md);
  align-items: center;
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .cart-line { grid-template-columns: 96px 2fr 140px 100px 24px; gap: var(--sp-lg); }
}
.cart-line__image { background: var(--color-surface-alt); aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-btn); }
.cart-line__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__title { font-weight: var(--fw-medium); margin-bottom: 4px; color: var(--color-text); }
.cart-line__variant { color: var(--color-text-muted); font-size: 13px; }
.cart-line__remove { background: none; border: none; cursor: pointer; color: var(--color-text-muted); padding: 4px; font-size: 18px; }
.cart-line__remove:hover { color: var(--color-error); }
.cart-summary { padding: var(--sp-lg) 0; border-top: 1px solid var(--color-text); }
.cart-summary__row { display: flex; justify-content: space-between; margin-bottom: var(--sp-sm); }
.cart-summary__row.total { font-size: 18px; font-weight: var(--fw-semibold); margin-top: var(--sp-md); }

/* ─── Checkout ────────────────────────────────────────────── */
.checkout { padding: var(--sp-xl) 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-xl); }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; gap: 56px; } }
.checkout fieldset { border: none; padding: 0; margin: 0 0 var(--sp-xl); }
.checkout legend { font-size: 18px; font-weight: var(--fw-semibold); margin-bottom: var(--sp-md); color: var(--color-text); }
.checkout .order-summary { background: var(--color-surface-alt); padding: var(--sp-lg); border-radius: var(--radius-btn); }
.checkout .order-summary h3 { margin-top: 0; }
.checkout .summary-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.checkout .summary-line.total { font-weight: var(--fw-semibold); border-top: 1px solid var(--color-border); padding-top: 12px; margin-top: 8px; font-size: 16px; color: var(--color-text); }

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 36px 0 36px;
  margin-top: var(--sp-3xl);
  color: var(--color-text-soft);
}
.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  font-size: 13px;
  gap: var(--sp-md);
}
.footer-meta a { color: var(--color-text-soft); }
.footer-meta a:hover { color: var(--color-primary); }
.footer-links {
  display: flex; gap: 16px;
}
.payment-icons { display: flex; gap: 8px; align-items: center; }
.payment-icons span {
  border: 1px solid var(--color-border-strong); padding: 4px 8px; font-size: 10px; font-weight: var(--fw-semibold);
  letter-spacing: 0.04em; color: var(--color-text-muted); background: var(--color-background); border-radius: var(--radius-btn);
}

/* ─── Collection page ─────────────────────────────────────── */
.collection-header { padding: var(--sp-xl) 0 var(--sp-lg); text-align: center; }
.collection-header .breadcrumb { font-size: 12px; color: var(--color-text-muted); margin-bottom: var(--sp-md); letter-spacing: var(--ls-caps); text-transform: uppercase; }
.collection-header h1 { font-weight: var(--fw-regular); }
.collection-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-md) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--sp-xl);
}
.collection-toolbar .count { color: var(--color-text-muted); font-size: 14px; }
.collection-toolbar select { padding: 8px 12px; border: 1px solid var(--color-border-strong); background: var(--color-background); border-radius: var(--radius-btn); }

/* ─── Rental page ─────────────────────────────────────────── */
.rental-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-lg); }
@media (min-width: 768px) { .rental-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl); } }
@media (min-width: 1100px) { .rental-grid { grid-template-columns: repeat(3, 1fr); } }
.rental-card { border: 1px solid var(--color-border); padding: var(--sp-lg); display: flex; flex-direction: column; border-radius: var(--radius-btn); }
.rental-card h3 { font-size: 18px; margin-bottom: var(--sp-sm); }
.rental-card .price { font-size: 22px; font-weight: var(--fw-semibold); color: var(--color-text); margin-bottom: var(--sp-xs); }
.rental-card .deposit { color: var(--color-text-muted); font-size: 13px; margin-bottom: var(--sp-md); }
.rental-card .desc { color: var(--color-text-soft); font-size: 14px; margin-bottom: var(--sp-lg); flex-grow: 1; }
.rental-card .btn { margin-top: auto; }

/* ─── Account stub page ───────────────────────────────────── */
.account-stub {
  max-width: 480px; margin: 0 auto; padding: 96px 20px;
  text-align: center;
}
.account-stub h1 { font-weight: var(--fw-regular); margin-bottom: var(--sp-lg); }
.account-stub p { color: var(--color-text-soft); }

/* ─── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.eyebrow { font-size: var(--fs-xs); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--color-primary); font-weight: var(--fw-semibold); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.placeholder-image {
  display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-alt); color: var(--color-text-muted);
  font-size: 12px; text-align: center; padding: var(--sp-md);
  width: 100%; height: 100%;
}
