:root {
  --color-bg: #faf9f7;
  --color-text: #1c1c1e;
  --color-muted: #6b6b6f;
  --color-border: #e3e1dd;
  --color-primary: #1c1c1e;
  --color-primary-text: #ffffff;
  --color-error-bg: #fdecec;
  --color-error-text: #9b1c1c;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}

.lang-switch a.active {
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-color: var(--color-primary);
}

.site-footer {
  text-align: center;
  padding: 24px 20px;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px;
}

.container.narrow {
  max-width: 560px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* Hero carousel - full-bleed, edge to edge, wide cinematic aspect ratio */
.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 550px;
  overflow: hidden;
  background: #1c1c1e;
  margin-bottom: 24px;
}

.hero-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.is-active {
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Brand value proposition */
.brand-value {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 48px 20px;
  text-align: center;
}

.brand-value h1 {
  margin: 0 0 16px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.brand-value p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.brand-value p strong {
  color: var(--color-text);
  font-weight: 700;
}

.brand-value .btn {
  display: inline-block;
  width: auto;
  margin-top: 24px;
  padding: 10px 28px;
  font-size: 0.9rem;
}

@media (min-width: 640px) {
  .brand-value {
    padding: 64px 20px;
  }

  .brand-value h1 {
    font-size: 2.1rem;
  }
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 32px 20px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-item {
  flex: 1 1 140px;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.trust-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--color-text);
}

.trust-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 560px) {
  .trust-bar {
    justify-content: space-around;
    row-gap: 28px;
  }

  .trust-item {
    flex: 1 1 40%;
  }
}

/* Sale section - on the homepage this is a single clickable banner (image +
   promo text) linking to the standalone /sale page; on /sale itself the
   same banner markup is reused as a static hero, followed by a grid of just
   the "sale"-tagged products (via the shared product-card partial). */
.sale-section {
  margin: 0 0 40px;
}

.sale-banner {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.15s ease;
}

a.sale-banner:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.sale-banner-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eee;
}

.sale-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sale-banner-text {
  padding: 24px 20px 28px;
  text-align: center;
}

.sale-banner-text h1,
.sale-banner-text h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #c2410c;
}

.sale-banner-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.sale-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 24px;
  border-radius: var(--radius);
  background: #c2410c;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .sale-banner {
    flex-direction: row;
    align-items: stretch;
  }

  .sale-banner-image {
    width: 55%;
    aspect-ratio: auto;
  }

  .sale-banner-text {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: start;
    padding: 32px;
  }
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: box-shadow 0.15s ease;
}

.product-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eee;
}

.card-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.card-slider-track::-webkit-scrollbar {
  display: none;
}

.card-slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  display: block;
}

.card-slider-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: auto;
}

.card-slider-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.card-slider-dot.is-active {
  background: #ffffff;
}

.product-card-info {
  display: block;
  padding: 12px;
}

.product-card-info h2 {
  font-size: 0.95rem;
  margin: 0 0 4px;
}

.price {
  font-weight: 700;
  margin: 0;
}

.urgency-banner {
  margin: 12px 0 16px;
  padding: 12px 14px;
  background: #fff4ed;
  border: 1px solid #f97316;
  border-radius: var(--radius);
}

.urgency-text {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #c2410c;
  text-align: center;
}

.urgency-progress {
  height: 8px;
  border-radius: 999px;
  background: #fde4d0;
  overflow: hidden;
}

.urgency-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f97316, #ef4444);
}

.product-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* Product gallery (uses the same .product-image / card-slider component as
   the listing cards, just displayed larger and with rounded corners here
   since it's not nested inside a card that already clips its corners) */
.product-gallery {
  margin-bottom: 32px;
}

.product-gallery .product-image {
  border-radius: var(--radius);
}

/* Product info */
.product-info {
  max-width: 640px;
}

.product-info h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.description {
  margin: 8px 0 16px;
  color: var(--color-muted);
  line-height: 1.6;
}

.option-group {
  border: none;
  padding: 0;
  margin: 16px 0;
}

#items-container .item-block + .item-block {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.item-label {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--color-text);
}

.option-group legend {
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 6px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}

.qty-btn:hover:not(:disabled) {
  background: var(--color-border);
}

.qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

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

.quantity-total {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}

.original-price {
  margin-inline-start: 6px;
  font-size: 0.85em;
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: line-through;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  position: relative;
}

.option-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}

.option-pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
}

.option-pill input:checked + span {
  background: var(--color-primary);
  color: var(--color-primary-text);
  border-color: var(--color-primary);
}

/* Color swatches */
.color-swatch {
  position: relative;
  cursor: pointer;
}

.color-swatch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.swatch-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  background-color: var(--swatch-bg, #ccc);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.swatch-circle[data-color="black"] { --swatch-bg: #1c1c1e; }
.swatch-circle[data-color="grey"] { --swatch-bg: #9a9a9a; }
.swatch-circle[data-color="navy"] { --swatch-bg: #1f2a44; }
.swatch-circle[data-color="white"] { --swatch-bg: #ffffff; border-color: #c7c2b8; }
.swatch-circle[data-color="brown"] { --swatch-bg: #6b4a30; }
.swatch-circle[data-color="blue"] { --swatch-bg: #2563eb; }
.swatch-circle[data-color="pink"] { --swatch-bg: #ec4899; }
.swatch-circle[data-color="orange"] { --swatch-bg: #f97316; }

.swatch-check {
  width: 16px;
  height: 16px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.6));
}

.color-swatch input:checked + .swatch-circle {
  border-color: var(--color-text);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--color-text);
}

.color-swatch input:checked + .swatch-circle .swatch-check {
  opacity: 1;
  transform: scale(1);
}

.color-swatch.is-out-of-stock {
  cursor: not-allowed;
}

.color-swatch.is-out-of-stock input {
  cursor: not-allowed;
}

.color-swatch.is-out-of-stock .swatch-circle {
  opacity: 0.35;
  position: relative;
}

.color-swatch.is-out-of-stock .swatch-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    to top right,
    transparent 0%,
    transparent 46%,
    var(--color-text) 47%,
    var(--color-text) 53%,
    transparent 54%,
    transparent 100%
  );
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-text);
  width: 100%;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
}

.btn-whatsapp:hover {
  background: #1ebe5b;
}

.btn-whatsapp svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Order form */
.order-summary {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.order-summary img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.order-summary h2 {
  font-size: 1rem;
  margin: 0 0 2px;
}

.order-summary p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.order-items-list {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.order-items-list li {
  margin: 2px 0;
}

.order-items-list strong {
  color: var(--color-text);
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-form label {
  font-weight: 600;
  margin-top: 12px;
}

.order-form input,
.order-form textarea {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.order-form small {
  color: var(--color-muted);
  font-size: 0.8rem;
}

.order-form button {
  margin-top: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.alert-error {
  background: var(--color-error-bg);
  color: var(--color-error-text);
}

.alert-error ul {
  margin: 0;
  padding-inline-start: 20px;
}

.alert-success {
  background: #e6f7ec;
  color: #1a7f37;
}

/* Reviews */
.reviews-section {
  margin: 40px 0;
  max-width: 640px;
}

.reviews-section h2 {
  font-size: 1.25rem;
  margin: 0 0 16px;
}

.reviews-empty {
  color: var(--color-muted);
  margin: 0 0 24px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.review-card {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.review-name {
  font-weight: 700;
}

.review-stars {
  display: flex;
  gap: 2px;
  color: var(--color-border);
  font-size: 0.95rem;
}

.review-stars .star.is-filled {
  color: #f5a623;
}

.review-message {
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
}

.review-form-box {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

.review-form-box h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-form label {
  font-weight: 600;
  margin-top: 12px;
}

.review-form input,
.review-form textarea {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  width: 100%;
}

.review-form textarea {
  min-height: 90px;
  resize: vertical;
}

.review-form button {
  margin-top: 16px;
  width: auto;
  padding: 10px 24px;
}

.star-rating {
  border: none;
  padding: 0;
  margin: 12px 0 0;
}

.star-rating legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 6px;
}

.star-rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}

.star-rating-stars label {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-border);
  cursor: pointer;
  transition: color 0.1s ease;
}

.star-rating-stars input:checked ~ label,
.star-rating-stars label:hover,
.star-rating-stars label:hover ~ label {
  color: #f5a623;
}

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 40px 0;
}

.confirmation h1 {
  margin-bottom: 12px;
}

.confirmation .btn {
  margin-top: 24px;
  width: auto;
  padding: 12px 32px;
}
