/* Imac Land 4.1.0 — consolidated front-end CSS. No loading/glass-loader effects. */

/* ===== main.css ===== */
/* ==========================================================================
   IMAC LAND — Typography
   Vazirmatn is loaded as one variable WOFF2 file with swap.
   ========================================================================== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn%5Bwght%5D.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --imac-font: 'Vazirmatn', Tahoma, Arial, sans-serif;
}
html, body, button, input, select, textarea,
.woocommerce, .woocommerce button, .woocommerce input,
.site-header, .site-footer, h1, h2, h3, h4, h5, h6,
a, p, span, li, label, small, strong {
  font-family: var(--imac-font) !important;
  letter-spacing: normal !important;
}
/* ==========================================================================
   IMAC LAND — Main / Common Styles
   Professional shared styles, Tailwind overrides, utilities
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  background: #F4F7FE;
  color: #242138;
  font-family: 'Vazirmatn', Tahoma, system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  
}



/* ---------- Glass effects ---------- */
.glass {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.glass-dark {
  background: rgba(75, 67, 144, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-header {
  background: rgba(75, 67, 144, 0.42);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---------- Decorative blobs ---------- */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

/* ---------- Card hover ---------- */
.card-hover {
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(108, 92, 231, 0.20);
}

/* ---------- Link underline effect ---------- */
.link-underline {
  background-image: linear-gradient(#6C5CE7, #6C5CE7);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.35s ease;
}

.link-underline:hover {
  background-size: 100% 1px;
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  letter-spacing: normal;
}

/* ---------- Status badges ---------- */
.badge-available {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: #1e7d46;
  background: rgba(30, 125, 70, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-available::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #1e9d54;
}

.badge-sold {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 500;
  color: #9a3b3b;
  background: rgba(154, 59, 59, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
}

.badge-sold::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c14b4b;
}

/* ---------- Filter pills (products page) ---------- */
.filter-pill {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: #6C5CE7;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.9);
}

.filter-pill.active {
  background: linear-gradient(135deg, #7C93F5, #6C5CE7);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.10);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  overflow: hidden;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-chevron {
  transition: transform 0.3s ease;
}

/* ---------- Gallery thumbnails ---------- */
.gallery-thumb {
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.gallery-thumb.active {
  box-shadow: 0 0 0 2px #6C5CE7;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

/* ---------- Search input ---------- */
#products-search::placeholder {
  color: #7A7391;
}

/* ---------- Utility ---------- */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-hide {
    display: none;
  }
}

/* WooCommerce + WP overrides */
.woocommerce ul.products {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 640px) {
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .woocommerce.columns-4 ul.products,
  .woocommerce ul.products.columns-4,
  .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); }
  .woocommerce.columns-3 ul.products { grid-template-columns: repeat(3, 1fr); }
}
.woocommerce ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
}
.woocommerce ul.products li.product .button,
.product-card__actions .button {
  display: block;
  width: 100%;
  padding: 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.35);
  background: transparent;
  color: #6C5CE7;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
}
.woocommerce span.onsale { background: #6C5CE7; }
.woocommerce div.product { margin-top: 1rem; }
.imac-wa-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
}
.woocommerce-cart .cart-collaterals,
.woocommerce-checkout .woocommerce {
  max-width: 960px;
  margin: 0 auto;
}

/* Force Vazirmatn everywhere */
html, body, button, input, select, textarea,
.woocommerce, .woocommerce button, .woocommerce input,
.site-header, .site-footer, h1, h2, h3, h4, h5, h6, a, p, span, li {
  font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important;
  letter-spacing: normal !important;
}

/* Persian text — only on theme content, NEVER on Elementor UI */
.imac-home, .imac-main, .imac-hero, .site-header, .site-footer,
.glass, .article-card, .product-card, .woocommerce {
  letter-spacing: normal;
}

/* ========== Elementor Editor Visibility Fix ========== */
/* Prevent theme from hiding or recoloring Elementor panel/editor text */
body.elementor-editor-active .elementor-panel,
body.elementor-editor-active .elementor-panel *,
body.elementor-editor-active #elementor-panel,
body.elementor-editor-active #elementor-panel *,
body.elementor-editor-active .elementor-control,
body.elementor-editor-active .elementor-control-title,
body.elementor-editor-active .elementor-control-field,
body.elementor-editor-active .elementor-control-input-wrapper,
body.elementor-editor-active input,
body.elementor-editor-active textarea,
body.elementor-editor-active select,
body.elementor-editor-active .elementor-button,
body.elementor-editor-active .elementor-panel-category-title,
body.elementor-editor-active .elementor-element-title,
body.elementor-editor-active .elementor-panel-heading,
body.elementor-editor-active .elementor-panel-footer,
body.elementor-editor-active .elementor-nerd-box {
  letter-spacing: normal !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Do not force white text on Elementor UI */
body.elementor-editor-active .elementor-panel {
  color: #6d7882;
}
body.elementor-editor-active .elementor-panel .elementor-control-title {
  color: #6d7882 !important;
}

/* Canvas content must remain visible */
body.elementor-editor-active .elementor-edit-area,
body.elementor-editor-active .elementor-editor-element-setting,
body.elementor-editor-active .elementor-element {
  visibility: visible !important;
  opacity: 1 !important;
}

.imac-elementor-page,
.imac-elementor-full {
  min-height: 40vh;
}

body.elementor-editor-active .site-header {
  z-index: 1;
}

/* Editable inner-page widgets */
.imac-edit-page{padding:72px 20px;background:linear-gradient(180deg,#f7f8ff,#fff)}.imac-edit-page__inner{max-width:1100px;margin:auto;display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}.imac-edit-page h2,.imac-contact-box h2{font-size:clamp(28px,4vw,48px);color:#242138;margin:0 0 18px}.imac-edit-page__eyebrow{font-size:12px;font-weight:700;letter-spacing:1px;color:#6c5ce7;margin:0 0 12px}.imac-edit-page__text{color:#5f5b70;line-height:2}.imac-edit-page__image img{width:100%;border-radius:28px;box-shadow:0 24px 60px rgba(75,67,144,.16)}.imac-edit-features{display:grid;gap:12px;margin-top:24px}.imac-edit-features article,.imac-contact-details>div{padding:16px 18px;border:1px solid rgba(108,92,231,.12);background:rgba(255,255,255,.78);border-radius:16px}.imac-edit-features strong,.imac-edit-features span{display:block}.imac-edit-features span{font-size:13px;color:#77718f;margin-top:4px}.imac-contact-box{max-width:800px;margin:auto;padding:46px;border-radius:30px;background:rgba(255,255,255,.8);box-shadow:0 20px 60px rgba(75,67,144,.12);border:1px solid rgba(108,92,231,.1)}.imac-contact-box>p:not(.imac-edit-page__eyebrow){color:#77718f}.imac-contact-details{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:26px 0}.imac-contact-details small,.imac-contact-details strong{display:block}.imac-contact-details small{color:#77718f;margin-bottom:5px}.imac-edit-btn{display:inline-flex;padding:13px 22px;border-radius:14px;background:#6c5ce7;color:#fff;text-decoration:none}
@media(max-width:767px){.imac-edit-page{padding:48px 16px}.imac-edit-page__inner{grid-template-columns:1fr;gap:26px}.imac-contact-box{padding:28px 20px}.imac-contact-details{grid-template-columns:1fr}}

/* ===== utilities.css ===== */
/* Static subset of the former Tailwind utilities. No runtime compiler/CDN. */
*,*::before,*::after{box-sizing:border-box}.relative{position:relative}.absolute{position:absolute}.inset-0{inset:0}.overflow-hidden{overflow:hidden}.mx-auto{margin-inline:auto}.w-full{width:100%}.h-auto{height:auto}.object-contain{object-fit:contain}.flex{display:flex}.flex-col{flex-direction:column}.flex-1{flex:1}.flex-shrink-0{flex-shrink:0}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.inline-block{display:inline-block}.block{display:block}.grid{display:grid}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-12{gap:3rem}.space-y-2>*+*{margin-top:.5rem}.space-y-3>*+*{margin-top:.75rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}.px-4{padding-inline:1rem}.px-6{padding-inline:1.5rem}.px-8{padding-inline:2rem}.px-10{padding-inline:2.5rem}.py-3{padding-block:.75rem}.py-3\.5{padding-block:.875rem}.py-7{padding-block:1.75rem}.py-16{padding-block:4rem}.py-20{padding-block:5rem}.pt-36{padding-top:9rem}.pt-40{padding-top:10rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mt-3{margin-top:.75rem}.mt-6{margin-top:1.5rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.rounded-xl{border-radius:.75rem}.rounded-2xl{border-radius:1.5rem}.rounded-3xl{border-radius:1.75rem}.rounded-\[28px\]{border-radius:28px}.rounded-full{border-radius:999px}.max-w-md{max-width:28rem}.max-w-\[180px\]{max-width:180px}.max-w-\[560px\]{max-width:560px}.max-w-\[800px\]{max-width:800px}.max-w-\[900px\]{max-width:900px}.max-w-\[1120px\]{max-width:1120px}.max-w-\[1280px\]{max-width:1280px}.w-\[200px\]{width:200px}.w-\[280px\]{width:280px}.w-\[380px\]{width:380px}.h-\[220px\]{height:220px}.font-display{font-family:inherit}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-center{text-align:center}.text-right{text-align:right}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-\[1\.3\]{line-height:1.3}.text-lg{font-size:1.125rem}.text-2xl{font-size:1.5rem}.text-3xl{font-size:1.875rem}.text-4xl{font-size:2.25rem}.text-\[12px\]{font-size:12px}.text-\[12\.5px\]{font-size:12.5px}.text-\[13px\]{font-size:13px}.text-\[13\.5px\]{font-size:13.5px}.text-\[14px\]{font-size:14px}.text-\[15px\]{font-size:15px}.text-\[6C5CE7\]{color:#6C5CE7}.text-white{color:#fff}.text-white\/70{color:rgba(255,255,255,.7)}.text-white\/80{color:rgba(255,255,255,.8)}.text-ink{color:var(--imac-ink)}.text-muted2{color:#7A7391}.bg-white{background:#fff}.bg-white\/10{background:rgba(255,255,255,.1)}.bg-white\/80{background:rgba(255,255,255,.8)}.border{border:1px solid currentColor}.border-black\/5{border-color:rgba(0,0,0,.05)}.border-white\/30{border-color:rgba(255,255,255,.3)}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--imac-deep-light),var(--imac-deep))}.h-auto{height:auto}.order-1{order:1}.order-2{order:2}.hidden{display:none}.card-hover{transition:transform .2s ease,box-shadow .2s ease}.card-hover:hover{transform:translateY(-3px)}
@media(min-width:640px){.sm\:flex-row{flex-direction:row}.sm\:inline{display:inline}.sm\:hidden{display:none}.sm\:text-5xl{font-size:3rem}.sm\:w-\[380px\]{width:380px}}
@media(min-width:768px){.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:gap-4{gap:1rem}.md\:h-\[300px\]{height:300px}.md\:justify-start{justify-content:flex-start}.md\:mr-0{margin-right:0}.md\:mt-20{margin-top:5rem}.md\:order-1{order:1}.md\:order-2{order:2}.md\:p-10{padding:2.5rem}.md\:p-12{padding:3rem}.md\:p-14{padding:3.5rem}.md\:pb-32{padding-bottom:8rem}.md\:pt-44{padding-top:11rem}.md\:pt-52{padding-top:13rem}.md\:px-6{padding-inline:1.5rem}.md\:px-10{padding-inline:2.5rem}.md\:text-3xl{font-size:1.875rem}.md\:text-4xl{font-size:2.25rem}.md\:text-6xl{font-size:3.75rem}.md\:text-right{text-align:right}.md\:w-\[240px\]{width:240px}.md\:w-\[400px\]{width:400px}}

/* ==========================================================================
   Professional Glass Container & Box (Elementor widgets)
   ========================================================================== */
.imac-glass-container,
.imac-glass-box {
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.imac-glass-light {
  background: rgba(255, 255, 255, 0.72);
  color: #242138;
}

.imac-glass-dark {
  background: rgba(75, 67, 144, 0.55);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.imac-glass-soft {
  background: rgba(244, 247, 254, 0.85);
  border-color: rgba(108, 92, 231, 0.12);
  color: #242138;
}

.imac-glass-border {
  background: transparent;
  border: 1.5px solid rgba(108, 92, 231, 0.25);
}

.imac-glass-container {
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.08);
}

.imac-glass-container__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.imac-glass-box {
  display: block;
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 28px rgba(108, 92, 231, 0.07);
}

.imac-glass-box--hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(108, 92, 231, 0.16);
}

.imac-glass-box__icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.imac-glass-box__icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.imac-glass-box__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.imac-glass-box__text {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}

/* ===== header.css ===== */
/* ==========================================================================
   IMAC LAND — Header Styles
   Fixed glass header + mobile navigation
   ========================================================================== */

/* Header container — full-bleed overlay so hero is visible correctly */
.site-header {
  position: fixed !important;
  top: 1rem !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important; /* keep natural height of bar; do not collapse content */
  z-index: 50;
  padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
  padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
  margin: 0 !important;
  box-sizing: border-box;
  pointer-events: none; /* allow clicks through empty areas */
}
.site-header > * {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .site-header {
    top: 1.5rem !important;
  }
}

.site-header__inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.site-header__bar {
  border-radius: 28px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.10);
}

@media (min-width: 768px) {
  .site-header__bar {
    border-radius: 999px;
    padding: 1rem 2rem;
  }
}

/* Logo */
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-header__logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__logo-text {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
}

/* Desktop navigation */
.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__nav a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header__nav a:hover,
.site-header__nav a.active {
  color: #fff;
}

/* CTA + mobile toggle */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-header__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.10);
  text-decoration: none;
  transition: box-shadow 0.25s ease;
}

.site-header__cta:hover {
  box-shadow: 0 0 80px rgba(124, 147, 245, 0.35);
}

.site-header__cta-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header__menu-btn {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  background: rgba(75, 67, 144, 0.55);
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 1024px) {
  .site-header__menu-btn {
    display: none;
  }
}

/* Mobile menu panel */
.site-header__mobile-panel {
  display: none;
  margin-top: 0.5rem;
  border-radius: 24px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.10);
}

.site-header__mobile-panel.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .site-header__mobile-panel {
    display: none !important;
  }
}

.site-header__mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.site-header__mobile-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header__mobile-nav a:hover,
.site-header__mobile-nav a.active {
  color: #fff;
}

/* Cart icon in header */
.site-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
  text-decoration: none;
}

.site-header__cart:hover {
  background: rgba(255, 255, 255, 0.22);
}

.site-header__cart-count {
  position: absolute;
  top: -4px;
  left: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7C93F5, #6C5CE7);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-header__cart-count:empty,
.site-header__cart-count[data-count="0"] {
  display: none;
}

/* WP menu: walker outputs raw <a> — ensure spacing */
.site-header__nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
@media (min-width: 1024px) {
  .site-header__nav {
    display: flex;
  }
}
.site-header__nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-header__nav a:hover,
.site-header__nav a.active,
.site-header__nav a.current-menu-item {
  color: #fff;
}

/* Account icon next to cart */
.site-header__account {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  text-decoration: none;
  transition: background 0.2s ease;
}
.site-header__account:hover {
  background: rgba(255,255,255,0.22);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== product-card.css ===== */
/* ==========================================================================
   IMAC LAND — Product Card Styles v2.9.3
   Professional product cards (home + shop + category)
   ========================================================================== */

@keyframes imacCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem !important;
  border-radius: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation:none;
  position: relative;
  box-sizing: border-box;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(108, 92, 231, 0.22);
}

.product-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.1rem;
  background: #F4F7FE;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.08);
}

.product-card__thumb svg {
  max-width: 100%;
  height: auto;
}

.product-card__display {
  font-size: 11px;
  text-transform: uppercase;
  color: #7A7391;
  margin-bottom: 0.25rem;
}

.product-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #242138;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__specs {
  font-size: 12.5px;
  color: #7A7391;
  line-height: 1.6;
  margin-bottom: 0.25rem;
}

.product-card__specs--last {
  margin-bottom: 0.5rem;
}

.product-card__price {
  color: #6C5CE7 !important;
  font-weight: 700;
  font-size: 15px;
  margin: 0.35rem 0 0.65rem;
  direction: ltr;
  unicode-bidi: plaintext;
}

.product-card__price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 12.5px;
  margin-left: 0.35rem;
}

.product-card__price ins {
  text-decoration: none;
  color: #6C5CE7;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.product-card__grade {
  font-size: 11px;
  font-weight: 500;
  color: #6C5CE7;
  background: #F4F7FE;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.product-card__actions {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card__btn-detail {
  display: block;
  width: 100%;
  padding: 0.625rem;
  border-radius: 999px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  background: rgba(255, 255, 255, 0.68);
  color: #6C5CE7;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease;
  box-sizing: border-box;
}

.product-card__btn-detail:hover {
  background: rgba(255, 255, 255, 0.9);
}

.product-card__btn-price {
  display: block;
  width: 100%;
  padding: 0.625rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: box-shadow 0.25s ease;
  box-sizing: border-box;
}

.product-card__btn-price:hover {
  box-shadow: 0 0 80px rgba(124, 147, 245, 0.35);
  color: #fff;
}

.product-card__btn-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem;
  border-radius: 999px;
  border: none !important;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.product-card__btn-cart:hover {
  box-shadow: 0 0 40px rgba(124, 147, 245, 0.4);
  transform: translateY(-1px);
  color: #fff !important;
}

/* ---------- Product grids (professional, no vw breakage) ---------- */
.products-grid,
.woocommerce ul.products,
ul.products {
  display: grid !important;
  gap: 1.5rem !important;
  grid-template-columns: 1fr;
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .products-grid,
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .products-grid,
  .woocommerce ul.products,
  ul.products,
  .woocommerce.columns-4 ul.products,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .woocommerce.columns-3 ul.products,
  .woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

.woocommerce ul.products li.product,
.imac-product-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box;
}

.product-card,
.product-card * {
  max-width: 100%;
  box-sizing: border-box;
}

/* Badges */
.product-card .onsale,
.product-card .badge-new,
.product-card .badge-featured,
.product-card .badge-popular {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 11px;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  color: #fff;
  width: 52px !important;
  min-width: 52px;
  max-width: 72px;
  text-align: center;
  box-sizing: border-box;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* اگر هم تخفیف و هم وضعیت داشته باشیم، وضعیت کمی پایین‌تر */
.product-card .onsale + .badge-new,
.product-card .onsale + .badge-featured,
.product-card .onsale + .badge-popular {
  top: 2.35rem;
}

.product-card .onsale {
  background: #ef4444;
  width: 52px !important;
}
.product-card .badge-new {
  background: #16a34a;
  width: 52px !important;
}
.product-card .badge-featured {
  background: #6C5CE7;
  width: 52px !important;
}
.product-card .badge-popular {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  width: auto !important;
  min-width: 52px;
  max-width: 90px;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.badge-available {
  font-size: 11px;
  font-weight: 500;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.12);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

/* رنگ‌بندی ثابت کارت */
.product-card {
  color: #242138;
  background: rgba(255, 255, 255, 0.72);
}
.product-card__title,
.product-card__title a {
  color: #242138 !important;
}
.product-card__specs,
.product-card__display {
  color: #7A7391 !important;
}
.product-card__price {
  color: #6C5CE7 !important;
}

/* ========== Homepage product grid (user design) ========== */
@media (min-width: 1024px) {
  .imac-home .woocommerce ul.products,
  .imac-home ul.products,
  .imac-home .products-grid,
  .imac-home .woocommerce.columns-4 ul.products,
  .imac-home .woocommerce ul.products.columns-4,
  .imac-home-products .woocommerce ul.products,
  .imac-home-products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* User requested spacing look — large gap between cards on home only.
     19.5rem is extreme; using a balanced professional gap that still
     keeps 4 cards visible. If you need exact 19.5rem, change below. */
  .imac-home-products .woocommerce ul.products,
  .imac-home-products ul.products {
    gap: 1.75rem !important;
  }

  .imac-home .product-card,
  .imac-home-products .product-card {
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem !important;
    border-radius: 1.5rem;
    transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
    animation:none;
  }
}


/* v3.6 glass card surface */
.product-card{background:linear-gradient(145deg,rgba(255,255,255,.66),rgba(115,123,132,.13));border:1px solid rgba(255,255,255,.58);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 -1px 0 rgba(90,98,108,.08),0 18px 55px rgba(63,68,78,.09);backdrop-filter:blur(18px) saturate(125%);-webkit-backdrop-filter:blur(18px) saturate(125%);overflow:hidden;isolation:isolate}
.product-card::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:linear-gradient(115deg,transparent 20%,rgba(255,255,255,.46) 48%,rgba(160,168,178,.16) 52%,transparent 80%);transform:translate3d(-130%,0,0);opacity:0}.product-card>*{position:relative;z-index:1}

/* ===== article-card.css ===== */
/* ==========================================================================
   IMAC LAND — Article Card Styles
   Reusable article / blog card component
   ========================================================================== */

.article-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(108, 92, 231, 0.20);
}

.article-card__cover {
  height: 9rem; /* 144px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card__category {
  font-size: 11px;
  font-weight: 500;
  color: #6C5CE7;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-size: 14.5px;
  font-weight: 600;
  color: #242138;
  line-height: 1.45;
  margin-bottom: 0.75rem;
}

.article-card__date {
  font-size: 11.5px;
  color: #7A7391;
  margin-bottom: 1rem;
}

.article-card__link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 500;
  color: #6C5CE7;
  text-decoration: none;
  background-image: linear-gradient(#6C5CE7, #6C5CE7);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.35s ease;
  align-self: flex-start;
}

.article-card__link:hover {
  background-size: 100% 1px;
}

/* Grid helpers */
.articles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== footer.css ===== */
/* prevent footer overflow */
.site-footer { overflow-x: hidden; max-width: 100vw; }
/* ==========================================================================
   IMAC LAND — Footer Styles
   Dark gradient footer with columns + social + copyright
   ========================================================================== */

.site-footer {
  position: relative;
  padding: 4rem 1rem 2rem;
  background: linear-gradient(to bottom, #4B4390, #453D82);
  overflow: hidden;
}

@media (min-width: 768px) {
  .site-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.site-footer__blob {
  position: absolute;
  width: min(400px, 80vw);
  height: 400px;
  background: rgba(124, 147, 245, 0.2);
  bottom: -10rem;
  left: 0;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.site-footer__inner {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.site-footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Brand column */
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer__brand-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer__brand-name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.site-footer__desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.site-footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-footer__social a {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(75, 67, 144, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
  text-decoration: none;
}

.site-footer__social a:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Columns */
.site-footer__col-title {
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #fff;
}

.site-footer__contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__contact-list li {
  line-height: 1.6;
}

/* Copyright */
.site-footer__copy {
  padding-top: 1.75rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
}

/* Mobile sticky WhatsApp bar */
.mobile-whatsapp-bar {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 50;
}

@media (max-width: 767px) {
  .mobile-whatsapp-bar {
    display: block;
  }
}

.mobile-whatsapp-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.16);
  text-decoration: none;
}

.mobile-spacer {
  height: 5rem;
}

@media (min-width: 768px) {
  .mobile-spacer {
    display: none;
  }
}

/* ========== Mobile bottom nav (pill) ========== */
.imac-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: auto;
  max-width: calc(100% - 2rem);
}

@media (max-width: 767px) {
  .imac-mobile-bottom-nav {
    display: block;
  }
  /* hide old whatsapp bar if conflicting */
  .mobile-whatsapp-bar {
    display: none !important;
  }
  body {
    padding-bottom: 5.5rem;
  }
}

.imac-mobile-bottom-nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  box-shadow: 0 8px 32px rgba(36, 33, 56, 0.12), 0 2px 8px rgba(36, 33, 56, 0.06);
  border: 1px solid rgba(255,255,255,0.9);
}

.imac-mobile-bottom-nav__item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.5rem;
  border-radius: 999px;
  text-decoration: none;
  color: #9ca3af;
  transition: color 0.2s ease, background 0.2s ease;
}

.imac-mobile-bottom-nav__item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.imac-mobile-bottom-nav__item.is-active,
.imac-mobile-bottom-nav__item:hover {
  color: #6C5CE7;
  background: rgba(108, 92, 231, 0.08);
}

.site-footer{isolation:isolate}
.site-footer__blob{position:absolute!important;z-index:0!important}
.site-footer__inner{position:relative;z-index:2}
.site-footer__grid,.site-footer__copy{position:relative;z-index:2}

/* ===== woocommerce-fix.css ===== */
/* ============================================================
   IMAC LAND — WooCommerce layout FIX (v2.3)
   Exact HTML product grid — no float, no sidebar
   ============================================================ */

/* Kill WC default float columns completely */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
.woocommerce .products::before,
.woocommerce .products::after {
  content: none !important;
  display: none !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products.columns-1,
ul.products.columns-2,
ul.products.columns-3,
ul.products.columns-4,
ul.products.columns-5,
ul.products.columns-6,
.woocommerce .products {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  list-style: none !important;
  margin: 0 0 2rem 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
}

@media (min-width: 640px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Each product item */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.woocommerce ul.products li.imac-product-item,
li.product,
li.imac-product-item {
  float: none !important;
  clear: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

/* Card itself */
.product-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 1.5rem !important;
  border-radius: 1.5rem !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box !important;
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.10) !important;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(108, 92, 231, 0.20) !important;
}

.product-card__thumb {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-bottom: 1.25rem !important;
  min-height: 110px;
  width: 100%;
  text-decoration: none;
}

.product-card__thumb img {
  max-height: 120px !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
}

.product-card__display {
  font-size: 11px !important;
  text-transform: uppercase;
  color: #7A7391 !important;
  margin: 0 0 0.25rem 0 !important;
  letter-spacing: 0.02em;
}

.product-card__title {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #242138 !important;
  margin: 0 0 0.5rem 0 !important;
  line-height: 1.4 !important;
}

.product-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.product-card__specs {
  font-size: 12.5px !important;
  color: #7A7391 !important;
  line-height: 1.6 !important;
  margin: 0 0 0.75rem 0 !important;
}

.product-card__meta {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1.25rem !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
}

.product-card__grade {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #6C5CE7 !important;
  background: #F4F7FE !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 999px !important;
}

.badge-available {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #16a34a !important;
  background: #dcfce7 !important;
  padding: 0.25rem 0.625rem !important;
  border-radius: 999px !important;
}

.product-card__actions {
  margin-top: auto !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.product-card__btn-detail,
.product-card__btn-price,
.product-card__btn-cart {
  display: block !important;
  width: 100% !important;
  padding: 0.625rem !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  font-family: 'Vazirmatn', sans-serif !important;
  transition: background 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.product-card__btn-detail {
  border: 1px solid rgba(108, 92, 231, 0.2) !important;
  background: rgba(255, 255, 255, 0.68) !important;
  color: #6C5CE7 !important;
}

.product-card__btn-detail:hover {
  background: rgba(255, 255, 255, 0.95) !important;
}

.product-card__btn-price {
  border: none !important;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7) !important;
  color: #fff !important;
}

.product-card__btn-price:hover {
  box-shadow: 0 0 40px rgba(124, 147, 245, 0.35) !important;
}

.product-card__btn-cart {
  border: 1px solid rgba(108, 92, 231, 0.35) !important;
  background: transparent !important;
  color: #6C5CE7 !important;
}

.product-card__btn-cart:hover {
  background: rgba(108, 92, 231, 0.08) !important;
}

/* Hide default WC elements inside our card */
.product-card .onsale,
.product-card .price,
.product-card .star-rating,
.woocommerce ul.products li.product .onsale {
  display: none !important;
}

/* Toolbar */
.woocommerce-result-count,
.woocommerce-ordering {
  float: none !important;
  display: inline-block !important;
  margin: 0 0 1.5rem 0 !important;
  vertical-align: middle;
}
.woocommerce-ordering {
  margin-right: 1rem !important;
}
.woocommerce-ordering select {
  border-radius: 999px !important;
  border: 1px solid rgba(108, 92, 231, 0.2) !important;
  padding: 0.4rem 1rem !important;
  font-family: 'Vazirmatn', sans-serif !important;
  background: rgba(255,255,255,0.8) !important;
}

/* ===== FOOTER never sidebar ===== */
body .site-footer,
footer.site-footer {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  flex: none !important;
}

body.imac-land-theme,
body.woocommerce,
body.woocommerce-page,
body.tax-product_cat {
  display: block !important;
}

main.imac-main {
  display: block !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  min-height: 40vh;
}

/* No sidebars */
#secondary,
.sidebar,
aside.widget-area,
.woocommerce-page .sidebar {
  display: none !important;
}

/* Single product grid */
.imac-single-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2.5rem !important;
}
@media (min-width: 768px) {
  .imac-single-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Pagination */
.woocommerce-pagination {
  clear: both !important;
  text-align: center !important;
  margin-top: 2rem !important;
}
.woocommerce-pagination ul {
  display: inline-flex !important;
  gap: 0.5rem !important;
  list-style: none !important;
  padding: 0 !important;
}
.woocommerce-pagination a,
.woocommerce-pagination span {
  border-radius: 999px !important;
  padding: 0.5rem 0.9rem !important;
  border: 1px solid rgba(108, 92, 231, 0.2) !important;
  background: rgba(255,255,255,0.7) !important;
  color: #6C5CE7 !important;
  text-decoration: none !important;
}
.woocommerce-pagination .current {
  background: #6C5CE7 !important;
  color: #fff !important;
  border-color: #6C5CE7 !important;
}

/* ===== Shop layout with filters (HTML-like) ===== */
.imac-shop-layout {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.75rem !important;
  align-items: start;
}
@media (min-width: 992px) {
  .imac-shop-layout {
    grid-template-columns: 280px minmax(0, 1fr) !important;
  }
}
.imac-shop-sidebar {
  display: none;
}
@media (min-width: 992px) {
  .imac-shop-sidebar { display: block !important; }
}

.imac-filters-panel {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(108,92,231,0.12);
  border-radius: 20px;
  padding: 1.25rem;
  position: sticky;
  top: 6.5rem;
  box-shadow: 0 8px 32px rgba(108,92,231,0.08);
}

.imac-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(108,92,231,0.1);
}
.imac-filter-header strong { font-size: 0.95rem; color: #242138; }
.imac-filter-clear {
  font-size: 0.8rem;
  color: #6C5CE7 !important;
  font-weight: 600;
  text-decoration: none !important;
}

.imac-filter-group {
  border-bottom: 1px solid rgba(108,92,231,0.1);
  padding: 0.85rem 0;
}
.imac-filter-group:last-child { border-bottom: none; }
.imac-filter-group summary {
  font-weight: 600;
  font-size: 0.9rem;
  color: #242138;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.imac-filter-group summary::-webkit-details-marker { display: none; }
.imac-filter-group summary::after { content: "▾"; color: #7A7391; font-size: 0.75rem; }

.imac-filter-options {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 200px;
  overflow-y: auto;
}
.imac-filter-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #242138;
  cursor: pointer;
}
.imac-filter-options input[type=checkbox] {
  accent-color: #6C5CE7;
  width: 16px;
  height: 16px;
}

.imac-filter-price {
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: center;
  max-height: none !important;
}
.imac-filter-price input[type=number] {
  width: 42%;
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(108,92,231,0.2);
  font-family: Vazirmatn, sans-serif;
  font-size: 0.85rem;
  box-sizing: border-box;
}
.imac-filter-apply {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.55rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff;
  font-family: Vazirmatn, sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
}

.imac-shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.imac-mobile-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(108,92,231,0.25);
  background: rgba(255,255,255,0.8);
  color: #6C5CE7;
  font-family: Vazirmatn, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}
@media (min-width: 992px) {
  .imac-mobile-filter-btn { display: none !important; }
}

/* Mobile filter sheet */
.imac-filter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,8,12,0.45);
  z-index: 9999;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.imac-filter-sheet-overlay.is-open { display: flex !important; }
.imac-filter-sheet {
  background: #fff;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 1.25rem;
}
.imac-filter-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.imac-filter-sheet-head button {
  border: none;
  background: #F4F7FE;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}
.imac-filter-sheet .imac-filters-panel {
  position: static;
  box-shadow: none;
  border: none;
  padding: 0;
  background: transparent;
}

/* ============================================================
   Single product + tabs + empty state (v2.7.1)
   ============================================================ */

.imac-breadcrumb {
  font-size: 13px;
  color: #7A7391;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.imac-breadcrumb a { color: #6C5CE7; text-decoration: none; }
.imac-breadcrumb a:hover { text-decoration: underline; }
.imac-breadcrumb .current { color: #242138; }

.imac-single-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 768px) {
  .imac-single-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
  }
}

.imac-single-gallery {
  border-radius: 28px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.imac-single-main-img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: contain;
}
.imac-single-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.imac-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid rgba(108,92,231,0.15);
  background: #fff;
  padding: 4px;
  cursor: pointer;
  overflow: hidden;
}
.imac-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

.imac-single-eyebrow {
  font-size: 12.5px;
  color: #7A7391;
  margin: 0 0 0.5rem;
}
.imac-single-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: #242138;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
.imac-single-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #6C5CE7 !important;
  margin-bottom: 0.5rem;
  direction: ltr;
  unicode-bidi: plaintext;
}
.imac-single-price del { color: #9ca3af; font-weight: 400; font-size: 0.95rem; margin-left: 0.4rem; }
.imac-single-price ins { text-decoration: none; color: #6C5CE7; }

.imac-single-stock {
  font-size: 13.5px;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.5rem 0 1rem;
}
.imac-single-stock .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #16a34a;
}
.imac-single-stock.out { color: #dc2626; }
.imac-single-stock.out .dot { background: #dc2626; }

.imac-single-short {
  font-size: 14px;
  color: #7A7391;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.imac-single-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.imac-single-trust span {
  font-size: 12px;
  font-weight: 500;
  color: #6C5CE7;
  background: rgba(108,92,231,0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.imac-single-options { margin-bottom: 1rem; }
.imac-option-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(108,92,231,0.08);
}
.imac-option-label { font-size: 13px; color: #7A7391; }
.imac-option-pill {
  font-size: 13px;
  font-weight: 500;
  color: #242138;
  background: #F4F7FE;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

.imac-single-actions {
  margin: 1.25rem 0 0.85rem;
}
.imac-single-actions .cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.imac-single-actions .quantity .qty {
  width: 64px;
  padding: 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(108,92,231,0.2);
  text-align: center;
  font-family: Vazirmatn, sans-serif;
}
.imac-single-actions .single_add_to_cart_button,
.imac-single-actions button.button {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1.5rem !important;
  border-radius: 999px !important;
  border: none !important;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  font-family: Vazirmatn, sans-serif !important;
  cursor: pointer;
}

.imac-wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  margin-top: 0.5rem;
}
.imac-single-cat {
  margin-top: 1rem;
  font-size: 13px;
  color: #7A7391;
}
.imac-single-cat a { color: #6C5CE7; }

/* Tabs */
.imac-product-tabs {
  margin-top: 2.5rem;
  border-radius: 1.5rem;
  padding: 0;
  overflow: hidden;
}
.imac-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid rgba(108,92,231,0.12);
  background: rgba(255,255,255,0.5);
}
.imac-tab-btn {
  flex: 1;
  min-width: 100px;
  padding: 1rem 1.25rem;
  border: none;
  background: transparent;
  font-family: Vazirmatn, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #7A7391;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.imac-tab-btn.is-active {
  color: #6C5CE7;
  background: rgba(108,92,231,0.06);
}
.imac-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: #6C5CE7;
  border-radius: 2px 2px 0 0;
}
.imac-tabs-panels { padding: 1.5rem 1.75rem 1.75rem; }
.imac-tab-panel[hidden] { display: none !important; }
.imac-tab-content {
  font-size: 14.5px;
  line-height: 1.85;
  color: #7A7391;
}
.imac-tab-empty {
  color: #7A7391;
  text-align: center;
  padding: 1rem 0;
}

.imac-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .imac-specs-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .imac-specs-grid { grid-template-columns: repeat(3, 1fr); }
}
.imac-spec-card {
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  text-align: center;
}
.imac-spec-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #242138;
}
.imac-spec-value {
  font-size: 12.5px;
  color: #7A7391;
  margin: 0.35rem 0 0;
}

.imac-related { margin-top: 2.75rem; }
.imac-related__title {
  font-size: 1.25rem;
  font-weight: 500;
  color: #242138;
  margin: 0 0 1.25rem;
  text-align: center;
}

/* Empty products message — glass */
.woocommerce-info,
.woocommerce-noreviews,
.woocommerce-message,
p.woocommerce-info,
.woocommerce .woocommerce-info {
  background: rgba(255,255,255,0.68) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.7) !important;
  border-radius: 1.25rem !important;
  padding: 1.5rem 1.75rem !important;
  color: #7A7391 !important;
  box-shadow: 0 8px 32px rgba(108,92,231,0.08);
  font-family: Vazirmatn, sans-serif !important;
}
.woocommerce-info::before,
.woocommerce-message::before {
  display: none !important;
}

/* Force 4-col on desktop in woo-fix too */
@media (min-width: 1024px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Prevent vertical letter stacking on product cards */
.product-card,
.product-card * {
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  white-space: normal !important;
}
.product-card__title,
.product-card__specs,
.product-card__display {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.product-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* No products glass box */
.imac-no-products {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.5rem;
  margin: 1rem 0 2rem;
}
.imac-no-products p {
  color: #7A7391;
  font-size: 15px;
  margin: 0 0 1.25rem;
}

/* ===== responsive-fix.css ===== */
/* ============================================================
   IMAC LAND v2.7 — Responsive, overflow, shop layout, sticky footer
   ============================================================ */

html {
  height: 100%;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.imac-land-theme,
body.woocommerce,
body.woocommerce-page,
body.tax-product_cat,
body.archive,
body {
  min-height: 100%;
  height: auto;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0;
}

*, *::before, *::after { box-sizing: border-box !important; }

img, svg, video, iframe { max-width: 100% !important; height: auto; }

/* Main content grows to push footer down */
main.imac-main,
main.imac-home,
.imac-main,
.imac-home,
#content,
.site-content {
  flex: 1 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  display: block !important;
  float: none !important;
  clear: both !important;
  position: relative !important;
  min-height: 0;
}

/* ===== FOOTER: normal flow at bottom of page (not sticky/fixed) ===== */
body .site-footer,
footer.site-footer,
.site-footer {
  display: block !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  margin-top: auto !important;
  flex: 0 0 auto !important;
  grid-column: 1 / -1 !important;
  overflow-x: hidden !important;
  z-index: 1;
}

/* Clearfix before footer */
body.imac-land-theme::after,
.imac-main::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* Product grid: 1 mobile / 2 tablet / 4 desktop */
.woocommerce ul.products,
ul.products,
.products-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 1.5rem !important;
  padding: 0 !important;
  list-style: none !important;
  float: none !important;
  clear: both !important;
}
@media (min-width: 640px) {
  .woocommerce ul.products, ul.products, .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
  }
}
@media (min-width: 1024px) {
  .woocommerce ul.products, ul.products, .products-grid,
  .woocommerce.columns-4 ul.products,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 1.5rem !important;
  }
}
.woocommerce ul.products li.product,
li.imac-product-item {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}

/* Product card improvements */
.product-card {
  width: 100% !important;
  max-width: 100% !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem !important;
  border-radius: 1.5rem;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  animation: imacCardIn 0.55s ease both;
}
.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 30px 70px rgba(108, 92, 231, 0.22);
}
.product-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1rem;
  background: #F4F7FE;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.product-card:hover .product-card__thumb img {
  transform: scale(1.08);
}
.product-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: #242138;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  min-height: 2.8em;
}
.product-card__title a {
  color: inherit;
  text-decoration: none;
}
.product-card__price {
  color: #6C5CE7 !important;
  font-weight: 700;
  font-size: 15px;
  margin: 0.35rem 0 0.75rem;
}
.product-card__price del {
  color: #9ca3af;
  font-weight: 400;
  font-size: 13px;
  margin-left: 0.35rem;
}
.product-card__price ins {
  text-decoration: none;
  color: #6C5CE7;
}
.product-card__btn-cart {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem !important;
  border-radius: 999px !important;
  border: none !important;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: center;
  cursor: pointer;
  text-decoration: none !important;
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.product-card__btn-cart:hover {
  box-shadow: 0 0 40px rgba(124, 147, 245, 0.4);
  transform: translateY(-1px);
  color: #fff !important;
}
/* Badges */
.product-card .onsale,
.woocommerce span.onsale {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: linear-gradient(135deg, #6C5CE7, #7C93F5) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  padding: 0.3rem 0.65rem !important;
  border-radius: 999px !important;
  min-width: auto !important;
  min-height: auto !important;
  line-height: 1.2 !important;
  z-index: 2;
}
.badge-new, .badge-featured {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-size: 11px;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
}
.badge-new { background: #10b981; color: #fff; }
.badge-featured { background: #f59e0b; color: #fff; }

@keyframes imacCardIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.woocommerce ul.products li.product:nth-child(1) .product-card { animation-delay: 0.05s; }
.woocommerce ul.products li.product:nth-child(2) .product-card { animation-delay: 0.1s; }
.woocommerce ul.products li.product:nth-child(3) .product-card { animation-delay: 0.15s; }
.woocommerce ul.products li.product:nth-child(4) .product-card { animation-delay: 0.2s; }
.woocommerce ul.products li.product:nth-child(5) .product-card { animation-delay: 0.25s; }
.woocommerce ul.products li.product:nth-child(6) .product-card { animation-delay: 0.3s; }
.woocommerce ul.products li.product:nth-child(7) .product-card { animation-delay: 0.35s; }
.woocommerce ul.products li.product:nth-child(8) .product-card { animation-delay: 0.4s; }

/* Mobile drawer */
.imac-mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(36, 33, 56, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.imac-mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.imac-mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 88vw);
  height: 100%;
  background: linear-gradient(160deg, #4B4390, #3d3675);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.25);
}
.imac-mobile-drawer-overlay.is-open .imac-mobile-drawer {
  transform: translateX(0);
}
.imac-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.imac-mobile-drawer__head strong {
  color: #fff;
  font-size: 15px;
}
.imac-mobile-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imac-mobile-drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.imac-mobile-drawer__nav a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none !important;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.2s;
}
.imac-mobile-drawer__nav a:hover,
.imac-mobile-drawer__nav a.is-active {
  background: rgba(255,255,255,0.12);
  color: #fff !important;
}
.imac-mobile-drawer__foot {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.imac-mobile-drawer__foot a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
}

/* Hide old dropdown mobile panel */
.site-header__mobile-panel {
  display: none !important;
}

/* Header safe */
.site-header {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: max(0.75rem, env(safe-area-inset-left)) !important;
  padding-right: max(0.75rem, env(safe-area-inset-right)) !important;
}

/* Footer grid responsive */
.site-footer__grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
}
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr !important; }
}
@media (min-width: 1024px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr !important; }
}

@media (max-width: 767px) {
  .imac-hero h1 { font-size: 1.75rem !important; line-height: 1.35 !important; }
  .imac-hero { padding-top: 7.5rem !important; padding-bottom: 3rem !important; }
}

/* ===== cart-checkout.css ===== */
/* ============================================================
   Cart & Checkout — glass UI (custom + default WC markup)
   ============================================================ */

.imac-cart-page,
.imac-checkout-page,
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0.5rem;
}

.imac-cart-page__head,
.imac-checkout-page__head {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 0.5rem;
}
.imac-cart-page__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: rgba(108,92,231,0.75);
  margin: 0 0 0.5rem;
}
.imac-cart-page__title {
  font-size: 1.75rem;
  font-weight: 500;
  color: #242138;
  margin: 0;
  font-family: Vazirmatn, sans-serif;
}

/* Empty */
.imac-cart-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 1.5rem;
}
.imac-cart-empty p { color: #7A7391; margin-bottom: 1.25rem; }

.imac-btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: Vazirmatn, sans-serif;
}
.imac-btn-outline {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(108,92,231,0.25);
  background: rgba(255,255,255,0.85);
  color: #6C5CE7;
  font-family: Vazirmatn, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

/* Custom cart list */
.imac-cart-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.imac-cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 1.25rem;
  align-items: center;
}
@media (min-width: 640px) {
  .imac-cart-item {
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
  }
}
.imac-cart-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: #F4F7FE;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.imac-cart-item__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.imac-cart-item__name {
  font-size: 14.5px;
  font-weight: 600;
  color: #242138;
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
}
.imac-cart-item__price {
  font-size: 13.5px;
  color: #6C5CE7;
  font-weight: 600;
}
.imac-cart-item__qty .quantity .qty {
  width: 56px;
  padding: 0.45rem;
  border-radius: 10px;
  border: 1px solid rgba(108,92,231,0.2);
  text-align: center;
  font-family: Vazirmatn, sans-serif;
}
.imac-cart-item__subtotal {
  font-weight: 600;
  color: #242138;
  font-size: 14px;
}
.imac-cart-remove {
  color: #dc2626;
  font-size: 13px;
  text-decoration: none;
}
.imac-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Totals */
.imac-cart-totals,
.cart_totals {
  border-radius: 1.5rem !important;
  padding: 1.5rem !important;
  background: rgba(255,255,255,0.68) !important;
  backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,0.7) !important;
}
.cart_totals h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #242138;
  margin: 0 0 1rem;
}
.wc-proceed-to-checkout .checkout-button,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  padding: 0.9rem 1.5rem !important;
  border-radius: 999px !important;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7) !important;
  color: #fff !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border: none !important;
  text-decoration: none !important;
  font-family: Vazirmatn, sans-serif !important;
}

/* === Default WC table cart (fallback styling) === */
.woocommerce-cart table.cart,
.woocommerce table.shop_table {
  border: none !important;
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.68);
  backdrop-filter: blur(22px);
  overflow: hidden;
  width: 100%;
}
.woocommerce-cart table.cart th,
.woocommerce table.shop_table th {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(108,92,231,0.1) !important;
  font-size: 13px;
  color: #7A7391;
  font-weight: 500;
  padding: 1rem !important;
}
.woocommerce-cart table.cart td,
.woocommerce table.shop_table td {
  border: none !important;
  border-bottom: 1px solid rgba(108,92,231,0.08) !important;
  padding: 1rem !important;
  vertical-align: middle;
  font-size: 14px;
  color: #242138;
}
.woocommerce-cart table.cart img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  background: #F4F7FE;
}
.woocommerce-cart .product-remove a {
  color: #dc2626 !important;
  font-size: 1.25rem;
}
.woocommerce-cart .actions .button,
.woocommerce-cart button[name="update_cart"],
.woocommerce-cart button[name="apply_coupon"] {
  border-radius: 999px !important;
  padding: 0.65rem 1.25rem !important;
  font-family: Vazirmatn, sans-serif !important;
  border: 1px solid rgba(108,92,231,0.25) !important;
  background: rgba(255,255,255,0.9) !important;
  color: #6C5CE7 !important;
  font-weight: 500 !important;
}
.woocommerce-cart .coupon input {
  border-radius: 12px !important;
  border: 1px solid rgba(108,92,231,0.2) !important;
  padding: 0.6rem 0.85rem !important;
  font-family: Vazirmatn, sans-serif !important;
}

/* Checkout */
.imac-checkout-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .imac-checkout-grid {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: start;
  }
}
.imac-checkout-customer,
.imac-checkout-order {
  border-radius: 1.5rem;
  padding: 1.5rem 1.35rem;
}
.imac-checkout-order h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #242138;
  margin: 0 0 1rem;
}

/* Form fields */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select {
  border-radius: 12px !important;
  border: 1px solid rgba(108,92,231,0.18) !important;
  background: rgba(255,255,255,0.9) !important;
  padding: 0.75rem 1rem !important;
  font-family: Vazirmatn, sans-serif !important;
  font-size: 14px !important;
  color: #242138 !important;
  width: 100%;
  box-sizing: border-box;
}
.woocommerce form .form-row label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #242138 !important;
  margin-bottom: 0.35rem !important;
}
.woocommerce-checkout #place_order,
#place_order {
  width: 100% !important;
  padding: 0.95rem 1.5rem !important;
  border-radius: 999px !important;
  border: none !important;
  background: linear-gradient(to bottom right, #7C93F5, #6C5CE7) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: Vazirmatn, sans-serif !important;
  cursor: pointer;
  margin-top: 1rem;
}

/* Payment methods */
.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 1rem !important;
}
.woocommerce-checkout #payment ul.payment_methods {
  border: none !important;
  padding: 0 !important;
}
.woocommerce-checkout #payment div.payment_box {
  background: rgba(108,92,231,0.06) !important;
  border-radius: 12px !important;
  color: #7A7391 !important;
}

/* Mobile cart */
@media (max-width: 639px) {
  .woocommerce-cart table.cart thead { display: none; }
  .woocommerce-cart table.cart tr {
    display: block;
    margin-bottom: 1rem;
    border-radius: 1rem;
    background: rgba(255,255,255,0.75);
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.7);
  }
  .woocommerce-cart table.cart td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none !important;
    padding: 0.4rem 0 !important;
  }
  .woocommerce-cart table.cart td::before {
    content: attr(data-title);
    font-weight: 500;
    color: #7A7391;
    font-size: 12.5px;
  }
  .imac-cart-item {
    grid-template-columns: 64px 1fr;
  }
  .imac-cart-item__qty,
  .imac-cart-item__subtotal,
  .imac-cart-item__remove {
    grid-column: 1 / -1;
  }
}


/* ===== Stable design overrides — v3.9.0 ===== */
.imac-features-widget .glass,
.imac-features-widget > div .glass,
.imac-cta-widget > div {
  background: #fff !important;
  background-image: none !important;
  border: 1px solid rgba(108,92,231,.10) !important;
  box-shadow: 0 18px 50px rgba(75,67,144,.09) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.imac-cta-widget .imac-cta-title { color:#242138; }
.imac-cta-widget p { color:#7A7391; }
.imac-cta-widget a { color:#fff !important; }

/* Articles: fixed geometry + native lazy images, no JS/image-reveal loader. */
.imac-articles-grid,
.articles-grid { contain: layout paint; }
.article-card__cover { min-height:144px; height:144px; overflow:hidden; }
.article-card__cover img { display:block; width:100%; height:144px; object-fit:cover; }
.article-card__title { min-height:42px; }

/* Never hide content while it is loading. */
.product-card__thumb img,
.article-card__cover img { opacity:1 !important; visibility:visible !important; filter:none !important; }

/* Font: keep the site's intended Vazirmatn without a speculative preload. */
html, body, button, input, select, textarea,
.site-header, .site-footer, .imac-main, .imac-home,
.woocommerce, .woocommerce-page, .elementor-widget,
.elementor-widget-container { font-family:'Vazirmatn',Tahoma,Arial,sans-serif !important; }

/* Prevent horizontal overflow from widgets/images. */
html, body { max-width:100%; overflow-x:hidden; }
img { max-width:100%; }


/* ===== v4.1 performance + Elementor accordions ===== */
.site-header{left:0!important;right:0!important;width:100%!important;max-width:100%!important;height:0!important;min-height:0!important;margin:0!important;padding-left:max(.75rem,env(safe-area-inset-left))!important;padding-right:max(.75rem,env(safe-area-inset-right))!important;}
.site-header>.site-header__inner,.site-header__inner{height:0!important;min-height:0!important;}
.imac-accordion-wrap{width:min(100% - 32px,900px);margin-inline:auto;padding-block:48px;}
.imac-accordion-heading{margin:0 0 24px;text-align:center;font-family:var(--imac-font)!important;font-size:clamp(24px,3vw,34px);font-weight:700;color:#242138;}
.imac-accordion-list{display:grid;gap:12px;}
.imac-accordion-item{background:#fff;border:1px solid #E9EAF2;border-radius:18px;box-shadow:0 8px 28px rgba(36,33,56,.06);overflow:hidden;transition:box-shadow .2s ease,border-color .2s ease;}
.imac-accordion-item:hover{box-shadow:0 12px 34px rgba(36,33,56,.09);}
.imac-accordion-question{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;font-family:var(--imac-font)!important;font-size:15px;font-weight:700;color:#242138;}
.imac-accordion-question::-webkit-details-marker{display:none;}
.imac-accordion-icon{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#F4F1FF;color:#6C5CE7;font-size:21px;font-weight:400;line-height:1;transition:transform .2s ease;}
.imac-accordion-item[open] .imac-accordion-icon{transform:rotate(45deg);}
.imac-accordion-answer{padding:0 22px 22px;color:#7A7391;font-size:14px;line-height:2;font-family:var(--imac-font)!important;}
.imac-accordion-answer p:first-child{margin-top:0}.imac-accordion-answer p:last-child{margin-bottom:0}
.imac-description-accordion{width:100%;}
@media (max-width:767px){.imac-accordion-wrap{width:min(100% - 20px,900px);padding-block:32px}.imac-accordion-question{padding:16px;font-size:14px}.imac-accordion-answer{padding:0 16px 18px;font-size:13px}}
/* Prevent below-the-fold article cards from competing with the first viewport. */
.imac-articles-grid,.imac-post-grid,.articles-grid{content-visibility:auto;contain-intrinsic-size:700px;}
