:root {
  --orange: #eb7a19;
  --orange-dark: #d96508;
  --ink: #1f1f1f;
  --muted: #666;
  --line: #e5e5e5;
  --soft: #f6f6f6;
  --cream: #f7efd8;
  --white: #fff;
  --green: #28b750;
  --gold: #c89a32;
  --rose: #d85f76;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

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

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 7px 18px;
  color: #555;
  font-size: 12px;
}

.store-header {
  display: grid;
  grid-template-columns: auto 160px 1fr auto auto;
  align-items: center;
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 18px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

.brand img {
  display: block;
  width: 128px;
  height: 54px;
  object-fit: contain;
}

.search-box {
  display: flex;
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.search-box input {
  min-width: 0;
  flex: 1;
  padding: 0 12px;
  border: 0;
}

.search-box button {
  width: 44px;
  color: var(--orange);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 22px;
}

.account-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.mobile-account-button {
  display: none;
  height: 38px;
  padding: 0 12px;
  color: var(--white);
  background: #191715;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 15px;
  color: var(--white);
  background: #191715;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.cart-button strong {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--gold);
  border-radius: 50%;
}

.category-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 12px 18px;
  color: var(--white);
  background: #080808;
  font-size: 13px;
  font-weight: 700;
}

.promo-hero {
  position: relative;
  display: block;
  min-height: 340px;
  overflow: hidden;
  background: #f2dd99;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  color: #777;
  background: var(--white);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 28px;
}

.hero-arrow-left {
  left: clamp(18px, 4vw, 68px);
}

.hero-arrow-right {
  right: clamp(18px, 4vw, 68px);
}

.promo-track {
  position: relative;
  min-height: 340px;
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding: 18px clamp(82px, 9vw, 142px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.promo-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.royal-slide {
  background: linear-gradient(110deg, #f7df88, #fff0ba 46%, #c6942a);
}

.angel-slide {
  background: linear-gradient(110deg, #eef2ff, #f8faff 48%, #aeb9d8);
}

.angel-slide .promo-copy p {
  color: #6574b8;
}

.angel-slide .promo-copy span {
  color: #4f5f9e;
}

.angel-slide .promo-copy h1 {
  color: #ffffff;
  text-shadow: 0 8px 28px rgba(86, 99, 166, 0.28);
}

.lattafa-slide {
  background: linear-gradient(110deg, #f7e7db, #fff4eb 46%, #7d1522);
}

.promo-copy {
  z-index: 2;
}

.promo-copy p {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 20px;
  font-weight: 700;
}

.promo-copy h1 {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 6px 24px rgba(90, 60, 24, 0.18);
}

.promo-copy span {
  display: block;
  max-width: 500px;
  margin-top: 20px;
  color: #bc5c32;
  font-size: 20px;
  line-height: 1.35;
}

.promo-products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  min-width: 0;
}

.promo-products img {
  display: block;
  max-width: min(42vw, 520px);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.18));
}

.promo-products img + img {
  max-width: 230px;
}

.royal-products {
  position: relative;
  min-height: 318px;
}

.royal-products .hero-box {
  max-width: min(40vw, 520px);
}

.royal-products .hero-bottle {
  width: min(18vw, 210px);
  margin-left: -130px;
  align-self: end;
}

.single-product img {
  max-width: min(40vw, 430px);
  max-height: 300px;
}

.lattafa-slide .single-product img {
  max-height: 320px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 14px auto 10px;
  gap: 28px;
  padding: 0 18px;
  text-align: center;
}

.trust-strip article {
  display: grid;
  gap: 3px;
}

.trust-strip strong {
  font-size: 14px;
}

.trust-strip span {
  color: #7468d8;
  font-size: 12px;
}

.product-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 18px 54px;
}

.product-section h2 {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 500;
}

.title-line {
  width: 54px;
  height: 1px;
  margin: 8px auto 16px;
  background: #cfcfcf;
}

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

.commerce-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.commerce-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.card-media {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  background: #f1ede7;
  cursor: pointer;
}

.card-media.placeholder {
  color: var(--white);
  background: linear-gradient(145deg, #70474f, #b07c35);
  text-align: center;
}

.card-media.placeholder span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.card-media.placeholder strong {
  max-width: 10ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

.product-photo {
  width: 100%;
  height: 300px;
  object-fit: contain;
  padding: 24px;
}

.product-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 5px 8px;
  color: var(--orange-dark);
  background: #ffe7c8;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.magnifier {
  position: absolute;
  right: 16px;
  bottom: 54px;
  width: 40px;
  height: 40px;
  background: rgba(30, 30, 30, 0.78);
  border-radius: 50%;
}

.magnifier::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 13px;
  height: 13px;
  content: "";
  border: 2px solid #fff;
  border-radius: 50%;
}

.magnifier::after {
  position: absolute;
  top: 25px;
  left: 25px;
  width: 9px;
  height: 2px;
  content: "";
  background: #fff;
  transform: rotate(45deg);
}

.card-thumbs {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}

.card-thumbs button {
  width: 42px;
  height: 42px;
  padding: 4px;
  background: #f1ede7;
  border: 1px solid rgba(201, 154, 50, 0.35);
  border-radius: 50%;
  cursor: pointer;
}

.card-thumbs button.is-active {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(216, 95, 118, 0.15);
}

.card-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-body {
  display: grid;
  gap: 6px;
  padding: 14px 12px 12px;
  text-align: center;
}

.card-body h3 {
  min-height: 38px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}

.rating {
  color: #ffb300;
  font-size: 14px;
  letter-spacing: 0;
}

.price {
  font-size: 15px;
}

.installment {
  color: var(--muted);
  font-size: 12px;
}

.buy-button {
  height: 32px;
  color: var(--white);
  background: var(--orange);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.instagram-band {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 130px;
  color: var(--white);
  background: #111;
  text-align: center;
}

.instagram-band span {
  width: 34px;
  height: 34px;
  border: 2px solid var(--white);
  border-radius: 50%;
  font-size: 0;
}

.site-footer {
  background: #f8f8f8;
}

.footer-brand,
.newsletter,
.footer-columns {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
}

.footer-brand img {
  width: 120px;
  height: 50px;
  object-fit: contain;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 18px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.newsletter div {
  display: grid;
  grid-template-columns: 1fr 1fr 58px;
  gap: 8px;
}

.newsletter input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d4d4d4;
}

.newsletter button {
  color: var(--white);
  background: #111;
  border: 0;
  cursor: pointer;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  color: #555;
  font-size: 13px;
}

.footer-columns h3 {
  color: var(--ink);
  font-size: 14px;
}

.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: flex;
  width: min(420px, 100%);
  transform: translateX(100%);
  flex-direction: column;
  background: var(--white);
  box-shadow: -18px 0 60px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.cart-header button,
.viewer-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 18px;
}

.cart-empty {
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-product-photo,
.cart-monogram {
  width: 62px;
  height: 74px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.cart-product-photo {
  object-fit: contain;
  padding: 5px;
}

.cart-monogram {
  display: grid;
  place-items: center;
  color: var(--white);
  background: #222;
  font-weight: 900;
}

.cart-item h3,
.cart-item p {
  margin: 0;
}

.cart-item h3 {
  font-size: 15px;
}

.cart-item p {
  color: var(--muted);
  font-size: 13px;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
  font-size: 20px;
}

.cart-footer {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.cart-footer > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cart-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.cart-status.is-error {
  color: #b3261e;
}

.cart-status.is-success {
  color: #2f6d45;
}

.cart-footer button {
  width: 100%;
  height: 48px;
  color: var(--white);
  background: #4d755b;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.32);
}

body.cart-open .scrim {
  display: block;
}

body.auth-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(32, 27, 24, 0.5);
}

.auth-modal.is-open {
  display: grid;
}

.auth-shell {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(430px, 100%);
  padding: 26px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.auth-shell h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 500;
}

.auth-helper {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-helper.is-error {
  color: #b3261e;
}

.auth-helper.is-success {
  color: #2f6d45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: #f1ede7;
  border-radius: 6px;
}

.auth-tabs button {
  height: 38px;
  border: 0;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 800;
}

.auth-tabs button.is-active {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: #333;
  font-size: 13px;
  font-weight: 800;
}

.auth-form input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d4d4d4;
  border-radius: 4px;
}

.auth-form button,
.auth-session button {
  height: 44px;
  color: var(--white);
  background: #111;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.auth-session {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #f5f1ea;
  border: 1px solid var(--line);
  border-radius: 8px;
}

body.viewer-open {
  overflow: hidden;
}

.product-viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: clamp(16px, 4vw, 44px);
  background: rgba(32, 27, 24, 0.58);
}

.product-viewer.is-open {
  display: grid;
  place-items: center;
}

.viewer-shell {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(320px, 560px) minmax(260px, 360px);
  gap: 22px;
  width: min(1080px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.viewer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.viewer-thumbs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.viewer-thumbs button {
  width: 82px;
  height: 92px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.viewer-thumbs button.is-active {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(216, 95, 118, 0.16);
}

.viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer-media {
  position: relative;
  min-height: min(68vh, 620px);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}

.viewer-media img {
  width: 100%;
  height: 100%;
  min-height: min(68vh, 620px);
  object-fit: contain;
  padding: clamp(18px, 3vw, 36px);
}

.viewer-media::after {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 180px;
  height: 180px;
  content: "";
  background-image: var(--zoom-image);
  background-repeat: no-repeat;
  background-position: var(--zoom-x, 50%) var(--zoom-y, 50%);
  background-size: 240%;
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 18px 42px rgba(32, 27, 24, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.86);
  transition: opacity 160ms ease, transform 160ms ease;
}

.viewer-media:hover::after {
  opacity: 1;
  transform: scale(1);
}

.viewer-details {
  align-self: center;
  padding-right: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.viewer-details h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1;
}

.viewer-details p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.viewer-note-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.viewer-note-grid article {
  padding: 13px 14px;
  background: #f5f1ea;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.viewer-note-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.viewer-note-grid strong {
  color: var(--ink);
  font-size: 15px;
}

.viewer-details > strong {
  display: block;
  margin: 18px 0;
  color: #4d755b;
  font-size: 24px;
}

.viewer-details button {
  min-height: 48px;
  padding: 0 18px;
  color: var(--white);
  background: #111;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 25;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-weight: 900;
}

.payment-result {
  display: grid;
  min-height: 100vh;
  place-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.payment-result img {
  width: 150px;
  margin: 0 auto;
}

.payment-result h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 7vw, 68px);
  font-weight: 500;
}

.payment-result p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}

.payment-result a {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  margin: 10px auto 0;
  padding: 0 22px;
  color: var(--white);
  background: #111;
  border-radius: 999px;
  font-weight: 900;
}

@media (max-width: 920px) {
  .utility-bar,
  .account-button,
  .category-nav {
    display: none;
  }

  .store-header {
    grid-template-columns: 38px 82px 1fr auto 48px;
    gap: 8px;
    padding: 8px 12px;
  }

  .menu-button {
    display: block;
  }

  .brand img {
    width: 72px;
    height: 42px;
  }

  .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .cart-button span {
    display: none;
  }

  .mobile-account-button {
    display: block;
  }

  .promo-hero {
    min-height: 230px;
  }

  .hero-arrow {
    display: none;
  }

  .promo-track {
    min-height: 230px;
  }

  .promo-slide {
    grid-template-columns: 1fr;
    padding: 16px 18px;
  }

  .promo-copy {
    width: min(260px, 100%);
  }

  .promo-copy p {
    font-size: 13px;
  }

  .promo-copy h1 {
    font-size: 28px;
  }

  .promo-copy span {
    font-size: 13px;
  }

  .promo-products {
    position: absolute;
    right: -80px;
    bottom: 6px;
    opacity: 0.42;
  }

  .promo-products img {
    max-height: 190px;
  }

  .royal-products {
    min-height: 190px;
  }

  .royal-products .hero-box,
  .royal-products .hero-bottle,
  .single-product img,
  .lattafa-slide .single-product img {
    max-width: 280px;
    max-height: 190px;
  }

  .royal-products .hero-bottle {
    width: 110px;
    margin-left: -96px;
  }

  .promo-products img + img {
    display: none;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin: 14px auto;
    gap: 0;
    text-align: left;
  }

  .trust-strip article {
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }

  .commerce-grid,
  .commerce-grid.compact {
    grid-template-columns: 1fr;
  }

  .product-section h2 {
    font-size: 24px;
  }

  .card-media {
    min-height: 300px;
  }

  .footer-brand,
  .newsletter,
  .footer-columns {
    text-align: center;
  }

  .newsletter,
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .newsletter div {
    grid-template-columns: 1fr;
  }

  .newsletter button {
    height: 34px;
  }

  .viewer-shell {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .viewer-details {
    grid-column: 1 / -1;
    padding-right: 0;
  }
}

@media (max-width: 620px) {
  .product-viewer {
    padding: 10px;
  }

  .viewer-shell {
    grid-template-columns: 1fr;
    max-height: 94vh;
    padding: 14px;
  }

  .viewer-thumbs {
    display: flex;
    order: 2;
    overflow-x: auto;
  }

  .viewer-media {
    order: 1;
  }

  .viewer-details {
    order: 3;
  }

  .viewer-media,
  .viewer-media img {
    min-height: 420px;
  }

  .viewer-media::after {
    width: 128px;
    height: 128px;
  }
}
