:root {
  --ink: #211515;
  --ink-2: #412323;
  --wine: #5a1f2e;
  --rose: #8f3f4d;
  --gold: #d5a85f;
  --gold-2: #f4d995;
  --cream: #fff7e8;
  --paper: #fffaf2;
  --mist: #f7ede0;
  --teal: #0f766e;
  --teal-dark: #075e59;
  --line: rgba(55, 31, 29, 0.14);
  --shadow: 0 24px 70px rgba(29, 13, 17, 0.18);
  --radius: 8px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body.product-detail-active .home-section {
  display: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0) 0%, #fffaf2 58%),
    radial-gradient(circle at 8% 10%, rgba(213, 168, 95, 0.2), transparent 28%),
    linear-gradient(135deg, #fffaf2 0%, #f8eadc 44%, #f7f1e8 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 250, 242, 0.84);
  border-bottom: 1px solid rgba(64, 32, 29, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo-wrap {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  background: #050505;
  border: 1px solid rgba(213, 168, 95, 0.36);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(30, 12, 15, 0.22);
}

.brand-logo {
  width: 92%;
  height: 92%;
  object-fit: contain;
}

.brand-sigil {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #2b1717;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(82, 47, 24, 0.25);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(133, 76, 30, 0.22);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1;
  white-space: nowrap;
}

.brand-subtitle {
  color: rgba(33, 21, 21, 0.66);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 12px;
  color: rgba(33, 21, 21, 0.78);
  font-size: 14px;
  border-radius: 999px;
}

.nav-link:hover {
  color: var(--wine);
  background: rgba(213, 168, 95, 0.12);
}

.icon-button,
.cart-button,
.whatsapp-button,
.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-button {
  width: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(65, 35, 35, 0.14);
}

.cart-button {
  position: relative;
  padding: 0 14px;
  color: #fff7e8;
  background: linear-gradient(135deg, var(--wine), #2b1717);
  box-shadow: 0 12px 32px rgba(64, 20, 29, 0.22);
}

.cart-count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 7px;
  color: #2b1717;
  background: var(--gold-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.whatsapp-button {
  position: relative;
  overflow: hidden;
  padding: 0 16px;
  color: white;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.24);
}

.whatsapp-button::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  pointer-events: none;
}

.whatsapp-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.header-search {
  position: relative;
}

.search-toggle {
  background: rgba(255, 255, 255, 0.74);
}

.header-search-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(240px, 330px) 42px;
  gap: 8px;
  width: max-content;
  padding: 10px;
  background: rgba(255, 250, 242, 0.98);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(41, 21, 22, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-search.open .header-search-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-button {
  padding: 0 18px;
  color: #fff7e8;
  background: linear-gradient(135deg, var(--wine), #2c1519);
  box-shadow: 0 16px 34px rgba(58, 20, 28, 0.24);
}

.secondary-button {
  padding: 0 18px;
  color: #1f1513;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border: 1px solid rgba(104, 68, 28, 0.18);
}

.ghost-button {
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(65, 35, 35, 0.14);
}

.icon-button:hover,
.cart-button:hover,
.whatsapp-button:hover,
.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(26px, 5vw, 78px);
  align-items: center;
  min-height: min(790px, calc(100vh - 68px));
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px) clamp(30px, 6vw, 70px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(112deg, rgba(31, 15, 17, 0.96), rgba(89, 30, 45, 0.88) 45%, rgba(222, 174, 101, 0.5)),
    url("../img/products/hayaati-rose-lattafa.webp") center right / min(960px, 70vw) no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(33, 21, 21, 0.86), rgba(33, 21, 21, 0.42) 48%, rgba(33, 21, 21, 0.12)),
    radial-gradient(ellipse at 76% 48%, rgba(244, 217, 149, 0.38), transparent 42%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff7e8;
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 9.8vw, 124px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 247, 232, 0.86);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(88px, 1fr));
  gap: 12px;
  max-width: 540px;
  margin-top: 34px;
}

.stat {
  padding: 14px;
  color: rgba(255, 247, 232, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.stat strong {
  display: block;
  color: #fff7e8;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.hero-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 580px;
  place-items: center;
  perspective: 1200px;
}

.showcase-platform {
  position: absolute;
  bottom: 28px;
  width: min(520px, 80vw);
  height: 92px;
  background: radial-gradient(ellipse at center, rgba(255, 226, 167, 0.44), rgba(93, 37, 32, 0.14) 58%, transparent 70%);
  transform: rotateX(68deg);
  filter: blur(2px);
}

.bottle-stage {
  position: relative;
  width: min(460px, 84vw);
  height: 560px;
  transform-style: preserve-3d;
  animation: floatStage 6s ease-in-out infinite;
}

.hero-product {
  position: absolute;
  width: 56%;
  max-width: 320px;
  filter: drop-shadow(0 34px 38px rgba(0, 0, 0, 0.34));
  border-radius: 14px;
  transform-style: preserve-3d;
}

.hero-product.main {
  left: 22%;
  top: 4%;
  z-index: 3;
  transform: rotateY(-8deg) rotateZ(1deg);
}

.hero-product.side-left {
  left: -1%;
  top: 21%;
  z-index: 2;
  opacity: 0.88;
  transform: translateZ(-120px) rotateY(18deg) rotateZ(-7deg) scale(0.76);
}

.hero-product.side-right {
  right: -2%;
  top: 24%;
  z-index: 1;
  opacity: 0.82;
  transform: translateZ(-150px) rotateY(-20deg) rotateZ(8deg) scale(0.72);
}

.mist-lines {
  position: absolute;
  inset: 12% -8% auto;
  height: 68%;
  background:
    linear-gradient(120deg, transparent 0 12%, rgba(244, 217, 149, 0.26) 13%, transparent 16% 37%, rgba(255, 255, 255, 0.18) 38%, transparent 42% 100%),
    linear-gradient(60deg, transparent 0 50%, rgba(244, 217, 149, 0.18) 51%, transparent 56%);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 80%, transparent);
  pointer-events: none;
}

@keyframes floatStage {
  0%,
  100% {
    transform: translateY(0) rotateY(-3deg);
  }
  50% {
    transform: translateY(-14px) rotateY(3deg);
  }
}

.section {
  padding: clamp(52px, 7vw, 90px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.muted {
  color: rgba(33, 21, 21, 0.64);
}

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(170px, 210px) minmax(170px, 210px);
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(65, 35, 35, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 42px rgba(41, 21, 22, 0.07);
}

.catalog-tools-compact {
  grid-template-columns: repeat(2, minmax(180px, 230px));
  justify-content: end;
}

.field,
.select-field,
.textarea-field {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(65, 35, 35, 0.14);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field,
.select-field {
  min-height: 50px;
  padding: 0 16px;
}

.textarea-field {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.field:focus,
.select-field:focus,
.textarea-field:focus {
  background: white;
  border-color: rgba(143, 63, 77, 0.48);
  box-shadow: 0 0 0 4px rgba(143, 63, 77, 0.12);
}

.search-field {
  display: block;
  position: relative;
}

.search-field i,
.search-field svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 19px;
  height: 19px;
  color: rgba(33, 21, 21, 0.46);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-field input {
  padding-left: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(41, 21, 22, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(244, 217, 149, 0.2), transparent 45%, rgba(15, 118, 110, 0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card:hover {
  border-color: rgba(143, 63, 77, 0.22);
  box-shadow: 0 26px 60px rgba(41, 21, 22, 0.14);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background: #f8efe4;
}

.product-link {
  color: inherit;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(33, 21, 21, 0) 58%, rgba(33, 21, 21, 0.12)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  filter: none;
  transition: transform 0.4s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.045);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: #fff7e8;
  background: rgba(33, 21, 21, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.product-info {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 17px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: rgba(33, 21, 21, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-name {
  min-height: 56px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 28px);
  line-height: 1.05;
  letter-spacing: 0;
}

.product-name a:hover {
  color: var(--wine);
}

.product-description {
  min-height: 62px;
  margin: 0;
  color: rgba(33, 21, 21, 0.66);
  font-size: 14px;
  line-height: 1.48;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.price-block {
  display: grid;
  gap: 4px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--ink);
}

.price-main strong {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.price-main span {
  color: rgba(33, 21, 21, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.price-pix {
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: center;
  cursor: auto;
}

.product-actions .primary-button {
  min-width: 0;
  padding: 0 12px;
  font-size: 14px;
}

.add-button {
  position: relative;
  overflow: hidden;
}

.add-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-110%);
}

.add-button.is-adding::after {
  animation: buttonSheen 0.7s ease;
}

.add-button.is-added {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.22);
}

.button-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 247, 232, 0.38);
  border-top-color: #fff7e8;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.product-actions .whatsapp-button {
  width: 44px;
  padding: 0;
}

.catalog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.pagination-button,
.pagination-gap {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  place-items: center;
  padding: 0 12px;
  color: rgba(33, 21, 21, 0.78);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(65, 35, 35, 0.13);
  border-radius: 999px;
  font-weight: 900;
}

.pagination-button.active {
  color: #fff7e8;
  background: linear-gradient(135deg, var(--wine), #2b1717);
  box-shadow: 0 12px 28px rgba(64, 20, 29, 0.2);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.pagination-gap {
  background: transparent;
  border-color: transparent;
}

.product-page {
  min-height: calc(100vh - 86px);
  background:
    radial-gradient(circle at 12% 16%, rgba(213, 168, 95, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 250, 242, 0.98), rgba(247, 237, 224, 0.94));
}

.product-page-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
}

.detail-media {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 217, 149, 0.48), transparent 48%),
    linear-gradient(135deg, #3a1a22, #8f3f4d);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 24px 58px rgba(41, 21, 22, 0.18);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content {
  display: grid;
  gap: 18px;
}

.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-brand {
  margin: 0;
  color: var(--rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
}

.detail-description {
  margin: 0;
  max-width: 680px;
  color: rgba(33, 21, 21, 0.72);
  font-size: 17px;
  line-height: 1.7;
}

.detail-price-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-price-panel > div {
  display: grid;
  gap: 5px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
}

.detail-price-panel span,
.detail-price-panel small {
  color: rgba(33, 21, 21, 0.58);
  font-size: 13px;
  font-weight: 800;
}

.detail-price-panel strong {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.detail-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-specs span {
  padding: 8px 11px;
  color: rgba(33, 21, 21, 0.76);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(65, 35, 35, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-whatsapp {
  min-width: 210px;
}

.cart-button.cart-pulse,
.mobile-cart-fab.cart-pulse {
  animation: cartPulse 0.62s ease;
}

.fly-product {
  position: fixed;
  z-index: 300;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 18px 38px rgba(33, 21, 21, 0.28);
}

@keyframes buttonSheen {
  to {
    transform: translateX(110%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cartPulse {
  0%,
  100% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.12);
    box-shadow: 0 16px 38px rgba(213, 168, 95, 0.38);
  }
}

.checkout-band {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.88), rgba(247, 237, 224, 0.94)),
    linear-gradient(120deg, rgba(15, 118, 110, 0.14), transparent 46%, rgba(143, 63, 77, 0.12));
  border-top: 1px solid rgba(65, 35, 35, 0.1);
  border-bottom: 1px solid rgba(65, 35, 35, 0.1);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: start;
}

.checkout-form,
.summary-panel,
.cart-drawer,
.modal-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 22px 55px rgba(41, 21, 22, 0.1);
}

.checkout-form,
.summary-panel {
  padding: clamp(18px, 3vw, 28px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row-full {
  grid-column: 1 / -1;
}

.field-label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: rgba(33, 21, 21, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.checkout-step {
  display: grid;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid rgba(65, 35, 35, 0.1);
}

.checkout-step:first-child {
  padding-top: 0;
  border-top: 0;
}

.step-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0;
}

.payment-toggle,
.shipping-options,
.cart-lines,
.summary-lines,
.order-list {
  display: grid;
  gap: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: rgba(65, 35, 35, 0.06);
  border-radius: 999px;
}

.segment {
  min-height: 42px;
  color: rgba(33, 21, 21, 0.72);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.segment.active {
  color: #fff7e8;
  background: linear-gradient(135deg, var(--wine), #2b1717);
  box-shadow: 0 10px 24px rgba(64, 20, 29, 0.18);
}

.shipping-option {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
}

.shipping-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.shipping-title {
  font-weight: 900;
}

.shipping-sub {
  color: rgba(33, 21, 21, 0.58);
  font-size: 13px;
}

.summary-panel {
  position: sticky;
  top: 96px;
}

.summary-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1;
}

.summary-item,
.cart-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
}

.summary-item img,
.cart-line img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: var(--ink-2);
  border-radius: var(--radius);
}

.line-name {
  margin: 0;
  font-weight: 900;
  line-height: 1.2;
}

.line-meta {
  color: rgba(33, 21, 21, 0.58);
  font-size: 13px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  background: rgba(65, 35, 35, 0.08);
  border: 0;
  border-radius: 50%;
}

.summary-total {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(65, 35, 35, 0.12);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.summary-row.total {
  align-items: baseline;
  font-size: 22px;
  font-weight: 950;
}

.pix-box {
  display: none;
  margin-top: 12px;
  padding: 12px;
  color: var(--teal-dark);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius);
  font-weight: 800;
  word-break: break-word;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: rgba(30, 15, 18, 0.54);
  backdrop-filter: blur(7px);
}

.cart-overlay.open {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 18px;
  transform: translateX(104%);
  transition: transform 0.28s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}

.drawer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
}

.drawer-body {
  overflow: auto;
  padding-right: 4px;
}

.drawer-footer {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(65, 35, 35, 0.12);
}

.floating-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 58px;
  height: 58px;
  color: white;
  background: linear-gradient(135deg, #25d366, #128c7e);
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(37, 211, 102, 0.36);
  isolation: isolate;
}

.floating-whatsapp::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  background: rgba(37, 211, 102, 0.2);
  border-radius: 50%;
  animation: whatsappPulse 1.8s ease-out infinite;
}

@keyframes whatsappPulse {
  0% {
    transform: scale(0.88);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.38);
    opacity: 0;
  }
}

.mobile-cart-fab {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 220;
  display: inline-grid !important;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #fff7e8;
  background: linear-gradient(135deg, var(--wine), #2b1717);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(64, 20, 29, 0.26);
  padding: 0;
}

.mobile-cart-fab span {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  color: #2b1717;
  background: var(--gold-2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

@media (min-width: 561px) {
  .mobile-cart-fab {
    display: none !important;
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 110;
  max-width: min(92vw, 540px);
  padding: 12px 16px;
  color: #fff7e8;
  background: rgba(33, 21, 21, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translate(-50%, 120px);
  opacity: 0;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.empty-state {
  padding: 28px;
  color: rgba(33, 21, 21, 0.62);
  text-align: center;
  background: rgba(255, 255, 255, 0.56);
  border: 1px dashed rgba(65, 35, 35, 0.2);
  border-radius: var(--radius);
}

.admin-page {
  min-height: 100vh;
  padding: clamp(22px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(247, 237, 224, 0.9)),
    radial-gradient(circle at 82% 12%, rgba(15, 118, 110, 0.16), transparent 28%);
}

.admin-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
}

.admin-panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(65, 35, 35, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(41, 21, 22, 0.08);
}

.admin-panel h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-section {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(65, 35, 35, 0.1);
}

.admin-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--wine);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.orders-table th,
.orders-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(65, 35, 35, 0.1);
  text-align: left;
  vertical-align: top;
}

.orders-table th {
  color: rgba(33, 21, 21, 0.58);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-panel {
  width: min(430px, 100%);
  margin: 10vh auto 0;
  padding: 28px;
}

@media (max-width: 1120px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-showcase {
    min-height: 470px;
  }
}

@media (max-width: 840px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-actions .nav-link {
    display: none;
  }

  .brand-subtitle {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(52px, 16vw, 86px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .catalog-tools,
  .checkout-layout,
  .product-page-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .catalog-tools-compact {
    justify-content: stretch;
  }

  .summary-panel {
    position: static;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 14px;
    gap: 10px;
  }

  .site-header .nav-actions {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .nav-actions .whatsapp-button {
    display: none;
  }

  .brand-logo-wrap {
    width: 48px;
    height: 48px;
  }

  .header-search-panel {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    grid-template-columns: minmax(0, 1fr) 42px;
    width: auto;
  }

  .brand-mark {
    max-width: calc(100vw - 86px);
  }

  .brand-name {
    max-width: calc(100vw - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cart-button span:not(.cart-count) {
    display: none;
  }

  .cart-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .cart-button .cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
  }

  .mobile-cart-fab {
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 220;
    display: inline-grid !important;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #fff7e8;
    background: linear-gradient(135deg, var(--wine), #2b1717);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(64, 20, 29, 0.26);
    padding: 0;
  }

  .mobile-cart-fab span {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    min-width: 22px;
    height: 22px;
    place-items: center;
    padding: 0 6px;
    color: #2b1717;
    background: var(--gold-2);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
  }

  .hero,
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.8vw, 44px);
    line-height: 0.98;
    overflow-wrap: normal;
  }

  .hero-lede {
    max-width: calc(100vw - 28px);
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .hero-showcase {
    min-height: 380px;
  }

  .bottle-stage {
    height: 410px;
  }

  .products-grid,
  .form-grid,
  .detail-price-panel {
    grid-template-columns: 1fr;
  }

  .product-page {
    padding-top: 28px;
  }

  .detail-title {
    font-size: clamp(38px, 12vw, 58px);
  }

  .detail-description {
    font-size: 15px;
  }

  .detail-actions .primary-button,
  .detail-actions .whatsapp-button {
    width: 100%;
  }

  .product-name,
  .product-description {
    min-height: auto;
  }

  .product-actions {
    grid-template-columns: 1fr 44px;
  }

  .segmented {
    border-radius: var(--radius);
  }

  .segment {
    border-radius: 6px;
    font-size: 14px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}
