/*
Theme Name: Sonat Bakery
Theme URI: https://sonat.ir
Description: قالب اختصاصی کافه قنادی سونات - طراحی پاستلی لوکس
Author: Sonat Team
Version: 1.0.0
Text Domain: sonat
Tags: rtl-language, woocommerce, food, bakery
*/

/* =============================================
   SONAT BAKERY — فایل اصلی استایل
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* --- متغیرهای رنگ و طراحی --- */
:root {
  --blush:    #F2C4CE;
  --mint:     #B8D8C8;
  --cream:    #FDF6EC;
  --ivory:    #FAF7F2;
  --mocha:    #8B6050;
  --peach:    #F4A483;
  --dark:     #3D2B1F;
  --gray:     #8A8A8A;
  --white:    #FFFFFF;
  --border:   rgba(139,96,80,0.15);

  --shadow-sm:   0 2px 12px rgba(139,96,80,0.08);
  --shadow-md:   0 4px 24px rgba(139,96,80,0.12);
  --shadow-lg:   0 8px 40px rgba(139,96,80,0.18);

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 40px;

  --font: 'Vazirmatn', sans-serif;
  --transition: 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: #240B02;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--mocha); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--dark); }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 { font-family: 'Vazirmatn', sans-serif; color: #240B02; line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.5rem,5vw,4.5rem); font-weight: 300; }
h2 { font-size: clamp(2rem,4vw,3rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
  margin-bottom: 0.75rem;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--r-xl);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: #240B02;
  color: #FFC9CB;
  border-color: #240B02;
}
.btn-primary:hover {
  background: transparent;
  color: #240B02;
  border-color: #240B02;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36,11,2,0.18);
}

.btn-outline {
  background: transparent;
  color: #240B02;
  border-color: #240B02;
}
.btn-outline:hover {
  background: #240B02;
  color: #FFC9CB;
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--dark);
}

/* =============================================
   HEADER
   ============================================= */
#sonat-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

#sonat-header.scrolled {
  background: rgba(250,247,242,0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  height: 72px;
}

/* لوگو */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.logo-text {
  font-size: 1.75rem;
  font-weight: 800;
  color: #240B02;
  letter-spacing: 0.02em;
}
.logo-sub {
  font-size: 0.7rem;
  color: #240B02;
  opacity: 0.6;
  display: block;
  line-height: 1;
  font-weight: 400;
}

/* منوی اصلی */
.main-nav { display: flex; justify-content: center; }
.main-nav > ul {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #240B02;
  border-radius: var(--r-sm);
  transition: all var(--transition);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
  color: #240B02;
  background: rgba(255,201,203,0.35);
}

/* Dropdown */
.main-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--blush);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.main-nav > ul > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.main-nav .sub-menu li a {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  color: #240B02;
  transition: all 0.2s;
}
.main-nav .sub-menu li a:hover {
  background: rgba(255,201,203,0.3);
  color: #240B02;
  padding-right: 1.6rem;
}

/* آیکون‌های هدر */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}
.header-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #240B02;
  font-size: 1.1rem;
  transition: all var(--transition);
  position: relative;
  text-decoration: none;
}
.header-icon:hover {
  background: rgba(255,201,203,0.3);
  color: #240B02;
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--blush);
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* موبایل - همبرگر */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}
.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, var(--ivory) 0%, #fdf0f1 55%, var(--cream) 100%);
  z-index: 1200;
  padding: 2rem;
  overflow-y: auto;
  direction: rtl;
}
.mobile-menu.open { display: block; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-close {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
}
.mobile-nav a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #240B02;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .sub-menu { padding-right: 1rem; }
.mobile-nav .sub-menu a {
  font-size: 0.95rem;
  color: #240B02;
  opacity: 0.7;
  padding: 0.6rem 0;
}

/* =============================================
   SECTION COMMONS
   ============================================= */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; color: #240B02; }
.section-header p {
  font-size: 1.05rem;
  color: #240B02;
  opacity: 0.75;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =============================================
   HOME — HERO
   ============================================= */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--cream);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center right;
  transform: scale(1.04);
  animation: heroZoom 12s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}
.hero-flex-container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-left: 8%;
  padding-right: 0;
}
.hero-flex-container .hero-card {
  margin-left: 0;
  margin-right: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,201,203,0.12) 0%,
    rgba(255,201,203,0.04) 60%,
    transparent 100%
  );
}

/* کادر محتوای Hero — شیشه‌ای، سمت چپ، بزرگ */
.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(247, 198, 208, 0.38);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 32px;
  width: 700px;
  max-width: 90vw;
  min-height: 430px;
  padding: 60px;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  direction: rtl;
  text-align: right;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* انیمیشن ورود کادر */
.hero-card > * {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.75s ease forwards;
}
.hero-card > *:nth-child(1) { animation-delay: 0.15s; }
.hero-card > *:nth-child(2) { animation-delay: 0.3s; }
.hero-card > *:nth-child(3) { animation-delay: 0.45s; }

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

.hero-card-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
  color: #240B02;
  margin-bottom: 1.5rem;
}

.hero-card-text {
  font-size: 21px;
  font-weight: 400;
  line-height: 2;
  color: #240B02;
  margin-bottom: 2rem;
}

.hero-card-actions {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* دکمه‌های hero — فقط کادر، رنگ #240B02 */
.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--r-xl);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  background: transparent;
  color: #240B02;
  border: 2px solid #240B02;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn-hero-primary:hover {
  background: #240B02;
  border-color: #240B02;
  color: #FFC9CB;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(36,11,2,0.25);
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--r-xl);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  background: transparent;
  color: #240B02;
  border: 2px solid #240B02;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-hero-outline:hover {
  background: #240B02;
  border-color: #240B02;
  color: #FFC9CB;
  transform: translateY(-2px);
}

/* حذف استایل‌های قدیمی hero-content */
.hero-content { display: none; }
.hero-title, .hero-text, .hero-actions { display: none; }

/* =============================================
   HOME — CATEGORIES GRID
   ============================================= */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.categories-grid .cat-card-wide {
  grid-column: span 2;
}

.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.cat-card-tall { aspect-ratio: 3/4; }
.cat-card-wide { aspect-ratio: 16/9; }
.cat-card-square { aspect-ratio: 1; }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition);
}
.cat-card:hover img { transform: scale(1.07); }

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,43,31,0.72) 0%, transparent 55%);
}

.cat-card-info {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.75rem;
  color: white;
  direction: rtl;
  text-align: right;
}
.cat-card-info h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.cat-card-info span { font-size: 0.85rem; opacity: 0.8; }

.cat-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.45rem 1.2rem;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--r-xl);
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}
.cat-card:hover .cat-card-link {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PRODUCT CARDS
   ============================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s var(--transition);
  direction: rtl;
  text-align: right;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream);
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-thumb img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-xl);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 1;
}
.badge-new  { background: var(--mint);  color: var(--dark); }
.badge-sale { background: var(--blush); color: var(--dark); }
.badge-hot  { background: var(--peach); color: var(--white); }

.product-quick-add {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  white-space: nowrap;
  background: var(--dark);
  color: var(--white);
  padding: 0.55rem 1.35rem;
  border-radius: var(--r-xl);
  font-size: 0.82rem;
  font-weight: 600;
  border: none;
  opacity: 0;
  transition: all var(--transition);
  cursor: pointer;
}
.product-card:hover .product-quick-add {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-wishlist {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  width: 34px;
  height: 34px;
  background: white;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  color: var(--gray);
}
.product-card:hover .product-wishlist {
  opacity: 1;
}
.product-wishlist:hover { color: #e74c3c; }

.product-info { padding: 1.1rem 1.25rem 1.25rem; }
.product-cat {
  font-size: 0.72rem;
  color: var(--blush);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}
.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.product-stars { color: #F4C842; font-size: 0.8rem; margin-bottom: 0.4rem; }
.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mocha);
}
.product-price del {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 400;
  margin-left: 0.4rem;
}

/* =============================================
   HOME — ABOUT SECTION
   ============================================= */
.about-section { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.about-image img { width: 100%; height: 560px; object-fit: cover; }
.about-image-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 120px;
  height: 120px;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--dark);
  box-shadow: var(--shadow-md);
}
.about-image-badge strong { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-image-badge span { font-size: 0.7rem; font-weight: 600; margin-top: 0.25rem; }

.about-content { direction: rtl; text-align: right; }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { color: var(--gray); line-height: 1.9; margin-bottom: 1rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--mocha);
  display: block;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.82rem; color: var(--gray); }

/* =============================================
   HOME — INSTAGRAM SECTION
   ============================================= */
.instagram-section { background: var(--ivory); }
.instagram-handle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--mocha);
  font-weight: 600;
  margin-top: 1rem;
  text-decoration: none;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-top: 3rem;
}
.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-sm);
  position: relative;
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insta-item:hover img { transform: scale(1.12); }
.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(242,196,206,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 1.3rem;
  color: white;
}
.insta-item:hover .insta-overlay { opacity: 1; }

/* =============================================
   HOME — TESTIMONIALS
   ============================================= */
.testimonials-section { background: var(--cream); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  direction: rtl;
  text-align: right;
}
.testimonial-stars { color: #F4C842; font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--blush);
}
.testimonial-name { font-size: 0.9rem; font-weight: 700; color: var(--dark); }
.testimonial-date { font-size: 0.78rem; color: var(--gray); }

/* =============================================
   HOME — NEWSLETTER
   ============================================= */
.newsletter-section {
  background: #b3d4c3;
  color: #240B02;
  text-align: center;
  padding: 5rem 0;
}
.newsletter-section .eyebrow { color: #240B02; opacity: 0.65; }
.newsletter-section h2 { color: #240B02; margin-bottom: 1rem; }
.newsletter-section p { color: rgba(0,33,26,0.7); margin-bottom: 2.5rem; }
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
  direction: rtl;
}
.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--r-xl);
  border: none;
  font-family: var(--font);
  font-size: 0.95rem;
  direction: rtl;
  text-align: right;
  background: rgba(255,255,255,0.55);
  color: #240B02;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(0,33,26,0.45); }
.newsletter-form input:focus { background: rgba(255,255,255,0.8); }

/* =============================================
   ARCHIVE / SHOP PAGE
   ============================================= */
.archive-hero {
  background: linear-gradient(135deg, var(--cream), var(--ivory));
  padding: 5rem 0 3rem;
  text-align: center;
  direction: rtl;
}
.archive-hero h1 { margin-bottom: 0.75rem; }
.archive-hero p { color: var(--gray); font-size: 1rem; }
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1rem;
  direction: rtl;
}
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--mocha); }
.breadcrumb-sep { opacity: 0.5; }

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  padding: 3rem 0;
  align-items: start;
  direction: rtl;
}

/* Sidebar */
.shop-sidebar { direction: rtl; text-align: right; }
.sidebar-widget {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.sidebar-widget h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blush);
}
.filter-list { display: flex; flex-direction: column; gap: 0.6rem; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--dark);
  transition: color 0.2s;
}
.filter-item:hover { color: var(--mocha); }
.filter-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.filter-item.active .filter-check {
  background: var(--mocha);
  border-color: var(--mocha);
  color: white;
  font-size: 0.6rem;
}

/* Price Range */
.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}
.price-range input {
  width: 80px;
  padding: 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  text-align: center;
  direction: ltr;
}

/* Sort bar */
.shop-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  direction: rtl;
}
.shop-count { font-size: 0.9rem; color: var(--gray); }
.sort-select {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--dark);
  background: var(--white);
  direction: rtl;
  cursor: pointer;
}

/* Pagination */
.sonat-pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
  direction: rtl;
}
.sonat-pagination a,
.sonat-pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--dark);
  text-decoration: none;
  transition: all var(--transition);
}
.sonat-pagination a:hover,
.sonat-pagination .current {
  background: var(--mocha);
  border-color: var(--mocha);
  color: white;
}

/* =============================================
   SINGLE PRODUCT
   ============================================= */
.single-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 4rem 0;
  direction: rtl;
}
.product-gallery { direction: rtl; }
.gallery-main {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  background: var(--cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.gallery-thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.gallery-thumb.active { border-color: var(--mocha); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-summary { direction: rtl; text-align: right; }
.product-summary .product-cat {
  font-size: 0.78rem;
  color: var(--blush);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}
.product-summary h1 { font-size: 2rem; margin-bottom: 0.75rem; }
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  color: var(--gray);
}
.product-rating .stars { color: #F4C842; }
.product-price-single {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mocha);
  margin-bottom: 1.5rem;
}
.product-price-single del {
  font-size: 1.1rem;
  color: var(--gray);
  font-weight: 400;
  margin-left: 0.5rem;
}
.product-desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  width: fit-content;
  margin-bottom: 1.5rem;
}
.qty-btn {
  width: 44px;
  height: 44px;
  background: var(--ivory);
  border: none;
  font-size: 1.1rem;
  color: var(--dark);
  cursor: pointer;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--blush); }
.qty-input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  background: white;
  outline: none;
}

.add-to-cart-section {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.add-to-cart-section .btn { flex: 1; justify-content: center; }

.product-meta { font-size: 0.85rem; color: var(--gray); line-height: 2; }
.product-meta span { color: var(--dark); font-weight: 600; }

/* Tabs محصول */
.product-tabs { margin-top: 4rem; }
.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  direction: rtl;
}
.tab-btn {
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--mocha);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.tab-btn.active { color: var(--mocha); }
.tab-btn.active::after { transform: scaleX(1); }
.tab-content { display: none; direction: rtl; text-align: right; }
.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================
   CAFE PAGE
   ============================================= */
.cafe-hero {
  min-height: 55vh;
  background-image: url('assets/images/cafe-1.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  position: relative;
  direction: rtl;
}
.cafe-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(253,246,236,0.92) 0%, rgba(253,246,236,0.5) 55%, transparent 100%);
}
.cafe-hero-content { position: relative; z-index: 1; }
.cafe-hero h1 { color: var(--dark); }

.cafe-filter-nav {
  display: flex;
  gap: 0.6rem;
  padding: 2rem 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: wrap;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.cafe-filter-nav::-webkit-scrollbar { display: none; }
.cafe-filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cafe-filter-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cafe-filter-btn.active,
.cafe-filter-btn:hover {
  background: #240B02;
  border-color: #240B02;
  color: #FFC9CB;
}

.cafe-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.cafe-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  direction: rtl;
  text-align: right;
  cursor: pointer;
  border: 1px solid transparent;
}
.cafe-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: var(--cream);
  border-color: var(--border);
}
.cafe-item-img {
  width: 92px;
  height: 92px;
  border-radius: var(--r-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--cream);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.cafe-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cafe-item:hover .cafe-item-img img { transform: scale(1.08); }
.cafe-item-info { flex: 1; }
.cafe-item-name { font-size: 1.02rem; font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.cafe-item-desc { font-size: 0.82rem; color: var(--gray); line-height: 1.6; margin-bottom: 0.6rem; }
.cafe-item-price { font-size: 1.05rem; font-weight: 800; color: var(--mocha); }
.cafe-item-price span { font-size: 0.75rem; font-weight: 500; opacity: 0.75; margin-right: 0.2rem; }

/* تیتر جمع‌وجور هر دسته در منوی کافه */
.cafe-cat-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 3.5rem 0 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--border);
  direction: rtl;
}
.cafe-cat-header:first-child { margin-top: 0.5rem; }
.cafe-cat-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #240B02;
  background: var(--blush);
  border-radius: 50%;
}
.cafe-cat-icon svg { width: 24px; height: 24px; }
.cafe-cat-name {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
  margin: 0;
}

/* =============================================
   CUSTOM CAKE ORDER
   ============================================= */
.order-page-hero {
  background: linear-gradient(135deg, var(--blush) 0%, var(--cream) 100%);
  padding: 5rem 0;
  text-align: center;
}
.order-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
  direction: rtl;
  flex-wrap: wrap;
}
.order-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray);
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(242,196,206,0.3);
  border: 2px solid rgba(242,196,206,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.order-step.active .step-num {
  background: var(--mocha);
  border-color: var(--mocha);
  color: white;
}
.order-step.active { color: var(--dark); font-weight: 600; }

.order-form-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 0 6rem;
}
.order-form {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  direction: rtl;
}
.order-form h3 {
  font-size: 1.1rem;
  color: var(--mocha);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blush);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.form-row.full { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--ivory);
  direction: rtl;
  text-align: right;
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blush);
  background: white;
  box-shadow: 0 0 0 3px rgba(242,196,206,0.2);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-divider { margin: 2rem 0; border: none; border-top: 1px solid var(--border); }

/* Upload Area */
.upload-area {
  border: 2px dashed rgba(139,96,80,0.25);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--ivory);
}
.upload-area:hover {
  border-color: var(--mocha);
  background: rgba(242,196,206,0.08);
}
.upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; color: var(--blush); }
.upload-text { font-size: 0.9rem; color: var(--gray); }
.upload-text strong { color: var(--mocha); }

/* Color Picker */
.color-picker-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.color-option {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.color-option.selected,
.color-option:hover {
  border-color: var(--dark);
  transform: scale(1.15);
}

.form-submit-section {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.form-submit-section p {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.75rem;
}

/* =============================================
   WOOCOMMERCE — CART
   ============================================= */
.cart-page { padding: 4rem 0; }
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  direction: rtl;
  align-items: start;
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: right;
  padding: 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  border-bottom: 2px solid var(--border);
}
.cart-table td { padding: 1.25rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--r-md); object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-remove {
  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition);
}
.cart-remove:hover { color: #e74c3c; }

.cart-totals {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  direction: rtl;
  text-align: right;
}
.cart-totals h3 { margin-bottom: 1.5rem; }
.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.totals-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mocha);
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.coupon-form {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.coupon-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.875rem;
  direction: rtl;
  text-align: right;
}
.coupon-form button {
  padding: 0.7rem 1.25rem;
  background: var(--ivory);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--transition);
}
.coupon-form button:hover { background: var(--blush); border-color: var(--blush); }

/* =============================================
   WOOCOMMERCE — CHECKOUT
   ============================================= */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  direction: rtl;
  align-items: start;
  padding: 4rem 0;
}
.checkout-form-section h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--blush);
}
.checkout-form-section .form-group { margin-bottom: 1.25rem; }
.order-summary-box {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  direction: rtl;
  text-align: right;
}

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-page-hero {
  background: linear-gradient(135deg, var(--mint) 0%, var(--cream) 100%);
  padding: 6rem 0;
  text-align: center;
  direction: rtl;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 2rem;
  margin-top: 4rem;
}
.team-card {
  text-align: center;
  direction: rtl;
}
.team-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--blush);
}
.team-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--mocha); }

/* Timeline */
.timeline { position: relative; padding: 4rem 0; }
.timeline::before {
  content: '';
  position: absolute;
  right: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blush), var(--mint));
}
.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  direction: rtl;
}
.timeline-item:nth-child(even) .timeline-content { grid-column: 2; }
.timeline-content {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  text-align: right;
}
.timeline-year {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--mocha);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  padding: 5rem 0;
  direction: rtl;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--gray); line-height: 1.9; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  direction: rtl;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(242,196,206,0.2);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--mocha);
  flex-shrink: 0;
}
.contact-item-text h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 0.2rem; }
.contact-item-text p { font-size: 0.875rem; color: var(--gray); margin: 0; }

.map-wrapper {
  border-radius: var(--r-xl);
  overflow: hidden;
  height: 300px;
  margin-top: 2rem;
  background: var(--cream);
}
.map-wrapper iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   FOOTER
   ============================================= */
#sonat-footer {
  background: #ffc9cb;
  color: #240B02;
  direction: rtl;
  text-align: right;
}

/* گرید اصلی فوتر — دسکتاپ: راست=لوگو+لینک‌ها ، وسط=دسته‌های محبوب ، چپ=اطلاعات تماس */
.footer-main {
  display: grid;
  grid-template-columns: 1fr 230px 260px;
  grid-template-rows: auto auto;
  column-gap: 2.5rem;
  row-gap: 0.5rem;
  padding: 4rem 0 2.5rem;
}

.footer-logo-block   { grid-column: 1; grid-row: 1; margin-bottom: 1.5rem; }
.footer-links-cols    { grid-column: 1; grid-row: 2; }

.footer-seo-links     { grid-column: 2; grid-row: 1 / span 2; }

.footer-intro         { grid-column: 3; grid-row: 1; align-self: start; }
.footer-contact-heading { grid-column: 3; grid-row: 2; align-self: start; }
.footer-social         { grid-column: 3; grid-row: 3; align-self: start; }

.footer-seo-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.footer-seo-links ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-seo-links ul li a {
  font-size: 0.875rem;
  color: rgba(36,11,2,0.75);
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.footer-seo-links ul li a:hover {
  color: #240B02;
  padding-right: 0.25rem;
}

.footer-question {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.footer-intro p {
  font-size: 0.875rem;
  line-height: 1.8;
  color: #240B02;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}
.footer-contact-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 1rem 0 1rem;
}

.footer-social { display: flex; gap: 0.75rem; }
.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(36,11,2,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #240B02;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.social-btn:hover {
  background: #240B02;
  border-color: #240B02;
  color: white;
  transform: translateY(-3px);
}

.footer-links-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 2rem;
  max-width: 480px;
}
.footer-links-cols ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links-cols ul li a {
  font-size: 0.875rem;
  color: rgba(36,11,2,0.75);
  text-decoration: none;
  transition: all var(--transition);
  display: block;
}
.footer-links-cols ul li a:hover {
  color: #240B02;
  padding-right: 0.25rem;
}

.footer-legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(36,11,2,0.12);
  font-size: 0.8rem;
}
.footer-legal-row a { color: rgba(36,11,2,0.75); text-decoration: none; }
.footer-legal-row a:hover { color: #240B02; }
.footer-legal-row span { margin-right: auto; opacity: 0.65; }

/* =============================================
   فوتر — بازچینی برای موبایل (منطبق با الگوی مگنولیا)
   ============================================= */
@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto auto;
    padding: 3rem 0 2rem;
    row-gap: 1.25rem;
  }
  .footer-logo-block   { grid-column: 1; grid-row: 1; justify-self: center; margin-bottom: 0; }
  .footer-social        { grid-column: 1; grid-row: 2; justify-self: center; }
  .footer-intro         { grid-column: 1; grid-row: 3; text-align: center; }
  .footer-intro p       { max-width: 320px; margin-left: auto; margin-right: auto; }
  .footer-contact-heading { grid-column: 1; grid-row: 4; margin-top: 0; }
  .footer-links-cols     { grid-column: 1; grid-row: 5; max-width: none; }
  .footer-seo-links      { grid-column: 1; grid-row: 6; border-top: 1px solid rgba(36,11,2,0.12); padding-top: 1.5rem; }
  .footer-seo-links ul   { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.5rem; }

  .footer-legal-row { justify-content: center; text-align: center; }
  .footer-legal-row span { margin-right: 0; width: 100%; text-align: center; order: 10; }
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.sonat-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: white;
  padding: 0.75rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s ease;
  direction: rtl;
  white-space: nowrap;
  pointer-events: none;
}
.sonat-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 46px;
  height: 46px;
  background: #43234c;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  z-index: 99;
}
#back-to-top.visible { opacity: 1; visibility: visible; }
#back-to-top:hover { background: #2e1735; transform: translateY(-3px); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { display: none; }
  .instagram-grid { grid-template-columns: repeat(4,1fr); }
  .single-product-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .checkout-grid { grid-template-columns: 1fr; }
  .cart-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
  }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; order: 1; justify-self: start; }
  .site-logo { order: 2; justify-self: center; }
  .header-actions { order: 3; justify-self: end; }
  .header-actions #search-toggle,
  .header-actions a[aria-label="حساب کاربری"] { display: none; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .categories-grid .cat-card-wide { grid-column: span 2; }
  .products-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3,1fr); }
  .instagram-grid { grid-template-columns: repeat(3,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .order-form { padding: 1.5rem; }
  .newsletter-form { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr; }
  .categories-grid .cat-card-wide { grid-column: span 1; }
  .instagram-grid { grid-template-columns: repeat(2,1fr); }
  .cafe-menu-grid { grid-template-columns: 1fr; }
}

/* =============================================
   ریسپانسیو — هدر / هیرو / کافه (رفع بهم‌ریختگی موبایل)
   ============================================= */
@media (max-width: 768px) {
  /* هدر و لوگو */
  #sonat-header .header-inner { height: 72px; }
  #sonat-header .custom-logo,
  .header-logo-img { height: 46px !important; max-width: 150px !important; }

  /* هیرو */
  .hero { min-height: 88vh; }
  .hero-bg { background-position: 78% center; }
  .hero .container,
  .hero-flex-container { padding: 0 1.25rem; justify-content: center !important; }
  .hero-card {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 36px 26px;
    border-radius: 30px;
    margin: 0 !important;
    text-align: center;
    align-items: center;
  }
  .hero-card-title { font-size: 1.9rem; margin-bottom: 1rem; }
  .hero-card-text { font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.5rem; }
  .hero-card-actions { gap: 0.6rem; justify-content: center; width: 100%; }
  .btn-hero-primary, .btn-hero-outline {
    padding: 0.85rem 1.75rem;
    font-size: 0.88rem;
    border-radius: 999px;
  }
  .btn-hero-primary {
    background: #240B02;
    color: #FFC9CB;
  }
  .btn-hero-primary:hover { background: transparent; color: #240B02; }

  /* صفحه کافه */
  .cafe-hero { background-attachment: scroll; min-height: 40vh; }
  .cafe-cat-header { margin: 2.25rem 0 1.25rem; gap: 0.6rem; }
  .cafe-cat-icon { width: 38px; height: 38px; }
  .cafe-cat-icon svg { width: 20px; height: 20px; }
  .cafe-cat-name { font-size: 1.15rem; }
  .cafe-item { padding: 1rem; gap: 0.9rem; }
  .cafe-item-img { width: 72px; height: 72px; }
  .cafe-filter-nav { padding: 1.25rem 0; gap: 0.4rem; justify-content: flex-start; }
  .cafe-filter-btn { padding: 0.5rem 1.1rem; font-size: 0.8rem; }
  .cafe-filter-sticky { top: 72px !important; }
}

@media (max-width: 400px) {
  .hero-card-title { font-size: 1.6rem; }
  .hero-card { padding: 26px 18px; }
}

/* =============================================
   WOOCOMMERCE OVERRIDES
   ============================================= */
.woocommerce-notices-wrapper .woocommerce-message {
  background: rgba(184,216,200,0.2);
  border-top: 3px solid var(--mint);
  border-radius: var(--r-md);
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  margin-bottom: 2rem;
}
.woocommerce-notices-wrapper .woocommerce-error {
  background: rgba(242,196,206,0.2);
  border-top: 3px solid var(--blush);
  border-radius: var(--r-md);
  font-family: var(--font);
  direction: rtl;
  text-align: right;
  margin-bottom: 2rem;
}

::selection { background: rgba(242,196,206,0.45); color: var(--dark); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mocha); }

/* فوتر — override کامل رنگ‌ها */
#sonat-footer,
#sonat-footer p,
#sonat-footer li,
#sonat-footer span,
#sonat-footer small,
#sonat-footer a,
#sonat-footer i {
  color: #240B02;
}
#sonat-footer a:hover {
  color: #240B02;
  opacity: 0.75;
}
#sonat-footer li {
  color: #240B02 !important;
}
#sonat-footer li a {
  color: rgba(0,33,26,0.75) !important;
}
#sonat-footer li a:hover {
  color: #240B02 !important;
}
#sonat-footer i {
  color: #240B02 !important;
}

/* =============================================
   NEW HOME SECTIONS — رنگ‌بندی سفارشی
   ============================================= */

/* ---------- دسته‌بندی‌ها: یک ردیف ---------- */
.categories-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-card-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  width: 180px;
  flex-shrink: 0;
}

.cat-card-simple-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 3px solid transparent;
}

.cat-card-simple-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cat-card-simple:hover .cat-card-simple-img {
  border-color: #FFC9CB;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.cat-card-simple:hover .cat-card-simple-img img {
  transform: scale(1.08);
}

.cat-card-simple-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #240B02;
  transition: opacity 0.25s ease;
}
.cat-card-simple:hover .cat-card-simple-name {
  opacity: 0.7;
}

/* ---------- سکشن کافه ---------- */
.cafe-promo-section {
  background: #FFC9CB;
}
.cafe-promo-section .section-header h2,
.cafe-promo-section .section-header p {
  color: #240B02;
}
.cafe-promo-section .section-header p { opacity: 0.85; }

.cafe-promo-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.cafe-promo-item {
  flex: 1 1 0;
  min-width: 180px;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cafe-promo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cafe-promo-item:hover img { transform: scale(1.08); }

/* دکمه کافه — کادر، بکراند مثل سکشن، هاور برعکس */
.btn-cafe-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.25rem;
  border-radius: var(--r-xl);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  background: #FFC9CB;
  color: #240B02;
  border: 2px solid #240B02;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-cafe-outline:hover {
  background: #240B02;
  color: #FFC9CB;
  border-color: #240B02;
  transform: translateY(-2px);
}

/* ---------- پرفروش‌ترین‌ها: هدر + لینک بالا راست ---------- */
.bestsellers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  direction: rtl;
  text-align: right;
}
.bestsellers-header h2 { margin-bottom: 0.75rem; color: #240B02; }
.bestsellers-header p {
  font-size: 1rem;
  color: #240B02;
  opacity: 0.75;
  max-width: 480px;
  line-height: 1.8;
  margin: 0;
}
.bestsellers-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #240B02;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
}
.bestsellers-link:hover {
  color: #240B02;
  border-bottom-color: #240B02;
}

/* ---------- سفارشات ویژه / جشن‌ها ---------- */
.special-events-section {
  background: #bae8d4;
}
.special-events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  direction: rtl;
}
.special-events-image {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.special-events-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.special-events-content {
  text-align: right;
}
.special-events-content h2 {
  color: #240B02;
  margin-bottom: 1.25rem;
}
.special-events-content p {
  color: #240B02;
  opacity: 0.85;
  line-height: 1.9;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

/* ---------- خبرنامه: پس‌زمینه خال‌خالی ---------- */
.newsletter-section {
  position: relative;
  background: #ffffff;
  text-align: center;
  padding: 8rem 0;
  overflow: hidden;
}
.newsletter-dots-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/dots-bg.png');
  background-size: 420px;
  background-repeat: repeat;
  opacity: 0.9;
  z-index: 1;
}
.newsletter-section h2 {
  color: #240B02;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}
.newsletter-section p {
  color: #240B02;
  opacity: 0.75;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
  direction: rtl;
  position: relative;
  z-index: 2;
}
.newsletter-form input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: var(--r-xl);
  border: 2px solid #240B02;
  font-family: var(--font);
  font-size: 1rem;
  direction: rtl;
  text-align: right;
  background: #ffffff;
  color: #240B02;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(36,11,2,0.45); }
.newsletter-form input:focus { background: #fff8f8; }
.newsletter-section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.25rem;
}
.newsletter-section > .container > p {
  font-size: 1.05rem;
  margin-bottom: 3rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- ریسپانسیو سکشن‌های جدید ---------- */
@media (max-width: 1024px) {
  .special-events-grid { grid-template-columns: 1fr; gap: 2rem; }
  .special-events-image img { height: 320px; }
  .bestsellers-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .categories-row { gap: 1rem; }
  .cat-card-simple { width: 130px; }
  .cat-card-simple-img { width: 110px; height: 110px; }
  .cafe-promo-row { gap: 0.85rem; }
  .cafe-promo-item { min-width: 130px; }
  .newsletter-form { flex-direction: column; }
}

/* لوگو تصویری هدر و فوتر */
.footer-logo-link { text-decoration: none; display: block; }
.logo-fallback { display: flex; flex-direction: column; }

/* =============================================
   عکس‌های واقعی — آپدیت
   ============================================= */

/* label زیر عکس‌های کافه */
.cafe-promo-item {
  position: relative;
  flex: 1 1 0;
  min-width: 160px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
}
.cafe-promo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  flex: 1;
}
.cafe-promo-item:hover img { transform: scale(1.08); }

.cafe-promo-label {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  background: linear-gradient(to top, rgba(36,11,2,0.65) 0%, transparent 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1.5rem 1rem 0.85rem;
  text-align: center;
  font-family: 'Vazirmatn', sans-serif;
}

/* سکشن سبز — عکس کیک عروسی */
.special-events-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-xl);
}

/* فوتر لوگو — حذف بکراند */
#sonat-footer .custom-logo-link,
#sonat-footer figure,
#sonat-footer .site-logo,
#sonat-footer img.custom-logo {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}
#sonat-footer .footer-logo-img,
#sonat-footer .custom-logo {
  background: transparent !important;
  height: 70px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

/* هدر — لوگو بزرگ و بدون بکراند */
#sonat-header .custom-logo-link,
#sonat-header .site-logo,
#sonat-header .site-logo figure {
  background: transparent !important;
  padding: 0 !important;
}
#sonat-header .custom-logo,
.header-logo-img {
  height: 68px !important;
  width: auto !important;
  max-width: 220px !important;
  object-fit: contain;
  background: transparent !important;
  display: block;
}
.site-logo {
  display: flex;
  align-items: center;
}
#sonat-header .header-inner {
  height: 96px;
}

/* هیرو کارت — کاملاً چسبیده به سمت چپ صفحه */
.hero {
  display: flex !important;
  align-items: center !important;
}
.hero .container,
.hero-flex-container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0 2rem;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  position: relative;
  z-index: 2;
  min-height: 100vh;
}
.hero-card {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* خبرنامه — بلندتر */
.newsletter-section {
  padding: 9rem 0 !important;
  min-height: 480px;
  display: flex;
  align-items: center;
}
.newsletter-section > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.newsletter-section h2 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  margin-bottom: 1.5rem !important;
}
.newsletter-section > .container > p:first-of-type {
  font-size: 1.1rem !important;
  margin-bottom: 3rem !important;
}
.newsletter-form {
  max-width: 580px !important;
}
.newsletter-form input {
  padding: 1.1rem 1.5rem !important;
  font-size: 1rem !important;
}
