@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Vazirmatn:wght@300;400;500;600&display=swap');

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

:root {
  --rose:       #c9748a;
  --rose-light: #f7e6eb;
  --rose-dark:  #8b4a5c;
  --gold:       #b8965a;
  --gold-light: #f5edd8;
  --cream:      #fdf8f4;
  --dark:       #2a1f1f;
  --gray:       #6b5b5b;
  --gray-light: #e8e0dc;
  --white:      #ffffff;
  --shadow:     0 4px 24px rgba(42,31,31,0.10);
  --shadow-sm:  0 2px 10px rgba(42,31,31,0.07);
  --radius:     14px;
  --radius-sm:  8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', sans-serif;
  background: var(--cream);
  color: var(--dark);
  direction: rtl;
  overflow-x: hidden;
}

/* ── TOPBAR ────────────────────────────────── */
.topbar {
  background: var(--rose-dark);
  color: #fff;
  text-align: center;
  font-size: 13px;
  padding: 9px 16px;
  letter-spacing: 0.3px;
}

/* ── NAVBAR ────────────────────────────────── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--rose-dark);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rose);
}

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

.nav-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 20px;
  position: relative;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.nav-icon-btn:hover { color: var(--rose); }

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1px solid var(--gray-light);
  border-radius: 40px;
  padding: 6px 16px;
  gap: 8px;
  width: 200px;
  transition: border-color 0.2s;
}

.search-box:focus-within {
  border-color: var(--rose);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  color: var(--dark);
  width: 100%;
  direction: rtl;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--dark);
}

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f9eef2 0%, #fdf4e8 60%, #f7e6eb 100%);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(201,116,138,0.12) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(184,150,90,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero-text {
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--rose-light);
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 20px;
  border: 1px solid rgba(201,116,138,0.3);
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: var(--rose);
}

.hero-text p {
  font-size: 17px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 440px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rose-dark);
  color: #fff;
  padding: 14px 32px;
  border-radius: 40px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--rose);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--rose-dark);
  padding: 13px 28px;
  border-radius: 40px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--rose-dark);
  cursor: pointer;
  transition: all 0.25s;
  margin-right: 12px;
}

.btn-outline:hover {
  background: var(--rose-light);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--rose-dark);
}

.stat-item span {
  font-size: 13px;
  color: var(--gray);
}

.hero-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hero-img-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-img-card:first-child {
  margin-top: 40px;
}

.hero-img-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.hero-img-card:hover img {
  transform: scale(1.04);
}

/* ── CATEGORIES ────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--gray);
  font-size: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cat-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.cat-card:hover img {
  transform: scale(1.06);
}

.cat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42,31,31,0.75) 0%, transparent 100%);
  padding: 24px 16px 16px;
  color: #fff;
}

.cat-overlay h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 2px;
}

.cat-overlay span {
  font-size: 12px;
  opacity: 0.8;
}

/* ── PRODUCTS ──────────────────────────────── */
.products-bg {
  background: var(--white);
  padding: 0;
}

.filter-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 40px;
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--rose-dark);
  color: #fff;
  border-color: var(--rose-dark);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.product-img-wrap {
  position: relative;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--rose);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 40px;
  z-index: 2;
}

.product-badge.sale { background: #e05a2b; }
.product-badge.new  { background: var(--gold); }

.product-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
  z-index: 2;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: background 0.2s, color 0.2s;
}

.action-btn:hover {
  background: var(--rose);
  color: #fff;
}

.product-info {
  padding: 16px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--dark);
}

.product-info .sub {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 10px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--gold);
}

.stars span {
  color: var(--gray);
  font-size: 12px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  font-size: 17px;
  font-weight: 700;
  color: var(--rose-dark);
}

.price-old {
  font-size: 13px;
  color: var(--gray);
  text-decoration: line-through;
}

.add-cart-btn {
  background: var(--rose-dark);
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 8px 16px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.add-cart-btn:hover {
  background: var(--rose);
}

/* ── BANNER ────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--rose-dark) 0%, #6b2d3e 100%);
  color: #fff;
  padding: 72px 24px;
  text-align: center;
}

.promo-banner h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 50px);
  font-weight: 700;
  margin-bottom: 16px;
}

.promo-banner p {
  font-size: 17px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.promo-banner .btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.promo-banner .btn-primary:hover {
  background: #d4a85a;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
}

.count-box {
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 14px 20px;
  min-width: 72px;
}

.count-box strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.count-box span {
  font-size: 12px;
  opacity: 0.75;
  margin-top: 4px;
  display: block;
}

/* ── NEWSLETTER ────────────────────────────── */
.newsletter {
  background: var(--gold-light);
  padding: 64px 24px;
  text-align: center;
}

.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

.newsletter p {
  font-size: 16px;
  color: var(--gray);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--gray-light);
  border-left: none;
  border-radius: 0 40px 40px 0;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--dark);
  direction: rtl;
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--rose-dark);
  color: #fff;
  border: none;
  border-radius: 40px 0 0 40px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.newsletter-form button:hover {
  background: var(--rose);
}

/* ── FEATURES ──────────────────────────────── */
.features {
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  background: var(--white);
  padding: 40px 24px;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rose-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  color: var(--rose-dark);
}

.feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--dark);
}

.feature-text p {
  font-size: 12px;
  color: var(--gray);
}

/* ── FOOTER ────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo {
  color: #fff;
  display: block;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--rose);
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--rose-light);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── CART SIDEBAR ──────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 360px;
  height: 100%;
  background: var(--white);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 32px rgba(0,0,0,0.18);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.close-cart {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--gray);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-info p {
  font-size: 13px;
  color: var(--gray);
}

.cart-item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--rose-dark);
}

.remove-item {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 16px;
}

.remove-item:hover { color: #e05a2b; }

.cart-footer {
  padding: 20px;
  border-top: 1px solid var(--gray-light);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--rose-dark);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.checkout-btn:hover { background: var(--rose); }

.cart-empty {
  text-align: center;
  color: var(--gray);
  font-size: 15px;
  margin-top: 60px;
}

.cart-empty span { display: block; font-size: 48px; margin-bottom: 12px; }

/* ── TOAST ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--dark);
  color: #fff;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  z-index: 2000;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ── MOBILE NAV ────────────────────────────── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1050;
  flex-direction: column;
  padding: 80px 32px 40px;
  gap: 24px;
}

.mobile-menu.open { display: flex; }
.close-mobile {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.mobile-menu a {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 16px;
}

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid,
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-images { max-width: 440px; margin: 0 auto; }
  .hero-text p { margin: 0 auto 36px; }
  .hero-stats { justify-content: center; }
}

@media (max-width: 768px) {
  .nav-links, .search-box { display: none; }
  .hamburger { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .countdown { gap: 12px; }
  .count-box { padding: 10px 14px; min-width: 60px; }
  .count-box strong { font-size: 24px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input,
  .newsletter-form button { border-radius: 40px; }
  .newsletter-form button { border-left: none; }
  .cart-sidebar { width: 100%; }
  .hero-images { grid-template-columns: 1fr; }
  .hero-img-card:first-child { margin-top: 0; }
}
