:root {
  --bg: #f9f1e7;
  --ink: #231711;
  --muted: #69574a;
  --panel: #fff8ef;
  --accent: #b43f29;
  --accent-2: #0f6161;
  --accent-soft: #f0bc8f;
  --stroke: #e6d1bb;
  --shadow: 0 18px 48px rgba(58, 32, 16, 0.16);
  --shadow-soft: 0 10px 24px rgba(58, 32, 16, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 10%, rgba(180, 63, 41, 0.18), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(15, 97, 97, 0.18), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(180, 63, 41, 0.13), transparent 24%),
    linear-gradient(145deg, #fef8f0 0%, #f3e6d7 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(35, 23, 17, 0.05) 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  opacity: 0.35;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 6vw;
  border-bottom: 1px solid rgba(229, 214, 197, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(254, 248, 242, 0.85);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-family: "Bodoni Moda", serif;
  font-size: 1.9rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.navlinks {
  display: flex;
  gap: 1.15rem;
}

.navlinks a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  position: relative;
}

.navlinks a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navlinks a:hover::after {
  transform: scaleX(1);
}

.topbar-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 249, 242, 0.95);
  box-shadow: var(--shadow-soft);
}

.currency-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.currency-select {
  min-width: 90px;
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--stroke);
  background: #fff;
}

.currency-region {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-2);
  white-space: nowrap;
}

.cart-btn {
  border: 1px solid var(--stroke);
  background: #fff9f2;
  color: var(--ink);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.cart-btn-icon {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
}

.cart-btn-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.74rem;
}

main {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.6rem;
  align-items: stretch;
  min-height: 75vh;
  padding: 2.8rem 0 1.5rem;
}

.hero-copy,
.hero-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.4rem;
  animation: rise 0.8s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-copy::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  right: -120px;
  top: -140px;
  background: radial-gradient(circle, rgba(180, 63, 41, 0.22), transparent 70%);
  z-index: -1;
}

.hero-copy::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  left: -110px;
  bottom: -140px;
  background: radial-gradient(circle, rgba(15, 97, 97, 0.18), transparent 70%);
  z-index: -1;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Bodoni Moda", serif;
  font-weight: 700;
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 4.3rem);
  margin-top: 0.35rem;
  line-height: 0.96;
  letter-spacing: 0.01em;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 55ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.hero-metrics p {
  margin: 0;
  padding: 0.65rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, #fffdf9, #fff5eb);
  font-size: 0.82rem;
  line-height: 1.3;
}

.hero-metrics strong {
  display: block;
  color: var(--accent);
  font-size: 1.04rem;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.68rem 1.12rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-primary {
  background: linear-gradient(118deg, #c84d2f, #9a2f1e);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--stroke);
}

.hero-card {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(180, 63, 41, 0.12)),
    repeating-linear-gradient(
      135deg,
      rgba(180, 63, 41, 0.06) 0,
      rgba(180, 63, 41, 0.06) 8px,
      rgba(255, 255, 255, 0.07) 8px,
      rgba(255, 255, 255, 0.07) 16px
    );
  animation: rise 1s ease;
}

.hero-swatches {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(35, 23, 17, 0.25);
}

.swatch-wine {
  background: #6d2033;
}

.swatch-ivory {
  background: #f6ecd9;
}

.swatch-teal {
  background: #0f6161;
}

.swatch-gold {
  background: #bb8a3f;
}

.luxury-tape {
  margin: 0.2rem 0 1.4rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(35, 23, 17, 0.25);
  border-left: 0;
  border-right: 0;
  background: linear-gradient(90deg, rgba(35, 23, 17, 0.92), rgba(82, 58, 43, 0.92));
}

.luxury-tape p {
  margin: 0;
  padding: 0.6rem 0.4rem;
  text-align: center;
  color: #f9efe3;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
  border-right: 1px solid rgba(249, 239, 227, 0.25);
}

.luxury-tape p:last-child {
  border-right: 0;
}

.hero-card-link {
  width: fit-content;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(32, 25, 20, 0.35);
  font-weight: 700;
}

.hero-label {
  color: var(--accent-2);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
}

.section {
  margin: 2.2rem 0 0;
  padding: 1.2rem 0;
}

.section h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  position: relative;
  padding-bottom: 0.4rem;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.collections .collection-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.collection-item {
  background: linear-gradient(160deg, rgba(255, 250, 244, 0.94), rgba(255, 245, 235, 0.85));
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease;
}

.collection-item:hover {
  transform: translateY(-4px);
}

.collection-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.tools-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

select,
input,
textarea {
  border: 1px solid var(--stroke);
  border-radius: 0.8rem;
  background: #fffdf9;
  padding: 0.55rem 0.72rem;
  font: inherit;
}

select:focus,
input:focus,
textarea:focus {
  outline: 2px solid rgba(15, 97, 97, 0.22);
  border-color: var(--accent-2);
}

textarea {
  resize: vertical;
}

.product-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}

.product-card {
  border: 1px solid var(--stroke);
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  animation: rise 0.55s ease;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: 1rem;
  transition: border-color 0.25s ease;
  pointer-events: none;
}

.product-card:hover::after {
  border-color: rgba(15, 97, 97, 0.32);
}

.product-image {
  height: 198px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.35s ease;
}

.product-card:hover .product-image {
  transform: scale(1.03);
}

.pill {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  background: rgba(23, 59, 62, 0.78);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.26rem 0.5rem;
  border-radius: 999px;
}

.product-body {
  padding: 0.85rem;
}

.product-body h3 {
  font-size: 1.35rem;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}

.price {
  font-weight: 800;
  color: var(--accent);
}

.runway-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.runway-strip article {
  padding: 1.1rem;
  border-radius: 1rem;
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.95), rgba(246, 238, 228, 0.9));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.runway-strip article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.runway-strip h3 {
  font-size: 1.35rem;
  margin-top: 0.2rem;
}

.runway-strip p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.about,
.contact {
  border: 1px solid var(--stroke);
  background: linear-gradient(145deg, rgba(255, 250, 244, 0.93), rgba(245, 236, 226, 0.82));
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -120px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(15, 97, 97, 0.17), transparent 72%);
  pointer-events: none;
}

.about {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  flex-wrap: wrap;
}

.about p,
.contact p,
.about li {
  color: var(--muted);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(390px, 90vw);
  height: 100vh;
  background: #fffaf4;
  border-left: 1px solid var(--stroke);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transition: right 0.25s ease;
  z-index: 120;
}

.cart-panel.open {
  right: 0;
}

.cart-header,
.cart-footer {
  padding: 1rem;
  border-bottom: 1px solid var(--stroke);
}

.cart-footer {
  border-top: 1px solid var(--stroke);
  border-bottom: 0;
}

.cart-line,
.cart-total-line {
  margin: 0.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-line {
  margin-top: 0.5rem;
  font-size: 1.02rem;
}

.shipping-hint {
  margin: 0.35rem 0 0.25rem;
  color: var(--accent-2);
  font-size: 0.84rem;
}

.icon-btn {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  background: #fff;
  cursor: pointer;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
  overflow: auto;
}

.cart-item {
  border: 1px solid var(--stroke);
  border-radius: 0.8rem;
  padding: 0.7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem;
}

.cart-item-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.cart-item-thumb {
  width: 64px;
  height: 78px;
  border-radius: 0.75rem;
  background-color: #f4e6d7;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-soft);
}

.cart-item-copy p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.qty-btn {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

.qty-value {
  font-size: 0.9rem;
  min-width: 1.2rem;
  text-align: center;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(31, 26, 23, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 130;
}

.checkout-modal.open {
  opacity: 1;
  visibility: visible;
}

.checkout-dialog {
  width: min(520px, 96vw);
  background: #fffaf5;
  border: 1px solid var(--stroke);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.checkout-form {
  display: grid;
  gap: 0.75rem;
}

.checkout-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.checkout-actions-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.full {
  width: 100%;
}

.whatsapp-float {
  position: fixed;
  left: 1.15rem;
  bottom: 1.15rem;
  z-index: 125;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 36px rgba(18, 140, 126, 0.28);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 22px 40px rgba(18, 140, 126, 0.34);
}

.whatsapp-float-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.whatsapp-float-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.whatsapp-float-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.payment-status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.payment-status-card {
  width: min(640px, 100%);
  padding: 2rem;
  border: 1px solid var(--stroke);
  border-radius: 1.4rem;
  background: linear-gradient(145deg, rgba(255, 248, 239, 0.96), rgba(246, 236, 224, 0.86));
  box-shadow: var(--shadow);
}

.payment-status-card h1 {
  margin-top: 0.35rem;
}

.payment-status-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  background: #241813;
  color: #fff;
  border-radius: 999px;
  padding: 0.55rem 0.88rem;
  font-size: 0.9rem;
  transition: transform 0.25s ease;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collections .collection-grid {
    grid-template-columns: 1fr;
  }

  .runway-strip {
    grid-template-columns: 1fr;
  }

  .luxury-tape {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .navlinks {
    display: none;
  }

  .topbar-tools {
    margin-left: auto;
  }
}

@media (max-width: 580px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0.8rem 4vw;
    gap: 0.55rem;
  }

  .brand-sub {
    display: none;
  }

  .topbar-tools {
    padding: 0.3rem 0.45rem;
  }

  .currency-label,
  .currency-region,
  .cart-btn-label {
    display: none;
  }

  .currency-select {
    min-width: 78px;
    font-size: 0.78rem;
    padding: 0.3rem 0.55rem;
  }

  .cart-btn {
    padding: 0.5rem 0.72rem;
  }

  .hero-copy {
    padding: 1.3rem;
  }

  .luxury-tape {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .checkout-actions-row {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    left: 0.85rem;
    bottom: 0.85rem;
    padding: 0.78rem;
  }

  .whatsapp-float-text {
    display: none;
  }
}
