@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --ink: #15201c;
  --ink-soft: #2c3a34;
  --sage: #5b7c6e;
  --sage-deep: #3f5c50;
  --mist: #e8eee9;
  --paper: #f4f7f5;
  --white: #ffffff;
  --line: rgba(21, 32, 28, 0.12);
  --shadow: 0 18px 40px rgba(21, 32, 28, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 124, 110, 0.18), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 165, 116, 0.16), transparent 55%),
    linear-gradient(180deg, #eef3f0 0%, var(--paper) 40%, #e7ede9 100%);
  min-height: 100vh;
  line-height: 1.5;
}

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

a {
  color: var(--sage-deep);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(244, 247, 245, 0.85);
  border-bottom: 1px solid var(--line);
}

.site-header__inner,
.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  --nav-pad-y: 0.4rem;
  --nav-logo-height: 3.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: var(--nav-pad-y) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
  max-width: calc(100% - 5.5rem);
  height: var(--nav-logo-height);
}

.brand__logo {
  height: var(--nav-logo-height);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.brand__text {
  min-width: 0;
}

.brand[data-logo-mode="image"] {
  gap: 0;
}

.brand[data-logo-mode="image"] .brand__logo,
.brand[data-logo-mode="image-text"] .brand__logo {
  height: var(--nav-logo-height);
}

.nav-link {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  flex-shrink: 0;
}

.nav-link:hover {
  color: var(--sage-deep);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(72vh, 640px);
  display: grid;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(21, 32, 28, 0.15) 0%, rgba(21, 32, 28, 0.72) 100%),
    url("../assets/brand/hero-bg.svg?v=5") center center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero__glow {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 3.25rem;
  color: var(--white);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  animation: riseIn 0.8s ease both;
}

.hero__lede {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  animation: riseIn 0.9s ease 0.08s both;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  animation: riseIn 1s ease 0.14s both;
}

.hero__cta:hover {
  background: var(--mist);
}

/* Collections */
.collections {
  padding: 3rem 0 4.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.4rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.collection-search {
  margin: 0 0 1.5rem;
}

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

.collection-search__input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(21, 32, 28, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.collection-search__input::placeholder {
  color: rgba(44, 58, 52, 0.55);
}

.collection-search__input:focus {
  outline: none;
  border-color: rgba(91, 124, 110, 0.55);
  box-shadow: 0 0 0 4px rgba(91, 124, 110, 0.14);
}

mark.search-hit {
  background: linear-gradient(120deg, rgba(196, 165, 116, 0.55), rgba(91, 124, 110, 0.35));
  color: inherit;
  padding: 0.05em 0.18em;
  border-radius: 0.3em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.collection.is-search-match,
.product-card.is-search-match {
  box-shadow: 0 0 0 2px rgba(196, 165, 116, 0.45), var(--shadow);
}

.product-card.is-search-match {
  transform: translateY(-2px);
}

.collection {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(21, 32, 28, 0.04);
  transition: box-shadow 0.25s ease;
}

.collection.is-open {
  box-shadow: var(--shadow);
}

.collection__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.collection__toggle:hover {
  background: rgba(91, 124, 110, 0.06);
}

.collection__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0;
}

.collection__meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.collection__chevron {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.collection.is-open .collection__chevron {
  transform: rotate(180deg);
  background: var(--sage);
  color: white;
  border-color: var(--sage);
}

.collection__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.collection.is-open .collection__panel {
  grid-template-rows: 1fr;
}

.collection__panel-inner {
  overflow: hidden;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  padding: 0 1.25rem 1.35rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.25;
  order: 0;
}

.product-card__thumb {
  order: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--mist);
}

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

.product-card__link {
  order: 2;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-deep);
  text-decoration: none;
}

.product-card__link:hover {
  text-decoration: underline;
}

.empty-state,
.status-banner {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.status-banner.error {
  border-color: #c45c4a;
  color: #7a2e22;
  background: #fceceb;
}

.status-banner.ok {
  border-color: var(--sage);
  color: var(--sage-deep);
  background: #e7f0eb;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__inner p {
  margin: 0;
}

.footer-lock {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: rgba(21, 32, 28, 0.28);
  text-decoration: none;
  border-radius: 6px;
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.footer-lock:hover,
.footer-lock:focus-visible {
  color: rgba(21, 32, 28, 0.55);
  background: rgba(21, 32, 28, 0.04);
  outline: none;
}

/* Detail modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 28, 0.55);
  animation: fadeIn 0.2s ease;
}

.modal__dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(90vh, 860px);
  overflow: auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  animation: riseIn 0.28s ease;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.detail__gallery {
  background: var(--mist);
  padding: 1.25rem;
}

.detail__main {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #dfe8e2;
}

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

.detail__thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.detail__thumbs button {
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: white;
}

.detail__thumbs button.is-active {
  border-color: var(--sage);
}

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

.detail__body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  letter-spacing: -0.02em;
  padding-right: 2rem;
}

.detail__desc {
  margin: 0;
  color: var(--ink-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

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

.btn-primary:hover {
  background: var(--sage-deep);
}

.btn-secondary {
  background: var(--mist);
  color: var(--ink);
}

.btn-danger {
  background: #f3d9d4;
  color: #7a2e22;
}

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

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

/* Admin */
.admin-shell {
  width: min(100% - 2rem, 1180px);
  margin: 1.5rem auto 3rem;
}

.admin-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(21, 32, 28, 0.05);
  margin-bottom: 1rem;
}

.admin-card--preview {
  padding-bottom: 1rem;
}

.landing-preview {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}

.landing-preview .site-header,
.landing-preview .hero,
.landing-preview .collections,
.landing-preview .site-footer {
  pointer-events: auto;
}

.landing-preview .site-header {
  position: relative;
}

.landing-preview .hero {
  min-height: 420px;
}

.landing-preview .collections {
  padding: 2rem 0 2.5rem;
}

.landing-preview .site-footer {
  padding: 1.1rem 0 1.35rem;
}

.landing-preview [data-copy][contenteditable="true"] {
  outline: 1px dashed transparent;
  border-radius: 4px;
  cursor: text;
  transition: outline-color 0.15s ease, background 0.15s ease;
}

.landing-preview [data-copy][contenteditable="true"]:hover {
  outline-color: rgba(91, 124, 110, 0.45);
  background: rgba(91, 124, 110, 0.06);
}

.landing-preview [data-copy][contenteditable="true"]:focus {
  outline-color: var(--sage);
  background: rgba(255, 255, 255, 0.14);
}

.landing-preview .hero [data-copy][contenteditable="true"]:focus {
  background: rgba(255, 255, 255, 0.12);
}

.landing-preview__seo {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: #eef2f0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.landing-preview__seo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.landing-preview__favicon-row {
  display: grid;
  gap: 0.4rem;
}

.landing-preview__favicon-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.landing-preview__favicon-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
}

.landing-preview__logo-row {
  display: grid;
  gap: 0.45rem;
}

.landing-preview__logo-img {
  width: auto;
  height: 40px;
  max-width: 220px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: white;
  padding: 0.15rem 0.35rem;
}

.landing-preview__logo-mode-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(91, 124, 110, 0.12);
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.logo-mode-panel {
  display: grid;
  gap: 0.55rem;
}

.logo-mode-cards {
  display: grid;
  gap: 0.45rem;
}

.logo-mode-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.logo-mode-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.logo-mode-card__body {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(244, 247, 245, 0.92);
  color: var(--ink-soft);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.logo-mode-card__body strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.logo-mode-card__body span {
  font-size: 0.78rem;
  line-height: 1.35;
}

.logo-mode-card:hover .logo-mode-card__body {
  border-color: rgba(91, 124, 110, 0.45);
}

.logo-mode-card input:checked + .logo-mode-card__body {
  border-color: var(--sage);
  background: rgba(91, 124, 110, 0.14);
  box-shadow: inset 0 0 0 1px rgba(91, 124, 110, 0.28);
  color: var(--sage-deep);
}

.logo-mode-card input:focus-visible + .logo-mode-card__body {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

.logo-mode-text-row {
  margin: 0;
}

.logo-mode-text-row input.is-disabled,
.logo-mode-text-row input:disabled {
  opacity: 0.55;
  background: #e4ebe6;
  color: var(--ink-soft);
  cursor: not-allowed;
}

.landing-preview__seo [data-copy] {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.landing-preview__detail {
  margin: 0 1.25rem 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px dashed rgba(91, 124, 110, 0.45);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
}

.landing-preview__detail h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.landing-preview__note {
  margin-top: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.landing-preview__tile-sample {
  margin-top: 0.85rem;
}

.landing-preview .hero__cta,
.landing-preview .brand,
.landing-preview .nav-link,
.landing-preview__editable-cta,
.landing-preview__editable-btn {
  cursor: text;
}

.landing-preview__editable-btn:hover,
.landing-preview__editable-btn:focus {
  background: var(--ink) !important;
  color: #fff !important;
}

.landing-preview [data-copy="detailAffiliateCta"]:hover,
.landing-preview [data-copy="detailAffiliateCta"]:focus {
  background: var(--ink) !important;
  color: #fff !important;
}

.landing-preview__search-ph {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
}

.admin-card h1,
.admin-card h2,
.admin-card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: white;
  color: var(--ink);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--mist);
  font-size: 0.75rem;
  font-weight: 700;
}

.chip.archived {
  background: #e8eee9;
  color: var(--ink-soft);
}

.is-hidden-item {
  opacity: 0.62;
}

.collection-admin {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.85rem;
  overflow: hidden;
  background: white;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  touch-action: pan-y;
}

.collection-admin__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f7faf8;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.collection-admin__title-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.collection-admin__head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.product-admin-list {
  min-height: 0;
}

.product-admin {
  display: grid;
  grid-template-columns: 28px 72px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  touch-action: pan-y;
  background: white;
  cursor: pointer;
}

.product-admin:first-of-type {
  border-top: 0;
}

.product-admin__thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mist);
}

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

.product-admin__meta strong {
  display: block;
  font-size: 0.95rem;
}

.product-admin__meta span {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.product-admin__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.drag-handle {
  width: 28px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
  cursor: grab;
  display: grid;
  place-items: center;
  touch-action: none;
  flex-shrink: 0;
}

.drag-handle:hover,
.drag-handle:focus-visible {
  background: var(--mist);
  color: var(--ink);
  outline: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.drag-handle__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.is-drag-ready {
  transform: scale(1.015);
  box-shadow: var(--shadow);
  z-index: 2;
  position: relative;
  outline: 2px solid rgba(91, 124, 110, 0.45);
  outline-offset: -2px;
}

.is-dragging {
  opacity: 0.92;
  transform: scale(1.02);
  box-shadow: var(--shadow);
  z-index: 5;
  position: relative;
  cursor: grabbing;
  touch-action: none;
}

.is-drop-target {
  box-shadow: inset 0 3px 0 var(--sage);
}

.hidden {
  display: none !important;
}

.modal-hint {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.req-mark,
.opt-mark {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 0.35rem;
}

.req-mark {
  color: #7a2e22;
}

.opt-mark {
  color: var(--ink-soft);
  font-weight: 600;
}

.product-card__thumb--empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2c3330, #5b7c6e);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.modal-danger {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.modal-danger__label {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a2e22;
}

.confirm-body {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  white-space: pre-line;
  line-height: 1.55;
}

/* Cropper modal extras */
.crop-dialog {
  max-width: min(1100px, 96vw) !important;
}

.crop-modal__body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.crop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.75fr);
  gap: 1rem;
  align-items: start;
}

.crop-stage {
  position: relative;
  min-height: 420px;
  max-height: 65vh;
  background: #151b18;
  border-radius: 12px;
  overflow: hidden;
}

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

.crop-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  padding: 1.5rem;
  text-align: center;
}

.crop-stage.has-image .crop-empty {
  display: none;
}

.crop-side {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 0.15rem;
}

.crop-preview-frame {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #1a2621;
  border: 1px solid var(--line);
}

.crop-preview-frame.is-wide {
  aspect-ratio: 16 / 9;
}

.crop-preview-frame.is-logo {
  aspect-ratio: 3 / 1;
}

.crop-preview-frame.is-free {
  aspect-ratio: auto;
  min-height: 120px;
}

.crop-preview-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.crop-zoom label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.crop-zoom__controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.crop-zoom__controls input[type="range"] {
  width: 100%;
}

.crop-side__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.65rem 0 0.15rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.96) 18%,
    #fff 40%
  );
}

.crop-side__actions .btn {
  width: 100%;
}

.cropper-view-box,
.cropper-face {
  border-radius: 4px;
}

.cropper-modal {
  background-color: rgba(18, 26, 23, 0.72);
}

.landing-preview__hero-tools {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
}

.landing-preview .hero {
  position: relative;
}

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

  .crop-stage {
    min-height: 320px;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes heroDrift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 760px) {
  .detail {
    grid-template-columns: 1fr;
  }

  .product-admin {
    grid-template-columns: 28px 56px 1fr;
  }

  .product-admin__thumb {
    width: 56px;
    height: 56px;
  }

  .product-admin__actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}
