/* ========== FONT ========== */
@font-face {
  font-family: peyda;
  src: url("assets/fonts/PeydaWebVF.woff") format("woff2");
}

/* ========== VARIABLES ========== */
:root {
  --bg-color: #f5f5f5;
  --font-color: #333333;
  --white: #ffffff;
  --black: #000000;
  --light-primary: #e6ebf5;
  --primary: #1e3277;
  --primary-soft: #1a3a75;
  --primary-dark: #112756;
  --primary-darker: #112756;
  --primary-extra-1: #2c4c8f;
  --primary-extra-2: #4f73bd;
  --light-secondary: #fdf7e9;
  --secondary: #e5b122;
  --secondary-dark: #b38815;
  --secondary-light: #f2c74d;
  --secondary-lighter: #ffe082;
  --red: #c8102e;
  --green: #28a745;
  --gold: #e5b122;
  --primary-alpha-20: rgba(10, 37, 88, 0.2);
  --primary-alpha-50: rgba(10, 37, 88, 0.5);
  --secondary-alpha-20: rgba(229, 177, 34, 0.2);
  --secondary-alpha-50: rgba(229, 177, 34, 0.5);
  --section-bg: #f6f4f2;
  --border-color: #eaeaea;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 0;
  outline: 0;
  list-style: none;
  font-family: "peyda";
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  background-color: var(--white);
  overflow-x: hidden;
  overflow-wrap: break-word;
  font: 13px "peyda";
  color: var(--font-color);
}

img { width: 100%; }
p { font-weight: 600; line-height: 1.1rem; }
a { text-decoration: none; color: var(--font-color); }
h2 { font-size: 18px; }

.number { direction: ltr; }

/* ========== CONTAINER ========== */
.container {
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
  position: relative;
  height: 100%;
}

/* ========== ICON ========== */
.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}
.icon svg { width: 100%; height: 100%; }

/* ========== BUTTONS ========== */
.btn-primary,
.btn-dark,
.btn-find-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.btn-primary::before,
.btn-dark::before,
.btn-find-more::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-primary:hover::before,
.btn-dark:hover::before,
.btn-find-more:hover::before { width: 100%; }
.btn-primary svg,
.btn-dark svg,
.btn-find-more svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn-primary:hover svg,
.btn-dark:hover svg,
.btn-find-more:hover svg { transform: translateX(-5px); }

.btn-primary {
  background-color: var(--white);
  color: var(--primary-darker);
  padding: 14px 28px;
  font-size: 13px;
  border: 1px solid var(--white);
}
.btn-primary::before { background-color: var(--primary); }
.btn-primary:hover { color: var(--white); border-color: var(--primary); }
.btn-primary.btn-sm { padding: 10px 24px; font-size: 12px; }

.btn-dark {
  background-color: var(--primary-soft);
  color: var(--white);
  padding: 10px 22px;
  font-size: 11px;
  border: 1px solid var(--primary-soft);
}
.btn-dark svg { width: 14px; height: 14px; }
.btn-dark::before { background-color: var(--primary-extra-2); }
.btn-dark:hover { border-color: var(--primary-extra-2); }

.btn-find-more {
  background-color: var(--primary-soft);
  color: var(--white);
  padding: 12px 30px;
  font-size: 12px;
  border: 1px solid var(--primary-soft);
}
.btn-find-more svg { width: 14px; height: 14px; }
.btn-find-more::before { background-color: var(--primary-extra-2); }
.btn-find-more:hover { border-color: var(--primary-extra-2); }

.btn-buy {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 12px 35px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 13px;
  transition: background 0.3s;
  align-self: flex-start;
}
.btn-buy:hover { background-color: var(--primary-darker); }

/* ========== WAVE DIVIDERS ========== */
.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 2;
}
.wave-top { top: 0; transform: translateY(-98%); }
.wave-bottom { bottom: 0; transform: translateY(98%); }
.wave-top svg,
.wave-bottom svg {
  width: 100%;
  height: 5vw;
  min-height: 35px;
  display: block;
}

/* ========== HEADER ========== */
.header { display: contents; }

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--white);
  border-bottom: 1px solid #ddd;
  height: 35px;
  position: relative;
  z-index: 998;
}

.main-header {
  gap: 15px;
  background-color: var(--primary);
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.change-country-link {
  text-decoration: underline;
  color: var(--primary-soft);
  cursor: pointer;
  margin-left: 5px;
  font-weight: bold;
}

/* Ticker */
.tw {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  padding: 14px 0;
  position: relative;
  box-sizing: border-box;
}
.touter {
  overflow: hidden;
  padding-right: 110px;
}
.ttrack {
  display: flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
}
.titem {
  font-size: 15px;
  color: #222;
  flex-shrink: 0;
  display: inline-block;
}
.tdot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin: 0 70px;
  vertical-align: middle;
}

@keyframes ticker {
  0%   { transform: translateX(var(--strip-w)); }
  100% { transform: translateX(0); }
}
.ttrack.running {
  animation: ticker linear infinite;
  animation-duration: var(--duration);
}
.tw:hover .ttrack { animation-play-state: paused; }

.header-logo img { width: 100px; height: auto; }

/* Nav */
.main-nav { height: 100%; display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 30px; height: 50%; }
.main-nav li { height: 100%; display: flex; align-items: center; }
.main-nav a {
  color: var(--white);
  font-weight: bold;
  font-size: 13px;
  text-transform: uppercase;
  transition: color 0.3s ease-in-out;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--primary-extra-2);
  transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 3px 3px 0 0;
}
.main-nav a:hover::after,
.main-nav a.active-link::after { width: 100%; }

/* Header icons */
.header-icons { display: flex; align-items: center; gap: 20px; margin-right: auto; }
.header-icon {
  fill: var(--white);
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  transition: opacity 0.3s;
}
.header-icon:hover { opacity: 0.75; }
.header-icon svg { width: 100%; height: 100%; color: var(--bg-color); fill: var(--bg-color); }
.hide-on-mobile { display: flex; }

.mobile-toggle-btn {
  display: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.mobile-toggle-btn svg { width: 28px; height: 28px; }

/* ========== MEGA MENU ========== */
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: rgba(10, 37, 88, 0.96);
  display: none;
  padding: 30px 40px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  z-index: 100;
  gap: 30px;
  backdrop-filter: blur(8px);
  max-height: calc(100vh - 100px);
  overflow: hidden;
  align-items: stretch;
}
.mega-menu-links {
  width: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.mega-menu-links::-webkit-scrollbar { width: 4px; }
.mega-menu-links::-webkit-scrollbar-track { background: transparent; }
.mega-menu-links::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
.mega-column { display: flex; flex-direction: column; gap: 15px; }
.mega-category-card {
  background-color: var(--primary-dark);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.mega-category-title {
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.mega-category-subtitle {
  color: var(--white) !important;
  font-size: 12px !important;
  font-weight: bold !important;
  margin-top: 8px;
}
.mega-category-card ul { display: flex; flex-direction: column; gap: 5px; }
.mega-category-card a { color: #c9d6ea; font-size: 11.5px; transition: all 0.2s; }
.mega-category-card a:hover { color: var(--white); text-decoration: underline; }

.mega-menu-promo {
  width: 50%;
  background-color: var(--white);
  border-radius: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  flex-shrink: 0;
  max-height: calc(100vh - 160px);
}
.btn-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: background 0.3s;
  z-index: 10;
}
.btn-close:hover { background: var(--primary-darker); }
.promo-image { width: 100%; height: auto; display: flex; justify-content: center; align-items: center; }
.promo-content { padding: 30px; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.promo-desc-main { font-size: 18px; font-weight: 900; color: var(--primary-soft); margin-bottom: 25px; direction: ltr; }
.promo-desc-text { text-align: right; width: 100%; color: var(--font-color); font-size: 12.5px; line-height: 1.6; margin-bottom: 25px; }

/* ========== MOBILE SIDEBAR ========== */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--primary-soft);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
}
.mobile-sidebar.active { right: 0; }

.mobile-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobile-sidebar-header .header-logo img { width: 100px; height: auto; }
.mobile-sidebar-icons { display: flex; align-items: center; gap: 20px; color: var(--white); }
.mobile-sidebar-icons a { color: var(--white); display: flex; }
.mobile-sidebar-icons svg, .mobile-sidebar-icons .icon { width: 24px; height: 24px; color: var(--white); fill: currentColor; }

.mobile-close-btn {
  background: transparent;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-search-box { padding: 15px 20px; position: relative; }
.mobile-search-box input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 12px 45px 12px 15px;
  color: var(--white);
  font-size: 14px;
  outline: none;
}
.mobile-search-box svg {
  position: absolute;
  right: 35px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  fill: var(--white);
    color: var(--white);
}

.mobile-menu-list { padding: 0 20px; flex: 1; }
.mobile-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  color: var(--white);
  font-weight: bold;
  font-size: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.mobile-menu-link svg { width: 18px; height: 18px; transition: transform 0.3s; }
.mobile-menu-link.active svg { transform: rotate(-90deg); }

.mobile-submenu {
  display: none;
  padding: 15px 15px 25px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  margin-bottom: 10px;
}
.mobile-view-all { display: block; font-weight: 900; color: var(--white); font-size: 13px; margin-bottom: 15px; text-transform: uppercase; }
.mobile-sub-category { margin-bottom: 5px; }
.mobile-sub-category > a {
  font-size: 14px;
  font-weight: bold;
  padding: 12px 0;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-sub-category > a svg { width: 16px; height: 16px; transition: transform 0.3s; }
.mobile-sub-category.active > a svg { transform: rotate(-90deg); }
.mobile-sub-category ul { display: none; padding-right: 15px; margin-bottom: 10px; }
.mobile-sub-category ul a { color: #c9d6ea; font-size: 13px; padding: 10px 0; display: block; }

.mobile-promo-box { background-color: var(--white); border-radius: 8px; padding: 10px; margin-top: 20px; text-align: center; }
.mobile-promo-box img { width: 100%; border-radius: 4px; margin-bottom: 10px; }
.mobile-promo-text { color: var(--primary-soft); font-weight: bold; font-size: 14px; text-align: right; }

.mobile-sidebar-footer {
  padding: 25px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 20px;
}
.mobile-sidebar-footer a { color: var(--white); font-weight: bold; font-size: 14px; text-transform: uppercase; }

/* ========== ARCHIVE PAGE ========== */
.archive-section { padding: 40px 0; background-color: var(--white); min-height: 70vh; }

.archive-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}
.toolbar-start { display: flex; align-items: center; gap: 20px; }
.btn-filters {
  background: var(--primary-darker);
  color: var(--white);
  border-radius: 30px;
  padding: 10px 22px;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.btn-filters:hover { background: var(--primary); }
.btn-filters svg { width: 16px; height: 16px; stroke: currentColor; }
.results-count { font-size: 13px; color: #555; }
.toolbar-end { position: relative; }

.custom-sort { position: relative; display: inline-block; }
.sort-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 6px 12px 6px 20px;
  font-size: 13px;
  color: var(--font-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}
.sort-btn:hover,
.sort-btn.active { border-color: var(--primary-darker); }

.sort-circle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s, background 0.3s;
}
.sort-btn.active .sort-circle-icon { transform: rotate(180deg); background: var(--primary-darker); color: var(--white); }

.sort-popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  width: 220px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}
.sort-popover.active { opacity: 1; visibility: visible; transform: translateY(0); }
.sort-listbox { display: flex; flex-direction: column; padding: 10px 0; }
.sort-option {
  background: transparent;
  border: none;
  text-align: right;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--font-color);
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.sort-option:hover,
.sort-option.active { background: #f7f7f7; font-weight: bold; }

.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.archive-card {
  display: flex;
  flex-direction: column;
  padding: 30px 20px;
  border: 1px solid var(--border-color);
  border-radius: 0;
  position: relative;
  background: var(--white);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.archive-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); z-index: 2; border-color: transparent; }
.archive-card-header { margin-bottom: 20px; text-align: right; min-height: 75px; }
.archive-card-title {
  font-size: 14px;
  font-weight: normal;
  color: var(--font-color);
  line-height: 1.6;
  margin-bottom: 10px;
  transition: color 0.3s;
}
.archive-card:hover .archive-card-title { color: var(--primary-soft); }
.archive-card-price { font-size: 12px; color: #555; direction: ltr; text-align: right; }

.archive-card-image {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.archive-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.img-hover { opacity: 0; transform: translate(-50%, -50%) scale(0.95) !important; }
.archive-card:hover .archive-card-image.has-hover .img-hover { opacity: 1; transform: translate(-50%, -50%) scale(1) !important; }
.archive-card:hover .archive-card-image.has-hover .img-main { opacity: 0; }
/* هاور زوم برای کارت‌هایی که عکس دوم ندارن */
.archive-card:hover .archive-card-image:not(.has-hover) .img-main { transform: translate(-50%, -50%) scale(1.07); }

/* ── دکمه علاقه‌مندی آرشیو — همان طرح پدها، بالا-چپ عکس ── */
.archive-card-img-wrap {
  position: relative;
  margin-bottom: 30px;
  margin-top:auto;
}
/* btn-wishlist → alias of gw-wl-btn */
.btn-wishlist { position: absolute; top: 8px; left: 8px; z-index: 10; width: 28px; height: 28px; border-radius: 50%; background-color: var(--primary-darker); border: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s ease; }
.btn-wishlist svg { width: 13px; height: 13px; }
.btn-wishlist .heart-path { stroke: #fff; fill: none; transition: fill 0.2s; }
.btn-wishlist:hover { background-color: var(--primary); }
.btn-wishlist.in-wishlist { background-color: var(--primary-darker); }
.btn-wishlist.in-wishlist .heart-path { fill: #fff; stroke: #fff; }

/* ── تگ‌های فیلتر فعال ── */
.toolbar-start { flex-wrap: wrap; gap: 8px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f3ece4;
  color: #5a3a1e;
  border: 1px solid #d4b896;
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.active-filter-tag .tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #8a6040;
  font-size: 14px;
  padding: 0 0 0 2px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.active-filter-tag .tag-remove:hover { color: #c0392b; }

.archive-card-footer { display: flex; justify-content: center; margin-top: auto; }
.btn-view-product {
  background: transparent;
  color: var(--primary-darker);
  border: 1px solid var(--primary-darker);
  border-radius: 30px;
  padding: 10px 25px;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.3s;
  text-transform: uppercase;
}
.btn-view-product:hover { background: var(--primary-darker); color: var(--white); }

/* ========== FILTER SIDEBAR ========== */
.filter-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}
.filter-sidebar-overlay.active { opacity: 1; visibility: visible; }

.filter-sidebar {
  position: fixed;
  top: 50%;
  right: -400px;
  transform: translateY(-50%);
  border-radius: 5px;
  width: 100%;
  max-width: 380px;
  height: 95vh;
  background-color: var(--primary-darker);
  color: var(--white);
  z-index: 10001;
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
}
.filter-sidebar.active { right: 10px; }

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.filter-sidebar-header h3 { font-size: 20px; font-weight: normal; }
.filter-sidebar-header button {
  background: transparent;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-sidebar-header button svg { width: 20px; height: 20px; }

.filter-sidebar-content { flex: 1; overflow-y: auto; padding: 30px; }
.filter-group { 
    padding-right:5px;
    margin-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 20px; 
    
}
.filter-group-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  color: var(--white);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
}
.filter-group-toggle svg { width: 16px; height: 16px; transition: transform 0.3s; transform: rotate(180deg); }
.filter-group.closed .filter-group-toggle svg { transform: rotate(0deg); }
.filter-group-wrapper { display: flex; flex-direction: column; gap: 15px; overflow: hidden; transition: max-height 0.3s ease; }

.filter-checkbox { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--white); cursor: pointer; }
.filter-checkbox input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--white);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.filter-checkbox input[type="checkbox"]:checked { background: var(--white); }
.filter-checkbox input[type="checkbox"]:checked::after {
  content: "✔";
  color: var(--primary-darker);
  font-size: 11px;
  font-weight: bold;
  position: absolute;
}

.filter-sidebar-footer {
  padding: 25px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.btn-filter-clear,
.btn-filter-apply {
  flex: 1;
  padding: 12px 0;
  border-radius: 30px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  border: 1px solid var(--white);
}
.btn-filter-clear { background: transparent; color: var(--white); }
.btn-filter-clear:hover { background: rgba(255, 255, 255, 0.1); }
.btn-filter-apply { background: transparent; color: var(--white); }
.btn-filter-apply:hover { background: var(--white); color: var(--primary-darker); }

/* ========== MAIN TITLE SECTION ========== */
.main-title-section {
  display: flex;
  flex-direction: column;
  background-color: var(--primary-darker);
  padding: 50px;
  color: var(--light-secondary);
  align-items: center;
  gap: 10px;
      align-items: center;
}
.main-title-section .icon { width: 40px; height: 40px; }
.main-title-section .icon img { background-size: contain; }

/* ========== STICKY HISTORY SECTION ========== */
.history-sticky-wrapper { position: relative; width: 100%; display: block; }
.sticky-history-banner {
  position: sticky;
  top: 75px;
  z-index: 10;
  background-color: var(--white);
  padding: 45px 0;
  border-bottom: 1px solid var(--border-color);
}
.sticky-history-content { text-align: right; max-width: 900px; display: flex; flex-direction: column; gap: 10px; }
.sh-title { font-size: 38px; color: var(--primary-darker); font-weight: normal; margin: 0; }
.sh-subtitle { font-size: 19px; color: var(--primary-soft); font-weight: normal; line-height: 1.6; margin: 0; }
.fullsize-image-section { width: 100%; display: block; line-height: 0; }
.fullsize-image-section img { width: 100%; height: auto; display: block; }

/* ========== HERO SLIDER ========== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 560px;
  min-height: 560px;
  overflow: hidden;
  background: #000;
  cursor: none;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
  z-index: 0;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-media { position: absolute; inset: 0; }
.hero-video,
.hero-image { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.25); }

.hero-cursor {
  position: fixed;
  width: 64px;
  height: 64px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-cursor.visible { opacity: 1; }
.hero-cursor svg { width: 100%; height: 100%; overflow: visible; }
.cursor-bg { fill: white; }
.cursor-track { fill: none; stroke: rgba(0, 0, 0, 0.15); stroke-width: 3; }
.cursor-progress {
  fill: none;
  stroke: var(--primary-darker, #112756);
  stroke-width: 3;
  stroke-linecap: round;
  transform-origin: center;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.1s linear;
}
.cursor-arrow {
  fill: none;
  stroke: var(--primary-darker, #112756);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 22px 22px;
  transform: scale(1);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hero-cursor.on-btn { display: none; }
.hero-btn,
.hero-dot { cursor: pointer !important; }

.hero-content {
  position: absolute;
  bottom: 80px;
  right: 10%;
  max-width: 550px;
  z-index: 2;
  direction: rtl;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0s, transform 0s;
}
.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}
.hero-slide.leaving .hero-content {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hero-title {
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero-desc {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin: 0;
  font-weight: 500;
  max-width: 420px;
}

.hero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, border-color 0.4s ease;
  background-color: var(--white);
  color: var(--primary-darker);
  padding: 14px 28px;
  font-size: 13px;
  border: 1px solid var(--white);
  cursor: none;
}
.hero-btn::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 100%;
  z-index: -1;
  background-color: var(--primary);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-btn:hover::before { width: 100%; }
.hero-btn:hover { color: var(--white); border-color: var(--primary); }
.hero-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-btn:hover svg { transform: translateX(-5px); }

.hero-pagination { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.hero-dot {
  position: relative;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: none;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-dot-progress {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  border-radius: 2px;
}
.hero-dot.active .hero-dot-progress {
  animation: dotFill var(--hero-duration, 5500ms) linear forwards;
}
.hero-dot.done .hero-dot-progress { width: 100%; animation: none; }

@keyframes dotFill {
  from { width: 0%; }
  to   { width: 100%; }
}

/* ========== CHOOSE YOUR COFFEE ========== */
.choose-coffee-section { padding: 70px 0; background-color: var(--white); }
.choose-coffee-section .section-title { font-size: 38px; color: var(--primary-darker); font-weight: normal; margin-bottom: 25px; }
.choose-coffee-section .section-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.choose-coffee-section .section-subtitle { font-size: 16px; color: var(--primary-darker); font-weight: normal; margin: 0; }
.choose-coffee-section .view-all-link { font-size: 14px; color: var(--primary-darker); display: flex; align-items: center; gap: 10px; font-weight: normal; text-decoration: none; transition: color 0.3s ease; }
.choose-coffee-section .view-all-text { position: relative; padding-bottom: 2px; }
.choose-coffee-section .view-all-text::after { content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 1.5px; background-color: var(--primary); transition: width 0.3s ease; }
.choose-coffee-section .view-all-link:hover .view-all-text::after { width: 100%; }
.choose-coffee-section .view-all-icon { width: 24px; height: 24px; background-color: #f0f0f0; border-radius: 50%; display: flex; justify-content: center; align-items: center; transition: all 0.3s ease; color: var(--primary-darker); }
.choose-coffee-section .view-all-link:hover .view-all-icon { background-color: var(--primary); color: var(--white); }
.choose-coffee-section .view-all-icon svg { rotate: 180deg; width: 14px; height: 14px; stroke: currentColor; fill: none; transition: stroke 0.3s ease; }
.choose-coffee-section .coffee-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.choose-coffee-section .coffee-card { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 0; background-color: #f5f5f5; }
.choose-coffee-section .coffee-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.choose-coffee-section .coffee-card:hover img { transform: scale(1.05); }
.choose-coffee-section .coffee-card-content { position: absolute; bottom: 25px; right: 25px; display: flex; flex-direction: column; align-items: flex-start; z-index: 2; pointer-events: none; }
.choose-coffee-section .coffee-card-icon { width: 40px; height: 40px; background-color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; margin-bottom: 12px; }
.choose-coffee-section .coffee-card-icon svg { width: 16px; height: 16px; stroke: var(--primary-darker); fill: none; stroke-width: 2; }
.choose-coffee-section .coffee-card:hover .coffee-card-icon { opacity: 1; transform: translateY(0); }
.choose-coffee-section .coffee-card-title { color: var(--white); font-size: 20px; font-weight: normal; line-height: 1.4; margin: 0; text-align: right; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); transform: translateY(0); transition: transform 0.4s ease; }
.choose-coffee-section .coffee-card:hover .coffee-card-title { transform: translateY(10px); }

/* ========== ICONIC PODS SECTION ========== */
.iconic-pods-section { padding: 70px 0; background-color: #f4f4f4; }
.iconic-pods-header { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; text-align: center; }
.iconic-pods-title { font-size: 38px; color: var(--primary-darker); font-weight: normal; margin: 0 0 10px 0; }
.iconic-pods-subtitle { font-size: 15px; color: var(--primary-darker); font-weight: normal; margin: 0; }
.pods-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.pod-card { background-color: var(--white); border: 1px solid var(--border-color); padding: 25px; position: relative; display: flex; flex-direction: column; transition: border-color 0.3s ease; }
.pod-card:hover { border-color: var(--primary-darker); }
.pod-badge { background-color: var(--primary-darker); color: var(--white); font-size: 10px; font-weight: bold; padding: 6px 10px; border-radius: 4px; align-self: flex-start; margin-bottom: 20px; }
.pod-title-link { text-decoration: none; display: inline-block; }
.pod-title { font-size: 15px; font-weight: normal; color: var(--primary-darker); line-height: 1.5; margin: 0 0 8px 0; transition: text-decoration 0.3s ease; }
.pod-title-link:hover .pod-title { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--primary-darker); text-decoration-thickness: 1px; }
.pod-price { font-size: 13px; color: #444; margin: 0 0 25px 0; direction: ltr; text-align: right; }

.pod-image-wrapper { position: relative; width: 100%; height: 220px; margin-bottom: 25px; margin-top: auto; }
.pod-image-link { display: block; width: 100%; height: 100%; position: relative; }

/* ── دکمه قلب پد — بالا سمت چپ عکس ── */
/* pod-fav-btn → alias of gw-wl-btn */
.pod-fav-btn { position: absolute; top: 8px; left: 8px; width: 28px; height: 28px; border-radius: 50%; background-color: var(--primary-darker); border: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 5; transition: background 0.3s ease; }
.pod-fav-btn:hover { background-color: var(--primary); }
.pod-fav-btn.in-wishlist { background-color: var(--primary-darker); }
.pod-fav-btn svg { width: 13px; height: 13px; }
.pod-fav-btn .heart-path { stroke: #fff; fill: none; transition: fill 0.2s; }
.pod-fav-btn.in-wishlist .heart-path { fill: #fff; stroke: #fff; }

.pod-image-link img { max-width: 100%; max-height: 100%; object-fit: contain; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); transition: opacity 0.4s ease, transform 0.4s ease; }
.pod-card .img-hover { opacity: 0; transform: translate(-50%, -50%) scale(0.96); }
.pod-card:hover .img-hover { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pod-card:hover .img-main { opacity: 0; }
.pod-footer { display: flex; justify-content: center; margin-top: auto; }

.btn-view-product-outline {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-darker);
  color: var(--primary-darker);
  background-color: transparent;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, border-color 0.4s ease;
  text-transform: uppercase;
}
.btn-view-product-outline::before { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 100%; z-index: -1; background-color: var(--primary-darker); transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.btn-view-product-outline:hover::before { width: 100%; }
.btn-view-product-outline:hover { color: var(--white); border-color: var(--primary-darker); }

/* ========== BLUEMOON MACHINE SECTION ========== */
.bluemoon-section { display: flex; flex-wrap: wrap; background-color: #f6f5f3; width: 100%; overflow: hidden; }
.bluemoon-text-col { width: 50%; display: flex; align-items: center; justify-content: center; padding: 80px 5%; }
.bluemoon-text-inner { max-width: 480px; width: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: right; }
.bluemoon-kicker { font-size: 11px; color: #999; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; margin-bottom: 25px; }
.bluemoon-title { font-size: 42px; color: var(--primary-darker); font-weight: normal; line-height: 1.2; margin: 0 0 20px 0; }
.bluemoon-subtitle { font-size: 24px; color: var(--primary-darker); font-weight: normal; line-height: 1.4; margin: 0 0 30px 0; }
.bluemoon-desc { font-size: 15px; color: #333; line-height: 1.8; margin: 0 0 40px 0; font-weight: normal; }
.bluemoon-image-col { width: 50%; position: relative; }
.bluemoon-image-col img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; left: 0; }

.bluemoon-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--primary-darker);
  color: var(--white);
  background-color: var(--primary-darker);
  padding: 14px 35px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, border-color 0.4s ease;
  text-transform: uppercase;
}
.bluemoon-btn::before { content: ""; position: absolute; top: 0; right: 0; width: 0; height: 100%; z-index: -1; background-color: var(--primary); transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1); }
.bluemoon-btn:hover::before { width: 100%; }
.bluemoon-btn:hover { color: var(--white); border-color: var(--primary); }

/* ========== PRE-FOOTER SECTION ========== */
.pre-footer-section { padding: 70px 15px; background-color: var(--white); display: flex; flex-direction: column; align-items: center; }
.pre-footer-title { font-size: 36px; color: var(--primary-darker); font-weight: normal; margin: 0 0 20px 0; text-align: right; width: 100%; }
.pre-footer-text-wrap { width: 100%; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1); margin-bottom: 30px; }
.pre-footer-desc { font-size: 15px; color: #333; line-height: 1.9; margin: 0; font-weight: normal; text-align: right; direction: rtl; }
.btn-pre-footer { position: relative; display: flex; justify-content: center; align-items: center; gap: 6px; background-color: var(--primary-darker); color: var(--white); padding: 12px 35px; border-radius: 30px; font-size: 13px; font-weight: bold; text-decoration: none; overflow: hidden; z-index: 1; transition: background 0.4s ease; text-transform: uppercase; border: 1px solid var(--primary-darker); width: fit-content; margin: 0 auto; }
.btn-pre-footer:hover { background-color: var(--primary); color: var(--white); }
.pf-icon { font-size: 16px; font-weight: bold; line-height: 1; }

/* ========== FOOTER ========== */
.main-footer { background-color: var(--primary-darker); color: var(--white); padding: 60px 0 30px 0; }
.footer-newsletter-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.newsletter-text h3 { font-size: 28px; font-weight: bold; margin: 0 0 10px 0; }
.newsletter-text p { font-size: 14px; font-weight: normal; margin: 0; }
.newsletter-form-box { display: flex; flex-direction: column; max-width: 500px; width: 100%; gap: 15px; }
.newsletter-input-group { display: flex; gap: 10px; width: 100%; }
.newsletter-input-group input { flex: 1; background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 30px; padding: 12px 20px; color: var(--white); font-size: 14px; outline: none; }
.newsletter-input-group input::placeholder { color: rgba(255, 255, 255, 0.7); }
.btn-subscribe { background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.5); color: var(--white); padding: 0 35px; border-radius: 30px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; }
.btn-subscribe:hover { background-color: var(--white); color: var(--primary-darker); }
.newsletter-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; cursor: pointer; color: rgba(255, 255, 255, 0.8); }
.newsletter-checkbox a { color: var(--white); text-decoration: underline; }

.footer-divider { width: 100%; height: 1px; background-color: rgba(255, 255, 255, 0.2); margin: 40px 0; }
.footer-links-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.footer-col h4 { font-size: 16px; font-weight: bold; margin: 0 0 20px 0; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255, 255, 255, 0.8); font-size: 13px; text-decoration: none; transition: color 0.3s ease; font-weight: normal; }
.footer-col a:hover { color: var(--white); }

.footer-bottom-bar { display: flex; justify-content: space-between; align-items: flex-end; }
.footer-bottom-right { display: flex; flex-direction: column; gap: 20px; }
.footer-socials { display: flex; gap: 15px; align-items: center; }
.footer-socials a { color: var(--white); display: flex; align-items: center; justify-content: center; transition: opacity 0.3s ease; }
.footer-socials a:hover { opacity: 0.7; }
.footer-socials svg { width: 20px; height: 20px; fill: currentColor; }
.social-text-icon { font-size: 18px; font-weight: bold; text-decoration: none; }
.footer-social-icons { display: flex; gap: 14px; align-items: center; }
.footer-social-link { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; transition: opacity 0.3s ease, transform 0.2s ease; }
.footer-social-link:hover { opacity: 0.8; transform: translateY(-2px); }
.footer-social-link svg { width: 26px; height: 26px; }
.icon.bale-icon { color: #2aabee; fill: #2aabee; } .footer-social-link .icon.bale-icon, .footer-social-link .icon.instagram-icon, .footer-social-link .icon.telegram-icon, .footer-social-link .icon.whatsapp-icon { color: #ffffff; fill: #ffffff; }
.icon.instagram-icon { color: #e1306c; fill: #e1306c; }
.icon.telegram-icon { color: #2aabee; fill: #2aabee; }
.icon.whatsapp-icon { color: #25d366; fill: #25d366; }
.footer-copy-pay { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.copyright-text { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin: 0; font-weight: normal; }
.payment-icons-img { height: 25px; object-fit: contain; }
.footer-bottom-left { display: flex; justify-content: flex-end; }
.footer-logo-link { display: flex; align-items: center; }
.footer-logo-img { max-height: 50px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }

/* ========== LEGAL TEXT SECTION ========== */
.legal-text-section { padding: 40px 0; background-color: var(--white); }
.legal-text-section p { font-size: 11px; color: #666; line-height: 1.8; margin: 0 0 15px 0; font-weight: normal; text-align: justify; }

/* ========== DISCOVERY SECTION ========== */
.discovery-section {
  position: relative;
  background-color: var(--primary-darker);
  padding: 70px 0;
}
.discovery-section .container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.discovery-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 650px;
  gap: 25px;
  z-index: 5;
  position: relative;
}
.discovery-text {
  color: var(--white);
  font-size: 16px;
  font-weight: normal;
  line-height: 1.8;
  margin: 0;
  text-align: right;
}
.btn-discovery-simple {
  color: var(--white);
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--white);
  padding-bottom: 3px;
  transition: opacity 0.3s ease;
}
.btn-discovery-simple:hover { opacity: 0.7; }
.jkl-svg {
  position: absolute;
  width: 90px;
  opacity: 1;
  z-index: 2;
  pointer-events: none;
}
.jkl-only-mobile { display: none; }

/* ========== COFFEE FOR EVERYONE ========== */
.coffee-everyone-section {
  padding: 100px 0;
  background-color: var(--white);
  text-align: center;
  overflow: hidden;
}
.ce-header { margin-bottom: 70px; direction: rtl; }
.ce-title {
  font-size: 42px;
  color: var(--primary-darker);
  font-weight: normal;
  margin: 0 0 15px 0;
  font-family: serif;
}
.ce-subtitle { font-size: 16px; color: var(--primary-darker); font-weight: normal; margin: 0; }
.ce-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 15px;
  perspective: 1200px;
}
.ce-card {
  position: relative;
  flex: 1;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  will-change: transform;
  margin: 0 -15px;
}
.ce-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.9);
}
.ce-card:hover img { transform: scale(1.05); filter: brightness(1); }
.ce-label {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--white);
  font-size: 15px;
  font-weight: bold;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}
.ce-card-left,
.ce-card-right { z-index: 1; }
.ce-card-center { z-index: 3; }

/* ========== SPLIT SHOWCASE SECTION ========== */
.split-showcase-section {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 500px;
  background-image: url(https://cs-test.ir/wp-content/uploads/2026/06/14.webp), url(https://cs-test.ir/wp-content/uploads/2026/06/151.webp);
  background-repeat: no-repeat, no-repeat;
  background-position: right center, left center;
  background-size: 50% 100%, 50% 100%;
  overflow: hidden;
}
.split-showcase-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.split-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 70px 50px;
  position: relative;
  z-index: 2;
}
.split-right { justify-content: flex-start; align-items: flex-start; text-align: right; }
.split-left { justify-content: flex-end; align-items: flex-start; text-align: right; }
.split-title { color: var(--white); font-size: 38px; font-weight: normal; margin: 0 0 15px 0; font-family: serif; }
.split-subtitle { color: var(--white); font-size: 14px; font-weight: normal; margin: 0; }
.split-desc {
  color: var(--white);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.6;
  margin: 0 0 20px 0;
  max-width: 450px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.split-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(160deg);
  width: 55px;
  z-index: 5;
  pointer-events: none;
}
.jkl-animated-icon { width: 100%; height: auto; }
.jkl-draw { transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.split-showcase-section.in-view .jkl-animated-icon path:nth-child(2) {
  stroke-dashoffset: 0 !important;
  transition-delay: 0.1s;
}
.split-showcase-section.in-view .jkl-animated-icon path:nth-child(1),
.split-showcase-section.in-view .jkl-animated-icon path:nth-child(3) {
  stroke-dashoffset: 0 !important;
  transition-delay: 0.9s;
}

/* ========== BLOG CAROUSEL SECTION ========== */
.blog-title-section { padding: 50px 0; }

.cb-blog-carousel-section .cb-blog-carousel {
  color: #142b57;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 70px;
}
.cb-blog-carousel-section .cb-track-wrap {
  position: relative;
  padding-bottom: calc(var(--cb-arrow-size) + var(--cb-stagger) + 40px);
}
.cb-blog-carousel-section .cb-blog-carousel__track {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: var(--cb-gap);
  overflow: auto visible;
  scroll-behavior: smooth;
  scroll-padding-left: 40px;
  padding: calc(var(--cb-stagger) + 40px) calc(var(--cb-arrow-size) + 16px) calc(var(--cb-stagger) + 40px) 40px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.cb-blog-carousel-section .cb-blog-carousel__track::-webkit-scrollbar { display: none; }

.cb-blog-carousel-section .cb-blog-card {
  position: relative;
  z-index: 0;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: var(--cb-card-maxw);
  text-decoration: none;
  color: #223274;
  gap: 20px;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
  transform: translateY(var(--cb-ty, 0)) scale(var(--cb-card-scale));
}
.cb-blog-carousel-section .cb-blog-card:nth-child(odd)  { --cb-ty: calc(var(--cb-stagger) * 1); }
.cb-blog-carousel-section .cb-blog-card:nth-child(even) { --cb-ty: calc(var(--cb-stagger) * -1); }
.cb-blog-carousel-section .cb-blog-card.cb-is-active {
  transform: translateY(var(--cb-ty, 0)) scale(var(--cb-card-scale-active));
  z-index: 1;
}

.cb-blog-carousel-section .cb-blog-card .cb-blog-card__inner {
  display: grid;
  grid-template-rows: auto 1fr;
  background-color: transparent;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--cb-card-shadow);
  transition: box-shadow 0.25s ease;
  overflow: visible;
  border-radius: var(--cb-card-radius);
}
.cb-blog-carousel-section .cb-blog-card .cb-blog-card__inner:hover { box-shadow: var(--cb-card-shadow-hover); }

.cb-blog-carousel-section .cb-blog-card .cb-blog-card__media {
  position: relative;
  aspect-ratio: 1 / 1.05;
  overflow: hidden;
  max-height: none;
}
.cb-blog-carousel-section .cb-blog-card .cb-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cb-blog-carousel-section .cb-blog-card .cb-blog-card__textwrap {
  display: grid;
  gap: 8px;
  padding: 14px;
  background-color: var(--cb-text-bg);
  color: var(--cb-text-color);
  min-height: 140px;
  -webkit-font-smoothing: antialiased;
  backface-visibility: hidden;
  transform: translateZ(0);
  text-align: right;
  direction: rtl;
}

.cb-blog-carousel-section .cb-blog-card .cb-blog-card__badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 12px;
  line-height: 112%;
  background-color: var(--cb-badge-bg);
  color: var(--cb-badge-color);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cb-blog-carousel-section .cb-blog-card .cb-blog-card__title {
  margin: 0;
  font-size: 22px;
  line-height: 130%;
  font-weight: 500;
}

.cb-blog-carousel-section .cb-controls {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cb-blog-carousel-section .cb-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--cb-sbar-h);
  background: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
  border-radius: 999px;
  background-clip: content-box;
  padding: 0;
  background-image:
    linear-gradient(var(--cb-sbar-thumb), var(--cb-sbar-thumb)),
    linear-gradient(var(--cb-sbar-track), var(--cb-sbar-track));
  background-repeat: no-repeat, no-repeat;
  background-size: var(--cb-fill) 100%, 100% 100%;
  background-position: left center, left center;
}
.cb-blog-carousel-section .cb-range::-webkit-slider-runnable-track {
  height: var(--cb-sbar-h);
  background: transparent;
  border: 0;
  border-radius: 999px;
}
.cb-blog-carousel-section .cb-range::-moz-range-track {
  height: var(--cb-sbar-h);
  background: transparent;
  border: 0;
  border-radius: 999px;
}
.cb-blog-carousel-section .cb-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 0;
  height: 0;
  margin-top: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
}
.cb-blog-carousel-section .cb-range::-moz-range-thumb {
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
}
.cb-blog-carousel-section .cb-range::-moz-range-progress { background: transparent; }
.cb-blog-carousel-section .cb-range::-moz-focus-outer { border: 0; }
.cb-blog-carousel-section .cb-range::-ms-track {
  height: var(--cb-sbar-h);
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.cb-blog-carousel-section .cb-range::-ms-thumb { width: 0; height: 0; background: transparent; border: 0; }
.cb-blog-carousel-section .cb-range::-ms-fill-lower,
.cb-blog-carousel-section .cb-range::-ms-fill-upper { background: transparent; }

.cb-blog-carousel-section .cb-arrows { display: flex; gap: 12px; margin-left: auto; }
.cb-blog-carousel-section .cb-arrow-btn {
  width: var(--cb-arrow-size);
  height: var(--cb-arrow-size);
  background: transparent;
  color: var(--cb-arrow-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s ease;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
}
.cb-blog-carousel-section .cb-arrow-btn:active { transform: scale(0.96); }
.cb-blog-carousel-section .cb-arrow-btn .cb-arrow-ico {
  width: calc(var(--cb-arrow-size) * 0.5);
  height: calc(var(--cb-arrow-size) * 0.5);
  display: block;
}
.cb-blog-carousel-section .cb-arrow-btn.is-disabled,
.cb-blog-carousel-section .cb-arrow-btn[disabled] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}


/* ==============================================
   MEDIA QUERIES
   ============================================== */

@media (min-width: 576px) {
  .container { padding-inline: calc(50% - 275px); }
}

@media (min-width: 768px) {
  .container { padding-inline: calc(50% - 368px); }
}

@media (min-width: 1024px) {
  .container { padding-inline: calc(50% - 500px); }
  .mobile-overlay, .mobile-drawer, .hamburger { display: none !important; }
}

@media (min-width: 1280px) {
  .container { padding-inline: calc(50% - 580px); }
}

@media (max-width: 1280px) {
  .choose-coffee-section .coffee-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .choose-coffee-section .coffee-grid { grid-template-columns: repeat(3, 1fr); }
  .pods-grid { grid-template-columns: repeat(3, 1fr); }
  .ce-gallery { max-width: 100%; padding: 40px 20px; }
  .cb-blog-carousel-section {
    --cb-img-maxh: var(--cb-img-maxh-t);
  }
  .cb-blog-carousel-section .cb-blog-card { max-width: 320px; }
}

@media (max-width: 991px) {
  .main-nav, .hide-on-mobile, .mega-menu { display: none !important; }
  .main-header { padding: 0 15px; }
  .mobile-toggle-btn { display: flex; }
  .bluemoon-text-col, .bluemoon-image-col { width: 100%; }
  .bluemoon-image-col { min-height: 250px; position: relative; }
  .bluemoon-image-col img { position: static; height: auto; }
}

@media (max-width: 768px) {
    .home-cat-slider-section .section-title {
            font-size: 20px !important;
    }
  /* Archive */
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-toolbar { flex-direction: column; align-items: flex-start; gap: 20px; }

  /* History */
  .sh-title { font-size: 28px; }
  .sh-subtitle { font-size: 15px; }

  /* Hero */
  .hero-slider {height: 300px; min-height: unset; cursor: auto; }
  .hero-content { right: 5%; left: 5%; max-width: 100%; bottom: 60px; }
  .hero-title { font-size: 24px; }
  .hero-desc { font-size: 13px; }
  .hero-cursor { display: none; }
  .hero-btn { cursor: pointer; }
  .hero-dot { cursor: pointer; }

  /* Coffee grid */
  .choose-coffee-section .coffee-grid { grid-template-columns: repeat(2, 1fr); }

  /* Pods */
  .pods-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
  }
  .pod-card { flex: 0 0 85%; scroll-snap-align: center; }

  /* Bluemoon */
  .bluemoon-text-col { padding: 40px 15px; }

  /* Footer */
  .footer-newsletter-row { flex-direction: column; gap: 30px; }
  .footer-links-row { grid-template-columns: repeat(2, 1fr); }
  .footer-links-row .footer-col:last-child { grid-column: span 2; }
  .footer-bottom-bar { flex-direction: column-reverse; align-items: center; gap: 30px; text-align: center; }
  .footer-copy-pay { justify-content: center; }

  /* Discovery */
  .jkl-svg.jkl-only-mobile {
    display: block;
    width: 60px;
    top: -5px !important;
    left: 10% !important;
    transform: rotate(70deg) !important;
  }
  .jkl-only-desktop { display: none; }
  .discovery-section .container { justify-content: center; }
  .discovery-content { align-items: center; text-align: center; }
  .discovery-text { text-align: center; }

  /* Coffee for everyone */
  .ce-title { font-size: 30px; }
  .ce-gallery {
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 40px 20px 30px 20px;
    gap: 20px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-darker) #eee;
    -webkit-overflow-scrolling: touch;
  }
  .ce-gallery::-webkit-scrollbar { height: 2px; -webkit-appearance: none; }
  .ce-gallery::-webkit-scrollbar-track { background-color: #eee; margin: 0 20px; }
  .ce-gallery::-webkit-scrollbar-thumb { background-color: var(--primary-darker); border-radius: 4px; }
  .ce-gallery::before { content: ""; flex: 0 0 1vw; }
  .ce-gallery::after  { content: ""; flex: 0 0 5vw; }
  .ce-card { flex: 0 0 75%; max-width: none; scroll-snap-align: center; margin: 0; aspect-ratio: 4 / 5; }
  .ce-card-left   { transform: rotate(-8deg) !important; z-index: 1; margin-top: 10px; }
  .ce-card-center { transform: rotate(5deg)  !important; z-index: 3; margin-top: 10px; }
  .ce-card-right  { transform: rotate(0deg)  !important; z-index: 1; margin-top: 10px; }

  /* Split showcase */
  .split-showcase-section {
    flex-direction: column;
    min-height: 800px;
    background-size: 100% 50%, 100% 50%;
    background-position: top center, bottom center;
  }
  .split-arrow { transform: translate(-50%, -50%) rotate(180deg); width: 45px; }
  .split-right { justify-content: flex-start; padding: 40px 20px; }
  .split-left  { justify-content: flex-end;   padding: 40px 20px; }

  /* Blog carousel */
  .cb-blog-carousel-section {
    --cb-img-maxh: var(--cb-img-maxh-m);
    --cb-gap: 30px;
  }
  .cb-blog-carousel-section .cb-blog-carousel__track {
    padding-left: 20px;
    padding-right: 25px;
  }
  .cb-blog-carousel-section .cb-blog-card { max-width: 280px; }
  .cb-blog-carousel-section .cb-controls { position: static; margin-top: 16px; }
  .cb-blog-carousel-section .cb-track-wrap { padding-bottom: 0; }
}

@media (max-width: 576px) {
  .header-logo { position: absolute; left: 50%; transform: translateX(-50%); }
  .header-icon.user { margin-left: auto; }
  .header-icons { display: flex; width: 100%; }
  .archive-grid { grid-template-columns: 1fr; }
  .choose-coffee-section .coffee-grid { grid-template-columns: 1fr; }
  .pods-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   SINGLE PRODUCT PAGE
═══════════════════════════════════════════════════ */

/* ── صفحه کلی ── */
.sp-page {
  padding: 0 0 60px;
  background: var(--white);
  direction: rtl;
}

.sp-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: #888;
}

/* ── لایوت اصلی: دو ستون ── */
.sp-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 48px;
}

@media (max-width: 900px) {
  .sp-main { grid-template-columns: 1fr; gap: 28px; }
}

/* ── ستون گالری ── */
.sp-gallery-col { position: relative; }

.sp-gallery-sticky {
  position: sticky;
  top: 90px; /* ارتفاع هدر استیکی */
  z-index: 1;
}

/* تصویر اصلی */
.sp-gallery-main {
  position: relative;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.sp-img-loading { opacity: 0.4; }

/* دکمه‌های قبلی/بعدی */
.sp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.2s, color 0.2s;
  color: var(--white);
}
.sp-gallery-prev { right: 10px; }
.sp-gallery-next { left: 10px; }
.sp-gallery-arrow:hover { background: var(--primary-dark); color: var(--white); }

/* دات‌ها / پجینیشن خطی */
.sp-gallery-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}
.sp-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: #ddd;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.sp-dot.active {
  background: var(--primary);
}

/* آیکون زوم */
.sp-gallery-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--primary);
  transition: background 0.2s;
}
.sp-gallery-zoom:hover { background: var(--primary); color: var(--white); }

/* ── ستون اطلاعات محصول ── */
.sp-info-col { padding: 0; }

.sp-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  line-height: 1.4;
  text-transform: uppercase;
}

.sp-short-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 16px;
}
.sp-short-desc strong { color: var(--primary-dark); display: block; margin-bottom: 4px; font-size: 15px; }

.sp-intensity-block {
  margin-bottom: 16px;
}
.sp-intensity-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 2px;
}
.sp-intensity-label {
  font-size: 13px;
  color: #777;
}

.sp-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* قیمت */
.sp-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}
.sp-price .woocommerce-Price-amount { font-size: 22px; }
.sp-price del { color: #aaa; font-size: 15px; margin-left: 0; margin-right: 12px; }
.sp-price del .woocommerce-Price-amount { font-size: 15px; }
.sp-price ins { text-decoration: none; }

/* ── آکاردئون ── */
.sp-accordion {
  border-top: 1px solid var(--border-color);
}

.sp-accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.sp-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  text-align: right;
  gap: 8px;
}

.sp-accordion-icon {
  font-size: 20px;
  color: var(--primary);
  line-height: 1;
  flex-shrink: 0;
}

.sp-accordion-body {
  display: none;
  padding-bottom: 16px;
}

.sp-accordion-content {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
}
.sp-accordion-content strong { color: var(--primary-dark); font-size: 14px; display: block; margin-top: 10px; margin-bottom: 2px; }

/* ── محصولات پیشنهادی ── */
.sp-related {
  padding: 40px 0 0;
  border-top: 1px solid var(--border-color);
}

.sp-related-title {
  text-align: center;
  font-size: 26px;
  font-weight: 400;
  color: var(--primary-dark);
  font-style: italic;
  margin-bottom: 32px;
}

/* ── اسلایدر محصولات پیشنهادی ── */
.sp-related-slider-wrap {
  position: relative;
  padding: 0 44px;
}

.sp-related-swiper {
  overflow: hidden;
}

.sp-related-swiper .swiper-slide {
  height: auto;
}

.sp-related-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  font-size: 15px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.sp-related-arrow:hover { background: var(--primary-dark); }
.sp-related-prev { right: 0; }
.sp-related-next { left: 0; }
.sp-related-arrow.swiper-button-disabled {
  opacity: .35;
  cursor: default;
}

.sp-related-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sp-related-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 12px 12px 0;
  align-self: flex-start;
}

.sp-related-body {
  padding: 12px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-related-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.4;
}
.sp-related-name a { color: inherit; }
.sp-related-name a:hover { color: var(--primary); }

.sp-related-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
}
.sp-related-price del { color: #aaa; font-size: 12px; }
.sp-related-price ins { text-decoration: none; }

.sp-related-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: auto;
}
.sp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.sp-related-card:hover .sp-related-img img { transform: scale(1.04); }

/* تصویر دوم محصول هنگام هاور (فقط اگر گالری تصویر دوم داشته باشد) */
.sp-related-img .sp-related-img-alt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.sp-related-img:has(.sp-related-img-alt):hover .sp-related-img-alt,
.sp-related-img.has-alt-img:hover .sp-related-img-alt { opacity: 1; }
.sp-related-img:has(.sp-related-img-alt):hover .sp-related-img-main,
.sp-related-img.has-alt-img:hover .sp-related-img-main { opacity: 0; }

.sp-related-actions {
  display: flex;
  justify-content: center;
  padding: 14px;
}

.sp-related-btn {
  text-align: center;
  border: 1.5px solid var(--primary-dark);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.5px;
}
.sp-related-btn:hover { background: var(--primary-dark); color: var(--white); }

.sp-wishlist-btn,
.sp-related-img .gw-wl-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
}

/* ── لایت‌باکس ── */
.sp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.sp-lightbox.active { opacity: 1; pointer-events: all; }

.sp-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.82);
}

.sp-lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-lightbox-content img {
  max-width: 80vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 6px;
  width: auto;
}

.sp-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

/* ── ریسپانسیو کلی ── */
@media (max-width: 600px) {
  .sp-title { font-size: 17px; }
  .sp-price { font-size: 18px; }
  .sp-gallery-sticky { top: 70px; }
  .sp-related-slider-wrap { padding: 0 36px; }
  .sp-related-arrow { width: 34px; height: 34px; font-size: 13px; }
}

















/* ══════════════════════════════════════════════════
   GLOBAL WISHLIST BUTTON  (gw-wl-btn)
   جایگزین pod-fav-btn ، btn-wishlist ، sp-wishlist-btn
══════════════════════════════════════════════════ */

/* دکمه پایه — دایره آبی تیره */
.gw-wl-btn {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-darker);   /* آبی تیره */
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.gw-wl-btn svg {
  width: 14px;
  height: 14px;
  pointer-events: none;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* قلب: خط سفید، پر نشده */
.gw-wl-btn svg path,
.gw-wl-btn .heart-path {
  stroke: #ffffff;
  fill: none;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

/* هاور: پس‌زمینه کمی روشن‌تر */
.gw-wl-btn:hover {
  background-color: var(--primary);
  transform: scale(1.1);
}

/* حالت «در علاقه‌مندی»: قلب پر، پس‌زمینه ثابت */
.gw-wl-btn.in-wishlist {
  background-color: var(--primary-darker);
}
.gw-wl-btn.in-wishlist svg path,
.gw-wl-btn.in-wishlist .heart-path {
  fill: #ffffff;
  stroke: #ffffff;
}

/* انیمیشن پاپ */
.gw-wl-btn.wl-pop {
  animation: gwWlPop 0.35s ease;
}
@keyframes gwWlPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}


/* ── نوع ثابت: برای sp-wishlist-btn روی صفحه تکی ── */
.gw-wl-btn.gw-wl-static {
  position: static;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.gw-wl-btn.gw-wl-static svg {
  width: 16px;
  height: 16px;
}


/* ══════════════════════════════════════════════════
   WISHLIST PAGE
══════════════════════════════════════════════════ */

.wl-page {
  padding: 60px 0 100px;
  background: var(--white);
  min-height: 70vh;
  direction: rtl;
}

/* ── هدر صفحه ── */
.wl-page-header {
  margin-bottom: 50px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}
.wl-page-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.wl-page-title {
  font-size: 34px;
  font-weight: normal;
  color: var(--primary-darker);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}
.wl-page-subtitle {
  font-size: 14px;
  color: #888;
  font-weight: normal;
  margin: 0;
  line-height: 1.6;
}
.wl-total-count {
  font-size: 13px;
  color: #999;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 6px 16px;
  font-weight: normal;
}

/* ── اسکلتون لودینگ ── */
.wl-loading-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.wl-skeleton-card {
  border: 1px solid #eee;
  overflow: hidden;
}
.wl-skeleton-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: wlShimmer 1.4s infinite;
}
.wl-skeleton-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wl-skeleton-line {
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: wlShimmer 1.4s infinite;
}
.wl-skeleton-line.long   { width: 80%; }
.wl-skeleton-line.medium { width: 55%; }
.wl-skeleton-line.short  { width: 40%; }
@keyframes wlShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── حالت خالی ── */
.wl-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  text-align: center;
  gap: 20px;
}
.wl-empty-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #fdf2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.wl-empty-icon svg {
  width: 42px;
  height: 42px;
  stroke: #e03030;
  opacity: 0.6;
}
.wl-empty h3 {
  font-size: 22px;
  color: var(--primary-darker);
  font-weight: normal;
  margin: 0;
}
.wl-empty p {
  font-size: 14px;
  color: #999;
  font-weight: normal;
  margin: 0;
  line-height: 1.8;
  max-width: 360px;
}
.wl-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-darker);
  color: #fff;
  padding: 14px 36px;
  border-radius: 0;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  margin-top: 10px;
  letter-spacing: 0.5px;
}
.wl-shop-btn:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ── گرید کارت‌ها ── */
.wl-cards-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── کارت محصول ── */
.wl-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  overflow: hidden;
}
.wl-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

/* بدنه کارت — بالای عکس */
.wl-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
      padding: 18px 15px 14px 40px;
  border-bottom: 1px solid #f0ede9;
}
.wl-card-name {
  font-size: 14px;
  font-weight: normal;
  color: var(--font-color);
  line-height: 1.6;
  text-align: right;
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-card-name:hover { color: var(--primary-darker); }
.wl-card-price {
  font-size: 14px;
  color: var(--primary-darker);
  font-weight: bold;
  direction: ltr;
  text-align: right;
}
.wl-card-price del { color: #bbb; font-weight: normal; margin-left: 6px; font-size: 12px; }
.wl-card-price ins { text-decoration: none; }

/* تصویر کارت */
.wl-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f7f5f2;
}
.wl-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.wl-card:hover .wl-card-img-wrap img { transform: scale(1.06); }

/* اورلی هاور — دکمه وسط آبی */
.wl-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.wl-card:hover .wl-card-overlay { opacity: 1; }
.wl-card-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary-darker);
  color: #fff;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: bold;
  transform: translateY(12px);
  transition: transform 0.35s ease;
  white-space: nowrap;
}
.wl-card:hover .wl-card-view-btn { transform: translateY(0); }

/* دکمه حذف (قلب) */
.wl-remove-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

/* ── ریسپانسیو ── */
@media (max-width: 1200px) {
  .wl-cards-wrap { grid-template-columns: repeat(3, 1fr); }
  .wl-loading-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .wl-page-header-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media (max-width: 768px) {
  .wl-cards-wrap { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .wl-loading-grid { grid-template-columns: repeat(2, 1fr); }
  .wl-page-title { font-size: 26px; }
}
@media (max-width: 480px) {
  .wl-cards-wrap { grid-template-columns: 1fr; }
  .wl-loading-grid { grid-template-columns: 1fr; }
}

/* ========== SINGLE POST ========== */

.single-post-main { background: var(--white); }

/* ── هدر پست ── */
.single-post-hero { width: 100%; overflow: hidden; }

.single-post-hero__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 380px;
}

.single-post-hero__img {
  flex: 0 0 55%;
  max-width: 55%;
  overflow: hidden;
}

.single-post-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.single-post-hero__meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 48px;
  background: var(--white);
}

.single-post-hero__badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  width: fit-content;
}

.single-post-hero__title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin: 0;
}

/* ── محتوای پست ── */
.single-post-content {
  padding-top: 48px;
  padding-bottom: 56px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--font-color);
}
.single-post-content p { margin-bottom: 16px; font-weight: 500; line-height: 1.9; }
.single-post-content h2,
.single-post-content h3,
.single-post-content h4 { color: var(--primary-dark); margin-top: 28px; margin-bottom: 12px; font-weight: 700; }
.single-post-content h2 { font-size: 20px; }
.single-post-content h3 { font-size: 17px; }
.single-post-content img { border-radius: 10px; margin: 20px 0; }
.single-post-content a { color: var(--primary); text-decoration: underline; }
.single-post-content ul,
.single-post-content ol { padding-right: 20px; margin-bottom: 16px; }
.single-post-content li { list-style: disc; margin-bottom: 6px; }

/* ── بخش مرتبط ── */
.single-related-section {
  border-top: 1px solid var(--border-color);
  padding-top: 40px;
  padding-bottom: 60px;
}

.single-related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.single-related-title { font-size: 26px; font-weight: 700; color: var(--primary-dark); margin: 0; }

.single-related-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--font-color);
  text-decoration: none;
  transition: color 0.2s;
}
.single-related-viewall:hover { color: var(--primary); }

/* ── اسلایدر ── */
.single-related-slider-wrap { position: relative; overflow: hidden; }

.single-related-track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* desktop: 2.5 items visible */
.single-related-card { flex: 0 0 calc((100% - 48px) / 2.5); min-width: 0; }

.single-related-card__link { display: block; text-decoration: none; color: inherit; }

.single-related-card__media {
  position: relative;
  height: 250px;
  overflow: hidden;
  margin-bottom: 14px;
}

.single-related-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.single-related-card__link:hover .single-related-card__media img { transform: scale(1.04); }

.single-related-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.single-related-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.45;
  margin: 0;
  transition: color 0.2s;
}
.single-related-card__link:hover .single-related-card__title { color: var(--primary); }

/* ── فلش‌های ناوبری ── */
.single-related-arrow {
  position: absolute;
  top: 35%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
.single-related-arrow:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.single-related-arrow.is-disabled { opacity: 0.3; pointer-events: none; }
.single-related-arrow svg { width: 18px; height: 18px; flex-shrink: 0; }
.single-related-prev { left: -20px; }
.single-related-next { right: -20px; }

/* ── ریسپانسیو ── */
@media (max-width: 640px) {
  .single-post-hero__inner { flex-direction: column; }
  .single-post-hero__img { flex: none; max-width: 100%; height: 260px; }
  .single-post-hero__meta { padding: 24px 20px; }
  .single-post-hero__title { font-size: 24px; }
  .single-post-content { padding-top: 32px; padding-bottom: 40px; }
  .single-related-title { font-size: 20px; }
  .single-related-card { flex: 0 0 100%; }
}
/* ============================================================
   Page-Blog Archive Styles
   Magazine Caffè Borbone – blog archive (page-blog.php)
   ============================================================ */

/* ── 1. Hero / page intro ── */
.blog-archive-main {
  background-color: var(--white);
  padding-bottom: 80px;
}

.blog-archive-hero {
  text-align: center;
  padding: 60px 0 32px;
  max-width: 760px;
  margin: 0 auto;
}

.blog-archive-title {
  font-size: 85px;
  font-weight: 400;
  color: var(--primary-dark);
  margin: 0 0 20px;
}



.blog-archive-desc p {
    font-size: 21px;
    color: var(--primary-dark);
    margin: 0 0 12px;
    font-weight: 300;
    line-height: 43px;
}
/* ── 2. Category nav tabs ── */
.blog-cat-nav {
  margin: 0 0 48px;
  border-bottom: 2px solid #e8eaf0;
}

.blog-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.blog-cat-item {
  position: relative;
}

.blog-cat-link {
  display: inline-block;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-extra-2);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.blog-cat-link:hover {
  color: var(--primary-dark);
}

/* Active tab: darker text + bottom border indicator */
.blog-cat-item.is-active .blog-cat-link {
  color: var(--primary-dark);
  font-weight: 800;
}

.blog-cat-item.is-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-dark);
}

/* ── 3. Post grid ── */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px 28px;
  margin-bottom: 56px;
}

/* ── 3a. Post card – no border-radius anywhere ── */
.blog-post-card {
  display: flex;
  flex-direction: column;
}

.blog-post-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.blog-post-card__inner:hover {
  box-shadow: 0 8px 28px rgba(10, 37, 88, 0.12);
}

/* Featured image wrapper – badge is positioned relative to this */
.blog-post-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f0f1f5;
  border-radius: 0;
}

.blog-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.blog-post-card__inner:hover .blog-post-card__img {
  transform: scale(1.04);
}

.blog-post-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8eaf0 0%, #d0d4e4 100%);
}

/* Category badge – overlaid top-left on the image */
.blog-post-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  background-color: var(--primary-dark);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 0;
}

/* Text body */
.blog-post-card__body {
  padding: 18px 4px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-post-card__title {
  font-family: serif;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 400;
  color: var(--primary-dark);
  line-height: 1.35;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.blog-post-card__inner:hover .blog-post-card__title {
  color: var(--primary-extra-2);
}

.blog-post-card__excerpt {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--font-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── 4. Pagination ── */
.blog-pagination {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}

.blog-pagination__inner {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  border: 1.5px solid #d8dae8;
  border-radius: 50px;
  padding: 10px 20px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(10, 37, 88, 0.06);
}

.blog-pagination__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.blog-pagination__arrow:hover {
  background: var(--primary-dark);
  color: var(--white);
}

.blog-pagination__arrow.is-disabled {
  color: #c0c4d4;
  cursor: default;
  pointer-events: none;
}

.blog-pagination__counter {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  white-space: nowrap;
  line-height: 1;
}

.blog-pagination__sep {
  margin: 0 2px;
  color: #a0a8c0;
}

.blog-pagination__total {
  color: #a0a8c0;
}

/* ── 5. No posts message ── */
.blog-no-posts {
  text-align: center;
  padding: 60px 0;
  color: var(--font-color);
  font-size: 16px;
}

/* ── 6. Responsive ── */
@media (max-width: 900px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
}

@media (max-width: 600px) {
  .blog-archive-hero {
    padding: 36px 0 24px;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .blog-cat-link {
    padding: 12px 14px;
    font-size: 11px;
  }

  .blog-pagination__inner {
    padding: 8px 16px;
    gap: 12px;
  }
}

/* ══════════════════════════════════════════════════════
   SEARCH MODAL (AJAX LIVE SEARCH) — RTL
══════════════════════════════════════════════════════ */

/* ── SEARCH MODAL REDESIGN ── */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 20, 40, 0.45);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: start;
  padding: 0 10px 0 0;
}

.search-modal-overlay.active {
  display: flex;
  animation: searchOverlayIn 0.28s ease;
}

@keyframes searchOverlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.search-modal {
  width: 460px;
  max-width: calc(100vw - 20px);
  height: 90vh;
  max-height: 90vh;
  background-color: var(--white);
  border-radius: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: right center;
  animation: searchPageTurn 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes searchPageTurn {
  0%   { clip-path: inset(0 0 0 100%); opacity: 0; }
  30%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 0%); opacity: 1; }
}

@keyframes searchPageTurnClose {
  0%   { clip-path: inset(0 0 0 0%); opacity: 1; }
  60%  { opacity: 1; }
  100% { clip-path: inset(0 0 0 100%); opacity: 0; }
}

.search-modal.closing {
  animation: searchPageTurnClose 0.28s cubic-bezier(0.55, 0, 0.7, 0.4) forwards;
}

/* Input row: buttons float above the underlined input */
.search-modal-input-wrap {
  position: relative;
  padding: 20px 20px 0 20px;
  flex-shrink: 0;
}

.search-modal-close {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--font-color);
  opacity: 0.5;
  border-radius: 50%;
  transition: opacity 0.18s ease, background-color 0.18s ease;
  position: absolute;
  bottom: 10px;
  left: 20px;
  z-index: 2;
}

.search-modal-close:hover {
  opacity: 1;
  background-color: rgba(0,0,0,0.06);
}

.search-modal-close svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

.search-modal-input-inner {
  position: relative;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--border-color);
  transition: border-color 0.2s ease;
}

.search-modal-input-inner:focus-within {
  border-bottom-color: var(--font-color);
  border-bottom-width: 2.5px;
}

.search-modal-input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--font-color);
  padding: 0 0 0 80px;
  text-align: right;
  direction: rtl;
}

.search-modal-input::placeholder {
  color: #c0c0c0;
  font-weight: 400;
}

.search-modal-reset {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity 0.15s ease;
  position: absolute;
  bottom: 10px;
  left: 58px;
  z-index: 2;
  line-height: 32px;
}

.search-modal-reset:hover {
  opacity: 1;
}

/* Legacy clear button hidden — Reset covers this */
.search-modal-clear {
  display: none !important;
}

.search-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 20px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.12) transparent;
}

.search-modal-placeholder {
  text-align: center;
  color: #bbb;
  font-size: 13px;
  padding: 40px 10px;
}

.search-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.search-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: searchSpin 0.7s linear infinite;
}

@keyframes searchSpin {
  to { transform: rotate(360deg); }
}

.search-modal-results {
  display: none;
}

.search-modal-results.has-results {
  display: block;
}

.search-results-section + .search-results-section {
  margin-top: 28px;
}

.search-results-heading {
  font-size: 16px;
  font-weight: 700;
  color: var(--font-color);
  margin: 0 0 16px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover .search-result-title {
  text-decoration: underline;
}

.search-result-thumb {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-result-thumb-fallback {
  width: 22px;
  height: 22px;
  color: var(--primary);
  opacity: 0.5;
}

.search-result-thumb-fallback svg {
  width: 100%;
  height: 100%;
  color: inherit;
}

.search-result-post .search-result-thumb img {
  object-fit: cover;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--font-color);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-price {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.search-result-price del {
  color: #999;
  font-weight: 400;
  margin-left: 6px;
}

.search-result-meta {
  font-size: 12px;
  color: #999;
}

.search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 13px 20px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.search-view-all svg {
  width: 14px;
  height: 14px;
  color: inherit;
  transform: scaleX(-1);
}

.search-view-all:hover {
  background-color: var(--primary);
  color: var(--white);
}

.search-empty {
  text-align: center;
  padding: 50px 10px;
}

.search-empty-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  color: var(--primary);
  opacity: 0.4;
}

.search-empty-icon svg {
  width: 100%;
  height: 100%;
  color: inherit;
}

.search-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--font-color);
  margin: 0 0 8px;
}

.search-empty-desc {
  font-size: 12.5px;
  color: #999;
  margin: 0;
  line-height: 1.7;
}

.header-search-trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .search-modal {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    border-radius: 0;
  }

  .search-modal-overlay {
    padding: 0 10px 0 10px;
    justify-content: flex-end;
  }

  .search-modal-input-wrap {
    padding: 16px 16px 0 16px;
  }

  .search-modal-close {
    left: 16px;
    bottom: 8px;
  }

  .search-modal-reset {
    left: 54px;
    bottom: 8px;
  }

  .search-modal-body {
    padding: 16px 16px 20px;
  }

  .search-modal-input {
    font-size: 18px;
    padding: 0 0 0 80px;
  }
}

/* ══════════════════════════════════════════
   SEARCH RESULTS PAGE
══════════════════════════════════════════ */
.search-results-section {
  padding-top: 0;
}

.search-results-header {
padding: 40px 0 24px;
    border-bottom: 1px solid var(--border-color, #e8e0d6);
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-results-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--font-color);
  margin: 0 0 20px;
  line-height: 1.4;
}

.search-results-term {
  color: var(--primary-color, #6b4c2a);
  font-style: italic;
}

/* Search refinement form on search page */
.search-results-form {
  width: 100%;
  max-width: 520px;
}

.search-results-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border-color, #e8e0d6);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.search-results-input-wrap:focus-within {
  border-color: var(--primary-color, #6b4c2a);
}

.search-results-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--font-color);
  padding: 12px 16px;
  direction: rtl;
}

.search-results-input::placeholder {
  color: var(--font-color-light, #aaa);
}

.search-results-submit {
  background: none;
  border: none;
  padding: 0 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--font-color);
  opacity: 0.6;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.search-results-submit:hover {
  opacity: 1;
}

.search-results-submit svg {
  width: 18px;
  height: 18px;
}

/* Post card variant inside search results */
.archive-card--post .archive-card-no-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light, #f5f0ea);
  color: var(--primary-color, #6b4c2a);
  opacity: 0.4;
}

.archive-card--post .archive-card-no-img svg {
  width: 48px;
  height: 48px;
}

.archive-card-date {
  font-size: 12px;
  color: var(--font-color-light, #aaa);
}

.archive-card-excerpt {
  font-size: 13px;
  color: var(--font-color);
  opacity: 0.7;
  padding: 8px 16px 0;
  line-height: 1.6;
  direction: rtl;
  text-align: right;
}

@media (max-width: 600px) {
  .search-results-title {
    font-size: 20px;
  }

  .search-results-header {
    padding: 24px 0 16px;
  }
}
