/* ==========================================================================
   Blondaa Shop UA — Premium Minimalist Fashion Storefront (Mobile-First)
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f6f6f6;
  --surface-hover: #efefef;
  --ink: #111111;
  --ink-muted: #666666;
  --ink-light: #949494;
  --border: #e8e8e8;
  --border-strong: #d4d4d4;
  --sale: #e11d48;
  --sale-soft: #fff1f2;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Oswald', Impact, 'Arial Narrow', sans-serif;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --header-h: 58px;
  --bottom-nav-h: 64px;
  --shadow-sm: 0 2px 10px rgba(17, 17, 17, 0.05);
  --shadow-lg: 0 20px 50px rgba(17, 17, 17, 0.18);
  --transition: 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 16px;
}

/* ==========================================================================
   HEADER & BRAND LOGO
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Mobile-First: bottom nav already holds Search/Fav/Cart, so keep top header pure & centered */
.header-actions {
  display: none;
  align-items: center;
  gap: 4px;
}

/* Logo: "Blondaa" condensed bold + "Shop" light + "UA" bold */
.brand-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
  user-select: none;
}

.logo-main {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: -0.015em;
  text-transform: none;
  color: var(--ink);
  transform: scaleY(1.06);
  transform-origin: left bottom;
}

.logo-sub {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-shop {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
}

.logo-ua {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.brand-logo--footer .logo-main {
  font-size: 30px;
}

.header-text-link {
  display: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.header-text-link:hover {
  color: var(--ink);
  background: var(--surface);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: var(--surface);
}

.icon-btn:active {
  transform: scale(0.93);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
}

.icon-btn--desktop-only {
  display: none;
}

.badge-counter {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.badge-counter[hidden] {
  display: none;
}

.badge-counter--sm {
  top: -5px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  font-size: 10px;
}

/* Search Drawer */
.search-drawer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  animation: fadeSlideDown 0.2s ease;
}

.search-drawer-inner {
  padding-block: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-input-icon {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--ink-light);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 36px 0 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.search-input:focus {
  background: #ffffff;
  border-color: var(--ink);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e2e2;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-clear-btn[hidden] {
  display: none;
}

.search-close-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 6px 4px;
}

/* ==========================================================================
   TRUST MARQUEE
   ========================================================================== */

.trust-marquee {
  background: var(--ink);
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding-block: 8px;
}

.trust-track {
  display: inline-flex;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.trust-marquee:hover .trust-track {
  animation-play-state: paused;
}

.trust-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-right: 14px;
}

.trust-dot {
  opacity: 0.4;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   INSTAGRAM STORIES RAIL
   ========================================================================== */

.stories-section {
  padding-top: 14px;
  padding-bottom: 6px;
}

.stories-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  padding-bottom: 4px;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  transition: transform var(--transition);
}

.story-item:active {
  transform: scale(0.94);
}

.story-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  padding: 2.5px;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), transform var(--transition);
}

.story-ring--sale {
  border-color: var(--sale);
}

.story-item:hover .story-ring {
  transform: translateY(-2px);
}

.story-item.is-active .story-ring {
  border-width: 2.5px;
}

.story-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar svg {
  width: 22px;
  height: 22px;
}

.story-avatar--sale {
  background: var(--sale-soft);
  color: var(--sale);
}

.story-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}

/* ==========================================================================
   EDITORIAL SPLIT HERO BANNER (60% Text / 40% Live 3:4 Product Portrait)
   ========================================================================== */

.banner-section {
  padding-block: 10px 18px;
}

.hero-split {
  background: #eae3d9;
  color: var(--ink);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.06);
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}

.hero-split-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6258;
}

.hero-split-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.12;
  color: var(--ink);
}

.hero-split-subtitle {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #4f4941;
}

.hero-split-cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), background var(--transition);
}

.hero-split-cta:hover {
  background: #282624;
  transform: translateY(-1px);
}

.hero-split-cta:active {
  transform: scale(0.97);
}

.hero-split-media {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.hero-split-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #dfd7cb;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.12);
}

.hero-split-frame.is-loading {
  background: linear-gradient(90deg, #dfd7cb 25%, #e8e1d7 50%, #dfd7cb 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}

.hero-split-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.hero-split-img[hidden] {
  display: none;
}

.hero-split:hover .hero-split-img {
  transform: scale(1.03);
}

/* ==========================================================================
   CATALOG & FILTERS
   ========================================================================== */

.catalog-section {
  padding-top: 6px;
  padding-bottom: 36px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}

.section-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.reset-filters-btn,
.link-btn {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Category Pills */
.category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-rail::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.cat-pill:hover {
  background: var(--surface-hover);
}

.cat-pill.is-active {
  background: var(--ink);
  color: #ffffff;
}

.cat-pill--sale {
  color: var(--sale);
  background: var(--sale-soft);
}

.cat-pill--sale.is-active {
  background: var(--sale);
  color: #ffffff;
}

/* Compact Catalog Toolbar (Search + Size & Sort — collapsible behind "Фільтри") */
.catalog-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition);
}

.filters-toggle-btn:hover {
  background: var(--surface);
  border-color: var(--ink);
}

.filters-toggle-btn[aria-expanded="true"] {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.filters-toggle-btn[aria-expanded="true"] circle {
  fill: var(--ink);
}

.filters-toggle-btn svg {
  width: 16px;
  height: 16px;
}

.filters-active-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sale);
}

.filters-active-dot[hidden] {
  display: none;
}

.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  animation: fadeSlideDown 0.2s ease;
}

.catalog-toolbar[hidden] {
  display: none;
}

.catalog-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search-input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.catalog-search-input:focus {
  background: #ffffff;
  border-color: var(--ink);
}

/* Controls Bar */
.controls-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.select-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.select-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-light);
}

.control-select {
  height: 36px;
  padding: 0 10px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
  cursor: pointer;
}

.control-select:focus {
  border-color: var(--ink);
}

.active-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 14px;
}

.active-filter-banner[hidden] {
  display: none;
}

/* ==========================================================================
   PRODUCT GRID & CARDS
   ========================================================================== */

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

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #ebebeb;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.product-img--secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) {
  .product-card.has-alt-photo:hover .product-img--secondary {
    opacity: 1;
    transform: scale(1.03);
  }
}

.product-card.is-alt-photo .product-img--secondary {
  opacity: 1;
}

.product-card:hover .product-img--primary {
  transform: scale(1.04);
}

.card-photo-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  gap: 4px;
  padding: 3px 6px;
  border-radius: var(--radius-pill);
  background: rgba(17, 17, 17, 0.35);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.card-photo-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: background var(--transition);
}

.card-photo-dots span:first-child {
  background: #ffffff;
}

.product-card.is-alt-photo .card-photo-dots span:first-child {
  background: rgba(255, 255, 255, 0.5);
}

.product-card.is-alt-photo .card-photo-dots span:last-child {
  background: #ffffff;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  z-index: 2;
}

.product-badge--sale {
  background: var(--sale);
  color: #ffffff;
}

.product-badge--hit {
  background: var(--ink);
  color: #ffffff;
}

.product-badge--new {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.product-badge--luxe {
  background: #111111;
  color: #ffffff;
  letter-spacing: 0.1em;
}

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform var(--transition), background var(--transition);
}

.fav-btn:hover {
  background: #ffffff;
  transform: scale(1.06);
}

.fav-btn svg {
  width: 18px;
  height: 18px;
}

.fav-btn.is-active svg {
  fill: var(--ink);
  stroke: var(--ink);
}

.product-info {
  padding: 11px 11px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
}

.product-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.product-price--sale {
  color: var(--sale);
}

.product-old-price {
  font-size: 12px;
  color: var(--ink-light);
  text-decoration: line-through;
}

/* Swatches on Card */
.card-swatches-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.card-swatches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.swatch-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  padding: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition);
}

.swatch-dot span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.swatch-dot--bordered span {
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.22);
}

.swatch-dot.is-selected {
  border-color: var(--ink);
  transform: scale(1.12);
}

.card-color-caption {
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-sizes-line {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--ink-light);
}

/* Skeleton Loader Cards */
.skeleton-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-shimmer {
  background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.3s ease-in-out infinite;
}

.skeleton-media {
  aspect-ratio: 3 / 4;
  width: 100%;
}

.skeleton-body {
  padding: 12px 11px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-line {
  height: 12px;
  border-radius: 6px;
}

.skeleton-line--title {
  width: 85%;
  height: 14px;
}

.skeleton-line--price {
  width: 48%;
  height: 15px;
}

.skeleton-line--meta {
  width: 65%;
  height: 10px;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Wishlist Drawer Items */
.wishlist-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wishlist-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  align-items: center;
}

.wishlist-item-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wishlist-open-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
  background: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: background var(--transition);
}

.wishlist-open-btn:hover {
  background: #2a2a2a;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 44px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.empty-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
}

.empty-text {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* ==========================================================================
   REVIEWS SECTION (INSTAGRAM DIRECT STYLE)
   ========================================================================== */

.reviews-section {
  background: var(--surface);
  padding-block: 36px 42px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 4px;
}

.reviews-badge {
  flex: 0 0 auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

.reviews-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviews-nav-arrows {
  display: none;
  align-items: center;
  gap: 6px;
}

.reviews-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.reviews-arrow-btn:hover {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.reviews-arrow-btn:active {
  transform: scale(0.94);
}

.reviews-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.reviews-rail::-webkit-scrollbar {
  display: none;
}

.dm-card {
  flex: 0 0 286px;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dm-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dm-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dm-user {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dm-handle {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reviews-cta-wrap {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

.reviews-ig-btn {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-pill);
}

.dm-sub {
  font-size: 11px;
  color: var(--ink-light);
}

.dm-verified {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dm-bubble {
  background: var(--surface);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.dm-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-light);
}

.dm-reaction {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding-block: 36px 28px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-fop {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.footer-link {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background var(--transition);
}

.footer-link:hover {
  background: var(--surface-hover);
}

.footer-link-label {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.footer-link strong {
  font-size: 14.5px;
  font-weight: 600;
  margin-top: 2px;
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-light);
}

.footer-drop {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ink);
  color: #ffffff;
}

.btn--primary:hover {
  background: #262626;
}

.btn--telegram {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
}

.btn--telegram:hover {
  background: var(--surface-hover);
}

.btn--outline-dark {
  background: #ffffff;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn--outline-dark:hover {
  background: var(--ink);
  color: #ffffff;
}

.btn--full {
  width: 100%;
}

.btn--lg {
  min-height: 48px;
  font-size: 15px;
}

.btn--sm {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 13px;
}

/* ==========================================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================================== */

.mobile-bottom-nav {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0 !important;
  z-index: 2147483647 !important;
  height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

/* Keep modals/drawers cleanly above bottom nav & FAB when open */
body.no-scroll .mobile-bottom-nav,
body.no-scroll .contact-fab {
  z-index: 30 !important;
}

/* Prevent Netlify hosting badge from overlapping mobile bottom navigation */
[id*="netlify"],
[class*="netlify"],
iframe[src*="netlify"],
a[href*="netlify.com"][style*="fixed"],
div[style*="z-index"] > a[href*="netlify.com"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-light);
  transition: color var(--transition);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item.is-active {
  color: var(--ink);
  font-weight: 600;
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

/* ==========================================================================
   MODALS & BOTTOM SHEETS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 17, 17, 0.52);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

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

.modal-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: #ffffff;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 92dvh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.modal-drag-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: #dcdcdc;
  margin: 10px auto 4px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.modal-close-btn:hover {
  background: var(--surface);
}

.modal-close-btn--inline {
  position: static;
}

/* Product Modal Layout (Compact Mobile-First + Sticky Bottom Bar) */
.modal-sheet--product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 92dvh;
}

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

.pm-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pm-media-col {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  flex: 0 0 auto;
}

.pm-media {
  position: relative;
  height: 43vh;
  max-height: 360px;
  min-height: 230px;
  background: var(--surface);
  overflow: hidden;
  touch-action: pan-y;
}

.pm-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  cursor: zoom-in;
  transition: opacity 0.18s ease;
}

.pm-zoom-hint {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pm-fav-btn {
  top: 14px;
  right: 56px;
}

/* Product Modal Gallery Controls */
.pm-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background var(--transition), transform var(--transition);
}

.pm-nav-btn[hidden] {
  display: none;
}

.pm-nav-btn:hover {
  background: #ffffff;
}

.pm-nav-btn:active {
  transform: translateY(-50%) scale(0.93);
}

.pm-nav-btn--prev {
  left: 12px;
}

.pm-nav-btn--next {
  right: 12px;
}

.pm-photo-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.pm-photo-counter[hidden] {
  display: none;
}

.pm-thumbs {
  display: flex;
  gap: 7px;
  padding: 8px 12px;
  overflow-x: auto;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.pm-thumbs::-webkit-scrollbar {
  display: none;
}

.pm-thumbs[hidden] {
  display: none;
}

.pm-thumb {
  flex: 0 0 auto;
  width: 46px;
  height: 56px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  opacity: 0.62;
  background: var(--surface);
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}

.pm-thumb:hover {
  opacity: 0.9;
}

.pm-thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.pm-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-body {
  padding: 14px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* Mobile Sticky Bottom Bar inside Product Modal */
.pm-sticky-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(17, 17, 17, 0.06);
  z-index: 6;
}

.pm-sticky-price-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 0 0 auto;
}

.pm-sticky-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.pm-sticky-price.pm-price--sale {
  color: var(--sale);
}

.pm-sticky-old-price {
  font-size: 12px;
  color: var(--ink-light);
  text-decoration: line-through;
}

.pm-sticky-add-btn {
  flex: 1;
  min-height: 44px;
}

.pm-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pm-category {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
}

.pm-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  transition: background var(--transition), transform var(--transition);
}

.pm-share-btn:hover {
  background: var(--surface-hover);
}

.pm-share-btn:active {
  transform: scale(0.95);
}

.pm-share-btn svg {
  width: 14px;
  height: 14px;
}

.pm-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.pm-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pm-price {
  font-size: 22px;
  font-weight: 700;
}

.pm-price--sale {
  color: var(--sale);
}

.pm-old-price {
  font-size: 15px;
  color: var(--ink-light);
  text-decoration: line-through;
}

.pm-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), box-shadow var(--transition);
}

.pm-block.is-invalid {
  padding: 10px;
  margin: -10px;
  background: var(--sale-soft);
  box-shadow: inset 0 0 0 1.5px var(--sale);
  animation: gentleShake 0.32s ease;
}

.pm-field-error {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--sale);
}

.pm-field-error[hidden] {
  display: none;
}

@keyframes gentleShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-3px); }
}

.pm-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pm-label {
  font-size: 13.5px;
  color: var(--ink-muted);
}

.pm-label strong {
  color: var(--ink);
}

.pm-note {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.pm-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pm-swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 2.5px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), border-color var(--transition);
}

.pm-swatch span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
}

.pm-swatch--bordered span {
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.22);
}

.pm-swatch.is-selected {
  border-color: var(--ink);
  transform: scale(1.08);
}

.pm-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-pill {
  min-width: 56px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--transition);
}

.size-pill:hover {
  border-color: var(--ink);
}

.size-pill.is-selected {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

.size-guide-trigger {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  transition: background var(--transition);
}

.size-guide-trigger:hover {
  background: var(--surface-hover);
}

/* Smart Size Calculator */
.size-calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideDown 0.2s ease;
}

.size-calc[hidden] {
  display: none;
}

.size-calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.size-calc-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  font-size: 12px;
}

.size-calc-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.range-input {
  width: 100%;
  accent-color: var(--ink);
  cursor: pointer;
}

.fit-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: #ffffff;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.fit-btn {
  height: 34px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all var(--transition);
}

.fit-btn.is-active {
  background: var(--ink);
  color: #ffffff;
  font-weight: 600;
}

.size-calc-result {
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 12px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.calc-result-caption {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.calc-result-value {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}

.calc-result-hint {
  margin: 3px 0 0;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.pm-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.pm-description {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* Product Details Accordion */
.pm-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.acc-item {
  border-bottom: 1px solid var(--border);
}

.acc-item[hidden] {
  display: none;
}

.acc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.acc-summary::-webkit-details-marker {
  display: none;
}

.acc-icon {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-muted);
  transition: transform var(--transition);
}

.acc-item[open] .acc-icon {
  transform: rotate(45deg);
}

.acc-content {
  padding: 0 2px 13px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.info-mini-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-mini-list strong {
  color: var(--ink);
}

.pm-trust-strip {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-align: center;
  line-height: 1.45;
}

/* Related Products ("Вам також сподобається") */
.pm-related {
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.pm-related[hidden] {
  display: none;
}

.pm-related-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.pm-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pm-related-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.pm-related-card:hover {
  transform: translateY(-2px);
}

.pm-related-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #ebebeb;
}

.pm-related-info {
  padding: 8px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pm-related-name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-related-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

/* Fullscreen Photo Lightbox with Zoom */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-topbar {
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  flex: 0 0 auto;
}

.lightbox-counter {
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.88;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-stage {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px 16px 24px;
}

.lightbox-img-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-xs);
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  user-select: none;
}

.lightbox.is-zoomed .lightbox-img {
  transform: scale(1.95);
  cursor: zoom-out;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background var(--transition);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav--prev {
  left: 14px;
}

.lightbox-nav--next {
  right: 14px;
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

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

.cart-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.cart-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
}

/* Free Delivery Progress Bar */
.delivery-progress {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 14px;
}

.delivery-progress[hidden] {
  display: none;
}

.delivery-progress.is-unlocked {
  background: #f2f9f5;
  border-color: #cde8d8;
}

.delivery-progress-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.delivery-progress-track {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: #e2e2e2;
  overflow: hidden;
}

.delivery-progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delivery-progress.is-unlocked .delivery-progress-fill {
  background: #15803d;
}

/* Payment Method Selector */
.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.payment-option input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.payment-option.is-selected {
  border-color: var(--ink);
  background: var(--surface);
}

.payment-option-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.payment-option-body strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.payment-option-body small {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.cart-delivery-note {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.delivery-info-list li strong {
  color: var(--ink);
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
}

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

.cart-success {
  text-align: center;
  padding: 40px 16px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.25s ease;
}

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

.cart-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #15803d;
  color: #ffffff;
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.cart-success h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
}

.cart-success p {
  margin: 0 0 12px;
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.5;
  max-width: 310px;
}

.label-optional {
  font-weight: 400;
  color: var(--ink-light);
}

.form-group input.is-invalid,
.form-group textarea.is-invalid {
  border-color: var(--sale);
  background: var(--sale-soft);
}

/* Nova Poshta Autocomplete Dropdowns */
.np-fields[hidden],
#npManualWrap[hidden] {
  display: none;
}

.np-autocomplete {
  position: relative;
}

.np-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.np-input-wrap input {
  padding-right: 36px;
}

.np-input-wrap input:disabled {
  background: var(--surface);
  color: var(--ink-light);
  cursor: not-allowed;
}

.np-input-spinner {
  position: absolute;
  right: 11px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}

.np-input-spinner[hidden] {
  display: none;
}

.np-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 30;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs);
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.14);
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.np-dropdown[hidden] {
  display: none;
}

.np-option {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  min-height: 42px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background var(--transition);
}

.np-option:last-child {
  border-bottom: 0;
}

.np-option:hover,
.np-option:focus-visible {
  background: var(--surface);
  outline: none;
}

.np-option-sub {
  font-size: 11.5px;
  color: var(--ink-muted);
}

.np-dropdown-status {
  padding: 12px;
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.np-retry-btn {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--transition);
}

.np-retry-btn:hover {
  background: #2b2b2b;
}

.np-field-error {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--sale);
}

.np-field-error[hidden] {
  display: none;
}

/* Delivery Method Cards (3 options) */
.delivery-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.delivery-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: #ffffff;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.delivery-card input[type="radio"] {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
}

.delivery-card.is-selected {
  border-color: var(--ink);
  background: var(--surface);
}

.delivery-card-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.delivery-card-body strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.delivery-card-body small {
  font-size: 11.5px;
  color: var(--ink-muted);
}

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

/* Country Quick Chips (NP Global) */
.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.country-chip {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--transition), border-color var(--transition);
}

.country-chip:hover {
  background: var(--surface-hover);
  border-color: var(--ink);
}

.global-delivery-hint {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Disabled Payment State */
.payment-option.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
  background: var(--surface);
}

.payment-option.is-disabled input[type="radio"] {
  cursor: not-allowed;
}

.payment-lock-note {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}

.payment-lock-note[hidden] {
  display: none;
}

.np-manual-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.np-manual-toggle {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: -4px;
  margin-bottom: 12px;
  display: inline-block;
  text-align: left;
}

.np-manual-head .np-manual-toggle {
  margin: 0;
  flex: 0 0 auto;
}

.np-manual-toggle:hover {
  color: var(--ink);
}

.np-manual-toggle[hidden] {
  display: none;
}

.np-fallback-hint {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--ink-muted);
  background: var(--surface);
  padding: 7px 10px;
  border-radius: var(--radius-xs);
}

.np-fallback-hint[hidden] {
  display: none;
}

.btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.btn-spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  animation: spin 0.75s linear infinite;
}

.btn-spinner[hidden] {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.cart-empty h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.cart-empty p {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--ink-muted);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.cart-item-img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  background: #e9e9e9;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.cart-item-remove {
  font-size: 13px;
  color: var(--ink-light);
  padding: 2px 4px;
}

.cart-item-remove:hover {
  color: var(--ink);
}

.cart-item-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.cart-item-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.qty-val {
  min-width: 24px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 700;
}

/* Checkout Form */
.checkout-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0 16px;
}

.checkout-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.checkout-sub {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--ink);
}

.form-error {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--sale);
}

.form-error[hidden] {
  display: none;
}

.cart-foot {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 14.5px;
}

.cart-total-row strong {
  font-size: 20px;
  font-weight: 700;
}

.cart-terms-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-align: center;
  padding: 2px 4px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.cart-terms-link:hover {
  color: var(--ink);
}

/* Delivery & Privacy Modals stack cleanly above Cart Drawer */
#deliveryModalBackdrop,
#privacyModalBackdrop {
  z-index: 75;
}

#deliveryModal,
#privacyModal {
  z-index: 80;
}

.privacy-consent-note {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-light);
  text-align: center;
}

.privacy-inline-link {
  font-size: inherit;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.privacy-inline-link:hover {
  color: var(--ink);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.footer-legal-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-link:hover {
  color: var(--ink);
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.privacy-list strong {
  color: var(--ink);
}

/* Floating Quick Contact FAB */
.contact-fab {
  position: fixed;
  right: 16px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.contact-fab-trigger {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}

.contact-fab-trigger:hover {
  background: #262626;
  transform: translateY(-2px);
}

.contact-fab-trigger:active {
  transform: scale(0.94);
}

.contact-fab-trigger svg {
  width: 23px;
  height: 23px;
}

.contact-fab-trigger .fab-icon-close {
  display: none;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.contact-fab.is-open .fab-icon-chat {
  display: none;
}

.contact-fab.is-open .fab-icon-close {
  display: inline;
}

.contact-fab-menu {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.16);
  padding: 8px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeSlideDown 0.18s ease;
}

.contact-fab-menu[hidden] {
  display: none;
}

.contact-fab-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.contact-fab-link:hover {
  background: var(--surface);
}

.contact-fab-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 0 0 auto;
}

.contact-fab-link strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

.contact-fab-link small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-muted);
}

/* ==========================================================================
   DROP / WHOLESALE MODAL
   ========================================================================== */

.drop-content {
  padding: 18px 20px 28px;
}

.drop-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--surface);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.drop-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.drop-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink-muted);
}

.drop-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-h) + 14px);
  transform: translateX(-50%);
  z-index: 90;
  background: var(--ink);
  color: #ffffff;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  text-overflow: ellipsis;
  animation: fadeSlideUp 0.2s ease;
}

.toast[hidden] {
  display: none;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   TABLET & DESKTOP RESPONSIVE (>= 768px)
   ========================================================================== */

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }

  .container {
    padding-inline: 28px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .header-actions {
    display: flex;
  }

  .icon-btn--desktop-only {
    display: inline-flex;
  }

  .header-text-link {
    display: inline-flex;
    align-items: center;
  }

  .mobile-bottom-nav {
    display: none;
  }

  .contact-fab {
    right: 24px;
    bottom: 24px;
  }

  .toast {
    bottom: 24px;
  }

  .stories-rail {
    max-width: 520px;
    gap: 16px;
  }

  .hero-split {
    grid-template-columns: 60% 40%;
    padding: 30px 38px;
    gap: 28px;
  }

  .hero-split-content {
    gap: 12px;
  }

  .hero-split-eyebrow {
    font-size: 11px;
  }

  .hero-split-title {
    font-size: 38px;
  }

  .hero-split-subtitle {
    font-size: 15.5px;
    max-width: 440px;
  }

  .hero-split-cta {
    margin-top: 8px;
    font-size: 14px;
    padding: 12px 24px;
  }

  .hero-split-media {
    justify-content: center;
  }

  .hero-split-frame {
    max-width: 260px;
  }

  .catalog-toolbar {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
  }

  .catalog-search-wrap {
    flex: 1;
    max-width: 340px;
  }

  .catalog-search-input {
    height: 38px;
  }

  .controls-bar {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
  }

  .select-wrap {
    min-width: 185px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .product-info {
    padding: 14px 14px 16px;
  }

  .product-name {
    font-size: 14.5px;
  }

  .reviews-nav-arrows {
    display: inline-flex;
  }

  .reviews-rail {
    gap: 16px;
  }

  .dm-card {
    flex: 0 0 310px;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-drop {
    max-width: 420px;
  }

  /* Centered Modal on Desktop */
  .modal-sheet {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: min(860px, calc(100vw - 48px));
    max-height: 88vh;
    border-radius: var(--radius-lg);
    animation: fadeIn 0.2s ease;
  }

  .modal-sheet--compact {
    width: min(480px, calc(100vw - 48px));
  }

  .modal-drag-handle {
    display: none;
  }

  .modal-sheet--product {
    width: min(920px, calc(100vw - 48px));
    max-height: min(86vh, 680px);
  }

  .pm-layout {
    display: grid;
    grid-template-columns: 44% 56%;
    overflow: hidden;
    flex: 1;
    min-height: 0;
  }

  .pm-media-col {
    border-right: 1px solid var(--border);
    height: 100%;
    max-height: min(86vh, 680px);
    overflow: hidden;
  }

  .pm-media {
    height: auto;
    max-height: none;
    min-height: 0;
    flex: 1;
  }

  .pm-thumbs {
    border-bottom: 0;
    border-top: 1px solid var(--border);
    padding: 10px 12px;
  }

  .pm-thumb {
    width: 52px;
    height: 62px;
  }

  .pm-body {
    padding: 22px 24px 24px;
    gap: 11px;
    max-height: min(86vh, 680px);
    overflow-y: auto;
  }

  .pm-sticky-bar {
    display: none;
  }
}

@media (min-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .trust-track {
    animation: none;
  }
  * {
    scroll-behavior: auto !important;
  }
}
