@charset "UTF-8";

:root {
  --linen: #f8f3ec;
  --linen-deep: #efe6d8;
  --paper: #fffdf9;
  --line: #e4d8c6;
  --walnut: #2b1d17;
  --walnut-soft: #4a362b;
  --muted: #7b6959;
  --brass: #a8782f;
  --brass-dark: #865d1f;
  --brass-soft: #d9b977;
  --anar: #8e2f28;
  --leaf: #4d6b4f;
  --star-off: #dccfbb;

  --font: "Vazirmatn", "Vazir", Tahoma, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;

  --shadow-soft: 0 10px 30px -18px rgba(43, 29, 23, 0.35);
  --shadow-lift: 0 22px 40px -22px rgba(43, 29, 23, 0.45);

  --container: 1240px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  color: var(--walnut);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

h1, h2, h3, h4 {
  line-height: 1.45;
  font-weight: 800;
}

:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--walnut);
  color: var(--linen);
  border-radius: var(--r-sm);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.site-logo-img {
  height: 77px;
  width: auto;
  object-fit: contain;
}

.footer-logo-img {
  height: 85px;
  width: auto;
  object-fit: contain;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.97rem;
  border: 1.5px solid transparent;
  transition: background 0.25s, color 0.25s, border-color 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--walnut);
  color: var(--linen);
}

.btn-primary:hover {
  background: var(--brass-dark);
}

.btn-brass {
  background: var(--brass);
  color: #fff;
}

.btn-brass:hover {
  background: var(--brass-dark);
}

.btn-ghost {
  border-color: var(--walnut);
  color: var(--walnut);
}

.btn-ghost:hover {
  background: var(--walnut);
  color: var(--linen);
}

.btn-block {
  width: 100%;
}

.btn.is-added {
  background: var(--leaf);
  color: #fff;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: var(--linen-deep);
}

.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 243, 236, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  gap: 24px;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--walnut-soft);
  transition: color 0.2s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.main-nav a:hover {
  color: var(--walnut);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 300px;
  margin-inline-start: auto;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding-inline: 16px 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search:focus-within {
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(168, 120, 47, 0.14);
}

.search input {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.92rem;
}

.search input::placeholder {
  color: #a39280;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-count {
  position: absolute;
  top: 2px;
  inset-inline-start: -2px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  background: var(--anar);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  border: 2px solid var(--linen);
}

.cart-count[hidden] {
  display: none;
}

.cart-count.is-bump {
  animation: bump 0.45s var(--ease);
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  padding-block: 56px 80px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l30 30-30 30L6 36z' fill='none' stroke='%23a8782f' stroke-opacity='.13' stroke-width='1'/%3E%3Ccircle cx='36' cy='36' r='7' fill='none' stroke='%23a8782f' stroke-opacity='.13'/%3E%3C/svg%3E"),
    var(--linen);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 56px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--brass-soft);
  border-radius: 999px;
  color: var(--brass-dark);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(255, 253, 249, 0.7);
}

.hero-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--anar);
}

.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}

.hero-desc {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.07rem;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
}

.hero-stats span {
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
}

.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5.2;
  border-radius: 999px 999px 18px 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -16px -16px 0;
  border: 1.5px solid var(--brass-soft);
  border-radius: 999px 999px 26px 26px;
  pointer-events: none;
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  font-size: 0.88rem;
  line-height: 1.6;
}

.hero-float .icon {
  width: 28px;
  height: 28px;
  color: var(--brass);
  flex-shrink: 0;
}

.hero-float strong {
  display: block;
  font-size: 0.95rem;
}

.hero-float span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-float.f1 {
  bottom: 56px;
  inset-inline-end: -34px;
}

.hero-float.f2 {
  top: 90px;
  inset-inline-start: -30px;
}

.section {
  padding-block: 84px;
}

.section-alt {
  background: var(--linen-deep);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.section-head p {
  color: var(--muted);
  max-width: 32rem;
  margin-top: 6px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.category-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 120px 120px var(--r-md) var(--r-md);
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: var(--walnut-soft);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 21, 15, 0.82) 8%, rgba(32, 21, 15, 0) 62%);
}

.category-card:hover img {
  transform: scale(1.06);
}

.category-info {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: 16px 10px 20px;
}

.category-info strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.category-info span {
  font-size: 0.8rem;
  color: var(--brass-soft);
}

[hidden] {
  display: none !important;
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.slider-nav {
  display: flex;
  gap: 10px;
}

.slider-nav-center {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.slider-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.slider-btn:hover:not(:disabled) {
  background: var(--walnut);
  border-color: var(--walnut);
  color: var(--linen);
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slider-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 276px;
  display: flex;
  scroll-snap-align: start;
}

.slide .product-card {
  width: 100%;
}

.slide-end {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  border-radius: var(--r-md);
  background: var(--walnut);
  color: var(--linen);
  transition: background 0.25s;
}

.slide-end strong {
  font-size: 1.2rem;
  line-height: 1.6;
}

.slide-end > span:last-child {
  font-size: 0.86rem;
  color: #d8c9b6;
}

.slide-end-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1.5px solid var(--brass-soft);
  border-radius: 50%;
  color: var(--brass-soft);
  transition: background 0.25s, color 0.2s;
}

.slide-end:hover {
  background: var(--walnut-soft);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--linen-deep);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.badge {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.8;
  color: #fff;
}

.badge-best {
  background: var(--walnut);
}

.badge-festival-wrapper {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
}

.badge-festival {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 12px;
  background: rgba(220, 38, 38, 0.95);
  color: #ffffff !important;
  border: 1.5px solid #ef4444;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.8;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  letter-spacing: 0.5px;
  animation: festivalPulse 2.5s infinite ease-in-out;
}

@keyframes festivalPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.45);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.65);
  }
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}

.product-cat {
  font-size: 0.78rem;
  color: var(--brass-dark);
  font-weight: 500;
}

.product-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.7;
  margin-block: 2px 6px;
  min-height: 3.4em;
}

.stars {
  font-size: 1.05rem;
  letter-spacing: 1px;
  line-height: 1;
  background: linear-gradient(to left, var(--brass) var(--fill, 100%), var(--star-off) var(--fill, 100%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: auto;
  margin-bottom: 14px;
}

.price-now {
  font-size: 1.12rem;
  font-weight: 800;
}

.price-now small {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-inline-start: 3px;
}

.product-card .btn {
  min-height: 44px;
  padding-inline: 14px;
  font-size: 0.9rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  color: var(--walnut);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.empty-state .btn {
  margin-top: 18px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 34px 26px;
}

.benefit + .benefit {
  border-inline-start: 1px solid var(--line);
}

.benefit .icon {
  width: 38px;
  height: 38px;
  color: var(--brass);
  stroke-width: 1.4;
  flex-shrink: 0;
}

.benefit h3 {
  font-size: 1.02rem;
  margin-bottom: 2px;
}

.benefit p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.8;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .review-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 14px;
    scrollbar-width: thin;
  }
  .review-card {
    min-width: 290px;
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 4px 16px rgba(43, 29, 23, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(43, 29, 23, 0.08);
}

/* سربرگ نظر در بالای کارت */
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reviewer-info .avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ede6dd;
  color: var(--walnut);
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.reviewer-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reviewer-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--walnut);
  line-height: 1.2;
}

.reviewer-sub {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.reviewer-dot {
  opacity: 0.5;
}

.review-top-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.review-top-actions .stars {
  color: #f39c12;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.review-report-btn {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 1px 8px;
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  background: var(--linen);
  white-space: nowrap;
}

.review-report-btn:hover {
  color: var(--anar);
  border-color: var(--anar);
  background: #fdf0ef;
}

.review-report-btn.is-reported {
  color: var(--leaf);
  border-color: var(--leaf);
  cursor: default;
}

.review-card p.review-content {
  font-size: 0.92rem;
  color: var(--walnut-soft);
  line-height: 1.8;
  flex: 1;
  margin: 0;
}

/* باکس ویژه و مینیاتوری پاسخ مدیریت */
.admin-reply-box {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fdfbf7;
  border-right: 3px solid var(--brass);
  border-top: 1px solid #f2e9dc;
  border-bottom: 1px solid #f2e9dc;
  border-left: 1px solid #f2e9dc;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(168, 120, 47, 0.08);
}

.admin-reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.admin-reply-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--walnut);
  color: #f7dfa5;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.2px;
}

.admin-reply-date {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.admin-reply-text {
  font-size: 0.85rem !important;
  color: #3d2b22 !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}

/* دکمه و فرم پاسخ اختصاصی برای ادمین */
.admin-manage-bar {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  display: flex;
  justify-content: flex-end;
}

.btn-admin-reply {
  background: transparent;
  border: 1px dashed var(--brass);
  color: var(--walnut);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-admin-reply:hover {
  background: #faf3e4;
  border-color: var(--brass);
  color: #1e130e;
}

.admin-reply-drawer {
  margin-top: 8px;
  padding: 10px;
  background: #faf4ea;
  border-radius: 8px;
  border: 1px solid #ebdcc5;
}

.admin-reply-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font);
  font-size: 0.85rem;
  background: #fff;
  resize: vertical;
  color: var(--walnut);
}

.admin-drawer-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.admin-drawer-actions .btn {
  padding: 4px 12px;
  font-size: 0.8rem;
  border-radius: 6px;
}

.comment-box {
  max-width: 760px;
  margin: 48px auto 0;
  padding: 32px 34px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.comment-box h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.comment-box > p:not(.form-message) {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.comment-box input,
.comment-box textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--linen);
  outline: none;
  line-height: 1.9;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-box input {
  height: 48px;
}

.comment-box textarea {
  min-height: 130px;
  resize: vertical;
}

.comment-box input:focus,
.comment-box textarea:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(168, 120, 47, 0.14);
}

.comment-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.form-message {
  min-height: 1.9em;
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--leaf);
}

.form-message.is-error {
  color: var(--anar);
}

.site-footer {
  background: #20150f;
  color: #cdbfae;
  padding-top: 70px;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}

.footer-about p {
  margin-block: 18px 20px;
  max-width: 24rem;
}

.site-footer h3 {
  color: var(--linen);
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.footer-links li + li {
  margin-top: 8px;
}

.footer-links a {
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--brass-soft);
}

.contact-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.contact-list li + li {
  margin-top: 12px;
}

.contact-list .icon {
  width: 19px;
  height: 19px;
  margin-top: 5px;
  color: var(--brass-soft);
  flex-shrink: 0;
}

.contact-list a:hover {
  color: var(--brass-soft);
}

.socials {
  display: flex;
  gap: 10px;
}

.socials a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(205, 191, 174, 0.35);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.socials a:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #fff;
}

.socials .icon {
  width: 20px;
  height: 20px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 22px;
  border-top: 1px solid rgba(205, 191, 174, 0.18);
  font-size: 0.84rem;
  color: #a39280;
}

.designer-link {
  color: #c084fc !important;
  font-weight: 800 !important;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.designer-link:hover {
  color: #e9d5ff !important;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.75);
  text-decoration: underline;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(32, 21, 15, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100vh;
  height: 100dvh;
  background: var(--linen);
  box-shadow: 30px 0 60px -20px rgba(0, 0, 0, 0.4);
  transform: translateX(-102%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
}

.cart-drawer.is-open {
  transform: none;
  visibility: visible;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  font-size: 1.2rem;
}

.drawer-head h2 small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.85rem;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.cart-item h3 {
  font-size: 0.93rem;
  line-height: 1.7;
  font-weight: 700;
}

.cart-unit {
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.qty button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  transition: background 0.2s;
}

.qty button:hover:not(:disabled) {
  background: var(--linen-deep);
}

.qty button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty output {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
}

.cart-line-total {
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-remove {
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--anar);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.drawer-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.sum-row.total {
  margin-block: 12px 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--walnut);
}

.clear-cart {
  display: block;
  margin: 12px auto 0;
  font-size: 0.84rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 320px;
  text-align: center;
  color: var(--muted);
}

.cart-empty .icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.1;
  color: var(--brass-soft);
  margin-bottom: 14px;
}

.cart-empty strong {
  color: var(--walnut);
  font-size: 1.1rem;
}

.cart-empty .btn {
  margin-top: 20px;
}

.modal {
  margin: auto;
  width: min(420px, calc(100% - 32px));
  padding: 32px 28px 28px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--linen);
  color: var(--walnut);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

.modal::backdrop {
  background: rgba(32, 21, 15, 0.55);
}

.modal h2 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.modal p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  height: 50px;
  padding-inline: 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 4px rgba(168, 120, 47, 0.14);
}

.field-error {
  min-height: 1.7em;
  margin-block: 6px 10px;
  font-size: 0.84rem;
  color: var(--anar);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn {
  flex: 1;
}

.toast {
  position: fixed;
  bottom: 24px;
  inset-inline: 0;
  margin-inline: auto;
  z-index: 150;
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--walnut);
  color: var(--linen);
  font-size: 0.92rem;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
}

.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.toast button {
  color: var(--brass-soft);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.to-top {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 70;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, background 0.2s;
}

.to-top.is-show {
  opacity: 1;
  visibility: visible;
}

.to-top:hover {
  background: var(--linen-deep);
}

.shop-categories-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.cat-pill {
  padding: 8px 20px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.cat-pill:hover {
  border-color: var(--brass);
}

.cat-pill.is-active {
  background: var(--walnut);
  border-color: var(--walnut);
  color: var(--linen);
  font-weight: 700;
}

.trust {
  padding-block: 28px 36px;
  border-top: 1px solid rgba(205, 191, 174, 0.18);
}

.trust h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.trust-slot {
  width: 112px;
  height: 124px;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(205, 191, 174, 0.3);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1180px) {
  .product-grid,
  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1020px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 6px 10px;
    padding-block: 8px;
  }
  .menu-toggle {
    display: inline-grid;
    order: 1;
  }
  .logo {
    order: 2;
    margin-inline: auto;
  }
  .header-actions {
    order: 3;
  }
  .search {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    margin-bottom: 8px;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--linen);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(43, 29, 23, 0.4);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.4s var(--ease), visibility 0.4s;
  }
  .main-nav.is-open {
    max-height: 420px;
    visibility: visible;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav a::after {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-desc {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: 60px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}