:root {
  --magenta-900: #5c063e;
  --magenta-700: #a9086a;
  --magenta-500: #e2188c;
  --rose-100: #ffeaf3;
  --blush: #f7b4c9;
  --gold: #d7ad67;
  --cream: #fff8ed;
  --paper: #ffffff;
  --ink: #241729;
  --muted: #6d6071;
  --line: #eadbe5;
  --shadow: 0 18px 50px rgba(92, 6, 62, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
}

body.has-lightbox {
  overflow: hidden;
}

.consent-banner {
  align-items: center;
  background: white;
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -12px 36px rgba(36, 23, 41, 0.14);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 0;
  padding: 14px max(20px, calc((100vw - 1180px) / 2));
  position: fixed;
  right: 0;
  z-index: 70;
}

.consent-banner p {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

.consent-banner a {
  color: var(--magenta-700);
  font-weight: 800;
}

.consent-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
}

.consent-actions .primary-button,
.consent-actions .secondary-button {
  min-height: 42px;
}

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

a {
  color: inherit;
}

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

.site-header {
  background: rgba(255, 248, 237, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  min-height: 76px;
  padding: 12px 20px;
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: 170px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  object-fit: contain;
  width: 190px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: center;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.cart-button,
.primary-button,
.secondary-button,
.danger-button,
.quantity-button {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.cart-button,
.primary-button {
  background: var(--magenta-700);
  color: white;
}

.cart-button {
  border-radius: 999px;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
}

.cart-count {
  background: white;
  border-radius: 999px;
  color: var(--magenta-700);
  display: inline-grid;
  font-size: 0.78rem;
  height: 24px;
  min-width: 24px;
  padding: 0 6px;
  place-items: center;
}

.primary-button,
.secondary-button,
.danger-button {
  border-radius: 6px;
  min-height: 48px;
  padding: 0 18px;
}

.secondary-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--magenta-900);
}

.danger-button {
  background: #a20f32;
  color: white;
}

.cart-button:hover,
.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.quantity-button:hover {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.primary-button:disabled,
.primary-button[disabled] {
  background: #9b8a98;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.75;
  transform: none;
}

.hero {
  background: linear-gradient(120deg, #fff8ed 0%, #ffeaf3 48%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.98fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100svh - 76px);
  padding: 56px 20px 44px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  color: var(--magenta-700);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  color: var(--magenta-900);
  font-size: clamp(2.5rem, 8vw, 5.7rem);
  line-height: 0.94;
  margin-bottom: 20px;
  max-width: 760px;
}

.hero-copy .lead {
  color: var(--muted);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-list li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--magenta-900);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 8px 12px;
}

.hero-art {
  align-self: stretch;
  display: grid;
  min-height: 500px;
  place-items: center;
  position: relative;
}

.product-showcase {
  aspect-ratio: 4 / 3;
  background: white;
  border: 1px solid rgba(234, 219, 229, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 520px;
  overflow: hidden;
  padding: 14px;
  width: 100%;
}

.product-showcase img {
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.page-section {
  padding: 72px 20px;
}

.section-inner {
  margin: 0 auto;
  max-width: 1180px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 26px;
}

.section-heading h2 {
  color: var(--magenta-900);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  margin-bottom: 0;
  max-width: 760px;
}

.section-heading p {
  color: var(--muted);
  margin-bottom: 0;
  max-width: 410px;
}

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

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
}

.product-card a {
  text-decoration: none;
}

.product-media {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #fff, #ffeaf3);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 22px;
}

.product-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.card-preview {
  background: white;
  border: 1px solid #f4cadb;
  border-radius: 6px;
  box-shadow: 0 18px 30px rgba(169, 8, 106, 0.2);
  height: 168px;
  position: relative;
  transform: perspective(850px) rotateY(-18deg) rotateX(3deg);
  transform-style: preserve-3d;
  width: 220px;
}

.card-preview::before,
.card-preview::after {
  content: "";
  position: absolute;
}

.card-preview::before {
  background: linear-gradient(150deg, var(--magenta-700), var(--blush));
  border-radius: 4px;
  inset: 18px 20px;
  transform: translateZ(16px);
}

.card-preview::after {
  background: var(--gold);
  border-radius: 999px;
  height: 58px;
  right: 26px;
  top: 24px;
  transform: translateZ(28px);
  width: 58px;
}

.product-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.product-body h3 {
  color: var(--magenta-900);
  font-size: 1.2rem;
  margin-bottom: 0;
}

.product-body h3 a {
  color: inherit;
}

.product-body p {
  color: var(--muted);
  margin-bottom: 0;
}

.product-meta {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.price {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.stock {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.product-actions {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.quantity-control {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: inline-grid;
  grid-template-columns: 36px 36px 36px;
  min-height: 44px;
  overflow: hidden;
}

.quantity-button {
  background: white;
  color: var(--magenta-900);
  height: 44px;
  width: 36px;
}

.quantity-value {
  display: grid;
  font-weight: 900;
  height: 44px;
  place-items: center;
}

.empty-products {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 22px;
}

.quality-band {
  background: white;
  border-block: 1px solid var(--line);
}

.product-detail {
  padding: 54px 20px 76px;
}

.product-detail-grid {
  align-items: start;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
}

.breadcrumbs {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 8px;
  grid-column: 1 / -1;
}

.breadcrumbs a {
  color: var(--magenta-700);
  text-decoration: none;
}

.product-gallery {
  display: grid;
  gap: 12px;
}

.product-detail-media {
  aspect-ratio: 4 / 3;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 16px;
  width: 100%;
}

.product-detail-media img {
  border-radius: 6px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

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

.product-thumbnails button {
  aspect-ratio: 4 / 3;
  background: white;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
}

.product-thumbnails button.is-active {
  border-color: var(--magenta-700);
}

.product-thumbnails img {
  border-radius: 5px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-detail-copy {
  display: grid;
  gap: 18px;
}

.product-detail-copy h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  margin-bottom: 0;
}

.product-detail-lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 0;
}

.product-detail-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.product-detail-meta strong {
  color: var(--ink);
  font-size: 1.45rem;
}

.product-detail-meta span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--magenta-900);
  font-weight: 900;
  padding: 7px 12px;
}

.product-detail-actions {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 110px minmax(180px, 260px);
}

.product-detail-actions label {
  color: var(--magenta-900);
  display: grid;
  font-size: 0.88rem;
  font-weight: 900;
  gap: 6px;
}

.product-detail-actions input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 48px;
  padding: 9px 11px;
  width: 100%;
}

.product-info-block {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 18px;
}

.product-info-block h2 {
  color: var(--magenta-900);
  font-size: 1.2rem;
  margin-bottom: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  background: var(--rose-100);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--magenta-900);
  font-size: 0.9rem;
  font-weight: 900;
  padding: 7px 11px;
}

.feature-list {
  color: var(--muted);
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.image-lightbox {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 24px;
  position: fixed;
  z-index: 80;
}

.lightbox-backdrop {
  background: rgba(36, 23, 41, 0.74);
  border: 0;
  cursor: zoom-out;
  inset: 0;
  position: absolute;
}

.lightbox-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  max-height: calc(100vh - 48px);
  max-width: calc(100vw - 48px);
  padding: 14px;
  position: relative;
  width: auto;
}

.lightbox-content .close-button {
  align-self: flex-end;
  flex: 0 0 auto;
}

.lightbox-content img {
  border-radius: 6px;
  display: block;
  height: auto;
  max-height: calc(100vh - 126px);
  max-width: calc(100vw - 76px);
  object-fit: contain;
  width: auto;
}

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

.quality-point {
  border-left: 4px solid var(--magenta-500);
  padding: 12px 14px 12px 16px;
}

.quality-point h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.quality-point p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.about-grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 0.8fr 1.2fr;
}

.about-photo {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 320px;
  overflow: hidden;
  padding: 18px;
}

.about-photo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.about-copy h2 {
  color: var(--magenta-900);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.about-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-content {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(22px, 4vw, 42px);
}

.legal-content h1 {
  color: var(--magenta-900);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  margin-bottom: 0;
}

.legal-content h2 {
  color: var(--magenta-900);
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-content ul {
  margin: 0;
  padding-left: 20px;
}

.legal-updated {
  color: var(--magenta-700);
  font-weight: 900;
  margin-bottom: 0;
}

.cart-panel {
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(36, 23, 41, 0.12);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100dvh;
  max-width: 420px;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(110%);
  transition: transform 180ms ease;
  width: min(100%, 420px);
  z-index: 50;
}

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

.cart-header,
.cart-footer {
  padding: 18px;
}

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

.cart-header h2 {
  font-size: 1.35rem;
  margin: 0;
}

.close-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--magenta-900);
  cursor: pointer;
  font-size: 1.2rem;
  height: 40px;
  width: 40px;
}

.cart-items {
  overflow: auto;
  padding: 18px;
}

.cart-item {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding: 14px 0;
}

.cart-item strong {
  color: var(--magenta-900);
}

.cart-item button {
  background: transparent;
  border: 0;
  color: var(--magenta-700);
  cursor: pointer;
  font-weight: 800;
  justify-self: start;
  padding: 0;
}

.cart-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.cart-total {
  align-items: center;
  display: flex;
  font-size: 1.05rem;
  font-weight: 900;
  justify-content: space-between;
}

.cart-message {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
  min-height: 22px;
}

.site-footer {
  background: var(--ink);
  color: white;
  padding: 34px 20px;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
}

.footer-inner img {
  height: 44px;
  object-fit: contain;
  width: 162px;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  text-decoration: none;
}

.admin-page {
  background: #fff8ed;
}

.admin-page h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  margin-bottom: 10px;
}

.admin-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 32px 20px 72px;
}

.admin-login {
  display: grid;
  min-height: calc(100svh - 160px);
  place-items: center;
}

.admin-login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  max-width: 520px;
  padding: clamp(22px, 4vw, 42px);
  width: 100%;
}

.admin-login-card p {
  color: var(--muted);
}

.admin-token-form,
.admin-settings-form,
.admin-product-form {
  display: grid;
  gap: 14px;
}

.admin-token-form label,
.admin-settings-form label,
.admin-product-form label {
  color: var(--magenta-900);
  display: grid;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 7px;
}

.admin-token-form input,
.admin-settings-form input,
.admin-product-form input,
.admin-product-form textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 46px;
  padding: 10px 12px;
  width: 100%;
}

.admin-product-form textarea {
  min-height: 112px;
  resize: vertical;
}

.admin-product-form input:disabled {
  background: #f8eef4;
  color: var(--muted);
}

.admin-message {
  color: var(--muted);
  margin: 0;
  min-height: 22px;
}

.admin-message[data-tone="error"] {
  color: #a20f32;
  font-weight: 800;
}

.admin-message[data-tone="success"] {
  color: #1f7a48;
  font-weight: 800;
}

.admin-heading {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
}

.admin-settings-panel {
  margin-bottom: 18px;
}

.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 35px rgba(92, 6, 62, 0.08);
  overflow: hidden;
}

.admin-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.admin-panel-header h2 {
  color: var(--magenta-900);
  font-size: 1.25rem;
  margin: 0;
}

.admin-pill {
  background: var(--rose-100);
  border-radius: 999px;
  color: var(--magenta-900);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 10px;
}

.admin-product-list {
  display: grid;
  max-height: 680px;
  overflow: auto;
  padding: 10px;
}

.admin-product-row {
  align-items: center;
  background: white;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  text-align: left;
}

.admin-order-row {
  align-items: center;
  background: white;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
  text-align: left;
}

.admin-product-row:hover,
.admin-product-row.is-selected,
.admin-order-row:hover,
.admin-order-row.is-selected {
  background: var(--cream);
  border-color: var(--line);
}

.admin-product-row span,
.admin-order-row span {
  display: grid;
  gap: 2px;
}

.admin-product-row strong,
.admin-order-row strong {
  color: var(--magenta-900);
}

.admin-product-row small,
.admin-order-row small {
  color: var(--muted);
}

.admin-product-row em,
.admin-order-row em {
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.admin-product-form {
  padding: 16px;
}

.admin-settings-form {
  padding: 16px;
}

.admin-orders-panel {
  margin-bottom: 18px;
}

.admin-orders-layout {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
}

.admin-order-list {
  border-right: 1px solid var(--line);
  display: grid;
  max-height: 640px;
  overflow: auto;
  padding: 10px;
}

.admin-order-detail {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
}

.admin-order-summary {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-order-summary h3 {
  color: var(--magenta-900);
  font-size: 1.12rem;
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.admin-order-summary p {
  color: var(--muted);
  margin: 0;
}

.admin-order-summary strong {
  color: var(--magenta-900);
  font-size: 1.1rem;
  white-space: nowrap;
}

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

.admin-order-detail-grid section,
.admin-order-items,
.admin-ship-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.admin-order-detail h4 {
  color: var(--magenta-900);
  font-size: 0.95rem;
  margin: 0;
}

.admin-order-detail p {
  color: var(--muted);
  margin: 0;
}

.admin-order-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding-top: 8px;
}

.admin-order-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.admin-order-item span {
  color: var(--ink);
}

.admin-order-item strong {
  color: var(--magenta-900);
}

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

.admin-check {
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 10px !important;
}

.admin-check input {
  min-height: auto;
  width: 18px;
}

.admin-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 160px minmax(0, 1fr);
  padding: 12px;
}

.admin-preview .product-media {
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 6px;
  padding: 12px;
}

.admin-preview .card-preview {
  height: 90px;
  width: 116px;
}

.admin-preview p {
  align-self: center;
  color: var(--muted);
  margin: 0;
}

.admin-upload {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-upload-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-upload-header h3 {
  color: var(--magenta-900);
  font-size: 1rem;
  margin: 0 0 4px;
}

.admin-upload-header p {
  color: var(--muted);
  margin: 0;
}

.admin-dropzone {
  align-items: center;
  background: #fff8ed;
  border: 2px dashed #d9bfd0;
  border-radius: 8px;
  color: var(--magenta-900);
  cursor: pointer;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 126px;
  padding: 18px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.admin-dropzone:hover,
.admin-dropzone:focus-visible,
.admin-dropzone.is-dragging {
  background: #ffeaf3;
  border-color: var(--magenta-700);
  outline: 0;
  transform: translateY(-1px);
}

.admin-dropzone input {
  display: none;
}

.admin-dropzone span,
.admin-upload-actions span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-upload-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-gallery-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}

.admin-gallery-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: grab;
  display: grid;
  gap: 6px;
  margin: 0;
  overflow: hidden;
  padding: 8px;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.admin-gallery-item.is-dragging {
  cursor: grabbing;
  opacity: 0.45;
  transform: scale(0.98);
}

.admin-gallery-item.is-drop-target {
  border-color: var(--magenta-700);
}

.admin-gallery-item img {
  aspect-ratio: 4 / 3;
  background: var(--cream);
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.admin-gallery-item figcaption {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 6px;
  justify-content: space-between;
  text-align: center;
}

.admin-gallery-item button {
  background: #fff1f6;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #a20f32;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 28px;
  padding: 0 8px;
}

.admin-gallery-item button:hover {
  background: #ffe1eb;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 860px) {
  .admin-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-layout,
  .admin-orders-layout,
  .admin-order-detail-grid,
  .admin-form-grid,
  .admin-upload-header,
  .admin-preview {
    grid-template-columns: 1fr;
  }

  .admin-order-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
  }

  .admin-upload-header {
    flex-direction: column;
  }

  .admin-product-list {
    max-height: none;
  }
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .nav-actions {
    width: 100%;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .nav-actions {
    justify-content: space-between;
  }

  .hero-inner,
  .about-grid,
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-art {
    min-height: auto;
  }

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

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

@media (max-width: 620px) {
  .consent-banner,
  .consent-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .consent-banner {
    gap: 12px;
  }

  .consent-actions {
    gap: 8px;
  }

  .brand img {
    height: 48px;
    width: 176px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-inner,
  .page-section {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .product-actions,
  .product-detail-actions {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .cart-button {
    width: 100%;
  }
}
