:root {
  --yellow: #c9a0dc;
  --yellow-strong: #a779bf;
  --cream: #fffbed;
  --white: #fffefd;
  --peach: #f5c5b4;
  --peach-soft: #ffe8df;
  --brown: #3d3024;
  --brown-soft: #7c6a58;
  --line: rgba(96, 73, 42, 0.14);
  --shadow: 0 18px 42px rgba(91, 70, 38, 0.1);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

button,
input,
textarea {
  font: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--brown);
  background:
    radial-gradient(circle at top left, rgba(201, 160, 220, 0.42), transparent 24rem),
    linear-gradient(180deg, var(--white), var(--cream) 52%, var(--white));
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f4ead4;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 253, 0.88);
  backdrop-filter: blur(18px);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
}

.brand,
.nav-links,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.55rem;
  line-height: 1;
}

.brand-logo-text {
  display: block;
  color: #050505;
  font-family: Parisienne, "Brush Script MT", cursive;
  font-size: 2.55rem;
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  order: 3;
  width: 100%;
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding-top: 0.2rem;
  color: var(--brown-soft);
  font-size: 0.94rem;
  font-weight: 700;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(201, 160, 220, 0.18);
}

.header-action,
.cart-toggle,
.button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 900;
}

.header-action {
  padding: 0 0.9rem;
  color: #3f2848;
  background: var(--yellow);
  font-size: 0.84rem;
}

.cart-toggle {
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid rgba(167, 121, 191, 0.24);
  color: #3f2848;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 0.84rem;
}

.cart-count {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  margin-left: 0.35rem;
  border-radius: 999px;
  color: var(--white);
  background: #8a5a9c;
  font-size: 0.72rem;
}

.button {
  padding: 0 1.25rem;
  font-size: 0.95rem;
}

.button.primary,
.button.small,
.mini-button {
  color: #3f2848;
  background: var(--yellow);
  box-shadow: 0 12px 26px rgba(201, 160, 220, 0.22);
}

.button:disabled,
.mini-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.button.small {
  width: fit-content;
  min-height: 42px;
  padding: 0 1rem;
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: 1.25rem 1rem 3rem;
}

.hero-copy {
  order: 2;
}

.hero-media {
  order: 1;
  min-height: 21rem;
  overflow: hidden;
  border-radius: 0 0 5rem 5rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #8a5a9c;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 42rem;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 13vw, 6.8rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.1rem, 9vw, 4.2rem);
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.18rem;
}

.hero-copy > p,
.section-heading,
.category-copy p,
.contact-band p,
.site-footer p {
  color: var(--brown-soft);
  line-height: 1.65;
}

.hero-copy > p {
  max-width: 35rem;
  font-size: 1.05rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.shop-section,
.featured-section,
.collections-section,
.contact-band {
  padding: 3.5rem 1rem;
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 1.35rem;
}

.section-heading.centered {
  text-align: left;
}

.category-grid,
.product-grid {
  display: grid;
  gap: 1rem;
}

.category-card,
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 253, 0.88);
  box-shadow: var(--shadow);
}

.category-card {
  display: grid;
}

.category-image {
  min-height: 16rem;
  aspect-ratio: 1 / 0.78;
}

.category-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem;
}

.category-copy p {
  margin-bottom: 0.55rem;
}

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

.product-card {
  border-radius: 20px;
}

.product-card.is-sold-out .product-image img {
  filter: saturate(0.72);
}

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

.gallery-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 260ms ease;
  touch-action: pan-y;
}

.product-image-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-image-open:focus-visible {
  outline: 3px solid rgba(155, 88, 186, 0.62);
  outline-offset: -5px;
}

.gallery-track > img,
.gallery-track > .image-fallback {
  flex: 0 0 100%;
}

.gallery-track > img[src*="material-details"],
.gallery-track > img[src*="size-chart"] {
  object-fit: contain;
  background: #fffaf3;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--brown);
  background: rgba(255, 254, 253, 0.82);
  box-shadow: 0 8px 18px rgba(61, 48, 36, 0.14);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow.previous {
  left: 0.55rem;
}

.gallery-arrow.next {
  right: 0.55rem;
}

.gallery-dots {
  position: absolute;
  left: 50%;
  bottom: 0.55rem;
  z-index: 2;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
}

.gallery-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 254, 253, 0.72);
  cursor: pointer;
}

.gallery-dot.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--yellow);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(61, 48, 36, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.product-info {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
}

.product-info h3 {
  min-height: 2.9rem;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.product-info p {
  margin: 0;
  color: #8a5a9c;
  font-weight: 900;
}

.product-info .product-status-text,
.product-modal-status {
  width: fit-content;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  color: #5e3a6a;
  background: rgba(201, 160, 220, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-button {
  min-height: 38px;
  padding: 0 0.95rem;
  border: 0;
  font-size: 0.84rem;
  cursor: pointer;
}

.collections-section {
  background: rgba(255, 254, 253, 0.62);
}

.collection-block {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.collection-heading {
  display: grid;
  gap: 0.5rem;
}

.collection-heading h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 5vw, 3rem);
  line-height: 1.05;
}

.collection-heading p {
  max-width: 34rem;
  margin: 0;
  color: var(--brown-soft);
  line-height: 1.65;
}

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

.empty-category {
  grid-column: 1 / -1;
  padding: 1.2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 253, 0.82);
}

.empty-category h3 {
  margin-bottom: 0.35rem;
}

.empty-category p {
  margin: 0;
  color: var(--brown-soft);
  line-height: 1.6;
}

.contact-band {
  display: grid;
  gap: 1.35rem;
  color: var(--brown);
  background: linear-gradient(135deg, rgba(201, 160, 220, 0.86), var(--peach-soft));
}

.contact-band p {
  max-width: 35rem;
  margin-bottom: 0;
}

.site-footer {
  display: grid;
  gap: 1.1rem;
  padding: 2rem 1rem;
  color: rgba(255, 248, 232, 0.78);
  background: var(--brown);
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 900;
}

.footer-links {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 248, 232, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 800;
}

.image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: inherit;
  place-items: center;
  padding: 1.2rem;
  color: #5f3d6c;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(201, 160, 220, 0.5), rgba(255, 232, 223, 0.68)),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(201, 160, 220, 0.12) 14px 15px);
}

.image-fallback span {
  max-width: 13rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.4rem, 7vw, 2.6rem);
  line-height: 1.05;
}

.product-modal[hidden] {
  display: none;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 48, 36, 0.5);
  backdrop-filter: blur(10px);
}

.product-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(62rem, 100%);
  max-height: min(92vh, 52rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 28px 80px rgba(61, 48, 36, 0.28);
}

.product-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--brown);
  background: rgba(255, 254, 253, 0.9);
  box-shadow: 0 10px 24px rgba(61, 48, 36, 0.15);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.product-modal-gallery {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  aspect-ratio: 1 / 1.16;
  background: #fffaf3;
}

.product-modal-gallery .gallery-track > img {
  object-fit: contain;
  background: #fffaf3;
}

.product-modal-info {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  min-width: 0;
  padding: 1.25rem;
}

.product-modal-info h2 {
  overflow-wrap: break-word;
  font-size: 2.15rem;
}

.product-modal-price {
  margin: 0;
  color: #8a5a9c;
  font-size: 1.35rem;
  font-weight: 900;
}

.product-modal-status {
  margin: -0.2rem 0 0;
}

.product-modal-description {
  margin: 0;
  color: var(--brown-soft);
  line-height: 1.65;
}

.product-modal-whatsapp {
  width: fit-content;
  margin-top: 0.35rem;
}

.cart-panel[hidden] {
  display: none;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(61, 48, 36, 0.46);
  backdrop-filter: blur(8px);
}

.cart-drawer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  width: min(28rem, 100%);
  height: 100%;
  padding: 1.1rem;
  overflow: auto;
  background: var(--white);
  box-shadow: -24px 0 70px rgba(61, 48, 36, 0.2);
}

.cart-close {
  justify-self: end;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--brown);
  background: rgba(201, 160, 220, 0.18);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
}

.cart-heading {
  padding-bottom: 1rem;
}

.cart-heading h2 {
  font-size: clamp(2rem, 9vw, 3.4rem);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 0.8rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 251, 237, 0.68);
}

.cart-item img {
  width: 5.5rem;
  height: 6.4rem;
  border-radius: 14px;
}

.cart-item-info {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

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

.cart-item-info h3 {
  font-size: 0.98rem;
  line-height: 1.3;
}

.cart-item-info p,
.cart-total {
  color: #8a5a9c;
  font-weight: 900;
}

.cart-item-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.cart-item-controls button {
  min-width: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  color: #3f2848;
  background: rgba(201, 160, 220, 0.28);
  cursor: pointer;
  font-weight: 900;
}

.cart-item-controls span {
  min-width: 1.8rem;
  text-align: center;
  font-weight: 900;
}

.cart-item-controls .cart-remove {
  padding: 0 0.75rem;
  color: var(--brown-soft);
  background: rgba(255, 255, 255, 0.72);
}

.cart-empty {
  margin: 0;
  color: var(--brown-soft);
  line-height: 1.6;
}

.cart-footer {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cart-total {
  margin: 0;
  font-size: 1.1rem;
}

.cart-whatsapp {
  width: 100%;
}

.cart-whatsapp.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cart-notice[hidden] {
  display: none;
}

.cart-notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #3f2848;
  background: var(--white);
  box-shadow: 0 18px 42px rgba(61, 48, 36, 0.18);
  font-weight: 900;
}

@media (min-width: 720px) {
  .site-header {
    flex-wrap: nowrap;
    padding: 1rem 2rem;
  }

  .nav-links {
    order: initial;
    width: auto;
    overflow: visible;
    padding-top: 0;
  }

  .nav-links a {
    min-height: auto;
    padding: 0;
    background: transparent;
  }

  .hero,
  .shop-section,
  .featured-section,
  .collections-section,
  .contact-band,
  .site-footer {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
    align-items: center;
    gap: 2rem;
    min-height: calc(100vh - 4.5rem);
    padding-top: 2rem;
  }

  .hero-copy,
  .hero-media {
    order: initial;
  }

  .hero-media {
    min-height: 34rem;
    border-radius: 0 0 8rem 8rem;
  }

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

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

  .collection-block {
    grid-template-columns: 0.72fr 1fr;
    align-items: start;
    gap: 1.5rem;
    padding: 2rem 0;
  }

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

  .section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .contact-band,
  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .product-modal-panel {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.82fr);
  }

  .product-modal-gallery {
    min-height: 0;
    height: min(70vh, 34rem);
    aspect-ratio: auto;
  }

  .product-modal-info {
    padding: 2rem;
  }

  .product-modal-info h2 {
    font-size: 2.45rem;
  }
}

@media (min-width: 1080px) {
  .site-header,
  .hero,
  .shop-section,
  .featured-section,
  .collections-section,
  .contact-band,
  .site-footer {
    padding-left: 4rem;
    padding-right: 4rem;
  }

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