:root {
  --bg: #f4efe8;
  --surface: #fbf7f2;
  --surface-strong: #fffdf9;
  --text: #2f241d;
  --muted: #6f6258;
  --line: rgba(78, 51, 31, 0.12);
  --accent: #9d6338;
  --accent-dark: #774624;
  --accent-soft: #e9dbc9;
  --shadow: 0 18px 50px rgba(58, 37, 22, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(236, 220, 198, 0.7), transparent 24%),
    linear-gradient(180deg, #faf5ef 0%, #f1e8dd 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.topbar,
.catalog-section,
.collections-section,
.checkout-section,
.checkout-hero,
.footer,
.cart-drawer__panel {
  border: 1px solid var(--line);
  background: rgba(251, 247, 242, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav,
.topbar-actions,
.hero-actions,
.filters,
.summary-totals,
.payment-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.main-nav {
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--accent-dark);
}

.button,
.cart-button,
.filter-chip,
.icon-button {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover,
.cart-button:hover,
.filter-chip:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button,
.cart-button,
.filter-chip,
.icon-button {
  border-radius: 999px;
}

.button,
.cart-button,
.filter-chip {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.button-small {
  min-height: 44px;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fffaf4;
}

.button-secondary,
.cart-button,
.filter-chip,
.icon-button {
  background: rgba(255, 253, 249, 0.86);
  color: var(--text);
}

.button-secondary {
  color: var(--accent-dark);
}

.button-wide {
  width: 100%;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-clean {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: 28px;
  padding: 44px 0 18px;
}

.hero-copy h1,
.section-heading h2,
.checkout-hero h1,
.checkout-form h3,
.checkout-summary h3,
.cart-drawer__header h3,
.collection-card h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 0.98;
}

.hero-copy h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.checkout-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-text,
.checkout-hero p,
.collection-card p,
.product-description,
.summary-items p,
.footer p,
.form-hint,
.empty-state,
.cart-item__price {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.hero-actions {
  margin-top: 24px;
}

.hero-editorial {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}

.editorial-card,
.collection-card,
.checkout-summary,
.checkout-form,
.summary-card,
.cart-item,
.product-card {
  border: 1px solid var(--line);
  background: rgba(255, 252, 248, 0.84);
  box-shadow: var(--shadow);
}

.editorial-card {
  min-height: 150px;
  padding: 22px;
  border-radius: 26px;
}

.editorial-card-main {
  grid-column: span 2;
  min-height: 250px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent),
    linear-gradient(145deg, #e8d4bf, #bb8458 70%, #8b572c);
  color: #fff9f3;
}

.editorial-card span,
.collection-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.editorial-card strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  line-height: 1.05;
}

.editorial-card p {
  margin: 12px 0 0;
  max-width: 28ch;
  line-height: 1.6;
}

.collections-section,
.catalog-section,
.checkout-section,
.checkout-hero,
.footer {
  margin-top: 22px;
  padding: 24px;
  border-radius: 32px;
}

.checkout-hero {
  padding-top: 30px;
}

.checkout-hero p {
  max-width: 58ch;
}

.checkout-hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.checkout-hero__meta {
  display: grid;
  gap: 14px;
}

.checkout-meta-card {
  display: grid;
  align-content: center;
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 252, 248, 0.88);
}

.checkout-meta-card span {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-meta-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  line-height: 1.05;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.collection-card {
  padding: 24px;
  border-radius: 28px;
}

.collection-card h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

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

.product-card {
  overflow: hidden;
  border-radius: 28px;
}

.product-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f7ecda, #ead2b1);
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.03);
}

.size-select {
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.size-select span {
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.size-select select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%239d6338' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.size-select select:focus {
  outline: 2px solid rgba(157, 99, 56, 0.2);
  border-color: rgba(157, 99, 56, 0.4);
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 36, 29, 0.8);
  color: #fffaf4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}

.product-meta,
.cart-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.product-card h3,
.cart-item h4 {
  margin: 0;
  font-size: 1.14rem;
  line-height: 1.4;
}

.product-description {
  font-size: 0.96rem;
}

.product-footer,
.cart-item__actions,
.summary-totals div,
.summary-grand,
.checkout-layout,
.cart-drawer__header {
  display: flex;
}

.product-footer {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
}

.price {
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 800;
}

.filter-chip {
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: transparent;
  background: var(--text);
  color: #fffaf4;
}

.checkout-layout {
  gap: 18px;
  align-items: start;
}

.checkout-summary,
.checkout-form {
  flex: 1;
  padding: 22px;
  border-radius: 28px;
}

.checkout-summary {
  max-width: 390px;
  position: sticky;
  top: 110px;
}

.summary-items,
.cart-items {
  display: grid;
  gap: 12px;
}

.summary-card,
.cart-item {
  padding: 14px;
  border-radius: 20px;
}

.summary-card strong {
  display: block;
  margin-bottom: 4px;
}

.summary-totals {
  margin-top: 18px;
  flex-direction: column;
}

.summary-totals div {
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.summary-grand {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.summary-grand strong {
  color: var(--accent-dark);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  outline: 2px solid rgba(157, 99, 56, 0.2);
  border-color: rgba(157, 99, 56, 0.35);
}

.payment-options {
  display: grid;
  gap: 10px;
  margin: 4px 0 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.6);
}

.payment-options legend {
  padding: 0 8px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.payment-option:hover {
  border-color: rgba(157, 99, 56, 0.4);
}

.payment-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.payment-option strong {
  display: block;
  font-size: 1rem;
}

.payment-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.86rem;
}

.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(233, 219, 201, 0.45);
}

.hero-bullets {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-bullets span {
  color: var(--accent);
  font-weight: 800;
}

.about-section {
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(251, 247, 242, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.about-grid h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.7);
}

.about-list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.about-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.footer a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer p {
  margin: 0 0 6px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.7);
  color: var(--accent-dark) !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  background: var(--accent);
  color: #fffaf4 !important;
  border-color: transparent;
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
}

.contact-line {
  margin: 0 0 6px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark) !important;
  text-decoration: none !important;
  font-weight: 700;
}

.contact-phone:hover {
  text-decoration: underline !important;
}

.viber-icon {
  width: 22px;
  height: 22px;
  color: #7360f2;
  flex-shrink: 0;
}

.social-link[aria-label="Viber"] svg {
  color: #7360f2;
}

.social-link[aria-label="Viber"]:hover svg {
  color: #fffaf4;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 21, 14, 0.34);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer__panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(420px, calc(100% - 24px));
  padding: 18px;
  border-radius: 28px;
  transform: translateX(110%);
  transition: transform 0.3s ease;
}

.cart-drawer.is-open .cart-drawer__backdrop {
  opacity: 1;
}

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

.cart-drawer__header {
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 1.4rem;
}

.cart-items {
  margin-top: 18px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 4px;
}

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

.cart-item__actions {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quantity-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quantity-box button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  cursor: pointer;
}

.remove-button {
  padding: 10px 12px;
  border: none;
  border-radius: 999px;
  background: rgba(126, 42, 32, 0.08);
  color: #913f33;
  cursor: pointer;
  font-weight: 700;
}

.cart-footer {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  width: min(620px, calc(100% - 24px));
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(47, 36, 29, 0.95);
  color: #fffaf4;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 140%);
  transition: transform 0.24s ease, background 0.24s ease;
  line-height: 1.5;
}

.toast.is-visible {
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: rgba(146, 53, 41, 0.96);
}

.toast.is-success {
  background: rgba(72, 99, 56, 0.95);
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
}

@media (max-width: 980px) {
  .hero-clean,
  .checkout-layout,
  .footer,
  .product-grid,
  .collection-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-text strong {
    font-size: 1.05rem;
  }

  .brand-text small {
    display: none;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .main-nav a {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.92rem;
  }

  .topbar-actions .cart-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  .cart-count {
    min-width: 22px;
    height: 22px;
    font-size: 0.74rem;
  }

  .checkout-summary {
    max-width: none;
  }

  .hero-copy h1,
  .checkout-hero h1 {
    max-width: none;
  }

  .hero-editorial {
    grid-template-columns: 1fr 1fr;
  }

  .checkout-hero__content {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    top: 8px;
  }

  .hero-actions,
  .filters {
    flex-direction: column;
  }

  .main-nav {
    gap: 4px;
  }

  .main-nav a {
    padding: 5px 9px;
    font-size: 0.86rem;
  }

  .hero-editorial {
    grid-template-columns: 1fr;
  }

  .checkout-hero__meta {
    grid-template-columns: 1fr;
  }

  .editorial-card-main {
    grid-column: auto;
    min-height: 220px;
  }

  .hero-copy h1 {
    font-size: 2.7rem;
    line-height: 1.02;
  }

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

  .collections-section,
  .catalog-section,
  .checkout-section,
  .checkout-hero,
  .footer,
  .checkout-summary,
  .checkout-form,
  .product-card,
  .cart-drawer__panel {
    border-radius: 24px;
  }
}
