:root {
  color-scheme: light;
  --cream: #fff8f3;
  --porcelain: #fffdfb;
  --rose: #c94f67;
  --rose-dark: #8f2943;
  --berry: #5c1731;
  --cocoa: #2f1f1d;
  --sage: #62735d;
  --gold: #c69a4b;
  --ink: #221a18;
  --muted: #766762;
  --line: rgba(92, 23, 49, 0.14);
  --shadow: 0 24px 70px rgba(47, 31, 29, 0.16);
  --radius: 8px;
  --header-h: 96px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(201, 79, 103, 0.12), transparent 30rem),
    linear-gradient(180deg, #fff8f3 0%, #fffdfb 42%, #fff5ef 100%);
}

body.locked {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--berry);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 5vw;
  background: rgba(255, 253, 251, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.main-nav,
.hero-actions,
.trust-list,
.footer-actions,
.floating-actions,
.cart-header,
.cart-line-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.7rem;
  font-weight: 800;
  color: var(--berry);
}

.brand img {
  width: clamp(72px, 7vw, 88px);
  height: clamp(72px, 7vw, 88px);
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  filter: drop-shadow(0 10px 18px rgba(143, 41, 67, 0.14));
}

.site-footer img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 10px 26px rgba(143, 41, 67, 0.16);
}

.main-nav {
  gap: clamp(0.8rem, 2vw, 1.7rem);
  color: var(--muted);
  font-size: 0.96rem;
}

.main-nav a:hover {
  color: var(--rose-dark);
}

.icon-button {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--berry);
  display: inline-grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(47, 31, 29, 0.08);
}

.cart-trigger {
  position: relative;
}

.cart-trigger svg,
.floating-actions svg {
  width: 20px;
  height: 20px;
}

.cart-trigger strong {
  position: absolute;
  right: -0.35rem;
  top: -0.35rem;
  min-width: 1.3rem;
  height: 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
}

.section-band {
  width: min(1180px, 90vw);
  margin: 0 auto;
}

.section-narrow {
  width: min(940px, 90vw);
  margin: 0 auto;
}

.hero {
  min-height: calc(100svh - var(--header-h));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.4rem, 6vw, 5rem) 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--rose-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--cocoa);
  line-height: 1.03;
}

h1 {
  font-size: 6.45rem;
  font-weight: 900;
  white-space: nowrap;
}

h2 {
  font-size: 3.35rem;
  font-weight: 850;
}

h3 {
  font-size: 1.14rem;
}

.hero-subtitle {
  margin: 1rem 0 0;
  max-width: 700px;
  font-size: 2.18rem;
  line-height: 1.16;
  color: var(--berry);
  font-weight: 760;
}

.hero-text,
.intro p,
.section-heading p,
.steps p,
.site-footer p,
.modal-info p,
.cart-note {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 670px;
  margin: 1.3rem 0 0;
  font-size: 1.06rem;
}

.hero-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.86rem 1.2rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.icon-button:hover,
.floating-actions a:hover,
.floating-actions button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--berry);
  color: #fff;
  box-shadow: 0 16px 32px rgba(92, 23, 49, 0.22);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--berry);
  border-color: var(--line);
}

.trust-list {
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.trust-list span {
  padding: 0.62rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  color: var(--sage);
  font-size: 0.92rem;
  font-weight: 750;
}

.hero-media {
  position: relative;
  isolation: isolate;
}

.hero-media video {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  background: #f7e8df;
}

.media-note {
  position: absolute;
  left: -1.2rem;
  bottom: 1.2rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(47, 31, 29, 0.14);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--berry);
}

.intro {
  padding: clamp(3rem, 7vw, 6rem) 0;
  text-align: center;
}

.intro p {
  margin: 1rem auto 0;
  max-width: 760px;
  font-size: 1.08rem;
}

.catalog {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.6rem;
}

.section-heading p {
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.5vw, 1rem);
}

.catalog-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.catalog-page-main {
  min-height: 70vh;
}

.catalog-page-hero {
  padding-top: clamp(3rem, 8vw, 7rem);
  padding-bottom: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.catalog-page-hero h1 {
  margin: 0.35rem 0 1rem;
}

.catalog-page-hero p:last-child {
  max-width: 720px;
  margin: 0 auto;
}

.catalog-page .catalog {
  padding-top: 1rem;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 251, 0.82);
  box-shadow: 0 18px 42px rgba(47, 31, 29, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform: scale(var(--photo-zoom, 1));
  background: #fff;
}

.product-image-button {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: inherit;
  overflow: hidden;
}

.product-image-button img {
  transition: transform 220ms ease;
}

.product-image-button:hover img {
  filter: saturate(1.04) brightness(1.02);
}

.product-body {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  padding: 0.8rem;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link h3 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.15;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-body .product-price {
  margin-top: auto;
  font-size: 0.95rem;
}

.product-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0.45rem;
  margin-top: 0.25rem;
}

.product-actions .button {
  width: 100%;
  min-height: 38px;
  padding: 0.55rem 0.45rem;
  font-size: 0.76rem;
  line-height: 1.15;
  text-align: center;
}

.product-detail-main {
  min-height: 72vh;
  padding-top: clamp(2rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.detail-back {
  display: inline-flex;
  margin-bottom: 1.25rem;
  color: var(--berry);
  font-weight: 850;
  text-decoration: none;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.detail-gallery,
.detail-info {
  min-width: 0;
}

.detail-main-image {
  position: relative;
  aspect-ratio: 1 / 0.92;
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(47, 31, 29, 0.11);
}

.detail-gallery-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0 0 5px;
  border: 1px solid rgba(92, 23, 49, 0.16);
  border-radius: 50%;
  background: rgba(255, 253, 251, 0.92);
  color: var(--berry);
  box-shadow: 0 8px 24px rgba(47, 31, 29, 0.2);
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.detail-gallery-nav:hover {
  background: #fff;
}

.detail-gallery-prev {
  left: 0.85rem;
}

.detail-gallery-next {
  right: 0.85rem;
}

.detail-image-counter {
  position: absolute;
  z-index: 2;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  background: rgba(47, 31, 29, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  backdrop-filter: blur(7px);
}

.detail-main-image img,
.detail-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform: scale(var(--photo-zoom, 1));
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.detail-thumbnails button {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 11px;
  background: #fff;
}

.detail-thumbnails button.is-active {
  border-color: var(--rose-dark);
}

.detail-info {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.94);
  box-shadow: 0 18px 42px rgba(47, 31, 29, 0.08);
}

.detail-info h1 {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.detail-description {
  color: var(--muted);
  line-height: 1.7;
}

.detail-price {
  display: block;
  margin: 1rem 0 1.25rem;
  color: var(--berry);
  font-size: 1.35rem;
}

.detail-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.detail-options label {
  display: grid;
  gap: 0.4rem;
  color: var(--berry);
  font-weight: 800;
}

.detail-options select,
.detail-options input,
.detail-options textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.75rem;
  background: #fff;
  color: var(--ink);
}

.detail-notes {
  grid-column: 1 / -1;
}

.detail-add {
  width: 100%;
  margin-top: 1rem;
}

.detail-empty {
  min-height: 50vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.product-price,
.modal-price,
.cart-price,
.cart-observation,
.cart-total {
  color: var(--berry);
  font-weight: 850;
}

.cart-price,
.cart-observation {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.cart-total {
  margin: 0;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  line-height: 1.5;
}

.product-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0.45rem;
  align-self: end;
}

.product-actions .button {
  min-height: 38px;
  padding: 0.55rem 0.45rem;
  font-size: 0.76rem;
  line-height: 1.15;
}

.process {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}

.steps article {
  padding: 1.15rem;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.58);
}

.steps span {
  color: var(--rose-dark);
  font-weight: 900;
}

.steps p {
  margin-bottom: 0;
}

.instagram-showcase {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.instagram-heading {
  align-items: center;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 390px));
  justify-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.reel-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(47, 31, 29, 0.09);
}

.reel-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #fff7f9;
}

.reel-card .reel-link {
  display: grid;
  color: var(--berry);
  text-decoration: none;
}

.reel-card .reel-cta {
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}

.reel-card .reel-link:hover .reel-cta {
  text-decoration: underline;
}

.site-footer {
  width: min(1180px, 90vw);
  margin: 0 auto;
  padding: 2.2rem 0 6.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.site-footer h2 {
  margin-top: 0.6rem;
  font-size: 2rem;
}

.footer-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
}

.floating-actions {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  flex-direction: column;
  gap: 0.6rem;
}

.floating-actions a,
.floating-actions button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--berry);
  color: #fff;
  box-shadow: 0 14px 28px rgba(92, 23, 49, 0.22);
  font-weight: 900;
}

.floating-actions svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}

.floating-actions a:nth-child(2) {
  background: var(--rose);
}

.modal,
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.modal.is-open,
.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop,
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(34, 26, 24, 0.52);
  backdrop-filter: blur(8px);
}

.product-modal {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  overflow: auto;
  margin: 1rem auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.85fr);
  gap: 1.25rem;
  padding: 1rem;
  border-radius: 1.25rem;
  background: var(--porcelain);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 3;
  font-size: 1.5rem;
}

.modal-gallery {
  position: relative;
  min-width: 0;
}

.zoom-wrap {
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f8e9e6;
}

.zoom-wrap img {
  width: 100%;
  height: min(64svh, 650px);
  object-fit: cover;
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform: scale(var(--photo-zoom, 1));
  transition: transform 220ms ease;
}

.zoom-wrap.is-zoomed img {
  transform: scale(calc(var(--photo-zoom, 1) + 0.45));
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.86);
  color: var(--berry);
  box-shadow: 0 12px 28px rgba(47, 31, 29, 0.16);
  font-size: 2rem;
}

.gallery-nav.prev {
  left: 0.75rem;
}

.gallery-nav.next {
  right: 0.75rem;
}

.modal-info {
  align-self: center;
  padding: 1rem 0.5rem;
}

.modal-info p {
  font-size: 1.02rem;
}

.quantity-field,
.modal-observations,
.client-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--berry);
  font-weight: 800;
}

.quantity-field {
  max-width: 170px;
  margin: 1.2rem 0;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.quantity-field input,
.modal-observations textarea,
.client-form input,
.client-form textarea,
.cart-line input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.78rem 0.85rem;
}

.modal-observations textarea {
  resize: vertical;
}

.modal-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.3rem 0.2rem 0.5rem;
  scrollbar-width: thin;
}

.strip-item {
  flex: 0 0 126px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.45rem;
  text-align: left;
  color: var(--berry);
  font-weight: 800;
}

.strip-item img {
  width: 100%;
  aspect-ratio: 1 / 0.72;
  object-fit: cover;
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform: scale(var(--photo-zoom, 1));
  border-radius: 6px;
  margin-bottom: 0.45rem;
}

.strip-item.is-active {
  outline: 3px solid rgba(201, 79, 103, 0.28);
}

.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(520px, 100vw);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  background: var(--porcelain);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

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

.cart-header {
  justify-content: space-between;
  gap: 1rem;
}

.cart-header h2 {
  font-size: 2rem;
}

.cart-items {
  display: grid;
  gap: 0.85rem;
  padding: 0 0.25rem 0.2rem 0;
  overflow: visible;
}

.cart-empty {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  line-height: 1.6;
}

.cart-line {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: stretch;
  padding: 0.78rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 28px rgba(47, 31, 29, 0.07);
  min-width: 0;
}

.cart-line-media {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.38rem;
  min-width: 0;
}

.cart-line-media img {
  width: 104px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius);
  background: #f8e9e6;
}

.cart-line-media figcaption {
  min-height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(201, 79, 103, 0.1);
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.cart-line-content {
  min-width: 0;
  display: grid;
  gap: 0.65rem;
}

.cart-line-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 0.75rem;
}

.cart-line-title strong {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-size: 0.94rem;
  white-space: nowrap;
}

.cart-line h3 {
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cart-detail-list {
  display: grid;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.cart-detail-list span {
  overflow-wrap: anywhere;
}

.cart-line-actions {
  gap: 0.55rem;
  flex-wrap: wrap;
  align-self: end;
}

.cart-quantity-control {
  display: inline-grid;
  grid-template-columns: 40px 62px 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}

.cart-quantity-control input {
  width: 62px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  text-align: center;
  color: var(--berry);
  font-weight: 850;
  background: transparent;
  appearance: textfield;
}

.cart-quantity-control input::-webkit-outer-spin-button,
.cart-quantity-control input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.cart-qty-btn {
  width: 40px;
  height: 40px;
  border: 0;
  display: grid;
  place-items: center;
  background: rgba(201, 79, 103, 0.1);
  color: var(--berry);
  font-size: 1.2rem;
  font-weight: 900;
}

.cart-qty-btn:hover {
  background: rgba(201, 79, 103, 0.18);
}

.cart-line input:not([data-cart-quantity]) {
  width: 100%;
  padding: 0.55rem;
}

.remove-item {
  min-height: 40px;
  border: 1px solid rgba(201, 79, 103, 0.22);
  border-radius: 999px;
  padding: 0 0.8rem;
  background: rgba(201, 79, 103, 0.08);
  color: var(--rose-dark);
  font-weight: 850;
}

.remove-item:hover {
  background: rgba(201, 79, 103, 0.14);
}

.cart-note {
  margin: 0;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(198, 154, 75, 0.12);
  border: 1px solid rgba(198, 154, 75, 0.28);
}

.client-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0;
}

.client-form textarea {
  resize: vertical;
}

.cart-page-main {
  min-height: 72vh;
  padding-top: clamp(2.4rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.cart-page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}

.cart-page-heading h1 {
  margin: 0.25rem 0 0;
}

.cart-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(310px, 0.72fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.cart-page-products,
.cart-checkout {
  min-width: 0;
  padding: clamp(1rem, 2.6vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 251, 0.88);
  box-shadow: 0 18px 42px rgba(47, 31, 29, 0.07);
}

.cart-page-products h2,
.cart-checkout h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.cart-checkout {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.cart-page-items {
  margin-bottom: 1rem;
}

.checkout-submit {
  width: 100%;
  margin-top: 0.35rem;
}

.cart-more {
  margin-top: clamp(2rem, 6vw, 4.5rem);
}

.cart-more h2 {
  margin-top: 0.3rem;
}

.product-more {
  padding-top: 0;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.recommendations-shell {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 0.75rem;
}

.cart-recommendations {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.3rem 0.15rem 1rem;
  overscroll-behavior-inline: contain;
}

.cart-recommendations::-webkit-scrollbar {
  display: none;
}

.recommendation-nav {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--berry);
  box-shadow: 0 10px 25px rgba(47, 31, 29, 0.1);
  font: 700 2rem/1 Georgia, serif;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.recommendation-nav:hover {
  transform: translateY(-2px);
  background: var(--rose-soft);
}

.cart-recommendation {
  flex: 0 0 clamp(190px, 22vw, 245px);
  scroll-snap-align: start;
  overflow: hidden;
  display: grid;
  gap: 0.7rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(47, 31, 29, 0.07);
}

.cart-recommendation > a {
  overflow: hidden;
  border-radius: 10px;
}

.cart-recommendation img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: var(--photo-x, 50%) var(--photo-y, 50%);
  transform: scale(var(--photo-zoom, 1));
}

.cart-recommendation > div {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.cart-recommendation > div a {
  color: var(--ink);
  text-decoration: none;
}

.cart-recommendation strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-recommendation span {
  color: var(--rose-dark);
  font-weight: 850;
}

.cart-recommendation .button {
  width: 100%;
  min-height: 38px;
  padding: 0.55rem;
}

.page-intro,
.thank-you-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  background: rgba(255, 248, 246, 0.97);
  backdrop-filter: blur(14px);
  transition: opacity 350ms ease, visibility 350ms ease;
}

.page-intro.is-leaving,
.thank-you-overlay.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.page-intro p {
  margin: 0;
  color: var(--berry);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.intro-order {
  position: relative;
  width: 92px;
  height: 110px;
  display: grid;
  align-content: center;
  gap: 11px;
  padding: 20px 18px;
  border: 2px solid var(--berry);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(92, 23, 49, 0.13);
  animation: introFloat 1s ease-in-out infinite alternate;
}

.intro-order span {
  height: 4px;
  border-radius: 99px;
  background: rgba(92, 23, 49, 0.18);
  transform-origin: left;
  animation: writeLine 800ms ease both;
}

.intro-order span:nth-child(2) { width: 76%; animation-delay: 150ms; }
.intro-order span:nth-child(3) { width: 88%; animation-delay: 300ms; }
.intro-order i {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-style: normal;
  animation: checkPop 500ms 520ms ease both;
}

.intro-cart {
  position: relative;
  width: 112px;
  height: 100px;
  display: grid;
  place-items: end center;
  color: var(--berry);
}

.intro-cart svg {
  width: 74px;
  height: 74px;
  animation: cartRoll 1.1s ease-in-out both;
}

.intro-cart i {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--rose);
  animation: productDrop 850ms ease-in both;
}

.intro-cart i:nth-of-type(1) { left: 20px; }
.intro-cart i:nth-of-type(2) { left: 46px; animation-delay: 150ms; background: var(--gold); }
.intro-cart i:nth-of-type(3) { right: 18px; animation-delay: 300ms; background: var(--sage); }

.thank-you-card {
  width: min(90vw, 480px);
  padding: clamp(2rem, 6vw, 3.2rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
  animation: thankYouIn 500ms cubic-bezier(.2,.9,.3,1.2) both;
}

.thank-you-card > span {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  font-size: 1.65rem;
  box-shadow: 0 14px 30px rgba(92, 23, 49, 0.22);
}

.thank-you-card p,
.thank-you-card h2,
.thank-you-card small { margin: 0; }
.thank-you-card p { color: var(--rose-dark); font-weight: 850; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.76rem; }
.thank-you-card h2 { margin-top: 0.5rem; }
.thank-you-card small { display: block; margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }

@keyframes writeLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes checkPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes introFloat { to { transform: translateY(-5px); } }
@keyframes cartRoll { 0% { transform: translateX(-20px); opacity: 0; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes productDrop { 0% { opacity: 0; transform: translateY(-24px) rotate(-8deg); } 75%,100% { opacity: 1; transform: translateY(44px) rotate(0); } }
@keyframes thankYouIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  z-index: 120;
  transform: translate(-50%, 120%);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 16px 34px rgba(92, 23, 49, 0.24);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

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

.reveal {
  animation: rise 560ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .main-nav {
    display: none;
  }

  .hero,
  .section-heading,
  .product-modal {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 2rem;
  }

  .cart-page-layout {
    grid-template-columns: 1fr;
  }

  .cart-checkout {
    position: static;
  }

  h1 {
    font-size: 5.2rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .hero-subtitle {
    font-size: 1.65rem;
  }

  .hero-media {
    order: -1;
  }

  .hero-media video {
    aspect-ratio: 16 / 11;
    border-radius: 1.2rem;
  }

  .media-note {
    left: 0.8rem;
  }

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

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-info {
    position: static;
  }

  .zoom-wrap img {
    height: min(54svh, 520px);
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 1rem;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .brand span {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-band,
  .section-narrow,
  .site-footer {
    width: min(100% - 1.4rem, 1180px);
  }

  .hero-actions,
  .footer-actions,
  .modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .cart-page-heading {
    display: grid;
    align-items: start;
  }

  .cart-page-heading h1 {
    font-size: 3rem;
  }

  .cart-page-products,
  .cart-checkout {
    padding: 0.9rem;
    border-radius: 15px;
  }

  .cart-recommendation {
    flex-basis: 185px;
  }

  .recommendations-shell {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 0.35rem;
  }

  .recommendation-nav {
    width: 38px;
    height: 38px;
    font-size: 1.65rem;
  }

  .page-intro,
  .thank-you-overlay {
    padding: 1rem;
  }

  h1 {
    font-size: 3.35rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1.35rem;
  }

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

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

  .product-actions .button {
    min-height: 36px;
    padding: 0.48rem 0.3rem;
    font-size: 0.72rem;
  }

  .product-body {
    gap: 0.4rem;
    padding: 0.62rem;
  }

  .product-body p:not(.product-price) {
    display: none;
  }

  .product-title-link h3 {
    font-size: 0.94rem;
  }

  .product-body .product-price {
    font-size: 0.82rem;
  }

  .product-detail-main {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .detail-back {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
  }

  .detail-layout {
    gap: 0.9rem;
  }

  .detail-options {
    grid-template-columns: 1fr;
  }

  .detail-notes {
    grid-column: auto;
  }

  .detail-main-image {
    aspect-ratio: 4 / 3;
    border-radius: 15px;
  }

  .detail-thumbnails {
    display: none;
  }

  .detail-gallery-nav {
    width: 42px;
    height: 42px;
    font-size: 1.75rem;
  }

  .detail-gallery-prev { left: 0.55rem; }
  .detail-gallery-next { right: 0.55rem; }

  .detail-info {
    padding: 1rem;
    border-radius: 16px;
  }

  .detail-info h1 {
    margin: 0.2rem 0 0.55rem;
    font-size: clamp(2rem, 10vw, 2.7rem);
    line-height: 0.96;
  }

  .detail-description {
    margin: 0;
    line-height: 1.45;
  }

  .detail-price {
    margin: 0.7rem 0 0.85rem;
    font-size: 1.15rem;
  }

  .detail-options {
    gap: 0.65rem;
  }

  .detail-options select,
  .detail-options input,
  .detail-options textarea {
    min-height: 42px;
  }

  .detail-add {
    margin-top: 0.8rem;
  }

  .instagram-heading,
  .reel-grid {
    grid-template-columns: 1fr;
  }

  .reel-card {
    width: min(100%, 390px);
    justify-self: center;
  }

  .site-footer {
    display: grid;
  }

  .product-modal {
    width: 100vw;
    min-height: 100svh;
    max-height: 100svh;
    margin: 0;
    border-radius: 0;
  }

  .zoom-wrap img {
    height: 52svh;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .floating-actions {
    right: 0.75rem;
    bottom: auto;
    top: calc(var(--header-h) + 0.75rem);
  }

  .toast {
    width: calc(100% - 1.5rem);
    text-align: center;
  }

  .cart-panel {
    width: 100vw;
    padding: 1rem;
  }

  .cart-line {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.7rem;
  }

  .cart-line-media img {
    width: 88px;
    height: 88px;
  }

  .cart-line-title {
    display: grid;
    gap: 0.3rem;
  }

  .cart-line-title strong {
    white-space: normal;
  }

  .cart-line-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cart-quantity-control {
    width: 100%;
    grid-template-columns: 44px minmax(52px, 1fr) 44px;
  }

  .cart-quantity-control input {
    width: 100%;
  }

  .remove-item {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .product-grid {
    gap: 0.5rem;
  }

  .section-band,
  .section-narrow,
  .site-footer {
    width: min(100% - 1rem, 1180px);
  }

  .product-actions .button {
    font-size: 0.67rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
