/* ---------- Custom properties ---------- */
:root {
  --color-black: #0a0a0a;
  --color-white: #ffffff;
  --color-red: #e10600;
  --color-red-dark: #b20500;
  --color-gray-light: #f2f2f2;
  --color-gray-mid: #cfcfcf;
  --color-gray-text: #555555;

  --font-display: 'Poppins', sans-serif;

  --radius-sm: 4px;
  --radius-md: 10px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --container-max: 1200px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  color: var(--color-black);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
  background: var(--color-white);
  padding: var(--space-2);
  z-index: 999;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}
.btn-primary:hover { background: var(--color-red-dark); border-color: var(--color-red-dark); }

.btn-outline {
  background: transparent;
  color: var(--color-black);
  border-color: var(--color-black);
}
.btn-outline:hover { background: var(--color-black); color: var(--color-white); }

.btn-full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray-mid);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.logo-placeholder {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.brand-name {
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: var(--space-5);
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width 0.2s ease;
}
.nav-link:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
}

.cart-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-black);
  padding: var(--space-2);
  transition: color 0.2s ease;
}
.cart-icon-btn:hover { color: var(--color-red); }

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-red);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-logo-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 1100px);
  height: min(90vw, 1100px);
  z-index: 0;
  pointer-events: none;
}
.hero-logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.35;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.hero-headline {
  font-size: clamp(1.5rem, 4.2vw, 3.4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .hero-headline { white-space: nowrap; }
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-gray-mid);
  max-width: 520px;
}

/* ---------- Placeholder images ---------- */
.img-placeholder {
  position: relative;
  background: var(--color-gray-light);
  border: 1px dashed var(--color-gray-mid);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-placeholder::before {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-gray-text);
  z-index: 0;
}
.img-placeholder img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.img-placeholder img.img-missing { display: none; }

.img-placeholder:has(img.img-loaded) {
  border-color: transparent;
  background: transparent;
}
.img-placeholder:has(img.img-loaded)::before { display: none; }

.logo-placeholder:has(img.img-loaded) {
  background: var(--color-white);
  border-color: transparent;
}

.logo-placeholder { aspect-ratio: 1 / 1; }
.logo-placeholder::before { font-size: 0.55rem; padding: var(--space-1); }

.product-image-placeholder { aspect-ratio: 3 / 4; }

.img-placeholder.on-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}
.img-placeholder.on-dark::before { color: rgba(255, 255, 255, 0.6); }

/* ---------- Product section ---------- */
.product-section {
  padding: var(--space-8) 0;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

.product-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.product-name {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: var(--space-5);
}

.option-group {
  margin-bottom: var(--space-5);
}

.option-label {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
  color: var(--color-gray-text);
}

.swatch-row {
  display: flex;
  gap: var(--space-3);
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--color-gray-mid);
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active { box-shadow: 0 0 0 3px var(--color-red); }
.swatch-white { background: var(--color-white); }
.swatch-black { background: var(--color-black); border-color: var(--color-black); }

.size-row {
  display: flex;
  gap: var(--space-2);
}

.size-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 var(--space-2);
  border: 2px solid var(--color-gray-mid);
  background: var(--color-white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.size-btn:hover { border-color: var(--color-black); }
.size-btn.active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius-sm);
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.qty-btn:hover { background: var(--color-gray-light); }

.qty-value {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
}

.product-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.product-actions .btn { flex: 1 1 160px; }

/* ---------- Contact section ---------- */
.contact-section {
  background: var(--color-gray-light);
  padding: var(--space-8) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-item {
  margin-bottom: var(--space-4);
  font-size: 1.05rem;
}

.contact-item a:hover { color: var(--color-red); }

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.qr-box {
  background: var(--color-white);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: inline-flex;
}

.qr-caption {
  font-size: 0.85rem;
  color: var(--color-gray-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-5) 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-inner p { margin-bottom: var(--space-1); }

/* ---------- Backdrop ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(400px, 90vw);
  background: var(--color-white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-md);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-gray-mid);
}

.icon-close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-black);
}
.icon-close-btn:hover { color: var(--color-red); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-empty-msg {
  color: var(--color-gray-text);
  text-align: center;
  margin-top: var(--space-6);
}

.cart-line {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gray-light);
}

.cart-line-info { flex: 1; }

.cart-line-name { font-weight: 700; margin-bottom: 2px; }
.cart-line-variant { font-size: 0.85rem; color: var(--color-gray-text); margin-bottom: var(--space-2); }

.cart-line-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cart-line-price {
  font-weight: 700;
  white-space: nowrap;
}

.cart-line-remove {
  background: none;
  border: none;
  color: var(--color-red);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  margin-left: auto;
}

.cart-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--color-gray-mid);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal.open {
  visibility: visible;
  opacity: 1;
}

.modal-panel {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}

.modal-close-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.checkout-step h2 {
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.checkout-order-summary {
  background: var(--color-gray-light);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-4);
  font-size: 0.9rem;
}
.checkout-order-summary .summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-1);
}
.checkout-order-summary .summary-total {
  font-weight: 700;
  border-top: 1px solid var(--color-gray-mid);
  padding-top: var(--space-2);
  margin-top: var(--space-2);
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-1);
  margin-top: var(--space-3);
}
.field-label:first-of-type { margin-top: 0; }

.field-input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--color-gray-mid);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: var(--space-1);
}
.field-input:focus {
  outline: none;
  border-color: var(--color-red);
}

#orderForm .btn { margin-top: var(--space-4); }

.gcash-total {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: var(--space-3);
}

#checkoutStep2 .qr-box {
  display: flex;
  justify-content: center;
  margin: 0 auto var(--space-3);
  width: fit-content;
}

.gcash-text {
  text-align: center;
  margin-bottom: var(--space-3);
}

.gcash-instructions {
  font-size: 0.85rem;
  color: var(--color-gray-text);
  text-align: center;
  margin-bottom: var(--space-4);
}

.checkout-actions-row {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.checkout-actions-row .btn { flex: 1; }

#checkoutStep3 p { margin-bottom: var(--space-3); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-gray-mid);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
  }
  .site-nav.open { transform: scaleY(1); }
  .site-nav .nav-link {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--color-gray-light);
  }
}

@media (min-width: 768px) {
  .product-card {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .contact-qr { align-items: flex-start; }
}

@media (min-width: 1024px) {
  .hero-inner { padding-top: var(--space-8); padding-bottom: var(--space-8); }
}
