:root {
  --ink: #24171d;
  --muted: #735866;
  --line: #efc8d6;
  --paper: #ffffff;
  --soft: #fff2f7;
  --accent: #cf6f97;
  --accent-dark: #8f3d5d;
  --gold: #b9894c;
  --rose: #cf6f97;
  --rose-soft: #fde8f1;
  --shadow: 0 14px 40px rgba(143, 61, 93, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff6fa;
  font-family: "Montserrat", Arial, sans-serif;
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(207, 111, 151, 0.24);
  box-shadow: 0 10px 28px rgba(143, 61, 93, 0.1);
}

.header-main {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(260px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 96px;
  padding: 8px 5vw;
  background: #ffffff;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.brand {
  justify-self: center;
  display: block;
  text-align: center;
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.5rem;
  white-space: nowrap;
}

.brand-logo {
  width: min(290px, 38vw);
  height: 78px;
  object-fit: contain;
  border-radius: 0;
}

.site-header .brand span {
  display: none;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  padding: 0 0 8px;
  color: var(--muted);
  border-bottom: 1px solid rgba(143, 61, 93, 0.28);
}

.header-search input {
  width: 100%;
  min-height: 34px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search span:last-child {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.favorite-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(143, 61, 93, 0.2);
  border-radius: 8px;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  min-height: 42px;
  padding: 0 5vw;
  color: #5f4651;
  background: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(207, 111, 151, 0.2);
  font-size: 0.78rem;
  font-weight: 700;
  overflow-x: auto;
  text-transform: uppercase;
}

.main-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.cart-button,
.filter-btn,
.add-cart,
.checkout-link,
.contact-form button,
.primary-link,
.secondary-link {
  border-radius: 8px;
  cursor: pointer;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(143, 61, 93, 0.2);
  font-weight: 700;
}

#cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

.admin-topbar .brand {
  justify-self: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.admin-topbar .brand span {
  display: inline;
}

.admin-topbar .brand-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
}

.intro-band {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  padding: 64px 5vw;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(22, 18, 20, 0.72), rgba(22, 18, 20, 0.34), rgba(22, 18, 20, 0.06)),
    url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1600&q=80") center 55% / cover;
}

.intro-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background: transparent;
}

.intro-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.intro-band .eyebrow {
  color: #f4c5d8;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: "Marcellus", Georgia, serif;
  font-weight: 400;
}

h1 {
  max-width: 760px;
  font-size: 3.35rem;
  line-height: 1.02;
}

.intro-copy {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.7;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-link {
  color: var(--accent-dark);
  background: #fff;
}

.secondary-link {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(207, 111, 151, 0.16);
}

.stats-strip p {
  min-height: 92px;
  margin: 0;
  padding: 22px 5vw;
  background: #fff2f7;
}

.stats-strip strong,
.stats-strip span {
  display: block;
}

.stats-strip strong {
  font-size: 0.98rem;
}

.stats-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.section-wrap,
.shop-section,
.contact-section {
  padding: 78px 5vw;
}

.section-heading,
.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.section-heading h2,
.shop-heading h2,
.care-band h2,
.contact-section h2 {
  font-size: 2.35rem;
  line-height: 1.1;
}

.collection-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.collection-panel {
  position: relative;
  display: block;
  min-height: 390px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.collection-panel:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.collection-panel img {
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 260ms ease;
}

.collection-panel:hover img {
  transform: scale(1.04);
}

.collection-panel div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
}

.collection-panel p {
  margin: 0 0 8px;
  color: #ffd5e5;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.collection-panel h3 {
  max-width: 320px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.shop-section {
  background: #fff2f7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-btn {
  min-height: 40px;
  padding: 0 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.shop-layout {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 28px;
}

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

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(143, 61, 93, 0.1);
}

.product-card.hidden {
  display: none;
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--soft);
}

.product-gallery-trigger {
  position: relative;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 216px;
  padding: 18px;
}

.product-info p {
  margin: 0;
  color: var(--rose);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-info h3 {
  min-height: 48px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.product-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-info span {
  color: var(--accent-dark);
  font-weight: 800;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: auto;
}

.secondary-card-button {
  width: 100%;
  min-height: 44px;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.add-cart {
  width: 100%;
  min-height: 44px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  font-weight: 800;
}

.add-cart:hover {
  background: var(--accent);
}

.cart-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-panel h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 72px;
}

.empty-cart {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-item p,
.cart-item span {
  margin: 0;
}

.cart-item p {
  font-weight: 800;
}

.cart-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.remove-item {
  width: 34px;
  height: 34px;
  color: var(--rose);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.checkout-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 16px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  text-align: center;
}

.checkout-link:hover {
  background: var(--accent-dark);
}

.product-page {
  min-height: calc(100vh - 188px);
  padding: 38px 5vw 78px;
  background:
    radial-gradient(circle at top left, rgba(207, 111, 151, 0.16), transparent 30%),
    linear-gradient(180deg, #fff7fb, #fff1f6);
}

.product-page-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.product-page-empty,
.product-detail-layout {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(239, 200, 214, 0.9);
  border-radius: 18px;
  box-shadow: 0 20px 54px rgba(143, 61, 93, 0.12);
}

.product-page-empty {
  display: grid;
  gap: 14px;
  max-width: 760px;
  padding: 34px;
}

.product-page-empty p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-empty-link {
  width: fit-content;
}

.product-header-main {
  grid-template-columns: auto 1fr;
}

.product-brand {
  justify-self: start;
  text-align: left;
}

.product-page-header .brand span {
  display: inline;
}

.product-header-tools {
  flex-wrap: wrap;
}

.product-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(143, 61, 93, 0.2);
  border-radius: 8px;
  font-weight: 800;
}

.product-top-link:hover,
.product-whatsapp-link:hover {
  background: #fff;
}

.product-cart-link {
  text-decoration: none;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  overflow: hidden;
}

.product-detail-gallery {
  padding: 26px;
  background: linear-gradient(180deg, #fff8fb, #fff2f7);
  border-right: 1px solid rgba(143, 61, 93, 0.1);
}

.product-gallery-stage {
  position: relative;
}

.product-gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  border-radius: 16px;
  scrollbar-width: none;
  background: #fff;
  cursor: grab;
  touch-action: pan-x pan-y;
}

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

.product-gallery-track.is-dragging {
  cursor: grabbing;
}

.product-gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.product-gallery-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  user-select: none;
}

.product-gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 61, 93, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.product-gallery-nav.prev {
  left: 14px;
}

.product-gallery-nav.next {
  right: 14px;
}

.product-gallery-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.product-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.product-gallery-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
}

.product-gallery-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(143, 61, 93, 0.18);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.product-gallery-dot.active {
  background: var(--accent-dark);
}

.product-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.product-gallery-thumb {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
}

.product-gallery-thumb.active {
  border-color: var(--accent);
}

.product-gallery-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-detail-info {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px 30px 30px;
}

.product-back-link {
  width: fit-content;
  color: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-detail-category {
  margin: 0;
  color: var(--rose);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-detail-price {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.5rem;
  font-weight: 800;
}

.product-detail-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.product-detail-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.product-buy-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 6px;
}

.detail-add-cart,
.product-whatsapp-link {
  min-height: 48px;
}

.product-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 23, 29, 0.7);
}

.product-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1020px);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(36, 23, 29, 0.28);
}

.product-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 61, 93, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.product-modal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
}

.product-modal-gallery {
  padding: 24px;
  background: linear-gradient(180deg, #fff8fb, #fff1f6);
  border-right: 1px solid rgba(143, 61, 93, 0.1);
}

.product-modal-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

.product-modal-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-modal-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  margin-top: -21px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(143, 61, 93, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.product-modal-nav.prev {
  left: 14px;
}

.product-modal-nav.next {
  right: 14px;
}

.product-modal-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.product-modal-gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.product-modal-counter {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-modal-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.product-modal-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(143, 61, 93, 0.18);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.product-modal-dot.active {
  background: var(--accent-dark);
}

.product-modal-info {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 36px 28px 28px;
}

.product-modal-category {
  margin: 0;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-modal-info h3 {
  font-size: 2rem;
  line-height: 1.05;
}

.product-modal-price {
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.product-modal-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-modal-add {
  margin-top: 10px;
}

.care-band {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1fr;
  gap: 42px;
  padding: 68px 5vw;
  color: var(--ink);
  background: #f5c9d8;
}

.care-band .eyebrow {
  color: var(--rose);
}

.care-band ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.care-band li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(163, 56, 81, 0.24);
  line-height: 1.6;
}

.contact-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  align-items: start;
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
}

.contact-section p:not(.eyebrow) {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(207, 111, 151, 0.18);
}

.contact-form button {
  min-height: 48px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  font-weight: 800;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 30px 5vw;
  color: #fff;
  background: #8f3d5d;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child {
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.35rem;
}

.admin-page {
  min-height: 100vh;
  padding: 28px 5vw 70px;
  background: #fff2f7;
}

.login-page {
  display: grid;
  place-items: center;
}

.admin-login,
.admin-form,
.public-link-box,
.admin-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(143, 61, 93, 0.1);
}

.admin-login {
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  padding: 28px;
}

.admin-login img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
}

.admin-login h1,
.admin-hero h1,
.edit-wrap h1 {
  font-size: 2rem;
  line-height: 1.1;
}

.admin-login label,
.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-login input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.public-link-box input {
  width: 100%;
  padding: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.admin-login input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.public-link-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(207, 111, 151, 0.18);
}

.admin-login button,
.admin-form button,
.admin-actions button,
.secondary-admin-link,
.admin-product-actions a,
.admin-product-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.admin-login button,
.admin-form button,
.admin-actions button {
  color: #fff;
  background: var(--accent-dark);
  border: 0;
}

.admin-form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-login a {
  color: var(--accent);
  font-weight: 800;
}

.admin-topbar,
.admin-actions,
.admin-section-title,
.admin-product-actions {
  display: flex;
  align-items: center;
}

.admin-topbar {
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 34px;
}

.admin-actions {
  gap: 10px;
}

.secondary-admin-link,
.admin-product-actions a,
.admin-product-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.admin-hero p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.public-link-box {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.public-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.public-link-box span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.copy-link-button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent-dark);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto 16px;
}

.admin-metric-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(143, 61, 93, 0.08);
}

.admin-metric-card span,
.admin-form-copy,
.field-hint,
.image-preview-head small,
.admin-search-field span {
  color: var(--muted);
}

.admin-metric-card span {
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-metric-card strong {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.admin-metric-card small {
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-alert {
  max-width: 1180px;
  margin: 0 auto 14px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 800;
}

.admin-alert.success {
  color: var(--accent-dark);
  background: #fde8f1;
  border: 1px solid #efc8d6;
}

.admin-alert.error {
  color: #7a1e30;
  background: #ffe4ea;
  border: 1px solid #f3bdca;
}

.admin-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.admin-stack {
  display: grid;
  gap: 24px;
}

.admin-store-settings {
  max-width: 1180px;
  margin: 0 auto 16px;
}

.admin-form {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.admin-cover-form {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: start;
  gap: 20px;
}

.admin-cover-fields {
  display: grid;
  gap: 16px;
}

.admin-form-copy {
  margin: -4px 0 0;
  line-height: 1.6;
}

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

.admin-form h2,
.admin-section-title h2 {
  margin: 0;
  font-family: "Marcellus", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.5;
}

.image-preview-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px dashed rgba(143, 61, 93, 0.24);
  border-radius: 8px;
}

.image-preview-head {
  display: grid;
  gap: 4px;
}

.image-preview-head span {
  font-weight: 800;
}

.image-preview-group {
  display: grid;
  gap: 10px;
}

.image-preview-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.image-preview-frame {
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(143, 61, 93, 0.14);
  border-radius: 8px;
}

.image-preview-frame img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.admin-cover-preview-frame {
  min-height: 260px;
}

.admin-cover-preview-frame img {
  height: 260px;
}

.image-preview-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

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

.admin-image-tile {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(143, 61, 93, 0.14);
  border-radius: 10px;
}

.admin-image-tile.is-removed {
  opacity: 0.5;
}

.admin-image-tile.is-pending {
  border-style: dashed;
}

.admin-image-tile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.admin-image-tile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-line {
  grid-template-columns: 20px 1fr;
  align-items: center;
  color: var(--ink);
}

.checkbox-line input {
  width: 18px;
  height: 18px;
}

.form-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.form-action-row .secondary-admin-link {
  background: #fff;
  border: 1px solid var(--line);
}

.admin-products {
  display: grid;
  gap: 16px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-search-field {
  display: grid;
  gap: 8px;
}

.admin-search-field span {
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-filter-pill {
  min-height: 40px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.admin-filter-pill.active {
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.admin-section-title {
  justify-content: space-between;
  gap: 16px;
}

.admin-section-title span,
.status-pill,
.category-pill,
.product-id-pill {
  color: var(--accent-dark);
  background: #fde8f1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-section-title span {
  padding: 8px 10px;
}

.admin-product-list {
  display: grid;
  gap: 14px;
}

.admin-category-list {
  display: grid;
  gap: 14px;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
}

.admin-product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

.admin-product-content {
  display: grid;
  gap: 8px;
}

.admin-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.admin-product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-category-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(143, 61, 93, 0.1);
}

.admin-category-thumb img,
.admin-category-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

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

.admin-category-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #fff2f7;
  border: 1px dashed rgba(143, 61, 93, 0.2);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-category-copy {
  font-size: 0.88rem;
}

.status-pill {
  display: inline-flex;
  padding: 6px 8px;
}

.status-pill.is-hidden {
  color: #7a1e30;
  background: #ffe4ea;
}

.category-pill,
.product-id-pill {
  display: inline-flex;
  padding: 6px 8px;
}

.product-id-pill {
  color: #5f4651;
  background: rgba(239, 200, 214, 0.44);
}

.admin-product-price {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-dark) !important;
}

.admin-product-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-product-actions form {
  margin: 0;
}

.admin-product-actions .danger-button {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.edit-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.empty-products {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-products.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

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

  .cart-panel {
    position: static;
  }

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

  .admin-grid,
  .admin-cover-form,
  .admin-hero,
  .admin-metrics,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

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

  .product-detail-gallery {
    border-right: 0;
    border-bottom: 1px solid rgba(143, 61, 93, 0.1);
  }

  .admin-product-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .admin-category-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .admin-product-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

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

  .header-main {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 18px 12px;
  }

  .header-space {
    display: none;
  }

  .brand-logo {
    width: 230px;
    height: 68px;
  }

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

  .product-brand {
    justify-self: center;
    text-align: center;
  }

  .header-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-search {
    flex: 1 1 220px;
    min-width: 0;
    max-width: 420px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 24px;
    width: auto;
    min-height: 44px;
    padding: 0 18px;
    overflow-x: auto;
  }

  .main-nav-links {
    gap: 24px;
  }

  h1 {
    font-size: 2.45rem;
  }

  .intro-band {
    min-height: 390px;
    padding-top: 48px;
    padding-bottom: 48px;
    background:
      linear-gradient(90deg, rgba(22, 18, 20, 0.76), rgba(22, 18, 20, 0.34)),
      url("https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?auto=format&fit=crop&w=1600&q=80") center 55% / cover;
  }

  .stats-strip,
  .collection-grid,
  .care-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .shop-heading {
    align-items: start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }

  .product-modal {
    padding: 18px;
  }

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

  .product-modal-gallery {
    border-right: 0;
    border-bottom: 1px solid rgba(143, 61, 93, 0.1);
  }

  .product-page {
    padding-top: 26px;
  }

  .product-detail-gallery,
  .product-detail-info,
  .product-page-empty {
    padding: 22px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.25rem;
  }

  .brand-logo {
    width: 210px;
    height: 62px;
  }

  .header-search {
    order: 3;
    flex-basis: 100%;
  }

  .cart-button {
    padding: 0 12px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav-links {
    gap: 18px;
  }

  h1 {
    font-size: 2rem;
  }

  .section-heading h2,
  .shop-heading h2,
  .care-band h2,
  .contact-section h2 {
    font-size: 1.85rem;
  }

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

  .product-actions,
  .product-buy-actions,
  .admin-image-grid {
    grid-template-columns: 1fr;
  }

  .collection-panel,
  .collection-panel img {
    min-height: 320px;
  }

  .intro-actions,
  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .product-gallery-footer {
    justify-content: flex-start;
  }

  .product-modal {
    padding: 12px;
  }

  .product-modal-dialog {
    max-height: 94vh;
  }

  .product-modal-gallery,
  .product-modal-info {
    padding: 18px;
  }

  .admin-page {
    padding-left: 18px;
    padding-right: 18px;
  }

  .admin-actions,
  .admin-product-actions {
    width: 100%;
  }

  .public-link-row,
  .admin-form-grid,
  .form-action-row {
    grid-template-columns: 1fr;
  }

  .admin-actions form,
  .admin-actions button,
  .secondary-admin-link,
  .copy-link-button,
  .admin-filter-pill,
  .admin-product-actions a,
  .admin-product-actions form,
  .admin-product-actions button {
    width: 100%;
  }

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

  .admin-category-card {
    grid-template-columns: 1fr;
  }
}
