:root {
  --black: #111111;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-400: #999999;
  --gray-600: #555555;
  --red: #d1372a;
  --radius: 4px;
  --max-width: 1240px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* Announcement bar */
.announcement {
  background: var(--black);
  color: var(--white);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 8px 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 24px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.logo img { height: 32px; }
.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.main-nav a:hover { color: var(--gray-600); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
}
.header-actions a { display: flex; align-items: center; gap: 6px; }
.header-actions form { margin: 0; }
.header-actions button.link-btn {
  background: none; border: none; font: inherit; color: inherit; padding: 0; cursor: pointer;
}
.cart-count {
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 820px;
  object-fit: cover;
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 80px;
  color: var(--white);
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05));
}
.hero-content h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 16px;
  max-width: 620px;
}
.hero-content p { font-size: 18px; margin: 0 0 28px; max-width: 500px; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: opacity 0.15s ease;
  cursor: pointer;
}
.btn:hover { opacity: 0.85; }
.btn-outline {
  background: transparent;
  color: var(--black);
}
.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-block { width: 100%; text-align: center; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* Section */
.section { padding: 56px 0; }
.section-title {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-600);
  margin: 0 0 28px;
}

/* Category tiles */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--gray-100);
}
.cat-tile img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile span {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.cat-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  display: block;
  position: relative;
}
.product-media {
  position: relative;
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-bottom: 12px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--radius);
  z-index: 2;
}
.quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.15s ease;
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.product-cat {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--gray-400);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.product-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  line-height: 1.35;
}
.price-row { font-size: 14px; }
.price-sale { color: var(--red); font-weight: 700; margin-right: 8px; }
.price-compare { color: var(--gray-400); text-decoration: line-through; }
.price-regular { font-weight: 700; }

/* Banner section */
.promo-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.promo-banner img { width: 100%; height: 320px; object-fit: cover; }
.promo-banner .promo-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  background: linear-gradient(90deg, rgba(0,0,0,0.5), rgba(0,0,0,0));
  color: var(--white);
}
.promo-banner h2 { font-size: 30px; margin: 0 0 14px; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a {
  display: none;
  padding: 0 0 18px;
  color: var(--gray-600);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.15s ease; font-size: 18px; }

/* Newsletter */
.newsletter {
  background: var(--gray-100);
  text-align: center;
  padding: 56px 24px;
}
.newsletter h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
}
.newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  border: 1px solid var(--black);
  border-radius: var(--radius);
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  border: none;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}
.newsletter-form button {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 48px 0 24px;
  font-size: 14px;
  color: var(--gray-600);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-grid h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin: 0 0 14px;
}
.footer-grid p { line-height: 1.6; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid li a:hover { color: var(--black); }
.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
}

/* Breadcrumb / page header */
.page-header { padding: 32px 0 0; text-align: center; }
.page-header h1 {
  font-size: 24px;
  text-transform: capitalize;
  margin: 0 0 20px;
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: var(--white);
}
.filter-chip.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 40px 0 64px;
}
.pd-gallery-main {
  background: var(--gray-50);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
  margin-bottom: 12px;
}
.pd-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  background: var(--gray-50);
}
.pd-thumbs img.active { border-color: var(--black); }
.pd-title { font-size: 24px; margin: 0 0 10px; }
.pd-price { font-size: 20px; margin-bottom: 20px; }
.pd-option { margin-bottom: 18px; }
.pd-option label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pd-option-values { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-swatch {
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--white);
}
.pd-swatch.active { border-color: var(--black); background: var(--black); color: var(--white); }
.pd-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.pd-qty button {
  background: none;
  border: none;
  width: 36px;
  height: 40px;
  font-size: 16px;
}
.pd-qty span { width: 32px; text-align: center; font-size: 14px; }
.pd-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0;
  font-size: 12px;
  text-align: center;
  color: var(--gray-600);
}
.pd-trust div { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 12px 6px; }
.pd-features { margin-top: 28px; }
.pd-features h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.pd-features ul { padding-left: 18px; list-style: disc; }
.pd-features li { margin-bottom: 6px; font-size: 14px; line-height: 1.5; color: var(--gray-600); }

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 100;
  display: none;
}
.cart-overlay.open { display: block; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 100%;
  height: 100%;
  background: var(--white);
  z-index: 101;
  display: flex;
  flex-direction: column;
  transition: right 0.2s ease;
}
.cart-drawer.open { right: 0; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}
.cart-header h2 { font-size: 16px; margin: 0; text-transform: uppercase; }
.cart-close { background: none; border: none; font-size: 22px; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { text-align: center; color: var(--gray-400); padding: 60px 0; font-size: 14px; }
.cart-item { display: flex; gap: 12px; margin-bottom: 20px; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius); background: var(--gray-50); }
.cart-item-info { flex: 1; }
.cart-item-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--gray-400); margin-bottom: 6px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.cart-item-qty button { width: 22px; height: 22px; border: 1px solid var(--gray-200); background: var(--white); border-radius: var(--radius); }
.cart-item-remove { font-size: 11px; color: var(--gray-400); text-decoration: underline; margin-top: 6px; background:none; border:none; padding:0; }
.cart-item-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-footer { border-top: 1px solid var(--gray-200); padding: 20px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 14px; }

/* Toast / flash messages */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  z-index: 200;
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Mobile nav toggle */
.nav-toggle { display: none; align-items: center; justify-content: center; background: none; border: none; padding: 0; cursor: pointer; color: inherit; }
.icon { flex-shrink: 0; }

/* Cart page */
.cart-page { padding: 32px 0 64px; }
.cart-page-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.cart-page-list { border-top: 1px solid var(--gray-200); }
.cart-page-row {
  display: grid;
  grid-template-columns: 88px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-page-row img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); background: var(--gray-50); }
.cart-page-summary { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.cart-page-summary h2 { font-size: 15px; text-transform: uppercase; margin: 0 0 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.summary-total { font-size: 17px; font-weight: 700; border-top: 1px solid var(--gray-200); padding-top: 14px; margin-top: 6px; }

/* Checkout page */
.checkout-page { padding: 32px 0 64px; }
.checkout-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.checkout-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.checkout-form input, .checkout-form select, .checkout-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
  font-family: inherit;
}
.checkout-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.checkout-summary { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.checkout-summary h2 { font-size: 15px; text-transform: uppercase; margin: 0 0 16px; }
.co-line { display: flex; gap: 12px; margin-bottom: 14px; font-size: 13px; }
.co-line img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); background: var(--gray-50); }
.co-line-info { flex: 1; }
.payment-note { background: var(--gray-50); border-radius: var(--radius); padding: 12px 14px; font-size: 12px; color: var(--gray-600); margin: 16px 0; line-height: 1.5; }
.field-error { color: var(--red); font-size: 12px; margin-top: -12px; margin-bottom: 12px; }

/* Checkout method options (shipping / payment) */
.method-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.method-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  cursor: pointer;
}
.method-option:has(input:checked) { border-color: var(--black); background: var(--gray-50); }
.method-option-main { display: flex; align-items: center; gap: 10px; }
.method-option-main input { width: auto; margin: 0; }
.method-option-name { font-weight: 600; }
.method-option-meta { color: var(--gray-500); font-size: 12px; }
.method-option-cost { font-weight: 600; white-space: nowrap; }
.method-instructions { display: none; background: var(--gray-50); border-radius: var(--radius); padding: 10px 12px; font-size: 12px; color: var(--gray-600); margin: -4px 0 12px 26px; line-height: 1.5; }
.method-instructions.active { display: block; }

/* Order confirmation */
.confirm-wrap { max-width: 640px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  margin: 0 auto 20px;
}
.confirm-id { font-size: 14px; color: var(--gray-600); margin-bottom: 32px; }
.confirm-id strong { color: var(--black); }
.confirm-summary { text-align: left; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }

/* Auth / account */
.auth-wrap { max-width: 420px; margin: 0 auto; padding: 56px 24px 80px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--gray-200); margin-bottom: 28px; }
.auth-tab {
  flex: 1; text-align: center; padding: 12px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; background: none; border: none;
  border-bottom: 2px solid transparent; color: var(--gray-400); cursor: pointer;
}
.auth-tab.active { color: var(--black); border-bottom-color: var(--black); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-form input {
  width: 100%; padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 14px; margin-bottom: 16px; font-family: inherit;
}
.auth-error { color: var(--red); font-size: 13px; margin-bottom: 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-size: 14px; margin-bottom: 16px; font-family: inherit;
}
.account-panel { max-width: 480px; margin: 0 auto; padding: 56px 24px 80px; }
.order-card { border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.order-card-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.order-status { font-size: 11px; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--gray-100); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: 22px; margin: 0 0 8px; }
  .hero-content p { font-size: 13px; margin: 0 0 14px; }
  .hero-content .btn { padding: 9px 18px; font-size: 12px; }
  .pd-trust { grid-template-columns: repeat(2, 1fr); }
  .cart-page-grid, .checkout-grid { grid-template-columns: 1fr; }
  .cart-page-row { grid-template-columns: 64px 1fr; }
  .cart-page-row img { width: 64px; height: 64px; }
}
