/* Promeniy — storefront */

:root {
  --bg: #faf8f6;
  --bg-soft: #f3eeea;
  --ink: #1a1a1a;
  --ink-soft: #5c5c5c;
  --ink-muted: #8a8580;
  --pink: #d4a5a5;
  --pink-dark: #c49090;
  --pink-light: #f0e0e0;
  --border: rgba(26, 26, 26, 0.08);
  --white: #ffffff;

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Jost", "Helvetica Neue", sans-serif;

  --container: 1280px;
  --header-h: 64px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }

::selection { background: var(--pink-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s;
}

.site-header[data-header="hero"] {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: var(--white);
  opacity: 0;
  transform: translateY(-110%);
  box-shadow: none;
  transition:
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    color 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}

.site-header[data-header="hero"].is-ready {
  animation: header-shell-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s forwards;
}

.site-header[data-header="hero"].is-entered {
  animation: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.32s var(--ease),
    background 0.5s var(--ease),
    border-color 0.5s var(--ease),
    color 0.5s var(--ease),
    box-shadow 0.5s var(--ease),
    backdrop-filter 0.5s var(--ease);
}

.site-header[data-header="hero"].is-ready .menu-btn {
  animation: header-item-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.site-header[data-header="hero"].is-ready .logo {
  animation: header-item-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.site-header[data-header="hero"].is-ready .header-icons .icon-btn:nth-child(1) {
  animation: header-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.62s both;
}

.site-header[data-header="hero"].is-ready .header-icons .icon-btn:nth-child(2) {
  animation: header-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}

.site-header[data-header="hero"].is-ready .header-icons .icon-btn:nth-child(3) {
  animation: header-item-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}

.site-header[data-header="hero"] .menu-btn,
.site-header[data-header="hero"] .logo,
.site-header[data-header="hero"] .header-icons .icon-btn {
  opacity: 0;
}

.site-header[data-header="hero"].is-scrolled {
  background: rgba(250, 248, 246, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border), 0 10px 40px rgba(26, 26, 26, 0.07);
}

.site-header[data-header="hero"].is-entered.is-hide {
  transform: translateY(calc(-100% - 1px));
  opacity: 0;
  pointer-events: none;
}

.site-header[data-header="hero"].is-ready.is-scrolled:not(.is-hide) {
  animation: none;
  opacity: 1;
  transform: translateY(0);
}

@keyframes header-shell-in {
  from {
    opacity: 0;
    transform: translateY(-110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes header-item-in {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}

.logo {
  font-family: var(--body);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  justify-self: center;
}

.menu-btn {
  display: flex;
  color: var(--white);
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  justify-self: start;
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.32s var(--ease), opacity 0.22s var(--ease);
  transform-origin: center;
}

.menu-btn.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  justify-self: end;
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover { background: rgba(0, 0, 0, 0.05); }

.site-header[data-header="hero"]:not(.is-scrolled) .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--pink);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge:empty,
.cart-badge[data-count="0"] { display: none; }

/* Drawer menu */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 60;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.drawer-overlay.is-visible { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  background: var(--white);
  z-index: 70;
  padding: 2rem 1.75rem;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
}

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

.drawer__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-muted);
  width: 40px;
  height: 40px;
}

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}

.drawer__links a {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.drawer__links a:hover,
.drawer__links a[aria-current="page"] { color: var(--pink-dark); }

.drawer__sub {
  padding-left: 1rem !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: var(--ink-soft);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(3rem, 8vw, 6rem);
  background: #111111;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  width: 100%;
  color: var(--white);
}

.hero__eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.08;
  max-width: 14ch;
  margin-bottom: 2rem;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--white);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.btn:hover {
  background: transparent;
  color: var(--white);
}

.btn--pink {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
}

.btn--pink:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

.btn--full {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  margin-top: 1.5rem;
}

.btn--full:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  color: var(--white);
}

/* Collection sections / carousels */
.collection-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: var(--container);
  margin: 0 auto 1.75rem;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.section-head h2 {
  font-family: var(--body);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-link {
  font-size: 13px;
  color: var(--ink-muted);
  white-space: nowrap;
}

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

.carousel-wrap {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-wrap::-webkit-scrollbar { display: none; }

.carousel {
  display: flex;
  gap: 1rem;
  padding: 0 1.25rem;
  max-width: calc(var(--container) + 2.5rem);
  margin: 0 auto;
}

.carousel .product-card {
  flex: 0 0 clamp(220px, 28vw, 300px);
  scroll-snap-align: start;
}

/* Product card */
.product-card__link { display: block; }

.product-card__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 0.85rem;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--white);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.55rem;
  text-transform: uppercase;
}

.product-card__title {
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.product-card__price {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 14px;
}

.price--sale { color: var(--pink-dark); }
.price--was { color: var(--ink-muted); text-decoration: line-through; font-size: 13px; }

/* Editorial grid */
.editorial {
  padding: 0 1.25rem clamp(3rem, 6vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
}

.editorial__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.editorial__card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.editorial__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.editorial__card:hover img { transform: scale(1.03); }

.editorial__card span {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.editorial__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent 60%);
}

/* Newsletter */
.newsletter {
  background: var(--bg-soft);
  padding: clamp(3rem, 6vw, 5rem) 1.25rem;
}

.newsletter__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  overflow: hidden;
}

.newsletter__text {
  padding: clamp(2rem, 4vw, 3.5rem);
}

.newsletter__text h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.newsletter__text p {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter__form input {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  outline: none;
}

.newsletter__form input:focus { border-color: var(--pink); }

.newsletter__image {
  aspect-ratio: 4/5;
  min-height: 280px;
}

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

/* Catalog page */
.page-hero {
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 1.25rem 2.5rem;
}

.page-hero--compact {
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 1.5rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.page-hero p,
.page-lede {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto;
}

.page-lede {
  font-size: 1.05rem;
  margin-top: 1.25rem;
}

.catalog-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-pill {
  padding: 0.55rem 1.1rem;
  font-size: 13px;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

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

.filter-pill[aria-current="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.product-grid--4 { margin-top: 1.5rem; }

/* Product page */
.breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: calc(var(--header-h) + 1.25rem) 1.25rem 0;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.breadcrumb a:hover { color: var(--ink); }

.product-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.product-page__gallery {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-soft);
}

.product-page__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-page__cat {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}

.product-page__info h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.product-page__price {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  margin-top: 1rem;
  font-size: 1.1rem;
}

.product-page__desc {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.option-block { margin-top: 1.75rem; }

.option-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.65rem;
}

.size-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.size-btn {
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}

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

.size-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.product-page__note {
  margin-top: 1rem;
  font-size: 12px;
  color: var(--ink-muted);
}

.accordion {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

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

.accordion summary::after { content: "+"; font-size: 1.1rem; }
.accordion[open] summary::after { content: "−"; }

.accordion p {
  padding-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.related {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.related h2 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* About */
.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-card {
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
}

.about-card h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.about-card p { color: var(--ink-soft); font-size: 14px; }

.about-image {
  max-width: var(--container);
  margin: 0 auto 4rem;
  padding: 0 1.25rem;
}

.about-image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 1.5rem;
  background: var(--white);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.85rem;
  justify-self: unset;
}

.footer-brand p {
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col a {
  font-size: 13px;
  color: var(--ink-soft);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--white);
  font-size: 13px;
  padding: 0.85rem 1.25rem;
  z-index: 100;
  transition: transform 0.35s var(--ease);
  white-space: nowrap;
}

.toast.show { transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-page { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .newsletter__inner { grid-template-columns: 1fr; }
  .newsletter__image { display: none; }
}

@media (max-width: 640px) {
  .editorial__grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .carousel .product-card { flex: 0 0 72vw; }
}

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

  .site-header[data-header="hero"],
  .site-header[data-header="hero"] .menu-btn,
  .site-header[data-header="hero"] .logo,
  .site-header[data-header="hero"] .header-icons .icon-btn {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* --- Cart & Checkout Styles --- */
.cart-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.cart-subtitle {
  color: var(--ink-soft);
  font-size: 14px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 600px) {
  .cart-item {
    grid-template-columns: 70px 1fr auto;
    grid-template-areas:
      "img details remove"
      "img qty total";
    gap: 0.75rem;
  }
  .cart-item__media { grid-area: img; }
  .cart-item__details { grid-area: details; }
  .cart-item__qty-wrap { grid-area: qty; }
  .cart-item__total { grid-area: total; justify-self: end; }
  .cart-item__remove { grid-area: remove; justify-self: end; }
}

.cart-item__media {
  aspect-ratio: 4/5;
  width: 80px;
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 4px;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item__title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item__meta {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.cart-item__price-unit {
  font-size: 13px;
  color: var(--ink-soft);
}

.cart-item__qty-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
}

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  transition: background 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.qty-btn:hover {
  background: var(--bg-soft);
}

.qty-val {
  min-width: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.cart-item__total {
  font-size: 15px;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
}

.cart-item__remove {
  width: 32px;
  height: 32px;
  font-size: 20px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}

.cart-item__remove:hover {
  color: #e23b2e;
}

.cart-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
}

.btn-link {
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-link:hover {
  color: var(--pink-dark);
}

.btn-text {
  font-size: 13px;
  color: var(--ink-muted);
  background: none;
  border: none;
  cursor: pointer;
}

.btn-text:hover {
  color: #e23b2e;
  text-decoration: underline;
}

/* Checkout Form Card */
.checkout-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.checkout-card__title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  background: var(--bg-soft);
  padding: 1rem 1.25rem;
  border-radius: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}

.summary-val {
  font-weight: 500;
  color: var(--ink);
}

.summary-line--total {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
}

.summary-val--total {
  font-size: 1.2rem;
  color: var(--pink-dark);
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
  background: var(--white);
}

/* Empty State */
.cart-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.cart-empty__icon {
  margin-bottom: 1.25rem;
  color: var(--ink-muted);
}

.cart-empty h2 {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.cart-empty p {
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* Order Success Modal */
.order-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

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

.order-modal {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modal-pop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.order-modal__icon {
  width: 56px;
  height: 56px;
  background: var(--pink-light);
  color: var(--pink-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 1.25rem;
}

.order-modal h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.order-modal__sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.order-modal__details {
  background: var(--bg-soft);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  text-align: left;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 13.5px;
}

.modal-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
}

.modal-detail-row strong {
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.modal-detail-row--total {
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  font-size: 15px;
  color: var(--ink);
}

.modal-detail-row--total strong {
  color: var(--pink-dark);
}

.order-modal__note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

/* Product Card Add Button */
.btn-card-add {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.6rem;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-soft);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-card-add:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* --- Redesigned Product Page Styles --- */
.product-page--redesigned {
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.product-gallery-wrap {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

@media (max-width: 768px) {
  .product-page--redesigned {
    grid-template-columns: 1fr;
  }
  .product-gallery-wrap {
    grid-template-columns: 1fr;
    position: static;
  }
  .product-gallery-thumbs {
    order: 2;
    flex-direction: row !important;
    overflow-x: auto;
    max-height: none !important;
  }
  .gallery-thumb {
    width: 72px !important;
    flex: 0 0 72px;
  }
}

.product-gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: none;
}

.product-gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--bg-soft);
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
}

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

.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--pink-dark);
  transform: scale(1.03);
}

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

.product-gallery-main {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.product-gallery-main:hover img {
  transform: scale(1.03);
}

.product-page__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-meta-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stock-badge {
  font-size: 12px;
  color: #2e7d32;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stock-dot {
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.product-title {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1rem;
}

.product-page__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.discount-tag {
  background: #ffebee;
  color: #c62828;
  font-size: 12px;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
}

.product-page__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.option-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.btn-size-guide {
  font-size: 12.5px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
}

.btn-size-guide:hover {
  color: var(--ink);
}

.product-purchase-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1.75rem;
  margin-bottom: 2rem;
}

.product-qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  height: 48px;
  padding: 0 4px;
}

.product-qty-selector .qty-btn {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.product-qty-selector .qty-val {
  min-width: 36px;
  font-size: 15px;
}

.btn--buy-now {
  flex: 1;
  height: 48px;
  margin: 0;
  display: inline-flex;
  gap: 0.6rem;
  font-size: 14px;
  border-radius: 6px;
}

.product-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-soft);
  border-radius: 8px;
  margin-bottom: 2rem;
}

@media (max-width: 500px) {
  .product-features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 12.5px;
}

.feature-text strong {
  color: var(--ink);
  font-weight: 600;
}

.feature-text span {
  color: var(--ink-soft);
}

.accordions-wrap {
  border-top: 1px solid var(--border);
}

/* Size Guide Modal */
.size-guide-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.size-guide-modal-backdrop[hidden] {
  display: none !important;
}

.size-guide-modal {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: modal-pop 0.3s var(--ease);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  background: none;
  border: none;
}

.size-guide-modal h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.size-guide-modal p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.size-table-wrap {
  overflow-x: auto;
  margin-bottom: 1.75rem;
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: center;
}

.size-table th,
.size-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.size-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink);
}

.size-table tr:hover td {
  background: rgba(0, 0, 0, 0.02);
}

/* --- Admin Panel Styles --- */
.admin-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }
}

.admin-stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.stat-icon {
  font-size: 2rem;
  line-height: 1;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

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

.admin-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
}

.admin-form-card,
.admin-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.card-head h2 {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
}

.badge-count {
  font-size: 12.5px;
  background: var(--bg-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group select {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--body);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
}

.form-group select:focus {
  border-color: var(--pink);
  background: var(--white);
}

.admin-size-checkboxes {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.size-checkbox {
  cursor: pointer;
  user-select: none;
}

.size-checkbox input {
  display: none;
}

.size-checkbox span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 38px;
  padding: 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  background: var(--bg-soft);
  color: var(--ink);
  transition: all 0.2s;
}

.size-checkbox input:checked + span {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.form-help {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}

.admin-img-preview-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  overflow-x: auto;
}

.admin-preview-item {
  position: relative;
  width: 60px;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}

.admin-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-idx {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 9px;
  text-align: center;
  border-radius: 2px;
  padding: 1px 0;
}

/* Admin Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.admin-table th,
.admin-table td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  background: var(--bg-soft);
  font-weight: 600;
  text-align: left;
  color: var(--ink);
}

.admin-thumb {
  width: 48px;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-soft);
}

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

.cat-pill {
  font-size: 12px;
  background: var(--bg-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.admin-size-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  margin: 1px;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-icon-action {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-icon-action:hover {
  background: var(--white);
  border-color: var(--ink);
}

.btn-icon-action--delete:hover {
  background: #ffebee;
  border-color: #ef5350;
}

/* Drag & Drop Dropzone */
.admin-dropzone {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 1.75rem 1rem;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  user-select: none;
}

.admin-dropzone:hover,
.admin-dropzone.is-dragover {
  border-color: var(--pink-dark);
  background: #fdf5f5;
  transform: scale(1.005);
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.dropzone-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.dropzone-text {
  font-size: 14px;
  color: var(--ink);
}

.btn-browse-files {
  color: var(--pink-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.btn-browse-files:hover {
  color: var(--ink);
}

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

.preview-remove-btn {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.2s, background 0.2s;
}

.preview-remove-btn:hover {
  opacity: 1;
  background: #ef5350;
}

/* Edit Modal & Admin Search Styles */
.card-head--with-search {
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-search-wrap input {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  min-width: 220px;
  transition: border-color 0.2s, background 0.2s;
}

.admin-search-wrap input:focus {
  border-color: var(--pink-dark);
  background: var(--white);
}

.edit-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

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

.edit-modal {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 12px;
  padding: 2.25rem 2rem 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  animation: modalFadeUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeUp {
  from {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.edit-modal h2 {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.modal-actions-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.modal-actions-row .btn {
  flex: 1;
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
}

/* Admin Login Card & Auth */
.admin-login-backdrop {
  min-height: calc(80vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  text-align: center;
}

.admin-login-icon {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.85rem;
}

.admin-login-card h2 {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.admin-login-card p {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.admin-login-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.admin-login-error {
  background: #fde8e8;
  color: #c53030;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  border: 1px solid #f8b4b4;
}

.admin-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

.btn-logout {
  padding: 0.65rem 1.25rem;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-logout:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.admin-table-head-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-danger-sm {
  padding: 0.4rem 0.85rem;
  font-size: 12px;
  font-weight: 500;
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger-sm:hover {
  background: #fecaca;
}

/* Nova Poshta Selection System */
.np-block {
  position: relative;
}

.np-city-wrap {
  position: relative;
}

.np-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
}

.np-dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 13.5px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s, color 0.15s;
}

.np-dropdown-item:last-child {
  border-bottom: none;
}

.np-dropdown-item:hover,
.np-dropdown-item.is-selected {
  background: var(--bg-soft);
  color: var(--pink-dark);
  font-weight: 500;
}

.np-popular-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  font-size: 12px;
  color: var(--ink-soft);
}

.np-city-pill {
  padding: 0.2rem 0.55rem;
  font-size: 11.5px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.np-city-pill:hover {
  background: var(--pink-light);
  border-color: var(--pink);
  color: var(--ink);
}

.np-select-wrap {
  position: relative;
}

.np-select-wrap select {
  width: 100%;
  padding: 0.8rem 2.2rem 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.np-select-wrap select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.np-select-wrap select:focus {
  outline: none;
  border-color: var(--pink);
  background-color: var(--white);
}

.np-loader-spinner {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--pink-dark);
  border-radius: 50%;
  animation: npSpinner 0.6s linear infinite;
}

@keyframes npSpinner {
  to { transform: translateY(-50%) rotate(360deg); }
}




