/* =====================================================
   اقبال — قالب شرکتی ماکارونی | سیستم طراحی مشترک
   ===================================================== */
:root {
  --crimson: #920b22;
  --crimson-2: #b51631;
  --crimson-dark: #5b0010;
  --crimson-deep: #360008;
  --gold: #f6c343;
  --gold-2: #e8a91f;
  --gold-soft: #ffe7a0;
  --blue: #0887c4;
  --blue-dark: #05628f;
  --cream: #fff8eb;
  --cream-2: #f7ecda;
  --paper: #fffdf8;
  --ink: #241b1d;
  --muted: #75686a;
  --white: #fff;
  --success: #158467;
  --danger: #c8283e;
  --border: rgba(71, 38, 40, .12);
  --shadow-sm: 0 10px 30px rgba(66, 11, 20, .08);
  --shadow: 0 22px 60px rgba(66, 11, 20, .14);
  --shadow-lg: 0 35px 90px rgba(45, 0, 8, .25);
  --radius-sm: 14px;
  --radius: 24px;
  --radius-lg: 38px;
  --header-h: 88px;
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Vazirmatn", "IRANSans", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
::selection { color: var(--crimson-dark); background: var(--gold); }
a { color: inherit; text-decoration: none; transition: color .25s ease, background .25s ease, transform .25s ease, opacity .25s ease; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; vertical-align: middle; }
ul { margin-top: 0; }
h1, h2, h3, h4, h5, h6 { margin-top: 0; font-weight: 900; line-height: 1.35; }
p { margin-top: 0; }

/* نسخه پشتیبان چیدمان در صورت قطع CDN بوت‌استرپ */
.container { width: min(100% - 32px, 1200px); margin-inline: auto; }
.row { display: flex; flex-wrap: wrap; margin-inline: -12px; }
.row > * { padding-inline: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; }

.skip-link {
  position: fixed; top: -100px; right: 20px; z-index: 10000;
  padding: 10px 18px; border-radius: 0 0 12px 12px;
  color: var(--crimson-dark); background: var(--gold); font-weight: 800;
}
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid rgba(8, 135, 196, .5); outline-offset: 3px; }

/* تایپوگرافی و ابزارها */
.section { position: relative; padding: 105px 0; }
.section-sm { padding: 72px 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.text-gold { color: var(--gold) !important; }
.text-crimson { color: var(--crimson) !important; }
.text-blue { color: var(--blue) !important; }
.text-muted { color: var(--muted) !important; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 46px; }
.section-head.centered { max-width: 760px; margin: 0 auto 48px; text-align: center; display: block; }
.section-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px;
  color: var(--crimson); font-size: .84rem; font-weight: 900; letter-spacing: .02em;
}
.section-kicker::before { content: ""; width: 30px; height: 3px; border-radius: 5px; background: var(--gold); }
.section-head.centered .section-kicker::after { content: ""; width: 30px; height: 3px; border-radius: 5px; background: var(--gold); }
.section-title { margin-bottom: 10px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.04em; }
.section-lead { max-width: 650px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  color: var(--gold-soft); background: rgba(255,255,255,.07); font-weight: 800; font-size: .85rem;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(246,195,67,.16); }

.btn-brand, .btn-outline-brand, .btn-blue, .btn-light-custom {
  position: relative; min-height: 52px; padding: 12px 24px; border-radius: 15px;
  font-weight: 900; overflow: hidden; isolation: isolate; transition: all .35s var(--ease);
}
.btn-brand { color: var(--crimson-dark); background: linear-gradient(135deg, var(--gold), #ffd96c); box-shadow: 0 13px 30px rgba(246,195,67,.22); }
.btn-brand::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #ffe68f, var(--gold)); opacity: 0; transition: opacity .3s; }
.btn-brand:hover { color: var(--crimson-dark); transform: translateY(-3px); box-shadow: 0 0 0 5px rgba(246,195,67,.12), 0 18px 40px rgba(246,195,67,.32); }
.btn-brand:hover::before { opacity: 1; }
.btn-outline-brand { color: var(--white); border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.btn-outline-brand:hover { color: var(--crimson-dark); border-color: var(--white); background: var(--white); transform: translateY(-3px); }
.btn-blue { color: #fff; background: linear-gradient(135deg, var(--blue), #25abe6); box-shadow: 0 12px 28px rgba(8,135,196,.22); }
.btn-blue:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 18px 38px rgba(8,135,196,.34); }
.btn-light-custom { color: var(--crimson); background: var(--white); }
.btn-light-custom:hover { color: var(--crimson); transform: translateY(-3px); box-shadow: 0 15px 35px rgba(0,0,0,.16); }
.arrow-icon { display: inline-flex; transition: transform .3s var(--ease); }
.btn:hover .arrow-icon, .text-link:hover .arrow-icon { transform: translateX(-5px); }

/* هدر ثابت و منوی موبایل */
.scroll-progress { position: fixed; top: 0; right: 0; z-index: 10020; width: 0; height: 3px; background: linear-gradient(90deg, var(--gold-2), #ffe48d); box-shadow: 0 0 12px var(--gold); }
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000; height: var(--header-h);
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: rgba(83, 0, 15, .68); backdrop-filter: blur(18px) saturate(145%); -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: height .35s var(--ease), background .35s ease, box-shadow .35s ease;
}
.site-header.scrolled { height: 70px; background: rgba(79, 0, 14, .92); box-shadow: 0 10px 35px rgba(38,0,7,.18); }
.header-inner { height: 100%; display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; gap: 25px; }
.brand { justify-self: start; display: inline-flex; align-items: center; width: 160px; }
.brand img { width: 100%; height: auto; }
.desktop-nav { justify-self: center; }
.nav-list { display: flex; align-items: center; gap: clamp(17px, 2.2vw, 34px); padding: 0; margin: 0; list-style: none; }
.nav-link-custom { position: relative; display: block; padding: 14px 0; color: rgba(255,255,255,.83); font-size: .94rem; font-weight: 700; }
.nav-link-custom::after { content: ""; position: absolute; right: 0; bottom: 8px; width: 0; height: 2px; border-radius: 10px; background: var(--gold); transition: width .35s var(--ease); }
.nav-link-custom:hover, .nav-link-custom.active { color: #fff; }
.nav-link-custom:hover::after, .nav-link-custom.active::after { width: 100%; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-cta { min-height: 43px; padding: 8px 18px; border-radius: 12px; }
.cart-mini {
  position: relative; width: 43px; height: 43px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.17); border-radius: 12px; color: #fff; background: rgba(255,255,255,.07);
}
.cart-count { position: absolute; top: -6px; left: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 20px; display: grid; place-items: center; color: var(--crimson-dark); background: var(--gold); font-size: .66rem; font-weight: 900; }
.hamburger { display: none; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; color: #fff; background: rgba(255,255,255,.08); }
.hamburger span, .hamburger::before, .hamburger::after { content: ""; display: block; width: 21px; height: 2px; margin: 5px auto; border-radius: 3px; background: currentColor; }
.mobile-overlay { position: fixed; inset: 0; z-index: 1090; opacity: 0; visibility: hidden; background: rgba(30,0,5,.64); backdrop-filter: blur(4px); transition: .35s; }
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; z-index: 1100; width: min(88vw, 390px); height: 100dvh; padding: 24px;
  color: #fff; background: linear-gradient(160deg, var(--crimson), var(--crimson-deep));
  box-shadow: -25px 0 70px rgba(30,0,5,.35); transform: translateX(105%); transition: transform .42s var(--ease); overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.13); }
.drawer-brand { width: 145px; }
.drawer-close { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); border-radius: 12px; color: #fff; background: transparent; font-size: 1.5rem; }
.drawer-nav { padding: 26px 0; margin: 0; list-style: none; }
.drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: 13px 5px; border-bottom: 1px solid rgba(255,255,255,.09); color: rgba(255,255,255,.9); font-size: 1.04rem; font-weight: 800; }
.drawer-nav a::after { content: "←"; color: var(--gold); }
.drawer-contact { padding: 20px; border: 1px solid rgba(255,255,255,.12); border-radius: 20px; background: rgba(255,255,255,.07); }
.drawer-contact small { color: var(--gold-soft); }
.drawer-contact a { display: block; direction: ltr; text-align: right; font-weight: 800; }

/* قهرمان صفحه خانه */
.home-hero {
  position: relative; min-height: 860px; display: flex; align-items: center; padding: 150px 0 100px; overflow: hidden;
  color: #fff; background:
    radial-gradient(circle at 76% 28%, rgba(247,195,67,.12), transparent 24%),
    radial-gradient(circle at 20% 56%, rgba(8,135,196,.16), transparent 22%),
    linear-gradient(135deg, #59000f 0%, #93091f 48%, #650011 100%);
}
.home-hero::before { content: ""; position: absolute; inset: 0; opacity: .09; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M0 79L79 0M-18 58L58-18M22 98L98 22' stroke='%23fff' stroke-width='.7'/%3E%3C/svg%3E"); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 55px; }
.hero-copy { padding-top: 15px; }
.hero-title { max-width: 700px; margin: 22px 0 20px; font-size: clamp(3.2rem, 6.3vw, 6.2rem); line-height: 1.12; letter-spacing: -.055em; text-wrap: balance; }
.hero-title span { display: block; color: var(--gold); text-shadow: 0 8px 30px rgba(246,195,67,.14); }
.hero-subtitle { max-width: 570px; margin-bottom: 32px; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero-proof { display: flex; align-items: center; gap: 18px; margin-top: 34px; color: rgba(255,255,255,.7); font-size: .84rem; }
.avatar-stack { display: flex; direction: ltr; }
.avatar-stack span { width: 34px; height: 34px; display: grid; place-items: center; margin-left: -8px; border: 2px solid var(--crimson); border-radius: 50%; color: var(--crimson); background: linear-gradient(145deg,#fff,#ffe7af); font-size: .72rem; font-weight: 900; }
.hero-stars { color: var(--gold); letter-spacing: 2px; }
.product-stage { position: relative; min-height: 600px; display: grid; place-items: center; perspective: 1200px; }
.product-stage::before { content: ""; position: absolute; width: 530px; height: 530px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; animation: spin 28s linear infinite; }
.product-stage::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px dashed rgba(246,195,67,.28); border-radius: 50%; animation: spinReverse 22s linear infinite; }
.product-spotlight { position: absolute; z-index: 0; width: 570px; height: 570px; border-radius: 50%; background: radial-gradient(circle, rgba(246,195,67,.3) 0, rgba(246,195,67,.09) 38%, transparent 68%); filter: blur(5px); }
.hero-pack-parallax { position: relative; z-index: 3; width: 100%; display: grid; place-items: center; will-change: transform; }
.hero-pack { position: relative; z-index: 3; width: min(79%, 440px); filter: drop-shadow(0 38px 32px rgba(38,0,7,.38)); transform: rotate(-4deg); animation: productFloat 5.6s ease-in-out infinite; will-change: transform; }
.five-badge {
  position: absolute; z-index: 5; top: 16%; right: 3%; width: 112px; aspect-ratio: 1; display: grid; place-items: center;
  border: 5px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #13a6e7, #0476ae); box-shadow: 0 18px 45px rgba(0,72,113,.4), 0 0 0 10px rgba(255,255,255,.08); text-align: center; animation: badgePulse 2.3s ease-in-out infinite;
}
.five-badge strong { display: block; margin-bottom: -12px; font-size: 2.25rem; line-height: 1; }
.five-badge small { font-weight: 900; }
.floating-seal { position: absolute; z-index: 4; left: 3%; bottom: 18%; width: 115px; padding: 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; color: var(--gold-soft); background: rgba(67,0,11,.46); backdrop-filter: blur(12px); text-align: center; transform: rotate(6deg); }
.floating-seal svg { width: 31px; margin-bottom: 5px; color: var(--gold); }
.floating-seal span { display: block; font-size: .77rem; font-weight: 800; line-height: 1.55; }
.pasta-orbit { position: absolute; z-index: 1; width: 34px; height: 88px; border: 7px solid var(--gold); border-top-color: transparent; border-radius: 50%; opacity: .75; }
.pasta-orbit.one { top: 12%; left: 15%; transform: rotate(52deg); animation: floatTiny 4s ease-in-out infinite; }
.pasta-orbit.two { right: 10%; bottom: 10%; transform: rotate(-40deg) scale(.75); animation: floatTiny 4.8s .5s ease-in-out infinite; }
.hero-scroll { position: absolute; right: 50%; bottom: 28px; z-index: 5; transform: translateX(50%); color: rgba(255,255,255,.6); font-size: .72rem; text-align: center; }
.hero-scroll i { display: block; width: 22px; height: 36px; margin: 7px auto 0; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; }
.hero-scroll i::after { content: ""; display: block; width: 4px; height: 7px; margin: 6px auto; border-radius: 5px; background: var(--gold); animation: scrollDot 1.7s ease infinite; }

/* نوار مزیت‌ها */
.features-wrap { position: relative; z-index: 20; margin-top: -44px; }
.features-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 25px; background: linear-gradient(135deg, #ffd460, var(--gold)); box-shadow: 0 24px 65px rgba(89,33,0,.18); overflow: hidden; }
.feature-item { display: flex; align-items: center; gap: 17px; min-height: 124px; padding: 24px 32px; border-left: 1px solid rgba(91,0,16,.13); }
.feature-item:last-child { border-left: 0; }
.feature-icon { flex: 0 0 58px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: var(--crimson); box-shadow: 0 10px 20px rgba(91,0,16,.18); }
.feature-icon svg { width: 27px; height: 27px; }
.feature-item h3 { margin-bottom: 1px; color: var(--crimson-dark); font-size: 1.03rem; }
.feature-item p { margin: 0; color: rgba(70,8,17,.68); font-size: .82rem; }

/* کارت محصول */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .42s var(--ease), box-shadow .42s var(--ease), border-color .3s;
}
.product-card:hover { transform: translateY(-10px); border-color: rgba(146,11,34,.17); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; height: 330px; display: grid; place-items: center; padding: 24px; overflow: hidden; background: radial-gradient(circle at 50% 52%, rgba(246,195,67,.42), rgba(246,195,67,.08) 42%, transparent 68%), linear-gradient(150deg,#fff7e5,#f6e8ce); }
.product-image-wrap::after { content: ""; position: absolute; bottom: 24px; width: 53%; height: 18px; border-radius: 50%; background: rgba(65,17,15,.17); filter: blur(9px); transition: width .4s; }
.product-card:hover .product-image-wrap::after { width: 61%; }
.product-image-wrap img { position: relative; z-index: 2; width: auto; height: 285px; object-fit: contain; filter: drop-shadow(0 16px 14px rgba(58,0,10,.18)); transition: transform .5s var(--ease); }
.product-card:hover .product-image-wrap img { transform: scale(1.055) rotate(-2deg); }
.product-badge { position: absolute; z-index: 3; top: 16px; right: 16px; padding: 6px 11px; border-radius: 9px; color: #fff; background: var(--blue); font-size: .72rem; font-weight: 900; box-shadow: 0 8px 18px rgba(8,135,196,.22); }
.product-fav { position: absolute; z-index: 3; top: 14px; left: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(146,11,34,.1); border-radius: 12px; color: var(--crimson); background: rgba(255,255,255,.76); }
.product-fav.active svg { fill: var(--crimson); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 21px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; color: var(--muted); font-size: .72rem; }
.product-meta span { display: inline-flex; align-items: center; gap: 5px; }
.product-body h3 { margin-bottom: 7px; font-size: 1.17rem; }
.product-body p { flex: 1; margin-bottom: 17px; color: var(--muted); font-size: .86rem; line-height: 1.75; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--border); }
.product-weight { color: var(--crimson); font-size: .84rem; font-weight: 900; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--crimson); font-size: .85rem; font-weight: 900; }
.text-link:hover { color: var(--blue); }

/* روایت کیفیت در خانه */
.quality-banner { position: relative; min-height: 540px; display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--crimson-dark); }
.quality-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(48,0,7,.15), rgba(62,0,9,.97) 65%), url("../images/durum-wheat.jpg") center/cover; }
.quality-banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 75% 50%, rgba(246,195,67,.12), transparent 35%); }
.quality-content { position: relative; z-index: 2; width: min(620px, 100%); margin-right: auto; padding: 80px 0; }
.quality-content .section-kicker { color: var(--gold); }
.quality-content h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.quality-content p { color: rgba(255,255,255,.75); font-size: 1.06rem; }
.quality-points { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; padding: 0; margin: 28px 0 34px; list-style: none; }
.quality-points li { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.quality-points li::before { content: "✓"; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: var(--crimson-dark); background: var(--gold); font-size: .78rem; font-weight: 900; }

/* کارت نوشته */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.blog-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.blog-card:hover { transform: translateY(-9px); box-shadow: var(--shadow); }
.blog-image { position: relative; display: block; height: 250px; overflow: hidden; }
.blog-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.blog-card:hover .blog-image img { transform: scale(1.07); }
.category-tag { position: absolute; z-index: 2; top: 17px; right: 17px; padding: 6px 12px; border-radius: 9px; color: #fff; background: var(--blue); box-shadow: 0 8px 20px rgba(8,135,196,.24); font-size: .72rem; font-weight: 900; }
.blog-body { padding: 23px; }
.blog-date { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--muted); font-size: .76rem; }
.blog-body h3 { margin-bottom: 10px; font-size: 1.18rem; }
.blog-body h3 a:hover { color: var(--crimson); }
.blog-body p { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.blog-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--border); }
.read-time { color: var(--muted); font-size: .74rem; }

/* فوتر */
.site-footer { position: relative; margin-top: 95px; padding: 0 0 0; color: rgba(255,255,255,.78); background: linear-gradient(150deg, var(--crimson-dark), #3b0009); }
.footer-wave { position: absolute; right: 0; bottom: calc(100% - 2px); width: 100%; height: 96px; color: var(--crimson-dark); }
.footer-main { padding: 75px 0 55px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .7fr 1.2fr; gap: 55px; }
.footer-logo { width: 175px; margin-bottom: 18px; }
.footer-about p { max-width: 330px; color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-title { margin: 11px 0 23px; color: #fff; font-size: 1.02rem; }
.footer-links { padding: 0; margin: 0; list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { position: relative; color: rgba(255,255,255,.68); font-size: .88rem; }
.footer-links a::before { content: ""; display: inline-block; width: 0; height: 2px; margin-left: 0; border-radius: 3px; background: var(--gold); vertical-align: middle; transition: .3s; }
.footer-links a:hover { color: #fff; }
.footer-links a:hover::before { width: 13px; margin-left: 7px; }
.socials { display: flex; gap: 9px; margin-top: 20px; }
.socials a { width: 41px; height: 41px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; color: #fff; background: rgba(255,255,255,.06); }
.socials a:hover { color: var(--crimson-dark); background: var(--gold); animation: socialBounce .6s; }
.socials svg { width: 19px; height: 19px; }
.newsletter-text { color: rgba(255,255,255,.65); font-size: .86rem; }
.newsletter-form { position: relative; margin-top: 17px; }
.newsletter-field { display: flex; align-items: center; padding: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 15px; background: rgba(255,255,255,.07); }
.newsletter-field input { width: 100%; min-width: 0; padding: 9px 12px; border: 0; outline: 0; color: #fff; background: transparent; direction: ltr; text-align: right; }
.newsletter-field input::placeholder { color: rgba(255,255,255,.42); direction: rtl; }
.newsletter-field button { flex: 0 0 45px; width: 45px; height: 43px; border: 0; border-radius: 11px; color: var(--crimson-dark); background: var(--gold); font-weight: 900; }
.form-message { min-height: 24px; margin: 7px 4px 0; font-size: .76rem; }
.form-message.success { color: #7eebc9; }
.form-message.error { color: #ffb3bd; }
.footer-bottom { padding: 19px 0; border-top: 1px solid rgba(255,255,255,.09); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; color: rgba(255,255,255,.5); font-size: .78rem; }
.footer-bottom a:hover { color: var(--gold); }

/* سربرگ صفحات داخلی */
.page-hero { position: relative; min-height: 390px; display: flex; align-items: flex-end; padding: 150px 0 70px; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--crimson-dark), var(--crimson) 58%, #740014); }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: radial-gradient(circle at 18% 18%, var(--gold) 0 2px, transparent 3px), radial-gradient(circle at 75% 65%, #fff 0 1px, transparent 2px); background-size: 90px 90px, 55px 55px; }
.page-hero::after { content: ""; position: absolute; left: -100px; bottom: -190px; width: 560px; height: 560px; border: 85px solid rgba(246,195,67,.1); border-radius: 50%; }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { margin-bottom: 13px; font-size: clamp(2.65rem, 5vw, 4.7rem); letter-spacing: -.05em; }
.page-hero p { max-width: 630px; margin: 0; color: rgba(255,255,255,.72); font-size: 1.02rem; }
.breadcrumb-custom { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0; margin: 0 0 18px; list-style: none; color: rgba(255,255,255,.62); font-size: .8rem; }
.breadcrumb-custom li + li::before { content: "←"; margin-left: 8px; color: var(--gold); }
.breadcrumb-custom a:hover { color: var(--gold); }

/* فهرست محصولات و فیلترها */
.catalog-layout { display: grid; grid-template-columns: 278px minmax(0, 1fr); align-items: start; gap: 32px; }
.filter-sidebar { position: sticky; top: 94px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.filter-title h2 { margin: 0; font-size: 1.2rem; }
.clear-filters { padding: 0; border: 0; color: var(--crimson); background: transparent; font-size: .74rem; font-weight: 800; }
.filter-group { padding: 18px 0; border-top: 1px solid var(--border); }
.filter-group h3 { margin-bottom: 13px; font-size: .93rem; }
.filter-sidebar .accordion-item { border-right: 0; border-left: 0; border-bottom: 0; background: transparent; }
.filter-sidebar .accordion-button { padding: 0 0 10px; color: var(--ink); background: transparent; box-shadow: none; font-size: .93rem; font-weight: 900; }
.filter-sidebar .accordion-button:not(.collapsed) { color: var(--crimson); background: transparent; box-shadow: none; }
.filter-sidebar .accordion-button::after { margin-right: auto; margin-left: 0; }
.filter-sidebar .accordion-body { padding: 0; }
.custom-check { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 9px 0; color: var(--muted); font-size: .85rem; cursor: pointer; }
.custom-check > span:first-of-type { flex: 1; }
.custom-check input { width: 18px; height: 18px; accent-color: var(--crimson); }
.check-count { min-width: 25px; padding: 1px 7px; border-radius: 8px; background: var(--cream-2); font-size: .7rem; text-align: center; }
.filter-note { display: flex; gap: 9px; padding: 12px; border-radius: 13px; color: var(--blue-dark); background: rgba(8,135,196,.09); font-size: .76rem; line-height: 1.6; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.results-count { color: var(--muted); font-size: .88rem; }
.results-count strong { color: var(--crimson); }
.sort-select { min-width: 190px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; color: var(--ink); background: #fff; outline: 0; }
.mobile-filter-toggle { display: none; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.catalog-grid .product-image-wrap { height: 290px; }
.catalog-grid .product-image-wrap img { height: 248px; }
.product-card.is-hidden { display: none; }
.no-results { display: none; grid-column: 1 / -1; padding: 55px 20px; border: 1px dashed rgba(146,11,34,.25); border-radius: var(--radius); color: var(--muted); background: #fff; text-align: center; }
.no-results.show { display: block; }

/* صفحه محصول */
.product-detail { background: var(--paper); }
.product-detail-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: start; gap: clamp(42px, 7vw, 90px); }
.product-gallery { position: sticky; top: 105px; }
.product-main-image { position: relative; min-height: 650px; display: grid; place-items: center; padding: 45px; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(246,195,67,.55), rgba(246,195,67,.13) 40%, transparent 65%), linear-gradient(145deg,#fff7df,#f1dfc3); }
.product-main-image::before { content: ""; position: absolute; inset: 35px; border: 1px dashed rgba(146,11,34,.14); border-radius: 50%; animation: spin 30s linear infinite; }
.product-main-image > img { position: relative; z-index: 2; max-height: 570px; filter: drop-shadow(0 28px 24px rgba(71,0,12,.23)); animation: productFloat 5.6s ease-in-out infinite; }
.product-five { top: 45px; right: 42px; width: 100px; }
.thumb-row { display: flex; gap: 12px; margin-top: 14px; }
.product-thumb { width: 78px; height: 78px; display: grid; place-items: center; padding: 6px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.product-thumb.active { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(146,11,34,.08); }
.product-thumb img { max-height: 66px; }
.product-details { padding-top: 12px; }
.product-details .breadcrumb-custom { color: var(--muted); }
.product-details .breadcrumb-custom li + li::before { color: var(--crimson); }
.product-details h1 { margin: 15px 0 12px; font-size: clamp(2.45rem, 5vw, 4rem); letter-spacing: -.05em; }
.product-code { color: var(--muted); font-size: .78rem; }
.product-rating { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.stars { color: var(--gold-2); letter-spacing: 2px; }
.product-description { color: var(--muted); font-size: 1.03rem; }
.info-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin: 27px 0; }
.info-chip { padding: 14px; border: 1px solid var(--border); border-radius: 15px; background: #fff; text-align: center; }
.info-chip strong { display: block; color: var(--crimson); font-size: 1rem; }
.info-chip small { color: var(--muted); font-size: .7rem; }
.ingredients-box { padding: 22px; margin: 25px 0; border-right: 4px solid var(--gold); border-radius: 15px 0 0 15px; background: var(--cream); }
.ingredients-box h2 { margin-bottom: 8px; font-size: 1.06rem; }
.ingredients-box p { margin: 0; color: var(--muted); }
.ingredients-box b { color: var(--crimson); }
.nutrition-title { margin: 31px 0 13px; font-size: 1.25rem; }
.nutrition-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; }
.nutrition-table th, .nutrition-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: right; font-size: .84rem; }
.nutrition-table th { color: var(--muted); font-weight: 600; }
.nutrition-table td { color: var(--ink); font-weight: 800; }
.nutrition-table tr:last-child > * { border-bottom: 0; }
.cart-panel { position: sticky; bottom: 18px; z-index: 20; display: grid; grid-template-columns: 115px 1fr; gap: 12px; padding: 12px; margin-top: 28px; border: 1px solid rgba(146,11,34,.12); border-radius: 19px; background: rgba(255,255,255,.88); box-shadow: 0 18px 55px rgba(57,0,10,.16); backdrop-filter: blur(16px); }
.quantity { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; border: 1px solid var(--border); border-radius: 13px; overflow: hidden; }
.quantity button { height: 100%; border: 0; color: var(--crimson); background: var(--cream); font-size: 1.15rem; font-weight: 900; }
.quantity input { width: 100%; border: 0; outline: 0; background: #fff; text-align: center; font-weight: 900; }
.cart-panel .btn-brand { width: 100%; }

/* وبلاگ */
.blog-list-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 27px; }
.blog-list-grid .blog-card:nth-child(1) { grid-column: span 2; }
.blog-list-grid .blog-card:nth-child(1) .blog-image { height: 350px; }
.blog-list-grid .blog-card:nth-child(1) .blog-body h3 { font-size: 1.55rem; }
.blog-search { display: flex; max-width: 500px; padding: 5px; margin: 0 auto 42px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.blog-search input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; outline: 0; background: transparent; }
.blog-search button { width: 48px; border: 0; border-radius: 12px; color: #fff; background: var(--crimson); }
.blog-filter-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-bottom: 34px; }
.filter-pill { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; font-size: .82rem; font-weight: 800; }
.filter-pill:hover, .filter-pill.active { color: #fff; border-color: var(--blue); background: var(--blue); }
.blog-card.filtered-out { display: none; }

/* مقاله تکی */
.article-page { padding-top: var(--header-h); background: var(--paper); }
.article-heading { padding: 80px 0 42px; text-align: center; }
.article-heading .category-pill { display: inline-block; padding: 7px 13px; border-radius: 9px; color: #fff; background: var(--blue); font-size: .76rem; font-weight: 900; }
.article-heading h1 { max-width: 900px; margin: 18px auto 15px; font-size: clamp(2.5rem, 5.8vw, 5.1rem); letter-spacing: -.055em; }
.article-subtitle { max-width: 740px; margin: 0 auto 22px; color: var(--muted); font-size: 1.05rem; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-size: .8rem; }
.author-mini { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; }
.author-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,var(--crimson),var(--crimson-dark)); }
.article-cover-wrap { width: min(100% - 32px, 1300px); height: min(67vw, 690px); margin: 0 auto; border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); }
.article-cover { width: 100%; height: 112%; object-fit: cover; transform: scale(1.08); will-change: transform; }
.article-layout { display: grid; grid-template-columns: minmax(0, 790px) 240px; justify-content: center; align-items: start; gap: 65px; padding-top: 75px; }
.article-body { color: #393033; font-size: 1.03rem; line-height: 2.15; }
.article-body > p:first-of-type::first-letter { float: right; margin: 9px 0 0 10px; color: var(--crimson); font-size: 4rem; font-weight: 900; line-height: .75; }
.article-body h2 { margin: 45px 0 16px; color: var(--ink); font-size: 1.85rem; }
.article-body h3 { margin: 32px 0 12px; color: var(--ink); font-size: 1.3rem; }
.article-body ul, .article-body ol { padding-right: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--crimson); font-weight: 900; }
.article-body blockquote { position: relative; margin: 37px 0; padding: 30px 36px 26px; border: 0; border-radius: 22px; color: var(--crimson-dark); background: linear-gradient(135deg,#ffe8a5,#f9c94b); font-size: 1.2rem; font-weight: 800; }
.article-body blockquote::before { content: "“"; position: absolute; top: -18px; right: 20px; color: rgba(146,11,34,.18); font-family: Georgia,serif; font-size: 6rem; line-height: 1; }
.recipe-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin: 30px 0; border: 1px solid var(--border); border-radius: 18px; background: var(--border); overflow: hidden; }
.recipe-summary div { padding: 18px 10px; background: #fff; text-align: center; }
.recipe-summary strong { display: block; color: var(--crimson); font-size: 1.05rem; }
.recipe-summary small { color: var(--muted); font-size: .72rem; }
.recipe-image-inline { width: 100%; margin: 30px 0; border-radius: 22px; }
.table-of-content { position: sticky; top: 105px; padding: 22px; border-right: 3px solid var(--gold); border-radius: 14px 0 0 14px; background: var(--cream); }
.table-of-content h2 { margin-bottom: 13px; font-size: .98rem; }
.table-of-content ol { padding-right: 18px; margin: 0; color: var(--muted); font-size: .8rem; }
.table-of-content a:hover { color: var(--crimson); }
.share-box { margin-top: 25px; }
.share-box span { display: block; margin-bottom: 9px; color: var(--muted); font-size: .75rem; }
.author-box { display: grid; grid-template-columns: 90px 1fr; gap: 21px; align-items: center; padding: 28px; margin-top: 55px; border: 1px solid var(--border); border-radius: 23px; background: var(--cream); }
.author-box-avatar { width: 90px; height: 90px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,var(--crimson),var(--crimson-dark)); font-size: 2rem; font-weight: 900; }
.author-box h3 { margin: 0 0 6px; font-size: 1.08rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .85rem; }

/* درباره ما */
.about-intro-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; }
.about-collage { position: relative; min-height: 560px; }
.about-main-img { position: absolute; inset: 0 70px 55px 0; width: calc(100% - 70px); height: calc(100% - 55px); object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.about-small-img { position: absolute; left: 0; bottom: 0; width: 46%; height: 45%; object-fit: cover; border: 8px solid var(--cream); border-radius: 24px; box-shadow: var(--shadow); }
.experience-badge { position: absolute; top: 35px; right: 25px; width: 125px; height: 125px; display: grid; place-items: center; border: 5px solid #fff; border-radius: 50%; color: var(--crimson-dark); background: var(--gold); box-shadow: var(--shadow); text-align: center; transform: rotate(6deg); }
.experience-badge strong { display: block; font-size: 2rem; line-height: 1; }
.experience-badge small { font-size: .72rem; font-weight: 900; }
.about-copy p { color: var(--muted); }
.about-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 30px; }
.about-number { padding: 16px 10px; border-radius: 15px; background: #fff; box-shadow: var(--shadow-sm); text-align: center; }
.about-number strong { display: block; color: var(--crimson); font-size: 1.5rem; }
.about-number span { color: var(--muted); font-size: .72rem; }
.timeline-section { color: #fff; background: linear-gradient(145deg,var(--crimson-dark),var(--crimson)); overflow: hidden; }
.timeline { position: relative; max-width: 980px; margin: 55px auto 0; }
.timeline::before { content: ""; position: absolute; top: 0; bottom: 0; right: 50%; width: 2px; transform: translateX(50%); background: linear-gradient(var(--gold),rgba(246,195,67,.1)); }
.timeline-item { position: relative; width: 50%; padding: 0 55px 55px; }
.timeline-item:nth-child(odd) { margin-right: 0; text-align: left; }
.timeline-item:nth-child(even) { margin-right: 50%; text-align: right; }
.timeline-dot { position: absolute; top: 4px; width: 20px; height: 20px; border: 5px solid var(--crimson-dark); border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(246,195,67,.17); }
.timeline-item:nth-child(odd) .timeline-dot { left: -10px; }
.timeline-item:nth-child(even) .timeline-dot { right: -10px; }
.timeline-year { color: var(--gold); font-size: 1.7rem; font-weight: 900; }
.timeline-item h3 { margin: 5px 0; font-size: 1.15rem; }
.timeline-item p { margin: 0; color: rgba(255,255,255,.66); font-size: .85rem; }
.mission-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 70px; margin-bottom: 90px; }
.mission-row:last-child { margin-bottom: 0; }
.mission-row.reverse .mission-image { order: 2; }
.mission-image { height: 450px; border-radius: 30px; object-fit: cover; box-shadow: var(--shadow); }
.mission-copy p { color: var(--muted); }
.mission-list { padding: 0; margin: 24px 0 0; list-style: none; }
.mission-list li { display: flex; gap: 11px; margin: 11px 0; font-weight: 800; }
.mission-list li::before { content: "✓"; flex: 0 0 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--blue); font-size: .72rem; }
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: process; }
.process-card { position: relative; padding: 29px 23px; border: 1px solid var(--border); border-radius: 21px; background: #fff; box-shadow: var(--shadow-sm); }
.process-card::after { counter-increment: process; content: "۰" counter(process); position: absolute; top: 12px; left: 17px; color: rgba(146,11,34,.08); font-size: 3.2rem; font-weight: 900; }
.process-icon { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 17px; color: #fff; background: var(--crimson); }
.process-card h3 { font-size: 1.02rem; }
.process-card p { margin: 0; color: var(--muted); font-size: .82rem; }

/* تماس */
.contact-grid { display: grid; grid-template-columns: 1fr .9fr; align-items: start; gap: 55px; }
.contact-form-wrap { padding: 37px; border: 1px solid var(--border); border-radius: 27px; background: #fff; box-shadow: var(--shadow); }
.contact-form-wrap h2 { margin-bottom: 7px; font-size: 1.7rem; }
.contact-form-wrap > p { margin-bottom: 27px; color: var(--muted); font-size: .9rem; }
.form-floating-custom { position: relative; margin-bottom: 17px; }
.form-floating-custom input, .form-floating-custom textarea, .form-floating-custom select { width: 100%; padding: 23px 16px 8px; border: 1px solid var(--border); border-radius: 14px; color: var(--ink); background: var(--paper); outline: none; transition: .25s; }
.form-floating-custom textarea { min-height: 160px; resize: vertical; }
.form-floating-custom label { position: absolute; top: 15px; right: 16px; color: var(--muted); pointer-events: none; transition: .2s; }
.form-floating-custom input:focus, .form-floating-custom textarea:focus, .form-floating-custom input:not(:placeholder-shown), .form-floating-custom textarea:not(:placeholder-shown) { padding-top: 25px; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(8,135,196,.08); }
.form-floating-custom input:focus + label, .form-floating-custom textarea:focus + label, .form-floating-custom input:not(:placeholder-shown) + label, .form-floating-custom textarea:not(:placeholder-shown) + label { top: 5px; color: var(--blue); font-size: .7rem; font-weight: 800; }
.form-floating-custom .field-error { display: none; margin: 4px 4px 0; color: var(--danger); font-size: .72rem; }
.form-floating-custom.invalid input, .form-floating-custom.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(200,40,62,.07); }
.form-floating-custom.invalid .field-error { display: block; }
.contact-submit { width: 100%; }
.contact-success { display: none; padding: 13px; margin-top: 15px; border-radius: 12px; color: #0c6c51; background: #dcf7ee; font-size: .84rem; font-weight: 800; }
.contact-side { display: grid; gap: 18px; }
.contact-card { display: flex; align-items: center; gap: 17px; padding: 21px; border: 1px solid var(--border); border-radius: 19px; background: #fff; box-shadow: var(--shadow-sm); transition: .35s var(--ease); }
.contact-card:hover { transform: translateX(-8px); border-color: rgba(8,135,196,.28); box-shadow: var(--shadow); }
.contact-card-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(145deg,var(--crimson),var(--crimson-dark)); }
.contact-card h3 { margin: 0 0 2px; font-size: .93rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--muted); font-size: .83rem; }
.contact-card a[dir="ltr"] { display: inline-block; }
.map-placeholder { position: relative; height: 415px; margin-top: 65px; border: 8px solid #fff; border-radius: 30px; background: #eadfc9; box-shadow: var(--shadow); overflow: hidden; }
.map-placeholder svg { width: 100%; height: 100%; }
.map-pin-card { position: absolute; top: 50%; right: 50%; width: 190px; padding: 16px; border-radius: 15px; background: #fff; box-shadow: var(--shadow); transform: translate(50%,-120%); text-align: center; }
.map-pin-card::after { content: ""; position: absolute; top: 100%; right: 50%; border: 12px solid transparent; border-top-color: #fff; transform: translateX(50%); }
.map-pin { width: 42px; height: 42px; display: grid; place-items: center; margin: -37px auto 6px; border: 4px solid #fff; border-radius: 50% 50% 50% 0; color: #fff; background: var(--crimson); box-shadow: var(--shadow-sm); transform: rotate(-45deg); }
.map-pin svg { width: 18px; height: 18px; transform: rotate(45deg); }
.map-pin-card strong { display: block; color: var(--crimson); }
.map-pin-card small { color: var(--muted); }

/* پیام کوتاه و بازگشت به بالا */
.toast-custom { position: fixed; left: 24px; bottom: 24px; z-index: 1200; display: flex; align-items: center; gap: 11px; max-width: 340px; padding: 15px 18px; border-radius: 14px; color: #fff; background: var(--success); box-shadow: var(--shadow); transform: translateY(130px); opacity: 0; transition: .4s var(--ease); }
.toast-custom.show { transform: translateY(0); opacity: 1; }
.back-to-top { position: fixed; left: 23px; bottom: 23px; z-index: 800; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 14px; color: var(--crimson-dark); background: var(--gold); box-shadow: 0 12px 25px rgba(79,0,13,.2); opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* انیمیشن‌های سفارشی */
.scroll-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.scroll-reveal.in-view { opacity: 1; transform: none; }
@keyframes productFloat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-17px) rotate(-2deg); } }
@keyframes badgePulse { 0%,100% { transform: scale(1) rotate(5deg); } 50% { transform: scale(1.08) rotate(-3deg); } }
@keyframes floatTiny { 0%,100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 45% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes socialBounce { 0%,100%{transform:translateY(0)} 40%{transform:translateY(-7px)} 70%{transform:translateY(-3px)} }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .scroll-reveal { opacity: 1; transform: none; } }

/* واکنش‌گرایی */
@media (max-width: 1199.98px) {
  .header-inner { grid-template-columns: 180px 1fr 190px; }
  .desktop-nav .nav-list { gap: 17px; }
  .nav-link-custom { font-size: .86rem; }
  .hero-layout { gap: 25px; }
  .product-grid { grid-template-columns: repeat(3,1fr); }
  .catalog-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1.2fr .7fr .7fr 1fr; gap: 28px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .section { padding: 82px 0; }
  .header-inner { display: flex; justify-content: space-between; }
  .desktop-nav, .header-cta { display: none; }
  .brand { width: 146px; }
  .hamburger { display: block; }
  .header-actions { margin-right: auto; }
  .home-hero { min-height: auto; padding: 132px 0 92px; }
  .hero-layout { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 760px; margin-inline: auto; }
  .hero-title, .hero-subtitle { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .product-stage { min-height: 560px; }
  .hero-pack { width: min(62vw,410px); }
  .five-badge { right: 17%; }
  .floating-seal { left: 14%; }
  .hero-scroll { display: none; }
  .features-wrap { margin-top: -30px; }
  .features-strip { grid-template-columns: 1fr; }
  .feature-item { min-height: 104px; border-left: 0; border-bottom: 1px solid rgba(91,0,16,.12); }
  .feature-item:last-child { border-bottom: 0; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .quality-banner::before { background: linear-gradient(90deg, rgba(48,0,7,.55), rgba(62,0,9,.94)), url("../images/durum-wheat.jpg") center/cover; }
  .quality-content { margin: 0; }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid .blog-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2,1fr); gap: 38px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; display: none; }
  .filter-sidebar.open { display: block; animation: filterDrop .35s var(--ease); }
  .mobile-filter-toggle { display: inline-flex; min-height: 44px; padding: 8px 15px; border: 1px solid var(--border); border-radius: 12px; color: var(--crimson); background: #fff; font-weight: 900; }
  @keyframes filterDrop { from { opacity: 0; transform: translateY(-10px); } }
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .product-main-image { min-height: 570px; }
  .product-main-image > img { max-height: 500px; }
  .blog-list-grid { grid-template-columns: repeat(2,1fr); }
  .article-layout { grid-template-columns: minmax(0,790px); }
  .article-aside { display: none; }
  .about-intro-grid, .mission-row, .contact-grid { grid-template-columns: 1fr; }
  .about-intro-grid { gap: 45px; }
  .mission-row.reverse .mission-image { order: initial; }
  .contact-side { grid-template-columns: repeat(3,1fr); }
  .contact-card { display: block; text-align: center; }
  .contact-card:hover { transform: translateY(-6px); }
  .contact-card-icon { margin: 0 auto 11px; }
}

@media (max-width: 767.98px) {
  body { font-size: 15px; }
  .container { width: min(100% - 24px, 1200px); }
  .section { padding: 68px 0; }
  .section-head { align-items: start; flex-direction: column; margin-bottom: 32px; }
  .site-header.scrolled { height: 64px; }
  .cart-mini { width: 41px; height: 41px; }
  .home-hero { padding-top: 115px; }
  .hero-title { font-size: clamp(2.8rem,13vw,4.4rem); }
  .hero-subtitle { font-size: .96rem; }
  .product-stage { min-height: 500px; }
  .product-stage::before { width: 440px; height: 440px; }
  .product-stage::after { width: 340px; height: 340px; }
  .product-spotlight { width: 480px; height: 480px; }
  .five-badge { right: 5%; width: 93px; }
  .five-badge strong { font-size: 1.8rem; }
  .floating-seal { left: 3%; bottom: 14%; width: 100px; }
  .product-grid, .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .product-image-wrap, .catalog-grid .product-image-wrap { height: 260px; padding: 13px; }
  .product-image-wrap img, .catalog-grid .product-image-wrap img { height: 220px; max-width: 100%; }
  .product-body { padding: 16px; }
  .product-body p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .product-foot { align-items: start; flex-direction: column; }
  .quality-banner { min-height: 610px; }
  .quality-points { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:last-child { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .footer-main { padding-top: 58px; }
  .footer-bottom-inner { align-items: start; flex-direction: column; gap: 8px; }
  .page-hero { min-height: 340px; padding-bottom: 55px; }
  .catalog-toolbar { align-items: stretch; flex-wrap: wrap; }
  .sort-select { min-width: 0; flex: 1; }
  .product-main-image { min-height: 500px; padding: 25px; }
  .product-main-image > img { max-height: 440px; }
  .product-five { right: 20px; top: 30px; width: 86px; }
  .info-chips { gap: 7px; }
  .info-chip { padding: 11px 6px; }
  .blog-list-grid { grid-template-columns: 1fr; }
  .blog-list-grid .blog-card:nth-child(1) { grid-column: auto; }
  .blog-list-grid .blog-card:nth-child(1) .blog-image { height: 280px; }
  .article-heading { padding-top: 58px; }
  .article-cover-wrap { height: 62vw; min-height: 300px; border-radius: 22px; }
  .article-layout { padding-top: 50px; }
  .recipe-summary { grid-template-columns: repeat(2,1fr); }
  .article-body blockquote { padding: 27px 24px; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box-avatar { margin: auto; }
  .about-collage { min-height: 470px; }
  .timeline::before { right: 12px; transform: none; }
  .timeline-item, .timeline-item:nth-child(even) { width: 100%; margin-right: 0; padding: 0 50px 45px 0; text-align: right; }
  .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { right: 3px; left: auto; }
  .mission-image { height: 340px; }
  .process-grid { grid-template-columns: 1fr; }
  .contact-side { grid-template-columns: 1fr; }
  .contact-card { display: flex; text-align: right; }
  .contact-card-icon { margin: 0; }
  .contact-form-wrap { padding: 25px 19px; }
  .map-placeholder { height: 340px; }
}

@media (max-width: 575.98px) {
  .header-actions .cart-mini { display: none; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { align-items: flex-start; flex-direction: column; width: max-content; margin-inline: auto; }
  .product-stage { min-height: 430px; }
  .hero-pack { width: min(80vw,340px); }
  .product-stage::before { width: 350px; height: 350px; }
  .product-stage::after { width: 280px; height: 280px; }
  .pasta-orbit { display: none; }
  .floating-seal { display: none; }
  .five-badge { top: 13%; right: 1%; width: 80px; border-width: 3px; }
  .features-wrap { margin-top: -23px; }
  .feature-item { padding: 20px; }
  .product-grid, .catalog-grid { grid-template-columns: 1fr; }
  .product-image-wrap, .catalog-grid .product-image-wrap { height: 350px; }
  .product-image-wrap img, .catalog-grid .product-image-wrap img { height: 305px; }
  .blog-image { height: 230px; }
  .page-hero h1 { font-size: 2.55rem; }
  .catalog-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .results-count { grid-column: 1 / -1; }
  .product-main-image { min-height: 440px; }
  .product-main-image > img { max-height: 385px; }
  .cart-panel { grid-template-columns: 95px 1fr; }
  .article-heading h1 { font-size: 2.35rem; }
  .article-cover-wrap { height: 320px; }
  .article-body { font-size: .97rem; }
  .about-main-img { inset: 0 25px 55px 0; width: calc(100% - 25px); }
  .about-small-img { width: 55%; }
  .experience-badge { width: 100px; height: 100px; right: 5px; }
  .about-numbers { grid-template-columns: 1fr; }
  .mission-image { height: 290px; }
  .map-pin-card { width: 165px; }
  .toast-custom { right: 12px; left: 12px; bottom: 12px; }
}

@media print {
  .site-header, .site-footer, .back-to-top, .article-aside, .hero-scroll, .cart-panel { display: none !important; }
  .article-page { padding-top: 0; }
  body { background: #fff; color: #000; }
}
