:root {
  --bg: #f7f2ec;
  --bg-soft: #f1e7dc;
  --text: #2b2117;
  --muted: #6c5a49;
  --accent: #c59a6a;
  --accent-dark: #9a6a3a;
  --cream: #fffaf5;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(44, 33, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #fffaf5 0%, var(--bg) 45%, var(--bg-soft) 100%);
}

.loading {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-size: 1.1rem;
  gap: 12px;
  flex-direction: column;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(197, 154, 106, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading__retry {
  border: 1px solid rgba(197, 154, 106, 0.4);
  background: #fff;
  color: var(--accent-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-loading .loading {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

body.is-loading .site-header,
body.is-loading main,
body.is-loading .footer,
body.is-loading .order__status {
  opacity: 0;
  visibility: hidden;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  padding: 8px 12px;
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(43, 33, 23, 0.12);
  z-index: 9999;
}

.skip-link:focus {
  top: 12px;
}

.section__kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 6px;
}

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

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 64px;
  position: sticky;
  top: 0;
  background: rgba(247, 242, 236, 0.9);
  backdrop-filter: blur(10px);
  z-index: 10;
}

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

.nav-toggle {
  display: none;
  border: 1px solid rgba(197, 154, 106, 0.4);
  background: #fff;
  color: var(--accent-dark);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  gap: 4px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand:hover,
.brand:focus {
  color: inherit;
}

.brand__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand__name {
  font-weight: 600;
  margin: 0;
}

.brand__tag {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent-dark);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}

.lang-switch__btn[aria-pressed='true'] {
  background: rgba(197, 154, 106, 0.2);
  display: none;
}

.lang-switch__btn[aria-pressed='false'] {
  display: inline-flex;
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand toggle"
      "nav nav"
      "lang lang"
      "cta cta";
    gap: 12px;
    padding: 20px 20px 16px;
  }

  .brand {
    width: 100%;
    grid-area: brand;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    grid-area: nav;
  }

  .lang-switch {
    grid-area: lang;
    justify-self: start;
  }

  .site-header .btn--outline {
    width: 100%;
    text-align: center;
    grid-area: cta;
  }

  .nav-toggle {
    display: inline-flex;
    grid-area: toggle;
  }
}

@media (max-width: 520px) {
  .nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0 0;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .lang-switch {
    display: inline-flex;
  }
}

.btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(197, 154, 106, 0.3);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 32px 20px;
  align-items: stretch;
}

.hero > div {
  min-height: 240px;
}

.hero__content h1 {
  font-size: 3.1rem;
  margin: 12px 0 18px;
}

.hero__copy {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #000;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-size: 0.7rem;
  color: var(--accent-dark);
  margin: 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin: 28px 0;
}

.hero__stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(197, 154, 106, 0.3);
  padding-top: 18px;
}

.stat {
  font-weight: 600;
  margin: 0;
}

.stat__label {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 64px;
  scroll-margin-top: 120px;
}

@media (max-width: 900px) {
  .section {
    scroll-margin-top: 160px;
  }
}

@media (max-width: 520px) {
  .section {
    scroll-margin-top: 200px;
  }
}

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

.section__heading p {
  max-width: 420px;
  color: var(--muted);
}

#products .section__heading,
#order .section__heading,
#about .section__heading,
#social .section__heading {
  flex-direction: column;
  align-items: flex-start;
}

#products .section__heading p,
#order .section__heading p,
#about .section__heading p,
#social .section__heading p {
  max-width: none;
  width: 100%;
}

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

.slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  position: relative;
}

.slider__hint {
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--accent-dark);
  border: 1px solid rgba(197, 154, 106, 0.3);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 10px 20px rgba(43, 33, 23, 0.08);
}

.slider__button {
  border: none;
  background: var(--cream);
  color: var(--accent-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(43, 33, 23, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  pointer-events: none;
}

.slider__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(43, 33, 23, 0.18);
}

.slider:hover .slider__button,
.slider:focus-within .slider__button {
  opacity: 1;
  pointer-events: auto;
}

.product-grid--slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.product-grid--slider .product-card {
  scroll-snap-align: start;
}

.product-grid--slider::-webkit-scrollbar {
  height: 8px;
}

.product-grid--slider::-webkit-scrollbar-thumb {
  background: rgba(197, 154, 106, 0.4);
  border-radius: 999px;
}

.product-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 25px rgba(43, 33, 23, 0.08);
  display: grid;
  gap: 14px;
  padding-bottom: 18px;
  transition: transform 0.25s ease;
}

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

.product-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
}

.product-card h3 {
  margin: 0 18px;
}

.product-card p {
  margin: 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-card .price {
  font-weight: 600;
  color: var(--accent-dark);
}

.social {
  padding-bottom: 80px;
}

.order__form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  background: var(--cream);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(43, 33, 23, 0.08);
}

.order__field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
}

.order__field input,
.order__field textarea {
  border: 1px solid rgba(197, 154, 106, 0.3);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}

.order__field--full {
  grid-column: 1 / -1;
}

.order__field--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.order__fieldset {
  grid-column: 1 / -1;
  border: 1px solid rgba(197, 154, 106, 0.3);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  justify-items: start;
  text-align: left;
}

.order__fieldset legend {
  font-weight: 600;
  padding: 0 6px;
}

.order__item {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 0.8fr) minmax(70px, 0.5fr) auto;
  grid-template-areas: "info size price qty";
  gap: 12px;
  align-items: center;
  width: 100%;
}

.order__info {
  grid-area: info;
  display: flex;
  align-items: center;
  gap: 10px;
}

.order__name {
  font-weight: 600;
  color: #3b2f23;
}

.order__size,
.order__size-text {
  grid-area: size;
  font-size: 0.95rem;
  color: #4b3b2c;
  min-width: 120px;
}

.order__size {
  border: 1px solid rgba(197, 154, 106, 0.3);
  border-radius: 10px;
  padding: 6px 8px;
  font: inherit;
  background: #fff;
}

.order__price {
  grid-area: price;
  color: #4b3b2c;
  font-size: 0.95rem;
  font-weight: 600;
}

.order__qty {
  grid-area: qty;
  width: 88px;
  border: 1px solid rgba(197, 154, 106, 0.3);
  border-radius: 12px;
  padding: 6px 8px;
  font: inherit;
}

@media (max-width: 640px) {
  #order.section {
    padding: 20px 14px;
  }

  .order__form {
    padding: 16px;
  }

  .order__item {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "info info"
      "size price"
      "qty qty";
    align-items: start;
  }

  .order__info {
    gap: 6px;
  }

  .order__price {
    justify-self: end;
  }

  .order__qty {
    width: 100%;
  }
}

.order__total {
  grid-column: 1 / -1;
  font-weight: 600;
  color: var(--accent-dark);
}

.order__status {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: var(--muted);
}

.order__status ul {
  margin: 8px 0 8px 20px;
  padding: 0;
  color: var(--text);
}

.order__status li {
  margin: 4px 0;
}

.order__hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.order__back {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-weight: 600;
  text-decoration: none;
}

.order__back:hover,
.order__back:focus {
  text-decoration: underline;
}

body.order-success main,
body.order-success .footer {
  display: none;
}

body.order-success .site-header .btn--outline {
  display: none;
}

body.order-success .site-header .nav {
  display: none;
}

body.order-success .order__status {
  max-width: 720px;
  margin: 40px auto 80px;
  padding: 24px;
  background: var(--cream);
  border-radius: 18px;
  box-shadow: 0 12px 24px rgba(43, 33, 23, 0.08);
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.6;
}

.social__icons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.social__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  text-decoration: none;
  color: var(--accent-dark);
  background: var(--cream);
  border: 1px solid rgba(197, 154, 106, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social__link svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.social__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(43, 33, 23, 0.12);
}

.social__link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social__link:hover::after,
.social__link:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.footer {
  padding: 32px 64px 48px;
  border-top: 1px solid rgba(197, 154, 106, 0.3);
  color: var(--muted);
}

@media (min-width: 980px) {
  .site-header {
    flex-direction: column;
    gap: 16px;
    padding: 20px 24px;
  }

  .hero {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding: 44px 56px 32px;
  }

  .section,
  .footer {
    padding: 40px 24px;
  }

  .section {
    margin: 0;
  }

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

  .slider {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 640px) {
  .hero__stats {
    flex-direction: column;
  }

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

@media (max-width: 980px) {
  #products.section {
    padding: 28px 18px;
  }

  .slider {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .slider__button {
    display: none;
  }

  .slider__hint {
    position: static;
    margin: 0 auto 8px;
    transform: none;
  }
}

@media (max-width: 640px) {
  #products.section {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .product-grid--slider {
    grid-auto-columns: 100%;
  }

  .product-card img {
    height: 180px;
  }
}
.btn,
.btn:visited,
.btn:hover,
.btn:focus {
  text-decoration: none;
}
