:root {
  --igp-pink: #E31C5A;
  --igp-pink-dark: #C2185B;
  --igp-pink-soft: #FFF0F5;
  --igp-text: #222222;
  --igp-muted: #6B6B6B;
  --igp-light: #9A9A9A;
  --igp-border: #E8E8E8;
  --igp-bg: #FFFFFF;
  --igp-page: #F7F7F7;
  --igp-green: #388E3C;
  --shadow-sm: 0 4px 14px rgba(34, 34, 34, 0.06);
  --shadow-md: 0 10px 28px rgba(34, 34, 34, 0.1);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito Sans", Arial, sans-serif;
  color: var(--igp-text);
  background: var(--igp-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .wrap { padding: 0 20px; } }

/* Utility bar */
.util-bar {
  background: linear-gradient(90deg, #FFF7FA, #FAFAFA 40%, #F5FBFF);
  border-bottom: 1px solid var(--igp-border);
  font-size: 12px;
  color: var(--igp-muted);
}
.util-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.util-inner a { font-weight: 700; color: var(--igp-pink); }
@media (max-width: 640px) {
  .util-bar .util-hide-sm { display: none; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.header.is-scrolled {
  border-color: var(--igp-border);
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
}
.logo {
  font-weight: 800;
  font-size: clamp(22px, 4vw, 26px);
  color: var(--igp-pink);
  letter-spacing: -0.5px;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.logo:hover { transform: scale(1.02); }
.logo span { color: var(--igp-text); }

.city {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--igp-text);
  border: 1px solid var(--igp-border);
  border-radius: 10px;
  padding: 8px 12px;
  white-space: nowrap;
  background: #fff;
}
@media (min-width: 1100px) {
  .header-row { grid-template-columns: auto auto 1fr auto; }
  .city { display: inline-flex; }
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #F5F5F5;
  border: 1px solid var(--igp-border);
  border-radius: 999px;
  padding: 0 14px;
  height: 42px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  grid-column: 1 / -1;
  order: 3;
}
@media (min-width: 760px) {
  .search {
    grid-column: auto;
    order: 0;
  }
}
.search:focus-within {
  background: #fff;
  border-color: #F48FB1;
  box-shadow: 0 0 0 3px rgba(227, 28, 90, 0.12);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--igp-text);
  min-width: 0;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-self: end;
  flex-wrap: nowrap;
}
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--igp-text);
  font-size: 18px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: #F5F5F5; }
.icon-btn:active { transform: scale(0.94); }
.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--igp-pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  animation: popIn 0.35s var(--ease);
}
.select-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--igp-pink);
  border: 1.5px solid var(--igp-pink);
  border-radius: 8px;
  padding: 7px 10px;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.select-chip:hover {
  background: var(--igp-pink);
  color: #fff;
}
.select-chip.ghost {
  border-color: var(--igp-border);
  color: var(--igp-text);
}
.select-chip.ghost:hover {
  border-color: var(--igp-pink);
  color: var(--igp-pink);
  background: var(--igp-pink-soft);
}
@media (max-width: 640px) {
  .select-chip.desktop-only { display: none; }
  .user-chip { max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
}

/* Category rail */
.cat-rail-wrap {
  position: relative;
  padding: 6px 0 2px;
  border-bottom: 1px solid var(--igp-border);
  background: linear-gradient(180deg, #fff 0%, #FCFCFC 100%);
}
.cat-rail-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}
.cat-rail {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 4px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  cursor: grab;
  width: 100%;
  overscroll-behavior-x: contain;
}
.cat-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}
.cat-rail::-webkit-scrollbar { display: none; }

/* When all categories fit, spread evenly — no empty arrow gutters */
.cat-rail-wrap.is-fitted .cat-rail {
  justify-content: space-between;
  overflow: visible;
  cursor: default;
  scroll-snap-type: none;
}
.cat-rail-wrap.is-fitted .cat-item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 110px;
}

.cat-item {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  color: var(--igp-text);
  scroll-snap-align: start;
  padding: 2px 2px 0;
  transition: transform 0.22s var(--ease), color 0.22s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.cat-item:hover { transform: translateY(-3px); color: var(--igp-pink); }
.cat-item:active { transform: scale(0.96); }

.cat-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #EEE;
  box-shadow: 0 2px 8px rgba(34, 34, 34, 0.06);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
  overflow: hidden;
}
.cat-avatar img,
.cat-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.cat-fallback { background: linear-gradient(145deg, #F5F5F5, #EAEAEA); }

.cat-item:hover .cat-avatar {
  border-color: #F48FB1;
  box-shadow: 0 6px 16px rgba(227, 28, 90, 0.16);
}
.cat-item.active .cat-avatar {
  border-color: var(--igp-pink);
  box-shadow: 0 0 0 3px rgba(227, 28, 90, 0.14), 0 6px 16px rgba(227, 28, 90, 0.12);
}
.cat-item.active .cat-label {
  color: var(--igp-pink);
}

.cat-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 2px;
}

.cat-nav {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--igp-border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  color: var(--igp-text);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.cat-nav:hover {
  border-color: var(--igp-pink);
  color: var(--igp-pink);
  transform: scale(1.05);
}
.cat-nav:disabled,
.cat-nav.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.cat-rail-wrap.can-scroll .cat-nav {
  display: inline-flex;
}
.cat-rail-wrap.can-scroll .cat-rail {
  padding-left: 2px;
  padding-right: 2px;
}

/* Soft edge fades when scrollable */
.cat-rail-wrap.can-scroll::before,
.cat-rail-wrap.can-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1px;
  width: 28px;
  z-index: 1;
  pointer-events: none;
}
.cat-rail-wrap.can-scroll::before {
  left: 0;
  background: linear-gradient(90deg, #fff, transparent);
}
.cat-rail-wrap.can-scroll::after {
  right: 0;
  background: linear-gradient(270deg, #fff, transparent);
}
.cat-rail-wrap.can-scroll.at-start::before { opacity: 0; }
.cat-rail-wrap.can-scroll.at-end::after { opacity: 0; }

@media (max-width: 640px) {
  .cat-item { width: 70px; }
  .cat-avatar { width: 58px; height: 58px; margin-bottom: 6px; }
  .cat-label { font-size: 11px; }
  .cat-rail { gap: 2px; padding-top: 10px; padding-bottom: 12px; }
  .cat-nav { width: 32px; height: 32px; font-size: 18px; }
}

@media (min-width: 900px) {
  .cat-item { width: 88px; }
  .cat-avatar { width: 72px; height: 72px; }
  .cat-label { font-size: 12.5px; }
  .cat-rail { gap: 6px; }
}

@media (min-width: 1100px) {
  .cat-rail-wrap.is-fitted .cat-avatar {
    width: 76px;
    height: 76px;
  }
}

/* Flash */
.flash {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  animation: slideDown 0.35s var(--ease);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.flash.ok { background: #E8F5E9; color: var(--igp-green); }
.flash.err { background: #FFEBEE; color: #C62828; }
.flash-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  line-height: 1;
}

/* Sections */
.section { padding: 8px 0 28px; }
.section-head { margin: 8px 0 14px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.2px;
}
.section-head p { margin: 4px 0 0; color: var(--igp-muted); font-size: 14px; }

/* Homepage sliders */
.section-head--slider {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.pb-slider-nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.pb-slider {
  position: relative;
  margin: 0 0 8px;
}
.pb-slider-viewport {
  overflow: hidden;
  border-radius: 4px;
}
.pb-slider-track {
  display: flex;
  gap: 14px;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
}
.pb-slider.is-dragging .pb-slider-track {
  transition: none;
}
.pb-slide {
  flex: 0 0 auto;
  min-width: 0;
}
.pb-slider-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(227, 28, 90, 0.18);
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #FFF5F8);
  color: #E31C5A;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(227, 28, 90, 0.12);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s;
}
.pb-slider-btn:hover {
  background: #E31C5A;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
}
.pb-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}
.pb-slider-btn--overlay {
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 4;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  border: none;
  width: 44px;
  height: 44px;
}
.pb-slider-btn--overlay[data-slider-next] {
  left: auto;
  right: 12px;
}
.pb-slider-btn--overlay:hover {
  transform: translateY(-50%) scale(1.05);
}
.pb-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 12px;
}
.pb-slider-dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #F8BBD0;
  cursor: pointer;
  transition: width 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.pb-slider-dot.is-active {
  width: 22px;
  background: #E31C5A;
  transform: scale(1.05);
}

.pb-slider--hero {
  margin: 12px 0 22px;
}
.pb-slider--hero .pb-slider-viewport {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(227, 28, 90, 0.16);
}
.pb-slider--hero .pb-slider-track {
  gap: 0;
}
.pb-slider--hero .pb-slide,
.pb-slider--hero .hero-card {
  flex: 0 0 100%;
  width: 100%;
  min-height: clamp(210px, 32vw, 320px);
  border-radius: 0;
  margin: 0;
  animation: none;
  box-shadow: none;
}
.pb-slider--hero .hero-card:hover {
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(12px);
}
.pb-slider--hero .pb-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  z-index: 5;
}
.pb-slider--hero .pb-slider-dot {
  background: rgba(255, 255, 255, 0.55);
}
.pb-slider--hero .pb-slider-dot.is-active {
  background: #fff;
}

.pb-slider--occasions .pb-slide,
.pb-slider--occasions .occasion {
  flex: 0 0 calc((100% - 14px) / 2);
  width: calc((100% - 14px) / 2);
}
@media (min-width: 560px) {
  .pb-slider--occasions .pb-slide,
  .pb-slider--occasions .occasion {
    flex-basis: calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
  }
}
@media (min-width: 900px) {
  .pb-slider--occasions .pb-slide,
  .pb-slider--occasions .occasion {
    flex-basis: calc((100% - 56px) / 5);
    width: calc((100% - 56px) / 5);
  }
}

.pb-slider--features .pb-slide,
.pb-slider--features .feature-tile {
  flex: 0 0 calc((100% - 14px) / 2);
  width: calc((100% - 14px) / 2);
}
@media (min-width: 720px) {
  .pb-slider--features .pb-slide,
  .pb-slider--features .feature-tile {
    flex-basis: calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
  }
}

@media (max-width: 640px) {
  .section-head--slider { align-items: center; }
  .pb-slider-btn--overlay { width: 38px; height: 38px; left: 8px; }
  .pb-slider-btn--overlay[data-slider-next] { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-slider-track { transition: none; }
}

/* Occasion tiles — 3D rose theme (no black) */
.section--occasions { padding-top: 16px; padding-bottom: 12px; }
.scene-3d {
  perspective: 1200px;
  perspective-origin: 50% 40%;
}
.occasion-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 560px) {
  .occasion-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
@media (min-width: 780px) {
  .occasion-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .occasion-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
}
.occasion {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(227, 28, 90, 0.1);
  border-radius: 18px;
  padding: 16px 12px 14px;
  min-height: 122px;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  box-shadow:
    0 8px 18px rgba(227, 28, 90, 0.08),
    0 2px 0 rgba(255, 255, 255, 0.9) inset;
  animation: float3d 5.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.18s);
  transition: transform 0.22s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  will-change: transform;
}
.occasion:hover {
  animation-play-state: paused;
  border-color: #F48FB1;
  box-shadow:
    0 22px 40px rgba(227, 28, 90, 0.2),
    0 0 0 1px rgba(244, 143, 177, 0.35);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-8px) translateZ(28px) scale(1.03);
}
.occasion .emoji { font-size: 24px; line-height: 1; transform: translateZ(24px); }
.occasion .label {
  font-weight: 800;
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.25;
  color: var(--igp-text);
  transform: translateZ(18px);
}
.occasion .sub {
  font-size: 11px;
  color: var(--igp-muted);
  margin-top: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transform: translateZ(14px);
}
.occasion--luxe {
  background: linear-gradient(145deg, #F48FB1 0%, #E31C5A 48%, #C2185B 100%) !important;
  border-color: rgba(255, 240, 245, 0.45);
  box-shadow: 0 12px 28px rgba(227, 28, 90, 0.28);
}
.occasion--luxe .label,
.occasion--luxe .sub { color: #fff; }
.occasion--luxe .sub { opacity: 0.9; }
.occasion--luxe:hover {
  border-color: #FFE0EC;
  box-shadow: 0 24px 44px rgba(227, 28, 90, 0.35);
}

/* Hero — 3D rose overlays (no black) */
.hero-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin: 10px 0 24px;
}
@media (min-width: 720px) {
  .hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .hero-strip--n3 .hero-card:first-child,
  .hero-strip--n4 .hero-card:first-child {
    grid-column: 1 / -1;
    min-height: 220px;
  }
}
@media (min-width: 1020px) {
  .hero-strip--n2,
  .hero-strip--n3,
  .hero-strip--n4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-strip--n3 .hero-card:first-child,
  .hero-strip--n4 .hero-card:first-child {
    grid-column: auto;
    min-height: 210px;
  }
  .hero-strip--n3 .hero-card:first-child {
    grid-column: span 1;
  }
  .hero-strip--n4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-strip--n4 .hero-card {
    min-height: 200px;
  }
}
.hero-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  min-height: 190px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 22px 20px;
  background-size: cover;
  background-position: center;
  background-color: #E85A7A;
  isolation: isolate;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  box-shadow: 0 14px 32px rgba(227, 28, 90, 0.18);
  animation: float3d 6.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.22s);
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.hero-card:hover {
  animation-play-state: paused;
  box-shadow: 0 28px 48px rgba(227, 28, 90, 0.28);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px) translateZ(24px) scale(1.015);
}
.hero-card--empty {
  background-image: linear-gradient(135deg, #F8BBD0 0%, #E31C5A 52%, #AD1457 100%);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(194, 24, 91, 0.12) 8%, rgba(194, 24, 91, 0.72) 100%);
  z-index: 0;
  transition: background 0.3s var(--ease);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  z-index: -1;
  transform: scale(1.04);
  transition: transform 0.8s var(--ease);
}
.hero-card--empty::after { display: none; }
.hero-card:hover::after { transform: scale(1.12); }
.hero-card:hover::before {
  background: linear-gradient(180deg, rgba(194, 24, 91, 0.18) 0%, rgba(173, 20, 87, 0.78) 100%);
}
.hero-card-body,
.hero-card > * { position: relative; z-index: 1; max-width: 34ch; transform: translateZ(36px); }
.hero-card h3 {
  margin: 0 0 6px;
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 14px rgba(173, 20, 87, 0.35);
}
.hero-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.96;
}
@media (max-width: 719px) {
  .hero-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 2px 2px 8px;
    margin-left: -4px;
    margin-right: -4px;
    perspective: none;
  }
  .hero-strip::-webkit-scrollbar { display: none; }
  .hero-card {
    flex: 0 0 min(88%, 340px);
    min-height: 200px;
    scroll-snap-align: start;
  }
  .hero-strip--n3 .hero-card:first-child,
  .hero-strip--n4 .hero-card:first-child {
    grid-column: auto;
  }
}

@keyframes float3d {
  0%, 100% { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0) translateZ(0); }
  50% { transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-6px) translateZ(10px); }
}
@keyframes shineSweep {
  0% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  35% { opacity: 0.55; }
  100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 700px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 1000px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.pcard {
  background: #fff;
  border: 1px solid var(--igp-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.45s var(--ease);
}
.js .pcard:not(.is-visible) {
  opacity: 0;
  transform: translateY(14px);
}
.pcard.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pcard:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: #F3C6D6;
}
.pcard-img { position: relative; background: #F5F5F5; overflow: hidden; }
.pcard-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease), opacity 0.35s ease;
}
.js .pcard-img img:not(.is-loaded) { opacity: 0; }
.pcard-img img.is-loaded { opacity: 1; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.badge-off {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--igp-pink);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
}
.badge-del {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--igp-text);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--igp-border);
}
.pcard-body { padding: 10px 11px 12px; }
.pcard-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  height: 2.7em;
  overflow: hidden;
}
.pcard-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--igp-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.rating-count { font-size: 12px; color: var(--igp-muted); font-weight: 600; }
.pcard-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.price-now { font-size: 15px; font-weight: 800; }
.price-was { font-size: 12px; color: var(--igp-light); text-decoration: line-through; }
.price-off { font-size: 12px; font-weight: 800; color: var(--igp-pink); }
.pill-pers {
  display: inline-block;
  margin-top: 6px;
  background: var(--igp-pink-soft);
  color: var(--igp-pink);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 4px;
}

/* Buttons / forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--igp-pink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
  background: var(--igp-pink-dark);
  box-shadow: 0 8px 18px rgba(227, 28, 90, 0.25);
}
.btn:active { transform: scale(0.98); }
.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.btn.secondary {
  background: #fff;
  color: var(--igp-pink);
  border: 1.5px solid var(--igp-pink);
  box-shadow: none;
}
.btn.secondary:hover {
  background: var(--igp-pink-soft);
  box-shadow: none;
}
.btn.block { width: 100%; }
.panel {
  background: #fff;
  border: 1px solid var(--igp-border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0 28px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--igp-muted);
  margin: 12px 0 6px;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--igp-border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #F48FB1;
  box-shadow: 0 0 0 3px rgba(227, 28, 90, 0.12);
}
textarea { min-height: 90px; resize: vertical; }
.muted { color: var(--igp-muted); }
.personalize {
  border: 1px solid #F8BBD0;
  background: #FFF7FA;
  border-radius: var(--radius);
  padding: 14px;
  margin-top: 14px;
}
.product-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  padding: 18px 0 40px;
}
@media (min-width: 860px) {
  .product-layout { grid-template-columns: 1fr 1.05fr; }
}
.product-hero-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--igp-border);
  background: #F5F5F5;
}
.product-preview {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.product-preview .product-hero-img {
  display: block;
  border-radius: var(--radius);
}
.product-preview-text {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 42%);
  transform: translate(-50%, -50%);
  width: min(78%, 280px);
  text-align: center;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: calc(clamp(18px, 4.2vw, 28px) * var(--lscale, 1));
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(0, 0, 0, 0.35);
  word-break: break-word;
  z-index: 3;
  opacity: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  padding: 6px;
}
.product-preview-text .layer-label { display: block; pointer-events: none; }
.product-preview-text.is-empty {
  opacity: 0;
  pointer-events: none;
}
.product-preview-photo {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 62%);
  transform: translate(-50%, -50%);
  width: var(--lw, 34%);
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: visible;
  z-index: 2;
  background: transparent;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.product-preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  background: #fff;
  pointer-events: none;
}
.layer-editable.is-dragging {
  cursor: grabbing;
  z-index: 5;
}
.layer-handle {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: #E31C5A;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: nwse-resize;
  touch-action: none;
  z-index: 6;
}
.product-preview-text .layer-handle {
  right: -4px;
  bottom: -4px;
}
.product-preview-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  padding: 5px 8px;
  border-radius: 999px;
  pointer-events: none;
  max-width: 70%;
  text-align: right;
}
.product-preview.has-text .product-hero-img,
.product-preview.has-photo .product-hero-img {
  filter: brightness(0.92);
}
.preview-edit-tip {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.4;
}
.layout-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.layout-btn {
  border: 1px solid #F8BBD0;
  background: #fff;
  color: #333;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}
.layout-btn:hover { border-color: #E31C5A; color: #E31C5A; }
.product-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: sticky;
  bottom: 12px;
  z-index: 5;
}
@media (max-width: 759px) {
  .product-actions {
    bottom: 80px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid var(--igp-border);
    box-shadow: var(--shadow-md);
  }
}
.line-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--igp-border);
}
.line-item img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; }
.custom { color: var(--igp-pink); font-size: 13px; font-weight: 700; margin-top: 4px; }

.footer {
  background: #2A2A2A;
  color: #CFCFCF;
  margin-top: 24px;
  padding: 36px 0 28px;
  font-size: 13px;
}
.footer strong { color: #fff; }
.footer a {
  color: #fff;
  font-weight: 700;
  transition: color 0.2s var(--ease);
}
.footer a:hover { color: #FF8AB0; }

/* Attractive responsive site footer */
.site-footer {
  margin-top: 36px;
  color: #D8D8D8;
  background:
    radial-gradient(1200px 280px at 10% -20%, rgba(227, 28, 90, 0.28), transparent 55%),
    radial-gradient(900px 240px at 100% 0%, rgba(255, 138, 176, 0.12), transparent 50%),
    linear-gradient(180deg, #1F1F1F 0%, #171717 100%);
  border-top: 3px solid var(--igp-pink);
  -webkit-font-smoothing: antialiased;
}
.site-footer-inner {
  display: grid;
  gap: 28px;
  padding: 36px 16px 28px;
}
.site-footer-brand {
  max-width: 360px;
}
.site-footer-logo {
  display: inline-block;
  font-weight: 800;
  font-size: clamp(22px, 4vw, 26px);
  color: var(--igp-pink);
  letter-spacing: -0.4px;
  line-height: 1.1;
  text-decoration: none;
}
.site-footer-logo span { color: #fff; }
.site-footer-brand p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #B5B5B5;
}
.site-footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.site-footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer-col a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 6px 0;
  color: #CFCFCF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-footer-col a:hover,
.site-footer-col a:focus-visible {
  color: #FF8AB0;
  outline: none;
}
.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.22);
}
.site-footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  color: #9A9A9A;
}
.site-footer-note {
  color: #B8B8B8;
  font-weight: 600;
}

@media (min-width: 560px) {
  .site-footer-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 860px) {
  .site-footer-inner {
    grid-template-columns: 1.2fr 1.8fr;
    align-items: start;
    gap: 40px;
    padding: 44px 20px 32px;
  }
  .site-footer-cols {
    gap: 24px;
  }
  .site-footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 16px 20px;
  }
  .site-footer-col a:hover {
    transform: translateX(2px);
  }
}

/* Clear fixed mobile nav — only on small screens */
@media (max-width: 759px) {
  body.has-mobile-nav .site-footer {
    padding-bottom: 0;
  }
  body.has-mobile-nav .site-footer-bottom-inner {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

@supports not (padding: max(0px)) {
  /* older browsers without env() already handled above with fallbacks */
}

.legal-body h3 {
  margin: 18px 0 6px;
  font-size: 15px;
  font-weight: 800;
}
.legal-body p {
  margin: 0 0 8px;
  line-height: 1.55;
  color: #444;
  font-size: 14px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px 0 20px;
}
@media (min-width: 800px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust-item {
  border: 1px solid var(--igp-border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.trust-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.trust-item span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--igp-muted);
  margin-top: 2px;
}

/* Mobile bottom nav */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--igp-border);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--igp-muted);
  padding: 6px 4px;
  border-radius: 10px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.mobile-nav a .nav-ico { font-size: 18px; line-height: 1; }
.mobile-nav a.active,
.mobile-nav a:hover {
  color: var(--igp-pink);
  background: var(--igp-pink-soft);
}
@media (max-width: 759px) {
  .mobile-nav { display: grid; }
}

/* Back to top */
.back-top {
  position: fixed;
  right: 16px;
  bottom: 88px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--igp-border);
  background: #fff;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  font-size: 18px;
  color: var(--igp-pink);
}
.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
@media (min-width: 760px) {
  .back-top { bottom: 24px; }
}

/* Reveal helper */
.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}
.reveal {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .pcard, .reveal { opacity: 1; transform: none; }
}

/* Account / orders */
.account-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .account-grid { grid-template-columns: 1fr 1fr; }
}
.account-h {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}
.account-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.address-card {
  border: 1px solid var(--igp-border);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background: #FAFAFA;
}
.address-card.is-default {
  border-color: #F8BBD0;
  background: #FFF7FA;
}
.address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.addr-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--igp-pink);
  background: #fff;
  border: 1px solid #F8BBD0;
  border-radius: 999px;
  padding: 2px 8px;
}
.address-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--igp-pink);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.link-btn.danger { color: #C62828; }
.form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--igp-text);
  font-weight: 700;
}
.check-row input { width: auto; }
.order-preview,
.order-card {
  display: block;
  border: 1px solid var(--igp-border);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 0;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.order-preview:hover,
.order-card:hover {
  border-color: #F3C6D6;
  box-shadow: var(--shadow-sm);
}
.order-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  background: #FFF0F5;
  color: var(--igp-pink);
  border-radius: 999px;
  padding: 3px 10px;
}
.order-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.order-thumbs img,
.thumb-fallback {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--igp-border);
  background: #F5F5F5;
}
.thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.thumb-fallback.lg {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
}
.thumb-more {
  font-size: 12px;
  font-weight: 800;
  color: var(--igp-muted);
}
.order-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--igp-border);
}
.order-line:last-child { border-bottom: 0; }
.order-line img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex: 0 0 64px;
  border: 1px solid var(--igp-border);
  background: #F5F5F5;
}
.order-line.detail img {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
}
.order-card-cta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--igp-pink);
}
.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

/* Account / orders */
.account-h {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
}
.account-h-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.account-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .account-grid { grid-template-columns: 1fr 1.15fr; }
}
.account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.address-card {
  border: 1px solid var(--igp-border);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background: #FAFAFA;
}
.address-card.is-default {
  border-color: #F8BBD0;
  background: #FFF7FA;
}
.address-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.addr-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--igp-pink);
  padding: 3px 7px;
  border-radius: 999px;
}
.address-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.link-btn {
  border: 0;
  background: transparent;
  color: var(--igp-pink);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.link-btn.danger { color: #C62828; }
.form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--igp-text);
  font-weight: 700;
}
.check-row input { width: auto; }

.order-preview,
.order-card {
  display: block;
  border: 1px solid var(--igp-border);
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0 0;
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.order-preview:hover,
.order-card:hover {
  border-color: #F3C6D6;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.order-preview-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
  color: var(--igp-pink);
  background: var(--igp-pink-soft);
  border-radius: 999px;
  padding: 4px 10px;
}
.order-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.order-thumbs img,
.order-line img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--igp-border);
  background: #F5F5F5;
}
.order-line.detail img {
  width: 72px;
  height: 72px;
}
.thumb-fallback {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F5F5F5;
  border: 1px solid var(--igp-border);
  font-size: 18px;
}
.thumb-fallback.lg { width: 72px; height: 72px; font-size: 22px; }
.thumb-more {
  font-size: 12px;
  font-weight: 800;
  color: var(--igp-muted);
}
.order-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--igp-border);
}
.order-line:last-child { border-bottom: 0; }
.order-card-cta {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--igp-pink);
}
.detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 12px;
}

/* Order status tracker */
.order-track {
  margin: 8px 0 4px;
  padding: 14px 12px 10px;
  border: 1px solid var(--igp-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #FFF9FB 0%, #fff 100%);
}
.order-track.is-cancelled {
  background: #FFF8F8;
  border-color: #FFCDD2;
}
.order-track-cancelled {
  font-size: 13px;
  font-weight: 800;
  color: #C62828;
  margin-bottom: 10px;
}
.order-track-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: #EDEDED;
  margin: 0 8px 14px;
  overflow: hidden;
}
.order-track-fill {
  height: 100%;
  width: var(--progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--igp-pink), #F06292);
  transition: width 0.45s var(--ease);
}
.order-track.is-cancelled .order-track-fill {
  width: 0;
  background: #E57373;
}
.order-track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}
.order-track-step {
  text-align: center;
  min-width: 0;
}
.order-track-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #DDD;
  background: #fff;
  color: #BBB;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}
.order-track-step.is-done .order-track-dot {
  background: var(--igp-pink);
  border-color: var(--igp-pink);
  color: #fff;
}
.order-track-step.is-current .order-track-dot {
  border-color: var(--igp-pink);
  color: var(--igp-pink);
  box-shadow: 0 0 0 4px rgba(227, 28, 90, 0.12);
  animation: trackPulse 1.6s ease-in-out infinite;
}
.order-track-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--igp-muted);
}
.order-track-hint {
  display: block;
  font-size: 10px;
  color: var(--igp-light);
  margin-top: 2px;
  line-height: 1.2;
}
.order-track-step.is-done .order-track-label,
.order-track-step.is-current .order-track-label {
  color: var(--igp-text);
}
.order-track-step.is-current .order-track-label {
  color: var(--igp-pink);
}
.order-track.is-compact {
  padding: 10px 8px 8px;
  background: #FAFAFA;
}
.order-track.is-compact .order-track-bar { margin-bottom: 10px; }
.order-track.is-compact .order-track-dot {
  width: 20px;
  height: 20px;
  font-size: 10px;
  margin-bottom: 4px;
}
.order-track.is-compact .order-track-label {
  font-size: 10px;
}
@media (max-width: 640px) {
  .order-track:not(.is-compact) .order-track-steps {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .order-track:not(.is-compact) .order-track-steps::-webkit-scrollbar { display: none; }
  .order-track:not(.is-compact) .order-track-step {
    flex: 0 0 72px;
  }
  .order-track.is-compact .order-track-label {
    font-size: 9px;
  }
}
@keyframes trackPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(227, 28, 90, 0.1); }
  50% { box-shadow: 0 0 0 6px rgba(227, 28, 90, 0.18); }
}

/* Reviews */
.review-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #F8BBD0;
  background: #FFF7FA;
  border-radius: 12px;
}
.review-form label { margin-top: 8px; }
.review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.review-photos img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--igp-border);
  background: #fff;
}

.personalize .req { color: var(--igp-pink); font-weight: 800; }
.personalize .char-hint { font-size: 12px; margin-top: 4px; }
.pers-preview {
  margin-top: 10px;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--igp-border);
  background: #fff;
}
.pers-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pers-summary { margin-top: 4px; }
.pers-photo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.pers-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--igp-border);
  background: #fff;
}

.pers-steps {
  margin: 0 0 12px;
  padding-left: 18px;
  color: var(--igp-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
.final-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}
.final-preview-modal[hidden] { display: none !important; }
.final-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 12, 18, 0.55);
}
.final-preview-sheet {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 18px 18px 14px 14px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  animation: finalPreviewIn 0.28s var(--ease);
}
@keyframes finalPreviewIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.final-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.final-preview-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.final-preview-close {
  border: 0;
  background: #F3F3F3;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.final-preview-stage {
  margin: 0 auto;
  max-width: 420px;
}
.final-preview-meta {
  margin: 12px 0 0;
  padding: 12px;
  list-style: none;
  background: #FFF7FA;
  border: 1px solid #F8BBD0;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.final-preview-meta li + li { margin-top: 6px; }
.final-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.final-preview-actions .btn { flex: 1 1 140px; }
.final-preview-actions .btn.is-primary-intent {
  box-shadow: 0 0 0 2px rgba(227, 28, 90, 0.25);
}
@media (min-width: 720px) {
  .final-preview-modal { align-items: center; }
  .final-preview-sheet { border-radius: 18px; }
}

/* Print look — text/photo on product (cart, checkout, orders) */
.print-look {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--igp-border);
  background: #F5F5F5;
  flex-shrink: 0;
}
.print-look-sm { width: 72px; height: 72px; }
.print-look-md { width: 120px; height: 120px; }
.print-look-lg { width: min(100%, 320px); aspect-ratio: 1; height: auto; }
.print-look-base {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.print-look-text {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 86%;
  text-align: center;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 12px rgba(0,0,0,.35);
  word-break: break-word;
  pointer-events: none;
  z-index: 3;
}
.print-look-sm .print-look-text { font-size: calc(9px * var(--print-scale, 1)); }
.print-look-md .print-look-text { font-size: calc(13px * var(--print-scale, 1)); }
.print-look-lg .print-look-text { font-size: calc(clamp(16px, 3.5vw, 24px) * var(--print-scale, 1)); }
.print-look-photo {
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.92);
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
  z-index: 2;
  background: #fff;
  pointer-events: none;
}
.print-look-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.print-look-badge {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.45);
  padding: 3px 6px;
  border-radius: 999px;
  pointer-events: none;
}
.print-look.has-text .print-look-base,
.print-look.has-photo .print-look-base {
  filter: brightness(0.92);
}
.order-line .print-look-sm,
.line-item .print-look-sm {
  /* replace old square thumbs */
}
.order-line.detail .print-look-md {
  width: 132px;
  height: 132px;
}

/* CMS homepage sections — 3D feature tiles */
.occasion-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 14px rgba(227, 28, 90, 0.16);
  background: #fff;
  transform: translateZ(28px);
}
.occasion--luxe .occasion-img {
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 16px rgba(173, 20, 87, 0.28);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 640px) {
  .feature-grid { gap: 14px; }
}
@media (min-width: 720px) {
  .feature-grid,
  .feature-grid--n3,
  .feature-grid--n4,
  .feature-grid--n5,
  .feature-grid--n6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .feature-grid--n4,
  .feature-grid--n5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .feature-grid--n6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature-tile {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(227, 28, 90, 0.1);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transform-style: preserve-3d;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(0);
  box-shadow: 0 10px 24px rgba(227, 28, 90, 0.1);
  animation: float3d 5.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.16s);
  transition: transform 0.25s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
  will-change: transform;
}
.feature-tile:hover {
  animation-play-state: paused;
  border-color: #F48FB1;
  box-shadow: 0 24px 42px rgba(227, 28, 90, 0.22);
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-8px) translateZ(30px) scale(1.025);
}
.feature-tile-media {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #FFF0F5, #FCE4EC);
  aspect-ratio: 16 / 11;
  transform: translateZ(12px);
}
.feature-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
  transform: translateX(-130%) skewX(-18deg);
  pointer-events: none;
}
.feature-tile:hover .feature-tile-media::after {
  animation: shineSweep 0.9s var(--ease) forwards;
}
.feature-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease);
}
.feature-tile:hover .feature-tile-media img {
  transform: scale(1.08) translateZ(8px);
}
.feature-tile-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, #fff 0%, #FFF5F8 100%);
  border-top: 1px solid rgba(227, 28, 90, 0.08);
  transform: translateZ(22px);
}
.feature-tile-title {
  display: block;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.feature-tile-sub,
.feature-tile em {
  display: block;
  font-style: normal;
  color: var(--igp-muted);
  font-size: 12px;
  font-weight: 600;
}
/* legacy fallback if old markup still cached */
.feature-tile > img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  background: #FFF0F5;
}
.feature-tile > span:not(.feature-tile-media):not(.feature-tile-caption) {
  display: block;
  padding: 12px 14px;
  font-weight: 800;
  font-size: 14px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.95;
  margin-bottom: 8px;
}
.hero-highlight {
  display: inline;
  color: #FFE082;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  background: #fff;
  color: #E31C5A;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(173, 20, 87, 0.22);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  transform: translateZ(40px);
}
.hero-card:hover .hero-cta {
  background: #FF80AB;
  color: #fff;
  transform: translateY(-2px) translateZ(44px);
}

@media (prefers-reduced-motion: reduce) {
  .occasion,
  .hero-card,
  .feature-tile {
    animation: none !important;
  }
  .feature-tile:hover .feature-tile-media::after {
    animation: none !important;
  }
}
.guest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-caption {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--igp-muted);
  margin: 8px 0 18px;
}

/* Order cancel reason */
.cancel-order-panel {
  border: 1px solid #F8BBD0;
  background: linear-gradient(180deg, #FFF8FA, #fff);
  border-radius: 16px;
  padding: 16px;
}
.cancel-reason-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cancel-chip {
  border: 1px solid #F8BBD0;
  background: #FFF5F8;
  color: var(--igp-pink);
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-family: inherit;
}
.cancel-chip.is-active,
.cancel-chip:hover {
  background: var(--igp-pink);
  border-color: var(--igp-pink);
  color: #fff;
}
.cancel-reason-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FFF5F8;
  border: 1px solid #F8BBD0;
}
.cancel-reason-box strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
  color: var(--igp-pink);
}
.cancel-reason-box p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--igp-text);
}

/* —— Profile dashboard (account) —— */
.main-bleed {
  max-width: none;
  margin: 0;
  padding: 0;
}
.flash-inset {
  margin: 12px 16px 0;
}
.profile-dash {
  --pd-navy: #1a2a47;
  --pd-orange: #ff7052;
  --pd-bg: #f0f2f5;
  --pd-card: #ffffff;
  --pd-radius: 14px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0;
  min-height: calc(100vh - 120px);
  background: var(--pd-bg);
  width: 100%;
  overflow-x: hidden;
}
.profile-side {
  background: #fff;
  padding: 18px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #e8ecf1;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow: auto;
}
.profile-side a,
.profile-side-logout button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #5a6577;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  line-height: 1.2;
}
.profile-side a span,
.profile-side-logout button span {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  opacity: 0.85;
}
.profile-side a:hover,
.profile-side-logout button:hover {
  background: #f3f6fa;
  color: var(--pd-navy);
}
.profile-side a.is-active {
  background: #e8f1ff;
  color: #1a5fb4;
}
.profile-side-logout {
  margin-top: auto;
  padding-top: 16px;
}
.profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 88px;
}
.profile-hero {
  background: linear-gradient(145deg, #15233d 0%, #1a2a47 55%, #243b63 100%);
  color: #fff;
  text-align: center;
  padding: 32px 20px 52px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.profile-avatar {
  width: 86px;
  height: 86px;
  margin: 0 0 12px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.92);
  background: linear-gradient(135deg, #ff8a70, #ff7052);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  line-height: 1;
}
.profile-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 90%;
  word-break: break-word;
}
.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f5c542;
  color: #3d2e00;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  line-height: 1.2;
}
.profile-status-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: -34px 14px 18px;
  background: #fff;
  border-radius: var(--pd-radius);
  padding: 12px 6px;
  box-shadow: 0 10px 30px rgba(26, 42, 71, 0.12);
  position: relative;
  z-index: 2;
}
.profile-status {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  text-decoration: none;
  color: #3a4558;
  padding: 6px 2px;
  border-radius: 10px;
  min-width: 0;
}
.profile-status:hover { background: #f7f9fc; }
.ps-ico {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.ps-processing { background: #ffe8e8; }
.ps-shipped { background: #e3f0ff; }
.ps-delivered { background: #e6f7ee; }
.ps-review { background: #fce8f3; }
.ps-label {
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ps-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
  box-sizing: border-box;
}
.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0 16px;
  align-items: stretch;
}
.pd-card {
  background: var(--pd-card);
  border-radius: var(--pd-radius);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(26, 42, 71, 0.06);
  border: 1px solid #eef1f5;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pd-card-tall {
  grid-row: span 2;
}
.pd-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 34px;
}
.pd-card-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--pd-navy);
  flex: 1;
  line-height: 1.2;
  min-width: 0;
}
.pd-link {
  font-size: 12px;
  font-weight: 700;
  color: #1a5fb4;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.pd-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
  line-height: 1;
}
.pd-ico.teal { background: #e0f7f4; }
.pd-ico.red { background: #ffe8e8; color: #e53935; }
.pd-ico.rose { background: #ffe8ef; }
.pd-ico.blue { background: #e3f0ff; }
.pd-ico.green { background: #e6f7ee; }
.pd-ico.orange { background: #fff0e8; }
.pd-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pd-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border-radius: 10px;
  background: #f7f9fc;
}
.pd-row:hover { background: #eef3fa; }
.pd-row img,
.pd-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #e8ecf1;
  display: grid;
  place-items: center;
}
.pd-row-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pd-row-body strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.pd-row-body span {
  font-size: 11px;
  color: #7a8699;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-row em {
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  color: var(--pd-navy);
  white-space: nowrap;
  text-align: right;
}
.pd-empty {
  margin: 0;
  font-size: 13px;
  color: #7a8699;
  line-height: 1.45;
}
.pd-empty a { color: #1a5fb4; font-weight: 700; }
.pd-offer {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: #f7f9fc;
}
.pd-offer-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #e6f7ee;
  color: #1b8a4c;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}
.pd-offer strong { display: block; font-size: 13px; line-height: 1.25; }
.pd-offer span { font-size: 11px; color: #7a8699; line-height: 1.35; display: block; }
.pd-offer a {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e0e6ef;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--pd-navy);
  font-weight: 800;
  flex-shrink: 0;
}
.pd-help {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.pd-help strong {
  display: block;
  font-size: 14px;
  color: var(--pd-navy);
  margin-bottom: 4px;
}
.pd-help p {
  margin: 0 0 6px;
  font-size: 13px;
  color: #5a6577;
  line-height: 1.45;
}
.pd-help a {
  font-size: 13px;
  font-weight: 700;
  color: #1a5fb4;
  text-decoration: none;
}
.pd-pay { display: flex; flex-direction: column; gap: 12px; }
.pd-pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #f7f9fc;
}
.pd-pay-logos {
  font-size: 12px;
  font-weight: 800;
  color: #1a5fb4;
  text-align: right;
}
.pd-address {
  padding: 12px;
  border-radius: 10px;
  background: #f7f9fc;
  font-size: 13px;
  line-height: 1.4;
}
.pd-address.is-default { border: 1px solid #b7e0c8; background: #f0faf4; }
.pd-address-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.pd-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}
.pd-form label {
  font-size: 12px;
  font-weight: 700;
  color: #5a6577;
  margin-top: 4px;
}
.pd-form input,
.pd-form textarea {
  border: 1px solid #dde3ec;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.pd-form textarea { min-height: 72px; resize: vertical; }
.pd-form input:disabled {
  background: #f3f5f8;
  color: #7a8699;
}
.pd-form .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-top: 8px;
}
.pd-submit {
  margin-top: 10px;
  background: var(--pd-orange) !important;
  border-color: var(--pd-orange) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  width: 100%;
}
.profile-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 16px 0;
  padding-top: 16px;
  border-top: 1px solid #dde3ec;
}
.profile-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.profile-foot-links a {
  font-size: 13px;
  color: #5a6577;
  text-decoration: none;
  font-weight: 600;
}
.profile-foot-links a:hover { color: var(--pd-navy); }
.pd-logout {
  background: var(--pd-orange) !important;
  border-color: var(--pd-orange) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 12px 28px !important;
  font-weight: 800 !important;
  min-width: 140px;
}

@media (max-width: 1100px) {
  .profile-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-card-tall {
    grid-row: auto;
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  .profile-dash {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .profile-side {
    display: none;
  }
  .profile-hero {
    padding: 28px 16px 48px;
  }
  .profile-status-bar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: -30px 12px 16px;
    padding: 12px 4px 10px;
    gap: 0;
  }
  .ps-ico {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border-radius: 11px;
  }
  .ps-label {
    font-size: 10px;
    letter-spacing: -0.01em;
  }
  .profile-cards {
    grid-template-columns: 1fr;
    padding: 0 12px;
    gap: 12px;
  }
  .pd-card {
    padding: 14px;
  }
  .profile-foot {
    flex-direction: column;
    align-items: stretch;
    margin: 20px 12px 0;
  }
  .profile-foot-links {
    justify-content: center;
    text-align: center;
  }
  .pd-logout { width: 100%; }
}

/* —— Account page chrome polish —— */
body.page-account .util-bar { display: none; }
body.page-account .header .search,
body.page-account .header .city { display: none; }
body.page-account .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
body.page-account .flash-inset {
  margin: 10px 12px 0;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 12px;
}
body.page-account .pd-empty,
body.page-account .pd-list > .pd-form,
body.page-account .pd-pay,
body.page-account .pd-help {
  padding-left: 2px;
}
body.page-account .mobile-nav a[data-nav="account"] {
  color: var(--igp-pink, #e91e63);
  background: #fff0f5;
  border-radius: 12px;
}
body.page-account .profile-status-bar {
  align-items: start;
}
body.page-account .profile-status {
  text-align: center;
}
body.page-account .ps-label {
  max-width: 72px;
  margin: 0 auto;
}
@media (max-width: 860px) {
  body.page-account .header .desktop-only { display: none !important; }
  body.page-account .profile-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.page-account .profile-cards {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* —— Profile same-page tabs —— */
.profile-side .profile-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: #5a6577;
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  text-align: left;
  line-height: 1.2;
}
.profile-side .profile-nav-btn span {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
}
.profile-side .profile-nav-btn:hover { background: #f3f6fa; color: var(--pd-navy, #1a2a47); }
.profile-side .profile-nav-btn.is-active {
  background: #e8f1ff;
  color: #1a5fb4;
}
.profile-status {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}
.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 16px 8px;
}
.profile-menu-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px solid #eef1f5;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(26, 42, 71, 0.06);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.profile-menu-item:hover { background: #f7f9fc; }
.profile-menu-item strong {
  display: block;
  font-size: 15px;
  color: var(--pd-navy, #1a2a47);
  line-height: 1.25;
}
.profile-menu-item span {
  display: block;
  font-size: 12px;
  color: #7a8699;
  margin-top: 2px;
}
.profile-menu-item em {
  font-style: normal;
  font-size: 22px;
  color: #9aa5b5;
  font-weight: 300;
}
.profile-panel { margin: 0 16px 16px; }
.profile-panel[hidden],
.profile-menu[hidden],
[data-profile-home-only][hidden] {
  display: none !important;
}
.pd-back {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #dde3ec;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--pd-navy, #1a2a47);
  flex-shrink: 0;
}
.pd-order-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.pd-filter {
  border: 1px solid #dde3ec;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #5a6577;
  cursor: pointer;
  font-family: inherit;
}
.pd-filter.is-active {
  background: #1a2a47;
  border-color: #1a2a47;
  color: #fff;
}
body.page-account .profile-foot {
  justify-content: stretch;
  margin-top: 12px;
}
@media (max-width: 860px) {
  .profile-menu { padding: 0 12px 8px; }
  .profile-panel { margin: 0 12px 16px; }
}

/* —— Subscribe / Premium —— */
.select-chip.subscribe-chip {
  background: var(--igp-pink);
  color: #fff;
  border-color: var(--igp-pink);
}
.select-chip.subscribe-chip:hover {
  filter: brightness(0.95);
  color: #fff;
  background: var(--igp-pink);
}
.select-chip.subscribe-chip.is-member {
  background: #1a2a47;
  border-color: #1a2a47;
  color: #f5c542;
}
.subscribe-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.subscribe-hero {
  background: linear-gradient(145deg, #15233d 0%, #1a2a47 55%, #243b63 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px 22px 24px;
  text-align: center;
}
.subscribe-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5c542;
}
.subscribe-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.subscribe-tagline {
  margin: 0 auto 18px;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
}
.subscribe-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 10px 18px;
  margin-bottom: 14px;
}
.subscribe-price strong {
  font-size: 28px;
  font-weight: 800;
}
.subscribe-price span {
  font-size: 14px;
  opacity: 0.85;
}
.subscribe-discount-note {
  margin: 0 auto;
  max-width: 36em;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255,255,255,0.8);
}
.subscribe-facilities {
  margin-top: 20px;
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: 16px;
  padding: 20px 18px;
  box-shadow: 0 4px 16px rgba(26, 42, 71, 0.06);
}
.subscribe-facilities h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #1a2a47;
}
.subscribe-facilities-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #7a8699;
  line-height: 1.4;
}
.subscribe-facilities ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.subscribe-facilities li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: #f7f9fc;
}
.sf-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e6f7ee;
  color: #1b8a4c;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
}
.subscribe-facilities strong {
  display: block;
  font-size: 15px;
  color: #1a2a47;
  margin-bottom: 2px;
}
.subscribe-facilities li span:not(.sf-check) {
  display: block;
  font-size: 13px;
  color: #5a6577;
  line-height: 1.4;
}
.subscribe-cta {
  margin-top: 18px;
  text-align: center;
}
.subscribe-btn {
  width: 100%;
  max-width: 360px;
  background: var(--igp-pink) !important;
  border-color: var(--igp-pink) !important;
  color: #fff !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-size: 16px !important;
}
.subscribe-fine {
  margin: 12px auto 0;
  max-width: 32em;
  font-size: 12px;
  color: #7a8699;
  line-height: 1.4;
}
.subscribe-active {
  background: #f0faf4;
  border: 1px solid #b7e0c8;
  border-radius: 14px;
  padding: 18px 16px;
}
.subscribe-active strong {
  display: block;
  font-size: 16px;
  color: #1b8a4c;
  margin-bottom: 6px;
}
.subscribe-active p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #5a6577;
}
body.page-account .select-chip.subscribe-chip {
  display: inline-flex !important;
}

/* —— Product QR —— */
.product-qr {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 14px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f9fc;
  border: 1px solid #e8ecf1;
}
.product-qr img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e0e6ef;
  flex-shrink: 0;
}
.product-qr-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.product-qr-meta strong {
  font-size: 14px;
  color: #1a2a47;
}
.product-qr-meta span {
  font-size: 12px;
  color: #7a8699;
}
.product-qr-meta code {
  font-size: 12px;
  font-weight: 700;
  color: #5a6577;
  background: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  width: fit-content;
}
.product-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}
@media (max-width: 520px) {
  .product-qr {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Homepage CMS (admin) */
.cms-fab {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: #1a2a47;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(26, 42, 71, 0.28);
}
.cms-fab:hover { filter: brightness(1.08); color: #fff; }
.cms-wrap { max-width: 920px; margin: 0 auto; padding: 18px 16px 64px; }
.cms-top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.cms-top h1 { margin: 0 0 4px; font-size: 24px; }
.cms-top-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-card {
  background: #fff;
  border: 1px solid #e8ddd4;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(28, 20, 16, 0.04);
}
.cms-card h2 { margin: 0 0 12px; font-size: 16px; }
.cms-flash {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}
.cms-flash.ok { background: #e8f8ef; color: #1b8a4c; border: 1px solid #b7e0c8; }
.cms-flash.err { background: #ffe8e8; color: #b42318; border: 1px solid #f3b4b4; }
.cms-add { display: flex; flex-wrap: wrap; gap: 8px; }
.cms-add select, .cms-form input, .cms-form select, .cms-add input {
  border: 1px solid #e8ddd4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  min-width: 200px;
}
.cms-form label { display: block; font-size: 12px; font-weight: 700; color: #6b5b52; margin: 10px 0 4px; }
.cms-form input, .cms-form select { width: 100%; min-width: 0; }
.cms-check { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 12px 10px 0 !important; font-size: 13px !important; color: #1c1410 !important; }
.cms-check.danger { color: #b42318 !important; }
.cms-list { display: flex; flex-direction: column; gap: 8px; }
.cms-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: #faf7f4;
  border: 1px solid #e8ddd4;
}
.cms-row.is-off { opacity: 0.62; }
.cms-row strong { display: block; font-size: 14px; }
.cms-row span { display: block; font-size: 12px; color: #6b5b52; margin-top: 2px; }
.cms-row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.cms-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cms-item {
  border: 1px solid #e8ddd4;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
  background: #faf7f4;
}
.cms-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.cms-save-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn.small { padding: 7px 10px; font-size: 12px; }
@media (max-width: 700px) {
  .cms-row { grid-template-columns: 1fr; }
  .cms-row-actions { justify-content: flex-start; }
  .cms-grid-2 { grid-template-columns: 1fr; }
  .cms-fab { right: 12px; bottom: 76px; }
}
