/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ── Announcement Bar ─────────────────────────────── */
.announcement-bar {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Header / Nav ─────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.header-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.header-nav { display: flex; gap: 32px; }
.header-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.header-nav a:hover { opacity: 0.6; }

.header-actions { display: flex; gap: 20px; align-items: center; }
.header-actions button {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}
.header-actions button:hover { opacity: 0.6; }

.cart-btn {
  position: relative;
}
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.6rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ── Product Section ──────────────────────────────── */
.product-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 24px 48px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

/* Image Gallery */
.product-gallery { display: flex; flex-direction: column; gap: 16px; }

.product-image-main {
  aspect-ratio: 1;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-image-main svg {
  width: 180px;
  height: 180px;
  opacity: 0.15;
}

.product-image-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  background: #f5f5f5;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.product-thumbnail.active,
.product-thumbnail:hover {
  border-color: #1a1a1a;
}

.product-thumbnail svg {
  width: 32px;
  height: 32px;
  opacity: 0.2;
}

.product-views {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.product-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.product-view-btn:hover {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

/* Product Info */
.product-info { display: flex; flex-direction: column; }

.product-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-title-kicker {
  display: block;
  font-size: 1rem;
  color: #666;
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 20px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.stars { display: flex; gap: 2px; color: #1a1a1a; font-size: 1rem; }
.rating-count { font-size: 0.8rem; color: #888; }

.product-desc {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.7;
}

.product-color-section {
  margin-top: 28px;
}

.product-color-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.product-colors {
  display: flex;
  gap: 10px;
}

.color-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.color-swatch.active {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
}

.quantity-section {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.quantity-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #555;
  transition: background 0.2s;
}
.quantity-btn:hover { background: #f5f5f5; }

.quantity-value {
  width: 48px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  line-height: 40px;
}

.add-to-cart-btn {
  margin-top: 28px;
  width: 100%;
  padding: 16px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.2s;
}
.add-to-cart-btn:hover { background: #333; }

.sold-out-badge {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.shipping-note {
  margin-top: 12px;
  text-align: center;
  font-size: 0.8rem;
  color: #888;
}

.product-sku {
  margin-top: 16px;
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ── Features Grid ────────────────────────────────── */
.features-section {
  padding: 80px 48px;
  background: #fafafa;
}

.features-section h2 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.feature-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.5;
}

/* ── Details Section ──────────────────────────────── */
.details-section {
  padding: 80px 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.details-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #1a1a1a;
}

.details-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.details-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.8;
}

.details-specs { list-style: none; }
.details-specs li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.details-specs li::before {
  content: "✓";
  color: #1a1a1a;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── FAQ Section ──────────────────────────────────── */
.faq-section {
  padding: 80px 48px;
  max-width: 880px;
  margin: 0 auto;
}

.faq-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid #eee;
}

.faq-item {
  border-bottom: 1px solid #eee;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 8px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: #888;
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item summary:hover { color: #555; }

.faq-item p {
  padding: 0 8px 24px;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .faq-section { padding: 48px 20px; }
}

/* ── Newsletter Section ───────────────────────────── */
.newsletter-section {
  padding: 80px 48px;
  background: #f5f5f5;
  text-align: center;
}

.newsletter-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.newsletter-section p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 0;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.95rem;
  border: 1px solid #ddd;
  border-right: none;
  border-radius: 6px 0 0 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}
.newsletter-input:focus { border-color: #1a1a1a; }
.newsletter-input::placeholder { color: #aaa; }

.newsletter-submit {
  padding: 14px 28px;
  background: #1a1a1a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0 6px 6px 0;
  transition: background 0.2s;
}
.newsletter-submit:hover { background: #333; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: #1a1a1a;
  color: #fff;
  padding: 64px 48px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-brand h3 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.6;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: #999;
}

.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #666;
}

.footer-social { display: flex; gap: 16px; }
.footer-social a {
  color: #666;
  transition: color 0.2s;
}
.footer-social a:hover { color: #fff; }

/* ── Newsletter Modal ─────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 1.5rem;
  color: #888;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}
.modal-close:hover { background: #f5f5f5; color: #1a1a1a; }

.modal-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal h2 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.modal-input:focus { border-color: #1a1a1a; }
.modal-input::placeholder { color: #aaa; }

.modal-submit {
  width: 100%;
  padding: 16px;
  background: #1a1a1a;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.modal-submit:hover { background: #333; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .header { padding: 12px 20px; }
  .header-nav { display: none; }
  .breadcrumb { padding: 12px 20px; }

  .product-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 20px 48px;
  }

  .features-section { padding: 48px 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .details-section { padding: 48px 20px; }
  .details-content { grid-template-columns: 1fr; gap: 24px; }

  .newsletter-section { padding: 48px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid #ddd; border-radius: 6px; }
  .newsletter-submit { border-radius: 6px; }

  .footer { padding: 48px 20px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Checkout page ---------- */

.checkout-page {
  min-height: 100vh;
  background: #fff;
  color: #1a1a1a;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.checkout-header {
  border-bottom: 1px solid #ececec;
  padding: 20px 40px;
}

.checkout-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  display: inline-block;
  cursor: pointer;
}

.checkout-layout {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 64px;
  padding: 48px 40px 80px;
}

.checkout-main {
  min-width: 0;
  max-width: 560px;
  width: 100%;
  margin-left: auto;
}

.checkout-loading {
  padding: 48px 0;
  color: #888;
  text-align: center;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.checkout-express {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-section-label {
  text-align: center;
  font-size: 0.85rem;
  color: #666;
  letter-spacing: 0.02em;
}

.checkout-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #888;
  font-size: 0.85rem;
}
.checkout-divider::before,
.checkout-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.checkout-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.checkout-section-hint {
  color: #666;
  font-size: 0.85rem;
  margin: 0 0 16px;
}

.checkout-section > :nth-child(3),
.checkout-section > .StripeElement,
.checkout-section > div:not(:first-child) {
  margin-top: 12px;
}

.checkout-error {
  background: #fff4f4;
  border: 1px solid #f5c5c5;
  color: #b50303;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.checkout-pay-btn {
  width: 100%;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s;
}
.checkout-pay-btn:hover:not(:disabled) { background: #000; }
.checkout-pay-btn:disabled { background: #aaa; cursor: not-allowed; }

.checkout-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid #ececec;
}
.checkout-legal a {
  color: #666;
  font-size: 0.85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Right column */

.checkout-summary {
  border-left: 1px solid #ececec;
  padding-left: 64px;
  position: sticky;
  top: 24px;
  align-self: start;
  height: fit-content;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.checkout-summary-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkout-summary-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #1a1a1a;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-summary-meta {
  min-width: 0;
}
.checkout-summary-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
}
.checkout-summary-sub {
  color: #666;
  font-size: 0.85rem;
  margin-top: 4px;
}
.checkout-summary-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.checkout-summary-discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 24px;
}
.checkout-summary-discount input {
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
}
.checkout-summary-discount input:disabled {
  background: #fafafa;
  color: #999;
}
.checkout-summary-discount button {
  border: 1px solid #d5d5d5;
  border-radius: 999px;
  padding: 12px 22px;
  background: #fff;
  font-weight: 500;
  color: #888;
  cursor: not-allowed;
}

.checkout-summary-line {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 0.95rem;
}
.checkout-summary-muted { color: #666; }

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 0 0;
  border-top: 1px solid #ececec;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
.checkout-summary-total strong { font-weight: 800; font-size: 1.25rem; }

/* Responsive */
@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 20px 64px;
  }
  .checkout-main { max-width: none; margin: 0; }
  .checkout-summary {
    border-left: none;
    border-top: 1px solid #ececec;
    padding-left: 0;
    padding-top: 32px;
    position: static;
    order: -1;
  }
}

/* ---------- Order complete page ---------- */

.order-complete-page {
  min-height: 100vh;
  background: #fff;
  color: #1a1a1a;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}

.order-complete-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.order-complete-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-complete-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.order-complete-lede {
  color: #555;
  font-size: 1rem;
  margin: 0 0 32px;
  line-height: 1.5;
}

.order-complete-card {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 24px;
  text-align: left;
  margin-bottom: 32px;
}

.order-complete-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}
.order-complete-row:last-child { border-bottom: none; }
.order-complete-row > span:first-child { color: #666; }

.order-complete-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}

@media (max-width: 560px) {
  .order-complete-content { padding: 48px 20px; }
  .order-complete-content h1 { font-size: 1.5rem; }
}
