/* Scoped styles for Poutall Homepage Blocks (Promo Banners, Packs, Guide, Trust) */
.pt-promo-grid,
.pt-packs-grid,
.pt-guide-grid,
.pt-trust-grid {
  width: 100%;
  direction: rtl;
  display: grid;
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
}

.pt-promo-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.pt-promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border-radius: 1.125rem;
  border: 1px solid #E7E0DC;
  text-decoration: none;
  color: #18181B;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pt-promo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(24, 24, 27, 0.14);
  border-color: #FBCFE8;
}

.pt-promo-badge,
.pt-pack-tag,
.pt-guide-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background: #FCE7F3;
  color: #9D174D;
  font-size: 0.78rem;
  font-weight: 700;
}

.pt-promo-title,
.pt-pack-title,
.pt-guide-title,
.pt-trust-title {
  margin: 0;
  font-family: var(--kalameh-font-family, 'kalameh', sans-serif);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.28rem);
  font-weight: 800;
  line-height: 1.4;
  color: #18181B;
}

.pt-promo-desc,
.pt-pack-desc,
.pt-guide-desc,
.pt-trust-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #52525B;
}

.pt-promo-cta,
.pt-pack-cta {
  margin-top: auto;
  padding-top: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #9D174D;
}

.pt-packs-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

.pt-pack-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border-radius: 1.125rem;
  background: #FFFFFF;
  border: 1px solid #E7E0DC;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pt-pack-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -12px rgba(24, 24, 27, 0.14);
  border-color: #FBCFE8;
}

.pt-pack-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #FAF6F4;
  margin-bottom: 0.25rem;
}

.pt-pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pt-guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
}

.pt-guide-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2vw, 1.4rem);
  border-radius: 1rem;
  background: #FAF6F4;
  border: 1px solid #E7E0DC;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pt-guide-card:hover {
  transform: translateY(-2px);
  border-color: #9D174D;
}

.pt-trust-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.pt-trust-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1rem, 1.8vw, 1.35rem);
  border-radius: 1rem;
  background: #FFFFFF;
  border: 1px solid #E7E0DC;
}

.pt-trust-title {
  font-size: clamp(0.95rem, 0.9rem + 0.25vw, 1.08rem);
}

.pt-promo-card:focus-visible,
.pt-pack-card:focus-visible,
.pt-guide-card:focus-visible {
  outline: 2px solid #9D174D;
  outline-offset: 2px;
}

/* Scoped Draft 6450 Responsive & UX Polish Fixes (never affects live 5892) */
html:has(body.page-id-6450),
body.page-id-6450 {
  overflow-x: clip !important;
}

body.page-id-6450 .banner,
body.page-id-6450 .banner * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-id-6450 .banner {
  overflow: hidden !important;
}

body.page-id-6450 .banner .content {
  width: 100% !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
  white-space: normal !important;
}

body.page-id-6450 .banner .content * {
  white-space: normal !important;
}

body.page-id-6450 footer .b_menu_footer:not(:has(a)) {
  display: none !important;
}

body.page-id-6450 .pt-cv-auto,
body.page-id-6450 .elementor-element:has(> .elementor-widget-loop-grid),
body.page-id-6450 .elementor-element:has(.elementor-loop-container),
body.page-id-6450 .elementor-element.elementor-widget-loop-grid,
body.page-id-6450 [data-id="185539e"],
body.page-id-6450 #beauty-packs,
body.page-id-6450 #brands,
body.page-id-6450 #special-offers {
  content-visibility: visible !important;
  contain: none !important;
  contain-intrinsic-size: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

html body.page-id-6450 .pt-sec-more,
html body.page-id-6450 .pt-link-more,
html body.page-id-6450 .elementor-6450 .elementor-loop-container .e-loop-add-to-cart-form a.button,
html body.page-id-6450 .elementor-6450 .elementor-loop-container .e-loop-add-to-cart-form button,
html body.page-id-6450 .elementor-6450 .elementor-loop-container .elementor-button,
html body.page-id-6450 .elementor-6450 .elementor-loop-container a.button,
html body.page-id-6450 .elementor-6450 .elementor-loop-container a.add_to_cart_button,
html body.page-id-6450 .elementor-6450 .elementor-loop-container a.product_type_variable,
html body.page-id-6450 .elementor-6450 .elementor-loop-container a.product_type_simple,
html body.page-id-6450 .elementor-6450 .elementor-loop-container .pt-card-cta,
html body.page-id-6450 .elementor-6450 .elementor-loop-container .pt-card-btn {
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.page-id-6450 #brands .elementor-widget-container > div,
body.page-id-6450 #brands .pt-brands-grid {
  align-items: stretch !important;
}

body.page-id-6450 #brands .product-category,
body.page-id-6450 #brands .brand-card,
body.page-id-6450 #brands .pt-brand-card,
body.page-id-6450 #brands a {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 78px !important;
}

body.page-id-6450 #brands a *,
body.page-id-6450 #brands .brand-card *,
body.page-id-6450 #brands .pt-brand-card *,
body.page-id-6450 #brands h2,
body.page-id-6450 #brands h3,
body.page-id-6450 #brands .woocommerce-loop-category__title,
body.page-id-6450 #brands .brand-name {
  unicode-bidi: plaintext;
  text-align: center;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word;
  max-width: 100% !important;
  line-height: 1.4;
}

body.page-id-6450 #brands .count,
body.page-id-6450 #brands mark.count {
  white-space: nowrap;
}

html body.page-id-6450 .elementor-6455 .elementor-element.elementor-element-df6a4dd {
  container-type: normal !important;
}

/* Desktop Special Offers scroll arrows & drag cursor */
html body.page-id-6450 #special-offers .elementor-widget-loop-grid {
  position: relative !important;
}

html body.page-id-6450 #special-offers .elementor-loop-container {
  cursor: grab;
  scroll-behavior: smooth;
}

html body.page-id-6450 #special-offers .elementor-loop-container.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

html body.page-id-6450 #special-offers .pt-so-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(24, 24, 27, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #18181B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

html body.page-id-6450 #special-offers .pt-so-nav:hover,
html body.page-id-6450 #special-offers .pt-so-nav:focus-visible {
  background: #9D174D;
  color: #FFFFFF;
  border-color: #9D174D;
  outline: 2px solid #FFFFFF;
  outline-offset: 2px;
}

html body.page-id-6450 #special-offers .pt-so-prev {
  right: 8px;
}

html body.page-id-6450 #special-offers .pt-so-next {
  left: 8px;
}

@media (max-width: 767px) {
  html body.page-id-6450 #special-offers .pt-so-nav {
    display: none;
  }
}

html body.page-id-6450 .pt-loop-sec > .e-con-inner,
html body.page-id-6450 [data-id="3e61b63"] > .e-con-inner,
html body.page-id-6450 [data-id="1b94dae"] > .e-con-inner,
html body.page-id-6450 [data-id="ab4bb80"] > .e-con-inner,
html body.page-id-6450 [data-id="185539e"] > .e-con-inner {
  display: block !important;
}

@media (max-width: 599px) {
  html body.page-id-6450 [data-elementor-id="6450"] .elementor-widget-loop-grid:not(#special-offers .elementor-widget-loop-grid) .elementor-loop-container.elementor-grid,
  body.page-id-6450 .elementor-loop-container {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  html body.page-id-6450 .elementor-6455 .elementor-element.elementor-element-df6a4dd {
    padding: 0.5625rem !important;
    gap: 0.4rem !important;
    border-radius: 0.875rem !important;
  }

  html body.page-id-6450 .elementor-6455 .elementor-element.elementor-element-df6a4dd .elementor-widget-woocommerce-product-title .product_title,
  html body.page-id-6450 .elementor-6455 .elementor-element.elementor-element-df6a4dd .elementor-widget-woocommerce-product-title h3,
  html body.page-id-6450 .elementor-6455 .elementor-element.elementor-element-df6a4dd .elementor-widget-woocommerce-product-title a {
    font-size: 0.78rem !important;
  }

  body.page-id-6450 #brands .elementor-grid,
  body.page-id-6450 #brands ul.products,
  body.page-id-6450 #brands .product-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
  }

  body.page-id-6450 #special-offers [class*="countdown"] > *,
  body.page-id-6450 #special-offers [class*="timer"] > * {
    padding-inline: 0.5rem;
    min-width: 2.5rem;
  }
}

/* Native <dialog> Variation Quick-Select Modal (Draft 6450) */
dialog.pt-var-dialog {
  width: min(26rem, calc(100vw - 2rem));
  max-width: 100%;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #E7E0DC;
  border-radius: 1.25rem;
  padding: 1.15rem;
  background: #FFFFFF;
  color: #18181B;
  direction: rtl;
  font-family: iransans, Tahoma, sans-serif;
  margin: auto;
  box-shadow: 0 24px 48px rgba(24, 24, 27, 0.22);
}
dialog.pt-var-dialog::backdrop {
  background: rgba(24, 24, 27, 0.55);
  backdrop-filter: blur(3px);
}
.pt-var-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.pt-var-thumb { width: 60px; height: 60px; border-radius: 0.75rem; object-fit: cover; background: #FAF6F4; flex-shrink: 0; }
.pt-var-meta { flex: 1 1 auto; min-width: 0; }
.pt-var-title { margin: 0 0 0.25rem; font-size: 0.92rem; font-weight: 700; line-height: 1.45; color: #18181B; }
.pt-var-price { font-size: 0.9rem; font-weight: 800; color: #9D174D; }
.pt-var-close { width: 44px; height: 44px; border-radius: 9999px; border: 1px solid #E7E0DC; background: #FAF6F4; color: #18181B; font-size: 1.25rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt-var-group { margin-bottom: 1rem; }
.pt-var-label { display: block; font-size: 0.82rem; font-weight: 700; color: #52525B; margin-bottom: 0.45rem; }
.pt-var-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pt-var-pill { min-height: 44px; min-width: 44px; padding: 0.4rem 0.85rem; border-radius: 9999px; border: 1px solid #E7E0DC; background: #FFFFFF; color: #18181B; font-size: 0.84rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pt-var-pill.is-selected { background: #9D174D; border-color: #9D174D; color: #FFFFFF; }
.pt-var-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.pt-var-add { width: 100%; min-height: 44px; border: 0; border-radius: 9999px; background: #18181B; color: #FFFFFF; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.pt-var-add:hover:not(:disabled) { background: #9D174D; }
.pt-var-add:disabled { opacity: 0.55; cursor: not-allowed; }
.pt-var-link { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9999px; border: 1px solid #E7E0DC; color: #18181B; font-size: 0.84rem; font-weight: 600; text-decoration: none; }

html body.page-id-6450 #special-offers .elementor-loop-container img,
html body.page-id-6450 #special-offers .elementor-loop-container a { -webkit-user-drag: none; user-select: none; }

/* Unified Section Header & Card Typography System (Draft 6450) */
html body.page-id-6450 .pt-loop-surface {
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.75rem) !important;
  border-radius: 1.25rem !important;
  border: 1px solid #EAE3DF !important;
}
html body.page-id-6450 .pt-sec-head-wrap { margin: 0 0 1.25rem !important; }
html body.page-id-6450 .pt-sec-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.85rem 1.25rem !important;
  flex-wrap: wrap !important;
  padding-bottom: 0.9rem !important;
  border-bottom: 1px solid rgba(24, 24, 27, 0.08) !important;
  margin-bottom: 1.25rem !important;
}
html body.page-id-6450 .pt-sec-head-wrap .pt-sec-head { margin-bottom: 0 !important; }
html body.page-id-6450 .pt-sec-eyebrow,
html body.page-id-6450 .pt-eyebrow,
html body.page-id-6450 .pt-sec-kicker {
  display: inline-flex !important;
  align-items: center !important;
  font-family: iransans, Tahoma, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #9D174D !important;
  background: #FCE7F3 !important;
  padding: 0.22rem 0.65rem !important;
  border-radius: 9999px !important;
  margin: 0 0 0.45rem !important;
  line-height: 1.4 !important;
}
html body.page-id-6450 .pt-sec-title {
  font-family: iransans, Tahoma, sans-serif !important;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.45rem) !important;
  font-weight: 800 !important;
  color: #18181B !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}
html body.page-id-6450 .pt-sec-sub,
html body.page-id-6450 .pt-sec-subtitle {
  font-family: iransans, Tahoma, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 400 !important;
  color: #71717A !important;
  line-height: 1.65 !important;
  margin: 0.3rem 0 0 !important;
}
html body.page-id-6450 .pt-sec-more,
html body.page-id-6450 .pt-link-more,
html body.page-id-6450 .pt-sec-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.4rem !important;
  min-height: 44px !important;
  padding: 0.5rem 1.15rem !important;
  border-radius: 9999px !important;
  background: #FFFFFF !important;
  border: 1px solid #E7E0DC !important;
  color: #18181B !important;
  font-family: iransans, Tahoma, sans-serif !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.04) !important;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease !important;
}
html body.page-id-6450 .pt-sec-more:hover,
html body.page-id-6450 .pt-link-more:hover,
html body.page-id-6450 .pt-sec-link:hover {
  border-color: #9D174D !important;
  color: #9D174D !important;
  background: #FCF6F8 !important;
}
html body.page-id-6450 .pt-guide-title,
html body.page-id-6450 .pt-trust-title,
html body.page-id-6450 .pt-pack-title,
html body.page-id-6450 .pt-guide-desc,
html body.page-id-6450 .pt-trust-desc,
html body.page-id-6450 .pt-pack-desc {
  font-family: iransans, Tahoma, sans-serif !important;
}

/* Special Offers Countdown RTL Order (Days Right -> Seconds Left) & Proportional Size */
html body.page-id-6450 #special-offers {
  grid-template-columns: clamp(220px, 21vw, 260px) minmax(0, 1fr) !important;
}
html body.page-id-6450 #special-offers .elementor-widget-countdown .elementor-countdown-wrapper {
  direction: rtl !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important; max-width: 100% !important;
  margin-inline: auto !important;
}
html body.page-id-6450 #special-offers .elementor-widget-countdown .elementor-countdown-item {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  padding: 8px 4px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
html body.page-id-6450 #special-offers .elementor-widget-countdown .elementor-countdown-digits {
  font-family: iransans, Tahoma, sans-serif !important;
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}
html body.page-id-6450 #special-offers .elementor-widget-countdown .elementor-countdown-label {
  font-family: iransans, Tahoma, sans-serif !important;
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  margin-top: 3px !important;
  line-height: 1.2 !important;
}
@media (max-width: 767px) {
  html body.page-id-6450 #special-offers {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  html body.page-id-6450 #special-offers .elementor-widget-countdown .elementor-countdown-wrapper {
    max-width: 290px !important;
  }
}

html body.page-id-6450 #special-offers .pt-sec-title { color: #FFFFFF !important; }

html body.page-id-6450 #special-offers .elementor-widget-countdown { padding-inline: 10px !important; box-sizing: border-box !important; }

/* Unify all 8 section header widths & bottom divider lines (Draft 6450) */
html body.page-id-6450 .elementor-widget-html:has(.pt-sec-head-wrap),
html body.page-id-6450 .elementor-widget-html:has(.pt-sec-head),
html body.page-id-6450 [data-id="8b2d866"] {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
}
html body.page-id-6450 .pt-cat-section > .e-con-inner {
  align-items: stretch !important;
}
html body.page-id-6450 .pt-cat-section .pt-sec-head-wrap {
  width: calc(100% - var(--pt-gutter, 32px)) !important;
  max-width: var(--pt-max, 1640px) !important;
  margin: 0 auto 1.25rem !important;
  align-self: center !important;
}
html body.page-id-6450 [data-id="8b2d866"] .pt-sec-head-wrap { max-width: 100% !important; padding-inline: 0 !important; }
html body.page-id-6450 .pt-sec-head-wrap,
html body.page-id-6450 .pt-sec-head {
  width: 100% !important;
}

/* v2.2.8 promo-card centering & #best-sellers inner padding (Draft 6450) */
html body.page-id-6450 .pt-promo-card {
  align-items: center !important;
  text-align: center !important;
  justify-content: center !important;
}
html body.page-id-6450 .pt-promo-card .pt-promo-title,
html body.page-id-6450 .pt-promo-card .pt-promo-desc,
html body.page-id-6450 .pt-promo-card .pt-promo-cta {
  font-family: iransans, Tahoma, sans-serif !important;
  text-align: center !important;
}
html body.page-id-6450 [data-elementor-id="6450"] > .e-con.pt-loop-surface,
html body.page-id-6450 #best-sellers.pt-loop-surface {
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.2vw, 2rem) !important;
  border-radius: 1.25rem !important;
  border: 1px solid #EAE3DF !important;
}
html body.page-id-6450 [data-elementor-id="6450"] > .e-con.pt-loop-surface > .e-con-inner,
html body.page-id-6450 #best-sellers > .e-con-inner {
  padding-inline: clamp(0.25rem, 0.5vw, 0.5rem) !important;
}
