/* Dunberries — supplementary styles beyond Tailwind utilities */

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: rgba(42, 14, 51, 0.2);
  border-radius: 999px;
}

/* ---- product card image swap ---- */
.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1rem;
  background: #e8ded0;
}
.product-media img,
.product-media .ph-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.45s ease, transform 0.6s ease;
}
.product-media img.img-primary,
.product-media .ph-tile.img-primary {
  opacity: 1;
  z-index: 1;
}
.product-media img.img-alt,
.product-media .ph-tile.img-alt {
  opacity: 0;
  z-index: 2;
}
.product-card:hover .product-media img.img-alt,
.product-card:hover .product-media .ph-tile.img-alt {
  opacity: 1;
}
.product-card:hover .product-media img.img-primary,
.product-card:hover .product-media .ph-tile.img-primary {
  transform: scale(1.04);
}

/* ---- branded placeholder tile (stand-in for product photography) ---- */
.ph-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph-tile .ph-icon {
  width: 30%;
  max-width: 72px;
  opacity: 0.22;
  transition: transform 0.6s ease;
}
.ph-tile .ph-mark {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.35;
}
.ph-tile.ph-sm .ph-icon {
  width: 34%;
  opacity: 0.25;
}
.ph-tile.ph-sm .ph-mark {
  display: none;
}
.ph-tile.ph-lg .ph-icon {
  max-width: 110px;
}

/* ---- color swatches ---- */
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(42, 14, 51, 0.15);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.swatch.active {
  box-shadow: 0 0 0 2px #f7f2e9, 0 0 0 4px #2A0E33;
  transform: scale(1.05);
}

/* ---- size pills ---- */
.size-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(42, 14, 51, 0.18);
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.size-pill.active {
  background: #2A0E33;
  color: #f7f2e9;
  border-color: #2A0E33;
}

/* ---- drawer / modal open states ---- */
.drawer-open #cart-drawer {
  transform: translateX(0);
}
.quickview-open #quickview-panel {
  transform: translateY(0) scale(1);
}

/* ---- checkout tabs ---- */
.checkout-tab {
  color: rgba(42, 14, 51, 0.55);
}
.checkout-tab.active {
  background: #2A0E33;
  color: #f7f2e9;
}

/* ---- toast ---- */
.toast {
  pointer-events: auto;
  background: #2A0E33;
  color: #f7f2e9;
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 8px 30px -8px rgba(42, 14, 51, 0.4);
  animation: toast-in 0.25s ease;
  max-width: 90vw;
  text-align: center;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- category card ---- */
.category-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
}
.category-card img,
.category-card .ph-tile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.category-card:hover img,
.category-card:hover .ph-tile {
  transform: scale(1.06);
}
.category-card .ph-tile .ph-icon {
  width: 22%;
  max-width: 64px;
}
.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,14,51,0.85), rgba(42,14,51,0.05) 60%);
}

/* ---- hero texture (stand-in for a hero photograph) ---- */
.hero-texture {
  background:
    repeating-linear-gradient(135deg, rgba(247,242,233,0.05) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(45deg, rgba(247,242,233,0.04) 0 1px, transparent 1px 42px),
    radial-gradient(ellipse at 30% 20%, rgba(166,70,194,0.35), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(110,52,128,0.3), transparent 55%),
    linear-gradient(160deg, #4A1A57, #2A0E33 70%);
}
.hero-wordmark {
  position: absolute;
  right: -2%;
  bottom: -8%;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 22vw;
  line-height: 1;
  color: rgba(247, 242, 233, 0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ---- filter tab ---- */
.filter-tab {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(42, 14, 51, 0.15);
  background: transparent;
  color: rgba(42, 14, 51, 0.6);
  transition: all 0.15s ease;
}
.filter-tab.active {
  background: #2A0E33;
  color: #f7f2e9;
  border-color: #2A0E33;
}
