/* ===== هدر ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--blush-petal);
}

.cart-pill {
  background: var(--blush-petal);
  color: var(--coconut-shell);
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 18px;
  border-radius: 999px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.cart-pill:hover { transform: translateY(-2px); background: var(--pink-sand); }

/* ===== بخش اول ===== */
.hero {
  text-align: center;
  padding: 36px 20px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  background: var(--blush-petal);
  color: var(--coconut-shell);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--almond-cream);
}
.hero h1 span { color: var(--blush-petal); }

.hero-sub {
  margin-top: 16px;
  opacity: .8;
  font-size: 1rem;
  line-height: 1.6;
}

/* ===== کارت‌های باکس ===== */
.boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 30px auto 0;
  padding: 0 20px 60px;
}

.box-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  color: var(--card-text);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  animation: cardIn .7s var(--ease) forwards;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.box-card:nth-child(2) { background: var(--soft-daisy); animation-delay: .1s; }
.box-card:nth-child(3) { background: var(--pink-sand);  animation-delay: .2s; }
.box-card:nth-child(4) { background: var(--dusty-coral); animation-delay: .3s; }

.box-card:hover {
  transform: translateY(-8px) rotate(-.6deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}

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

.box-count {
  position: absolute;
  top: 8px;
  right: 18px;
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: rgba(59, 36, 20, .18);
}

.box-img-wrap {
  height: 170px;
  display: grid;
  place-items: center;
  margin: 10px 0 14px;
}
.box-img-wrap img {
  max-height: 170px;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.box-card:hover .box-img-wrap img { transform: scale(1.08) rotate(3deg); }

/* جای‌گزین وقتی عکس نیست */
.box-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 22px;
  background: var(--coconut-shell);
  color: var(--blush-petal);
  display: grid;
  place-items: center;
  font-size: 3.4rem;
  font-weight: 800;
}

.box-card h3 { font-size: 1.25rem; font-weight: 800; }
.box-desc { margin-top: 4px; font-size: .9rem; opacity: .75; }
.box-meta { margin-top: 10px; font-size: .85rem; font-weight: 600; }
.box-price { margin-top: 4px; font-size: 1.6rem; font-weight: 800; }

.box-btn {
  margin-top: 16px;
  background: var(--coconut-shell);
  color: var(--blush-petal);
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 999px;
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.box-btn:hover { background: var(--espresso); transform: scale(1.04); }
.box-btn:active { transform: scale(.96); }

/* ===== فوتر ===== */
.site-footer {
  text-align: center;
  padding: 30px 20px 40px;
  font-size: .85rem;
  opacity: .6;
}

@media (max-width: 520px) {
  .boxes { grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px 50px; }
  .box-card { padding: 14px; }
  .box-img-wrap, .box-img-wrap img { height: 110px; max-height: 110px; }
  .box-placeholder { width: 100px; height: 100px; font-size: 2.4rem; }
  .box-count { font-size: 3.6rem; }
  .box-card h3 { font-size: 1.05rem; }
  }
