:root {
  --cream: #fff3ea;
  --milk: #fffdfb;
  --clay: #f1c5b5;
  --coral: #e86f54;
  --sun: #f4c36a;
  --sage: #9cb3a5;
  --ink: #2a211d;
  --cocoa: #5b463a;
  --shadow: 0 18px 48px rgba(35, 24, 18, 0.14);
  --radius: 26px;
}

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

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  font-size: 16px;
  background: radial-gradient(circle at 20% 10%, #fff6ee 0%, #f9eadf 40%, #f2ddd0 100%);
}

h1,
h2,
h3,
h4 {
  font-family: "Sora", "Manrope", sans-serif;
  margin: 0 0 12px;
  line-height: 1.2;
}

p {
  line-height: 1.7;
  margin: 0 0 16px;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 33, 29, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
  position: relative;
}

.mobile-menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(46, 33, 29, 0.18);
  background: var(--milk);
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: var(--ink);
  width: 18px;
  margin: 0 auto;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.mobile-nav nav {
  background: var(--milk);
  width: min(320px, 85%);
  height: 100%;
  padding: 80px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}

.mobile-nav.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav nav a {
  font-weight: 700;
  color: var(--ink);
}

.brand {
  display: flex;
  flex-direction: column;
  font-family: "Sora", "Manrope", sans-serif;
}

.brand-mark {
  font-size: 1.7rem;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(91, 70, 58, 0.8);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

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

.currency-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(46, 33, 29, 0.12);
  background: var(--milk);
  padding: 4px;
  cursor: pointer;
}

.currency-toggle .pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cocoa);
}

html[data-currency="ron"] .currency-toggle .pill:first-child,
html[data-currency="eur"] .currency-toggle .pill:last-child {
  background: var(--sun);
  color: #40281c;
}

.primary-button,
.secondary-button,
.ghost-button,
.cart-button {
  border-radius: 999px;
  padding: 10px 18px;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #f28a6d 0%, #e86f54 100%);
  color: #fff6ef;
  box-shadow: var(--shadow);
}

.secondary-button {
  background: #fff1e8;
  color: var(--cocoa);
  border: 1px solid rgba(46, 33, 29, 0.12);
}

.ghost-button,
.cart-button {
  background: transparent;
  border: 1px solid rgba(46, 33, 29, 0.18);
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.cart-button:hover {
  transform: translateY(-2px);
}

.page {
  min-height: 60vh;
}

.hero {
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--cocoa);
  margin-bottom: 12px;
  display: inline-block;
}

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

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.hero-meta div {
  background: rgba(255, 255, 255, 0.75);
  padding: 12px 14px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}

.hero-card,
.story-card {
  background: var(--milk);
  padding: 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--sun);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.75rem;
}

.section {
  padding: 60px 0;
}

.section-featured {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(248, 231, 220, 0.7) 100%);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}

.link-arrow {
  font-weight: 700;
  color: var(--cocoa);
}

.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  background: var(--milk);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-card img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.product-info {
  padding: 16px;
}

.price {
  font-weight: 700;
  color: var(--cocoa);
}

.price-eur {
  display: none;
}

html[data-currency="eur"] .price-ron {
  display: none;
}

html[data-currency="eur"] .price-eur {
  display: inline;
}

.story-grid,
.contact-grid,
.cart-grid,
.checkout-grid,
.auth-grid,
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.admin-product-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 16px;
  background: var(--milk);
  border-radius: 18px;
  box-shadow: var(--shadow);
  align-items: center;
}

.admin-product-card img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

.edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: start;
}

.edit-card {
  background: var(--milk);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.edit-preview {
  background: var(--milk);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.edit-preview img {
  border-radius: 16px;
  margin-bottom: 12px;
}

.story-list {
  padding-left: 18px;
}

.section-cta .cta-card {
  background: linear-gradient(135deg, #d96a52 0%, #f0a66f 100%);
  color: #fff4ea;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer {
  background: #f3e4d7;
  padding: 50px 0 24px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--cocoa);
}

.page-hero h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.contact-card,
.auth-card,
.admin-card,
.cart-summary,
.checkout-summary {
  background: var(--milk);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-card.muted {
  background: rgba(255, 255, 255, 0.7);
}

label {
  display: block;
  font-weight: 700;
  margin: 12px 0 6px;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 10px 12px;
  font-family: inherit;
}

.pill-tag {
  display: inline-flex;
  padding: 4px 10px;
  background: #f6e1d4;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-top: 6px;
}

.cart-item {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--milk);
  padding: 16px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.cart-item-body {
  display: grid;
  gap: 10px;
}

.cart-qty-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-form input[type="number"] {
  width: 90px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cart-item img {
  width: 110px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.checkout-note {
  background: var(--sand);
  padding: 12px;
  border-radius: 14px;
  margin-top: 12px;
}

.product-grid-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.product-summary .price.large {
  font-size: 1.4rem;
  margin: 16px 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.product-details ul {
  padding-left: 18px;
}

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

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 56px;
  }

  .mobile-menu-button {
    display: flex;
    position: absolute;
    left: 0;
    top: 8px;
  }

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