:root {
  --bg: #f8f1e8;
  --bg-soft: #fff8f0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #1f1332;
  --ink: #23182f;
  --muted: #6f647f;
  --line: rgba(35, 24, 47, 0.12);
  --accent: #ff6b53;
  --accent-2: #ffb240;
  --accent-3: #30c7c9;
  --accent-4: #ff4fb7;
  --success: #239b72;
  --danger: #b33b53;
  --shadow: 0 20px 60px rgba(47, 21, 74, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(48, 199, 201, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 79, 183, 0.15), transparent 24%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 100%);
  min-height: 100vh;
}

[hidden] {
  display: none !important;
}

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

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

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

button {
  cursor: pointer;
}

main {
  display: block;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(35, 24, 47, 0.07);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.brand__text {
  display: grid;
  gap: 0.25rem;
}

.brand__text strong,
h1,
h2,
h3 {
  font-family: "Sora", sans-serif;
}

.brand__text span,
.muted {
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav__link {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav__link:hover,
.nav__link.is-active {
  background: rgba(35, 24, 47, 0.07);
  color: var(--ink);
}

.header-actions,
.hero-actions,
.filter-actions,
.table-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-form {
  display: inline-flex;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 28px rgba(255, 107, 83, 0.26);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 107, 83, 0.32);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid rgba(35, 24, 47, 0.1);
  box-shadow: none;
}

.button--danger {
  background: linear-gradient(135deg, #d14d5d, var(--danger));
  box-shadow: none;
}

.button--small {
  min-height: 40px;
  padding: 0.7rem 1rem;
  font-size: 0.94rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.eyebrow--accent {
  color: var(--accent);
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero-grid,
.page-hero__content,
.review-layout,
.product-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.product-summary h1,
.empty-state h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3vw, 4.3rem);
  line-height: 1.03;
}

.hero-copy__lead,
.page-hero__text,
.product-summary__lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-logo-card {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(48, 199, 201, 0.34), transparent 34%),
    radial-gradient(circle at bottom right, rgba(255, 79, 183, 0.32), transparent 32%),
    var(--surface-dark);
  box-shadow: var(--shadow);
}

.hero-logo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 10px);
}

.hero-story,
.feature-grid,
.product-grid,
.review-grid,
.summary-grid,
.detail-grid,
.field-grid {
  display: grid;
  gap: 1rem;
}

.hero-story {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.story-card,
.feature-card,
.product-card,
.review-card,
.metric-card,
.summary-card,
.detail-card,
.admin-card,
.form-panel,
.auth-card,
.empty-state {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.story-card,
.metric-card,
.feature-card,
.summary-card {
  padding: 1.1rem 1.2rem;
}

.story-card strong,
.feature-card h3,
.summary-card span {
  display: block;
  margin-bottom: 0.45rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.metric-card span,
.summary-card span {
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.section,
.page-hero,
.section--top {
  padding: 1.8rem 0 4rem;
}

.section--soft,
.page-hero {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.5rem);
}

.section-heading--compact {
  margin-top: 2rem;
}

.feature-grid,
.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

.review-grid--single {
  grid-template-columns: 1fr;
}

.product-card {
  overflow: hidden;
}

.product-card__image,
.gallery-main {
  position: relative;
  display: block;
  background: linear-gradient(135deg, rgba(48, 199, 201, 0.22), rgba(255, 79, 183, 0.14));
}

.product-card__image img,
.gallery-main img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.gallery-main img {
  height: 520px;
}

.badge-stack {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.badge,
.status-pill,
.stock-chip,
.pill,
.rating-highlight {
  border-radius: 999px;
}

.badge {
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.badge--sale {
  background: linear-gradient(135deg, var(--accent), #ff845b);
}

.badge--new {
  background: linear-gradient(135deg, var(--accent-3), #259ef1);
}

.badge--viewer {
  background: linear-gradient(135deg, #1f1332, #3650ff);
}

.badge--dark {
  background: rgba(20, 16, 31, 0.86);
}

.product-card__body,
.review-card,
.form-panel,
.auth-card,
.admin-card {
  padding: 1.35rem;
}

.product-card__body h3,
.review-card__text,
.breadcrumbs,
.footer-grid h3 {
  margin-top: 0;
}

.product-card__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.price-stack {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.8rem;
}

.price-stack--detail {
  margin: 1.4rem 0;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
}

.price-current {
  font-family: "Sora", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
}

.pill-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.pill,
.stock-chip,
.status-pill {
  padding: 0.5rem 0.85rem;
  background: rgba(35, 24, 47, 0.07);
  font-size: 0.9rem;
  font-weight: 700;
}

.pill--bold {
  background: rgba(255, 107, 83, 0.12);
}

.status-pill.is-live {
  background: rgba(35, 155, 114, 0.15);
  color: var(--success);
}

.status-pill.is-hidden {
  background: rgba(179, 59, 83, 0.12);
  color: var(--danger);
}

.product-card__footer,
.review-card__top,
.footer-grid,
.product-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__footer,
.review-card__top {
  align-items: center;
}

.text-link {
  color: var(--accent);
  font-weight: 800;
}

.stars {
  display: inline-flex;
  gap: 0.15rem;
}

.star {
  color: rgba(35, 24, 47, 0.14);
}

.star.is-filled {
  color: #f8a624;
}

.page-hero__content,
.review-layout {
  grid-template-columns: 1fr 0.95fr;
  align-items: start;
}

.filter-panel,
.review-results,
.breadcrumbs {
  border-radius: var(--radius-lg);
}

.filter-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(35, 24, 47, 0.08);
  box-shadow: var(--shadow);
}

.field,
.stack-form {
  display: grid;
  gap: 0.55rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 800;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(35, 24, 47, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.95rem 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 107, 83, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 107, 83, 0.12);
}

.form-errors,
.flash {
  margin-bottom: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  font-weight: 700;
}

.form-errors {
  background: rgba(209, 77, 93, 0.12);
  color: #922b42;
}

.flash {
  margin-top: 1rem;
}

.flash--success {
  background: rgba(35, 155, 114, 0.14);
  color: var(--success);
}

.flash--error {
  background: rgba(209, 77, 93, 0.14);
  color: #922b42;
}

.product-layout {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
}

.product-gallery,
.thumb-grid {
  display: grid;
  gap: 1rem;
}

.viewer360-shell {
  display: grid;
  gap: 1rem;
}

.gallery-main,
.thumb-button,
.viewer360 {
  overflow: hidden;
  border: 1px solid rgba(35, 24, 47, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.viewer360 {
  position: relative;
  background: linear-gradient(135deg, rgba(48, 199, 201, 0.22), rgba(255, 79, 183, 0.14));
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.viewer360.dragging {
  cursor: grabbing;
}

.viewer360 img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}

.viewer360__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  font-weight: 800;
  z-index: 2;
}

.viewer360__loading.hidden {
  display: none;
}

.viewer360__help {
  margin: 0;
  color: var(--muted);
}

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

.thumb-button {
  padding: 0;
  background: transparent;
  opacity: 0.75;
}

.thumb-button.is-active {
  opacity: 1;
  outline: 3px solid rgba(255, 107, 83, 0.32);
}

.thumb-button img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.product-summary,
.review-results,
.auth-shell,
.admin-shell {
  display: grid;
  gap: 1.5rem;
}

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

.detail-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.sizes-panel {
  display: grid;
  gap: 0.7rem;
}

.breadcrumbs {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(35, 24, 47, 0.08);
}

.rating-highlight {
  display: grid;
  place-items: center;
  min-width: 106px;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 83, 0.14), rgba(48, 199, 201, 0.14));
}

.rating-highlight strong {
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
}

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

.admin-card--narrow,
.auth-card {
  max-width: 760px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem 0.8rem;
  border-bottom: 1px solid rgba(35, 24, 47, 0.08);
  text-align: left;
  vertical-align: top;
}

.product-row img {
  width: 70px;
  height: 70px;
  border-radius: 18px;
  object-fit: cover;
}

.checkbox-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.check-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  border: 1px solid rgba(35, 24, 47, 0.08);
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.4rem;
}

.empty-state--large {
  max-width: 760px;
  margin: 0 auto;
}

.auth-shell {
  place-items: center;
}

.site-footer {
  padding: 1.4rem 0 2.6rem;
}

.footer-grid {
  align-items: start;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: rgba(31, 19, 50, 0.92);
  color: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.footer-quote {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.muted--small {
  font-size: 0.88rem;
}

.pill-row--compact {
  gap: 0.4rem;
}

.reveal {
  animation: reveal-up 0.7s ease both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .product-layout,
  .page-hero__content,
  .review-layout,
  .product-grid,
  .review-grid,
  .feature-grid,
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-story,
  .hero-metrics,
  .detail-grid,
  .field-grid,
  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .header-shell,
  .brand,
  .section-heading,
  .product-card__footer,
  .review-card__top,
  .footer-grid,
  .product-row {
    align-items: start;
  }

  .hero-grid,
  .product-layout,
  .page-hero__content,
  .review-layout,
  .product-grid,
  .review-grid,
  .feature-grid,
  .summary-grid,
  .hero-story,
  .hero-metrics,
  .detail-grid,
  .field-grid,
  .filter-panel,
  .thumb-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .product-summary h1,
  .empty-state h1 {
    font-size: 2.4rem;
  }

  .gallery-main img {
    height: 360px;
  }

  .viewer360 img {
    height: 360px;
  }

  .nav {
    width: 100%;
  }

  .nav__link {
    flex: 1 1 auto;
    text-align: center;
  }

  .button,
  .button--small {
    width: 100%;
  }

  .header-actions,
  .hero-actions,
  .filter-actions,
  .table-actions,
  .inline-form {
    width: 100%;
  }
}
