/**
 * FAKHARALI (فخر علي) — Complete WooCommerce Theme Stylesheet
 * Premium E-Commerce Architecture, Pixel-Precise Master Reference Product Page & Mobile Experience
 */

/* ==========================================================================
   0. TYPOGRAPHY ENFORCEMENT (Alexandria 700 Headings, IBM Plex Sans Arabic 400/600/700)
   ========================================================================== */
.woocommerce,
.fakharali-sp-main-wrapper {
  font-family: var(--fk-font-body, 'IBM Plex Sans Arabic', sans-serif);
}

/* Headings & Product titles: Alexandria 700 */
.sp-product-title,
.sp-tab-heading,
.fakharali-cod-card h3,
.sp-category-badge {
  font-family: var(--fk-font-display, 'Alexandria', sans-serif) !important;
  font-weight: 700 !important;
}

/* Badges: Alexandria 700 */
.sp-badge-pill,
.sp-discount-pill,
.badge-discount,
.badge-featured {
  font-family: var(--fk-font-display, 'Alexandria', sans-serif) !important;
  font-weight: 700 !important;
}

/* Prices: IBM Plex Sans Arabic 700 */
.sp-main-price-display,
.price,
.price ins,
.price del,
.sp-current-price-wrap .price,
.cod-total-price {
  font-family: var(--fk-font-body, 'IBM Plex Sans Arabic', sans-serif) !important;
  font-weight: 700 !important;
}

/* Buttons: IBM Plex Sans Arabic 600 */
.btn-sp-cod-primary,
.btn-ms-cod,
.btn-cod-confirm,
.btn-sp-add-to-cart,
.single_add_to_cart_button,
.woocommerce button.button,
.woocommerce a.button,
.btn-cod-action,
.fakharali-tab-btn {
  font-family: var(--fk-font-body, 'IBM Plex Sans Arabic', sans-serif) !important;
  font-weight: 600 !important;
}

/* Body & Descriptions: IBM Plex Sans Arabic 400 */
.sp-short-desc,
.trust-subtitle,
.sp-stock-badge,
.fakharali-tab-pane,
.spec-value,
.fakharali-cod-form p,
.cod-summary-line,
.fakharali-review-item,
.comment-text {
  font-family: var(--fk-font-body, 'IBM Plex Sans Arabic', sans-serif) !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
}

/* French Storefront Typography Override */
html[lang="fr"] .sp-product-title,
html[lang="fr"] .sp-tab-heading,
html[lang="fr"] .fakharali-cod-card h3,
html[lang="fr"] .sp-category-badge,
html[lang="fr"] .btn-sp-cod-primary,
html[lang="fr"] .btn-ms-cod,
html[lang="fr"] .btn-cod-confirm,
html[lang="fr"] .single_add_to_cart_button,
html[lang="fr"] .price,
html[lang="fr"] .sp-short-desc,
[dir="ltr"] .sp-product-title,
[dir="ltr"] .price,
[dir="ltr"] .btn-sp-cod-primary {
  font-family: var(--fk-font-display, 'Inter', sans-serif) !important;
}

/* ==========================================================================
   1. GLOBAL WOOCOMMERCE RESETS & OVERRIDES (KILL DEFAULT PURPLE #a46497)
   ========================================================================== */

/* Eliminate WooCommerce Default Purple Buttons Everywhere */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background-color: var(--fk-navy) !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  border-radius: var(--fk-radius-md) !important;
  border: none !important;
  padding: 12px 24px !important;
  transition: all 0.25s ease !important;
  box-shadow: var(--fk-shadow-sm) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.4 !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background-color: var(--fk-blue-deep) !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--fk-shadow-md) !important;
}

/* Remove WooCommerce Default Floats */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

/* Clearfixes */
.woocommerce div.product::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

/* ==========================================================================
   2. BREADCRUMBS & SINGLE PRODUCT CLEANUP
   ========================================================================== */
.single-product .fakharali-breadcrumbs,
.single-product .woocommerce-breadcrumb,
.single-product .sp-category-badge {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
  position: absolute !important;
  pointer-events: none !important;
}

.fakharali-breadcrumbs {
  font-size: 13px;
  color: var(--fk-text-muted);
  padding: 18px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fakharali-breadcrumbs a {
  color: var(--fk-text-muted);
  transition: color 0.2s;
  text-decoration: none;
}

.fakharali-breadcrumbs a:hover {
  color: var(--fk-blue-electric);
}

.fakharali-breadcrumbs .bc-sep {
  opacity: 0.4;
  font-size: 11px;
}

.fakharali-breadcrumbs .bc-item:last-child {
  color: var(--fk-navy);
  font-weight: 700;
}

/* ==========================================================================
   3. SINGLE PRODUCT PAGE MAIN CONTAINER (1440px Max Width on #F7F9FC)
   ========================================================================== */

/* Completely remove extra category navigation row on single product pages */
.single-product .fakharali-cat-nav,
.single-product .category-nav,
body.single-product .fakharali-cat-nav {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.fakharali-sp-main-wrapper {
  background-color: #F7F9FC;
  min-height: auto !important;
  padding-bottom: 0 !important;
}

.fakharali-sp-container {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
  padding-top: 24px;
  padding-bottom: 0 !important;
}

.fakharali-sp-article {
  margin-bottom: 0 !important;
}

/* Desktop Two Balanced White Cards (1440px max width centered on #F7F9FC) */
.fakharali-sp-desktop-layout {
  display: grid;
  grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
  gap: 24px;
  align-items: start;
  background: transparent;
  padding: 0;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.fakharali-sp-gallery-col,
.fakharali-sp-summary-col {
  float: none !important;
  clear: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   4. RIGHT COLUMN (RTL) — PRODUCT GALLERY WHITE CARD
   ========================================================================== */

.fakharali-sp-gallery-col {
  background: #FFFFFF;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: 24px;
  box-shadow: var(--fk-shadow-sm);
  width: 100%;
  position: relative;
}

.fakharali-gallery-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Floating Discount Badges in Top Corner */
.sp-gallery-badges {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-badge-pill {
  padding: 6px 14px;
  border-radius: var(--fk-radius-sm);
  font-size: 12px;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: var(--fk-shadow-sm);
  letter-spacing: 0.3px;
}

.badge-discount {
  background: var(--fk-orange);
}

.badge-featured {
  background: var(--fk-navy);
}

/* Wishlist Heart Icon Button in Top Opposite Corner */
.sp-wishlist-btn {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 40px;
  height: 40px;
  border-radius: var(--fk-radius-full);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--fk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fk-text-muted);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  box-shadow: var(--fk-shadow-sm);
}

.sp-wishlist-btn:hover,
.sp-wishlist-btn.active {
  color: #EF4444;
  background: #FFFFFF;
  border-color: #FCA5A5;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.sp-wishlist-btn.active svg {
  fill: #EF4444;
}

/* Main Image Viewport (Square 1:1, Clean Contain, Centered) */
.sp-main-image-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--fk-surface-subtle);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-main-image-viewport img.sp-active-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.sp-main-image-viewport:hover img.sp-active-image {
  transform: scale(1.03);
}

/* Gallery Navigation Arrows (Previous / Next) */
.sp-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fk-navy);
  cursor: pointer;
  z-index: 8;
  box-shadow: var(--fk-shadow-sm);
  transition: all 0.2s ease;
}

.sp-gallery-arrow:hover {
  background: var(--fk-navy);
  color: #FFFFFF;
  border-color: var(--fk-navy);
  box-shadow: var(--fk-shadow-md);
}

.sp-gallery-prev {
  inset-inline-start: 14px;
}

.sp-gallery-next {
  inset-inline-end: 14px;
}

/* Fullscreen Lightbox Trigger Button */
.sp-lightbox-trigger {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fk-navy);
  box-shadow: var(--fk-shadow-sm);
  cursor: pointer;
  z-index: 8;
  transition: all 0.2s;
}

.sp-lightbox-trigger:hover {
  background: var(--fk-navy);
  color: #FFFFFF;
  border-color: var(--fk-navy);
}

.sp-no-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--fk-text-muted);
  font-size: 14px;
}

/* 4-Thumbnails Row on Desktop with ORANGE Active Border */
.sp-thumbnails-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 2px;
}

.sp-thumb-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--fk-radius-md);
  border: 2px solid var(--fk-border);
  background: var(--fk-surface-subtle);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
}

.sp-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.sp-thumb-item:hover img,
.sp-thumb-item.active img {
  opacity: 1;
}

/* Orange Border (#FF7900) on Active/Hover Thumbnail */
.sp-thumb-item:hover,
.sp-thumb-item.active {
  border-color: var(--fk-orange) !important;
  box-shadow: 0 0 0 2px rgba(255, 121, 0, 0.25) !important;
}

/* ==========================================================================
   5. LEFT COLUMN (RTL) — PRODUCT INFORMATION & PURCHASE PANEL WHITE CARD
   ========================================================================== */

.fakharali-sp-summary-col {
  background: #FFFFFF;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: 24px;
  box-shadow: var(--fk-shadow-sm);
  width: 100%;
  display: flex;
  flex-direction: column;
}

.sp-category-badge {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--fk-blue-electric);
  margin-bottom: 6px;
}

.sp-category-badge a {
  color: var(--fk-blue-electric);
  text-decoration: none;
}

.sp-product-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--fk-navy);
  line-height: 1.3;
  margin: 0 0 6px 0;
  text-align: start;
}

/* 2. Reduced Spacing Pricing Block Placed Directly Below Title */
.sp-pricing-block {
  margin-top: 0;
  margin-bottom: 6px;
  padding: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.sp-prices-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-pricing-block .current-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--fk-orange);
  line-height: 1;
}

.sp-pricing-block .original-amount {
  font-size: 16px;
  font-weight: 500;
  color: #94A3B8;
  text-decoration: line-through;
  line-height: 1;
}

.sp-discount-pill-wrap {
  display: inline-flex;
  align-items: center;
}

.sp-discount-pill {
  display: inline-block;
  background: rgba(255, 121, 0, 0.12);
  color: var(--fk-orange);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--fk-radius-sm);
}

/* 3. Product Availability Directly Below Price (Compact Green Text) */
.sp-stock-status-box {
  margin-top: 0;
  margin-bottom: 14px;
}

.sp-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.sp-stock-badge .stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sp-stock-badge.in-stock {
  color: var(--fk-green-trust, #10B981);
}
.sp-stock-badge.in-stock .stock-dot {
  background: var(--fk-green-trust, #10B981);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.sp-stock-badge.low-stock {
  color: #B45309;
}
.sp-stock-badge.low-stock .stock-dot {
  background: var(--fk-warning);
}

.sp-stock-badge.out-of-stock {
  color: var(--fk-danger);
}
.sp-stock-badge.out-of-stock .stock-dot {
  background: var(--fk-danger);
}

/* 4. Genuine Rating Row (Zero fake stars) */
.sp-rating-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 10px;
}

.sp-rating-wrapper .star-rating {
  color: var(--fk-orange);
  font-size: 14px;
}

.sp-review-count {
  font-size: 12px;
  color: var(--fk-text-muted);
  font-weight: 600;
}
  color: var(--fk-text-subtle);
  text-decoration: line-through;
}

.sp-current-price-wrap .price {
  font-size: 30px;
  font-weight: 800;
  color: var(--fk-orange);
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.sp-current-price-wrap .price del {
  font-size: 18px;
  color: var(--fk-text-subtle);
  font-weight: 500;
}

.sp-current-price-wrap .price ins {
  text-decoration: none;
  color: var(--fk-orange);
}

.sp-discount-pill-wrap {
  margin-inline-start: auto;
}

.sp-discount-pill {
  background: var(--fk-orange);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--fk-radius-sm);
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(255, 121, 0, 0.28);
}

/* Short Description */
.sp-short-desc {
  font-size: 14.5px;
  color: var(--fk-text-muted);
  line-height: 1.75;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--fk-border);
}

/* 6.1 MASANTE-Inspired Benefits Checkmarks */
.sp-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--fk-radius-md);
  padding: 14px 16px;
}

.sp-benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fk-navy);
  line-height: 1.4;
}

.sp-benefit-item svg {
  flex-shrink: 0;
}

/* 6.2 MASANTE-Inspired Tiered Bundle Offers Selector */
.sp-bundles-selector-wrap {
  margin-top: 0 !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
}

.bundle-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bundle-section-title h4 {
  font-size: 14px;
  font-weight: 800;
  color: var(--fk-navy);
  margin: 0;
}

.bundle-tag-icon {
  color: var(--fk-orange);
  display: flex;
  align-items: center;
}

.bundles-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.bundles-cards-grid .bundle-card-option:last-child {
  margin-bottom: 0 !important;
}

.bundle-card-option {
  display: block;
  position: relative;
  border: 2px solid #CBD5E1;
  border-radius: var(--fk-radius-md);
  padding: 12px 14px;
  background: #FFFFFF;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bundle-card-option:hover {
  border-color: #94A3B8;
}

.bundle-card-option.active {
  border-color: var(--fk-orange) !important;
  background: #FFF9F2 !important;
  box-shadow: 0 4px 14px rgba(255, 121, 0, 0.12);
}

.bundle-radio-input {
  display: none !important;
}

.bundle-card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bundle-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  background: #FFFFFF;
}

.bundle-card-option.active .bundle-radio-circle {
  border-color: var(--fk-orange) !important;
}

.bundle-card-option.active .bundle-radio-circle::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fk-orange);
}

.bundle-card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.bundle-qty-label {
  font-size: 14px;
  font-weight: 800;
  color: var(--fk-navy);
}

.bundle-sub-desc {
  font-size: 12px;
  color: var(--fk-text-muted);
}

.bundle-save-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #C2410C;
  background: #FFEDD5;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.bundle-save-pill.green-pill {
  color: #047857;
  background: #D1FAE5;
}

.bundle-popular-badge {
  position: absolute;
  top: -10px;
  inset-inline-end: 14px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: var(--fk-orange);
  color: #FFF;
  box-shadow: 0 2px 6px rgba(255, 121, 0, 0.25);
  letter-spacing: 0.3px;
}

.bundle-card-price {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bundle-total-amount {
  font-size: 16px;
  font-weight: 800;
  color: var(--fk-navy);
}

.bundle-card-option.active .bundle-total-amount {
  color: var(--fk-orange) !important;
}

.bundle-old-amount {
  font-size: 12px;
  color: #94A3B8;
  text-decoration: line-through;
}

/* 6.3 4-Step Order & Delivery Progress Tracker (Section 3: below delivery & payment benefits) */
.sp-order-flow-tracker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--fk-surface-subtle);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  padding: 10px 14px;
  margin-top: 12px;
  margin-bottom: 0;
  width: 100%;
  box-sizing: border-box;
}

.sp-flow-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--fk-navy);
}

.flow-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--fk-blue-electric);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-flow-step.step-green .flow-circle {
  background: var(--fk-green-trust);
}

.sp-flow-step.step-green {
  color: var(--fk-green-trust);
}

.flow-divider {
  flex: 1;
  height: 1px;
  background: var(--fk-border);
}

/* Form & Stepper & Action Buttons */
.single-product .sp-cart-section form.cart,
.woocommerce div.product form.cart {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.single-product .sp-cart-section form.cart:empty,
.single-product .sp-cart-section form.cart:not(:has(.variations)) {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

.sp-cart-section table.variations {
  width: 100%;
  margin-bottom: 14px;
  border-collapse: collapse;
}

.sp-cart-section table.variations td {
  padding: 8px 0;
  border: none;
}

.sp-cart-section table.variations td.label {
  font-size: 13px;
  font-weight: 700;
  color: var(--fk-navy);
  width: 90px;
}

.sp-cart-section table.variations select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--fk-radius-md);
  border: 1px solid var(--fk-border);
  background: var(--fk-surface-subtle);
  font-size: 14px;
  color: var(--fk-text-main);
  outline: none;
  transition: all 0.2s;
}

.sp-cart-section table.variations select:focus {
  border-color: var(--fk-blue-electric);
  box-shadow: 0 0 0 3px rgba(8, 102, 245, 0.12);
  background: #FFF;
}

/* Completely Remove Quantity Selector on Single Product Page */
.single-product .quantity,
.single-product .sp-cart-section .quantity,
.single-product form.cart .quantity,
.single-product .sp-quantity-stepper,
.sp-cart-section .quantity {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  pointer-events: none !important;
  position: absolute !important;
  opacity: 0 !important;
  overflow: hidden !important;
}

/* PRIMARY BUTTON: Orange (#FF7900) Full Width COD Button */
.sp-cart-section {
  display: flex !important;
  flex-direction: column !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  width: 100% !important;
}

.sp-cod-action-wrapper {
  width: 100% !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

.btn-sp-cod-primary {
  width: 100%;
  height: 56px;
  min-height: 54px;
  background: var(--fk-orange) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 20px !important;
  font-family: 'Cairo', 'Tajawal', var(--fk-font-heading, 'Alexandria'), sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(255, 121, 0, 0.35) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  padding: 0 20px !important;
}

.btn-sp-cod-primary:hover {
  background: var(--fk-orange-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 121, 0, 0.45) !important;
}

.btn-sp-cod-primary:active {
  transform: scale(0.99) !important;
}

.btn-sp-cod-primary svg {
  display: none !important;
}

/* Completely Remove Add to Cart Button from Single Product Page (Keep 1 Primary COD CTA) */
.sp-cart-section .single_add_to_cart_button,
.sp-cart-section button[name="add-to-cart"],
.sp-cart-section .woocommerce-variation-add-to-cart .single_add_to_cart_button,
.sp-cart-section .woocommerce-variation-add-to-cart .button {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Section 2: Delivery & Payment Trust Assurances (Single Horizontal Row) */
.sp-trust-assurances-card {
  margin-top: 12px;
  margin-bottom: 0;
  background: var(--fk-surface-subtle, #F4F7FB) !important;
  border: 1px solid var(--fk-border, #E5EAF2) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.trust-column {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 1 1 50% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.trust-column:not(:last-child) {
  border-inline-end: 1px solid var(--fk-border, #E5EAF2) !important;
  border-bottom: none !important;
  padding-inline-end: 10px !important;
}

.trust-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: #FFFFFF !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: var(--fk-navy) !important;
  box-shadow: 0 1px 3px rgba(16, 27, 53, 0.06) !important;
}

.trust-icon svg {
  width: 18px !important;
  height: 18px !important;
}

.trust-text {
  min-width: 0 !important;
  flex: 1 !important;
}

.trust-title,
.trust-label {
  font-family: 'Cairo', 'Tajawal', var(--fk-font-heading, 'Alexandria'), sans-serif !important;
  font-size: clamp(10.5px, 2.8vw, 12px) !important;
  font-weight: 700 !important;
  color: var(--fk-navy, #101B35) !important;
  line-height: 1.25 !important;
  display: block !important;
  white-space: nowrap !important;
}

.trust-subtitle {
  font-size: 11px;
  color: var(--fk-text-muted);
  line-height: 1.3;
  display: block;
  white-space: normal;
  word-break: break-word;
}

/* Direct WhatsApp Order Link (Immediately below 4-Step Tracker) */
.sp-whatsapp-action {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 0;
}

.btn-whatsapp-order {
  width: 100%;
  height: 48px;
  background: rgba(37, 211, 102, 0.12) !important;
  border: 1.5px solid var(--fk-whatsapp) !important;
  color: #065f46 !important;
  padding: 0 16px;
  border-radius: var(--fk-radius-md) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.btn-whatsapp-order:hover {
  background: var(--fk-whatsapp) !important;
  color: #000000 !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
}

.btn-whatsapp-order svg {
  flex-shrink: 0;
}

/* ==========================================================================
   6. PRODUCT INFORMATION NAVIGATION (WIDE WHITE ROUNDED CARD WITH 6 TABS)
   ========================================================================== */

.fakharali-sp-tabs-card {
  background: #FFFFFF;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: 36px;
  box-shadow: var(--fk-shadow-sm);
  margin-bottom: 0 !important;
}

.fakharali-sp-tabs-card + .fakharali-related-products-wrapper {
  margin-top: 36px;
}

.sp-tabs-nav-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 2px solid var(--fk-border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}

.sp-tabs-nav-bar::-webkit-scrollbar {
  display: none;
}

.sp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--fk-radius-full);
  border: 1px solid var(--fk-border);
  background: var(--fk-surface-subtle);
  color: var(--fk-text-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.sp-tab-btn:hover {
  background: #E2E8F0;
  color: var(--fk-navy);
}

/* Active Tab: Navy Background (#101B35) & Orange Accent */
.sp-tab-btn.active {
  background: var(--fk-navy) !important;
  color: #FFFFFF !important;
  border-color: var(--fk-navy) !important;
  box-shadow: 0 4px 14px rgba(16, 27, 53, 0.22);
}

.sp-tab-btn.active svg {
  stroke: var(--fk-orange);
}

.sp-tab-heading {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 20px;
}

/* Small Orange Vertical Accent Beside Heading */
.sp-heading-accent {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--fk-orange);
  border-radius: 2px;
  margin-inline-end: 12px;
}

.sp-prose-content {
  font-size: 15px;
  line-height: 1.85;
  color: var(--fk-text-main);
}

.sp-specs-table-wrap table,
.sp-specs-table {
  width: 100%;
  border-collapse: collapse;
}

.sp-specs-table-wrap th,
.sp-specs-table-wrap td,
.sp-specs-table th,
.sp-specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--fk-border);
  font-size: 14px;
  text-align: inherit;
}

.sp-specs-table-wrap th,
.sp-specs-table th {
  font-weight: 700;
  color: var(--fk-navy);
  width: 200px;
  background: var(--fk-surface-subtle);
}

.sp-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.sp-feature-item {
  display: flex;
  gap: 14px;
  background: var(--fk-surface-subtle);
  padding: 18px;
  border-radius: var(--fk-radius-md);
  border: 1px solid var(--fk-border);
}

.feature-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--fk-shadow-sm);
}

.feature-info h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 4px;
}

.feature-info p {
  font-size: 13px;
  color: var(--fk-text-muted);
  line-height: 1.6;
}

.sp-policy-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy-box {
  display: flex;
  gap: 14px;
  background: var(--fk-surface-subtle);
  padding: 20px;
  border-radius: var(--fk-radius-md);
  border: 1px solid var(--fk-border);
}

.policy-desc h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 6px;
}

.policy-desc p {
  font-size: 13.5px;
  color: var(--fk-text-muted);
  line-height: 1.65;
}

.sp-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  overflow: hidden;
  background: var(--fk-surface-subtle);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 800;
  color: var(--fk-navy);
  cursor: pointer;
  font-family: inherit;
  text-align: inherit;
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--fk-text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   7. REVIEWS DESIGN (AUTHENTIC RATINGS ONLY)
   ========================================================================== */

.fakharali-reviews-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.reviews-section-heading {
  font-size: 18px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 18px;
}

.fakharali-no-reviews-box {
  background: var(--fk-surface-subtle);
  border-radius: var(--fk-radius-md);
  padding: 32px;
  text-align: center;
  color: var(--fk-text-muted);
  border: 1px dashed var(--fk-border);
}

.fakharali-no-reviews-box p {
  font-weight: 700;
  color: var(--fk-navy);
  margin: 10px 0 4px;
}

.fakharali-commentlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fakharali-commentlist li {
  background: var(--fk-surface-subtle);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  padding: 18px;
}

.fakharali-review-form-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: 28px;
}

.fakharali-review-form-wrapper .comment-reply-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 16px;
}

.fakharali-review-form-wrapper form p.form-row {
  margin-bottom: 14px;
}

.fakharali-review-form-wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fk-navy);
  margin-bottom: 6px;
}

.fakharali-review-form-wrapper input,
.fakharali-review-form-wrapper textarea,
.fakharali-review-form-wrapper select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  background: var(--fk-surface-subtle);
  font-family: inherit;
  font-size: 14px;
  outline: none;
}

.fakharali-review-form-wrapper input:focus,
.fakharali-review-form-wrapper textarea:focus,
.fakharali-review-form-wrapper select:focus {
  border-color: var(--fk-blue-electric);
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(8, 102, 245, 0.12);
}

/* ==========================================================================
   8. RELATED PRODUCTS ("منتجات قد تعجبك" / 4 COLS DESKTOP, 2 MOBILE)
   ========================================================================== */

.fakharali-related-products-wrapper {
  margin-top: 36px;
  margin-bottom: 0;
}

.fakharali-related-products-wrapper:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

.fakharali-related-products-wrapper .related.products h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fakharali-related-products-wrapper .related.products h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--fk-orange);
  border-radius: 2px;
}

/* Catalog Product Grid Container */
ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

ul.products::before,
ul.products::after {
  content: none !important;
}

/* Single Product State: Center elegantly instead of being shoved to one side or stretched */
ul.products:has(> li.product:only-child),
ul.products.has-single-product,
.fakharali-loop-container.has-single-product ul.products {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

ul.products:has(> li.product:only-child) > li.product,
ul.products.has-single-product > li.product,
.fakharali-loop-container.has-single-product ul.products > li.product {
  max-width: 340px !important;
  width: 100% !important;
  margin-inline: auto !important;
}

/* Catalog Product Card */
li.product,
.fakharali-catalog-card {
  background: var(--fk-surface);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: 12px !important;
  margin: 0 !important;
  width: 100% !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative;
  transition: all 0.25s ease;
  box-shadow: var(--fk-shadow-sm);
  box-sizing: border-box !important;
  min-width: 0;
}

li.product:hover,
.fakharali-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fk-shadow-md);
  border-color: var(--fk-border-hover);
}

.card-inner-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Card Media / Image */
.card-media-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--fk-radius-md);
  background: var(--fk-surface-subtle);
  overflow: hidden;
  margin-bottom: 8px !important;
}

.card-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

li.product img,
.card-product-img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  border-radius: var(--fk-radius-md) !important;
  margin: 0 !important;
  background-color: var(--fk-surface-subtle);
  transition: transform 0.3s ease;
}

li.product:hover img,
.fakharali-catalog-card:hover .card-product-img {
  transform: scale(1.04);
}

/* Card Badges (Discount / Featured) — Pinned to Top-Right */
.card-badges-wrap,
.fakharali-badges-wrapper {
  position: absolute;
  top: 10px;
  right: 10px !important;
  left: auto !important;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-badge,
.fakharali-badge {
  padding: 3px 8px;
  border-radius: var(--fk-radius-sm);
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: var(--fk-shadow-sm);
}

.card-badge.badge-discount,
.fakharali-badge.badge-sale {
  background: #FF7900;
}

.card-badge.badge-featured,
.fakharali-badge.badge-featured {
  background: #101B35;
}

/* Card Wishlist Button — Pinned to Top-Left */
.card-wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px !important;
  right: auto !important;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--fk-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fk-text-muted);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--fk-shadow-sm);
}

.card-wishlist-btn:hover {
  color: #EF4444;
  border-color: #FCA5A5;
  background: #FFFFFF;
}

/* Card Body */
.card-body-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
}

li.product .woocommerce-loop-product__title {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #101B35 !important;
  line-height: 1.35 !important;
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
}

li.product .woocommerce-loop-product__title a {
  color: inherit;
  text-decoration: none;
}

li.product .woocommerce-loop-product__title a:hover {
  color: #FF7900;
}

/* Price Block with Moroccan Dirham Formatting (Directly below title) */
.card-price-wrap,
li.product .price {
  display: flex !important;
  align-items: baseline !important;
  gap: 8px !important;
  margin: 0 0 5px 0 !important;
  padding: 0 !important;
  flex-wrap: wrap !important;
}

.card-price-current,
li.product .price ins {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #FF7900 !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
}

.card-price-original,
li.product .price del {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #94A3B8 !important;
  text-decoration: line-through !important;
  line-height: 1.2 !important;
}

/* Stock Status Tag (Directly below price) */
.card-stock-wrap,
.product-stock-tag {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  margin: 0 0 10px 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.card-stock-tag.in-stock,
.product-stock-tag.in-stock {
  color: #10B981 !important;
}

.card-stock-tag.out-of-stock,
.product-stock-tag.out-of-stock {
  color: #EF4444 !important;
}

.stock-dot {
  width: 6.5px !important;
  height: 6.5px !important;
  border-radius: 50% !important;
  background: currentColor !important;
  flex-shrink: 0 !important;
}

/* Genuine Rating Row (Placed below stock if reviews exist) */
.card-rating-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px 0;
}

.card-rating-wrap .star-rating {
  font-size: 12px;
}

.card-rating-count {
  font-size: 11px;
  color: var(--fk-text-muted);
}

/* Card Actions (Single Full-Width COD Button, No Cart Button) */
.card-actions-wrap,
.fakharali-card-actions {
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 !important;
}

.btn-card-cod,
.btn-cod-action {
  width: 100% !important;
  flex: 1 1 100% !important;
  background: #FF7900 !important;
  color: #FFFFFF !important;
  border: none !important;
  height: 42px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(255, 121, 0, 0.28) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.btn-card-cod:hover,
.btn-cod-action:hover {
  background: #E56D00 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(255, 121, 0, 0.4) !important;
}

.btn-card-cart,
.btn-cart-action,
.btn-cart-icon {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================================================================
   9. MOBILE STICKY BOTTOM PURCHASE BAR
   ========================================================================== */

.fakharali-mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 998;
  background: #FFFFFF;
  border-top: 1px solid #E5EAF2;
  box-shadow: 0 -4px 20px rgba(16, 27, 53, 0.08);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
}

/* LTR Direction: keep CTA button on the LEFT and Price on the RIGHT */
[dir="ltr"] .fakharali-mobile-sticky-bar {
  flex-direction: row-reverse;
}

/* RIGHT (in RTL): Product Price Column (~32% width) */
.ms-price-col {
  flex: 0 0 32%;
  max-width: 34%;
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  overflow: hidden;
}

[dir="rtl"] .ms-price-col {
  align-items: flex-start;
  text-align: right;
}

[dir="ltr"] .ms-price-col {
  align-items: flex-end;
  text-align: left;
}

.ms-current-price-row {
  line-height: 1.15;
}

.ms-current-price {
  font-family: 'Cairo', 'Tajawal', var(--fk-font-heading, 'Alexandria'), sans-serif;
  font-size: clamp(16px, 4.4vw, 19px);
  font-weight: 800;
  color: #FF7900;
  white-space: nowrap;
}

.ms-current-price bdi,
.ms-current-price .woocommerce-Price-amount {
  color: #FF7900;
  font-weight: 800;
}

.ms-secondary-price-row {
  display: flex;
  align-items: center;
  line-height: 1.15;
}

.ms-regular-price {
  font-size: clamp(11px, 2.9vw, 12.5px);
  font-weight: 500;
  color: #8C9BB0;
  text-decoration: line-through;
  white-space: nowrap;
}

.ms-regular-price bdi,
.ms-regular-price .woocommerce-Price-amount {
  color: #8C9BB0;
}

/* LEFT (in RTL): Main Orange Gradient CTA Button (~66% width) */
.ms-btn-col {
  flex: 1 1 66%;
  max-width: 68%;
  min-width: 0;
}

.btn-ms-cod {
  width: 100%;
  height: 54px;
  min-height: 52px;
  max-height: 58px;
  background: linear-gradient(135deg, #FF8500 0%, #FF5A00 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 90, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  padding: 0 10px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.btn-ms-cod:hover {
  filter: brightness(1.04);
  color: #FFFFFF;
}

.btn-ms-cod:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.btn-ms-cod svg {
  display: none !important;
}

.ms-btn-text {
  font-family: 'Cairo', 'Tajawal', var(--fk-font-heading, 'Alexandria'), sans-serif;
  font-size: clamp(12px, 3.2vw, 14.5px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[lang="fr"] .ms-btn-text {
  font-size: clamp(11px, 2.9vw, 13.5px);
}

/* ==========================================================================
   10. RESPONSIVE ARCHITECTURE & BREAKPOINTS
   ========================================================================== */

/* Tablet (1024px and down) */
@media (max-width: 1024px) {
  .fakharali-sp-container {
    padding-inline: 16px !important;
  }
  .fakharali-sp-desktop-layout {
    gap: 20px !important;
  }
  .fakharali-sp-gallery-col,
  .fakharali-sp-summary-col {
    padding: 24px !important;
  }
  ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

/* Tablet Portrait & Mobile (<= 900px): Clean Single Column Layout */
@media (max-width: 900px) {
  .fakharali-sp-desktop-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 100% !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }
  .fakharali-sp-gallery-col,
  .fakharali-sp-summary-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 16px !important;
  }
}

/* Standard Mobile (<= 768px) */
@media (max-width: 768px) {
  .fakharali-sp-container {
    padding-inline: 12px !important;
  }
  .fakharali-sp-desktop-layout {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 100% !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }
  .fakharali-sp-gallery-col,
  .fakharali-sp-summary-col {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 14px !important;
    border-radius: var(--fk-radius-md) !important;
  }
  .sp-product-title {
    font-size: 21px !important;
    line-height: 1.35 !important;
    margin-bottom: 6px !important;
  }
  .sp-pricing-block {
    padding: 0 !important;
    margin-bottom: 6px !important;
    flex-direction: row !important;
    align-items: baseline !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .sp-prices-group {
    display: flex !important;
    align-items: baseline !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .sp-stock-status-box {
    margin-bottom: 12px !important;
  }
  .sp-price-current .current-amount {
    font-size: 24px !important;
  }
  .sp-price-regular .original-amount {
    font-size: 14px !important;
  }
  .sp-discount-pill-wrap {
    margin-inline-start: 0 !important;
    margin-top: 4px !important;
  }
  .sp-discount-pill {
    font-size: 11.5px !important;
    padding: 4px 10px !important;
  }
  .sp-bundles-selector-wrap {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding: 0 !important;
  }
  .sp-cart-section {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .single_add_to_cart_button,
  .btn-sp-cod-primary {
    width: 100% !important;
    height: 56px !important;
    border-radius: 20px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
  }
  .sp-order-flow-tracker {
    margin-top: 10px !important;
    padding: 8px 10px !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .sp-flow-step {
    gap: 4px !important;
    font-size: clamp(10px, 2.6vw, 11px) !important;
    white-space: nowrap !important;
  }
  .flow-circle {
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
  }
  .sp-whatsapp-action {
    margin-top: 10px !important;
  }
  .btn-whatsapp-order {
    width: 100% !important;
    height: 46px !important;
    font-size: 13.5px !important;
  }
  .sp-trust-assurances-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    padding: 10px 12px !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    background: var(--fk-surface-subtle, #F4F7FB) !important;
    border: 1px solid var(--fk-border, #E5EAF2) !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .trust-column {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex: 1 1 50% !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
  }
  .trust-column:not(:last-child) {
    border-inline-end: 1px solid var(--fk-border, #E5EAF2) !important;
    border-bottom: none !important;
    padding-inline-end: 8px !important;
    padding-bottom: 0 !important;
  }
  .trust-label {
    white-space: nowrap !important;
    font-size: clamp(10px, 2.8vw, 11.5px) !important;
  }
  .sp-thumbnails-strip {
    display: flex !important;
    overflow-x: auto !important;
    gap: 10px !important;
    padding-bottom: 6px !important;
    scrollbar-width: none !important;
  }
  .sp-thumb-item {
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
  }
  .fakharali-tabs-nav {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding-bottom: 6px !important;
  }
  .fakharali-tab-btn {
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    flex-shrink: 0 !important;
  }
  .fakharali-tab-pane {
    padding: 16px 14px !important;
  }
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .single-product .site-main,
  .single-product .fakharali-sp-main-wrapper,
  .single-product .fakharali-sp-container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .single-product .site-footer {
    margin-top: 0 !important;
    padding-bottom: calc(85px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .fakharali-mobile-sticky-bar {
    display: flex !important;
  }
}

/* Screen widths <= 375px & 360px Sticky Bar Micro-adjustments */
@media (max-width: 375px) {
  .fakharali-mobile-sticky-bar {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 6px !important;
  }
  .btn-ms-cod {
    height: 52px !important;
    min-height: 50px !important;
    border-radius: 16px !important;
    padding: 0 6px !important;
  }
  .ms-btn-text {
    font-size: 12px !important;
    line-height: 1.2 !important;
  }
  .ms-price-col {
    min-width: 78px !important;
  }
  .ms-current-price {
    font-size: 16px !important;
  }
  .ms-regular-price {
    font-size: 11px !important;
  }
  .sp-trust-assurances-card {
    padding: 8px 8px !important;
    gap: 6px !important;
  }
  .trust-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .trust-icon svg {
    width: 15px !important;
    height: 15px !important;
  }
  .trust-label {
    font-size: 10px !important;
  }
  .sp-flow-step {
    font-size: 9.5px !important;
    gap: 2px !important;
  }
}

/* Compact Mobile (<= 430px) Responsive Optimizations */
@media (max-width: 430px) {
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  li.product,
  .fakharali-catalog-card {
    padding: 8px !important;
  }
  li.product .woocommerce-loop-product__title {
    font-size: 12.5px !important;
    height: auto !important;
    min-height: unset !important;
    margin-bottom: 3px !important;
    line-height: 1.3 !important;
  }
  .card-price-wrap,
  li.product .price {
    gap: 4px !important;
    font-size: 13px !important;
    margin-bottom: 3px !important;
  }
  .card-price-current,
  li.product .price ins {
    font-size: 13.5px !important;
  }
  .card-price-original,
  li.product .price del {
    font-size: 10.5px !important;
  }
  .card-stock-wrap,
  .product-stock-tag {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }
  .btn-card-cod,
  .btn-cod-action {
    height: 36px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 0 6px !important;
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .btn-card-cod svg,
  .btn-cod-action svg {
    width: 12px !important;
    height: 12px !important;
  }
  .btn-card-cart,
  .btn-cart-action,
  .btn-cart-icon {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
  }
  .fakharali-sp-gallery-col,
  .fakharali-sp-summary-col {
    padding: 12px 10px !important;
  }
}

/* Ultra Narrow Mobile (<= 350px): Single Column Grid */
@media (max-width: 350px) {
  ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   11. CART, CHECKOUT, NOTICES & ACCOUNT RESPONSIVE ARCHITECTURE
   ========================================================================== */

/* Global WooCommerce Notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  border-radius: var(--fk-radius-md) !important;
  padding: 14px 20px !important;
  margin-bottom: 24px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  box-shadow: var(--fk-shadow-sm) !important;
}

.woocommerce-message {
  background-color: rgba(16, 185, 129, 0.1) !important;
  border-color: var(--fk-success) !important;
  color: #065F46 !important;
}

.woocommerce-error {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--fk-danger) !important;
  color: #991B1B !important;
}

.woocommerce-info {
  background-color: rgba(8, 102, 245, 0.1) !important;
  border-color: var(--fk-blue-electric) !important;
  color: #1E40AF !important;
}

/* Cart & Checkout Container */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
  max-width: 1200px;
  margin-inline: auto;
  padding: 24px 16px 80px;
}

/* Shop Table Card Style */
.woocommerce table.shop_table {
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  background: var(--fk-surface);
  box-shadow: var(--fk-shadow-sm);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-bottom: 30px;
}

.woocommerce table.shop_table th {
  background: var(--fk-surface-subtle);
  color: var(--fk-navy);
  font-family: var(--fk-font-display);
  font-weight: 700;
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--fk-border);
}

.woocommerce table.shop_table td {
  padding: 16px;
  border-bottom: 1px solid var(--fk-border);
  vertical-align: middle;
}

/* Mobile Responsive Cart Table (Transforms table into responsive cards) */
@media (max-width: 768px) {
  .woocommerce table.shop_table_responsive thead,
  .woocommerce-cart table.cart thead {
    display: none !important;
  }

  .woocommerce table.shop_table_responsive tr,
  .woocommerce-cart table.cart tr {
    display: block !important;
    background: var(--fk-surface);
    border: 1px solid var(--fk-border);
    border-radius: var(--fk-radius-md);
    margin-bottom: 16px;
    padding: 14px;
    box-shadow: var(--fk-shadow-sm);
  }

  .woocommerce table.shop_table_responsive td,
  .woocommerce-cart table.cart td {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 !important;
    border: none !important;
    border-bottom: 1px dashed var(--fk-border) !important;
    font-size: 13.5px;
    text-align: end;
  }

  .woocommerce table.shop_table_responsive td:last-child,
  .woocommerce-cart table.cart td:last-child {
    border-bottom: none !important;
  }

  .woocommerce table.shop_table_responsive td::before,
  .woocommerce-cart table.cart td::before {
    content: attr(data-title);
    font-weight: 700;
    color: var(--fk-navy);
    font-family: var(--fk-font-display);
    text-align: start;
    padding-inline-end: 12px;
  }

  .woocommerce-cart table.cart td.product-remove {
    justify-content: flex-end;
  }

  .woocommerce-cart table.cart td.product-thumbnail {
    display: none !important;
  }

  .woocommerce-cart table.cart td.actions {
    display: block !important;
    padding-top: 14px !important;
  }

  .woocommerce-cart table.cart td.actions .coupon {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
  }

  .woocommerce-cart table.cart td.actions .coupon input.input-text {
    width: 100% !important;
    height: 44px;
    border-radius: var(--fk-radius-sm);
    border: 1px solid var(--fk-border);
    padding: 8px 12px;
  }

  .woocommerce-cart table.cart td.actions .coupon button.button,
  .woocommerce-cart table.cart td.actions button.button {
    width: 100% !important;
    height: 44px;
    border-radius: var(--fk-radius-sm);
  }

  /* Cart Totals Box */
  .woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    background: var(--fk-surface);
    border: 1px solid var(--fk-border);
    border-radius: var(--fk-radius-lg);
    padding: 20px 16px;
    box-shadow: var(--fk-shadow-sm);
  }

  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100% !important;
    height: 50px;
    font-size: 16px;
    font-weight: 700;
    background: var(--fk-orange) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--fk-radius-md);
  }

  /* Checkout Layout on Mobile */
  .woocommerce-checkout #customer_details .col-1,
  .woocommerce-checkout #customer_details .col-2,
  .woocommerce-checkout .col2-set {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    width: 100% !important;
    float: none !important;
  }

  .woocommerce form .form-row {
    width: 100% !important;
    float: none !important;
    margin-inline: 0 !important;
    margin-bottom: 14px !important;
  }

  .woocommerce form .form-row input.input-text,
  .woocommerce form .form-row textarea,
  .woocommerce form .form-row select {
    width: 100% !important;
    height: 46px;
    padding: 10px 14px;
    border-radius: var(--fk-radius-md);
    border: 1px solid var(--fk-border);
    font-size: 14px;
    background-color: var(--fk-surface-subtle);
  }

  .woocommerce #place_order {
    width: 100% !important;
    height: 52px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    background: var(--fk-orange) !important;
    color: #FFF !important;
    border-radius: var(--fk-radius-md) !important;
    box-shadow: 0 4px 14px rgba(255, 121, 0, 0.4) !important;
  }
}

/* ==========================================================================
   14. ARCHIVE / SHOP / CATEGORY PAGES (4-Col Desktop, 3-Col Tablet, 2-Col Mobile)
   ========================================================================== */
.fakharali-archive-hero {
  padding-top: 16px;
  margin-bottom: 24px;
}

.archive-hero-card {
  background: linear-gradient(135deg, var(--fk-navy) 0%, #1E293B 100%);
  border-radius: var(--fk-radius-lg);
  padding: 32px 36px;
  color: #FFF;
  position: relative;
  overflow: hidden;
  box-shadow: var(--fk-shadow-sm);
}

.archive-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 121, 0, 0.18);
  border: 1px solid rgba(255, 121, 0, 0.35);
  color: #FFB066;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.archive-title {
  font-size: 28px;
  font-weight: 800;
  color: #FFF;
  margin: 0 0 8px 0;
  font-family: var(--fk-font-display, 'Alexandria', sans-serif);
}

.archive-description {
  font-size: 14px;
  color: #CBD5E1;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

.archive-cat-nav {
  margin-bottom: 24px;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--fk-border);
}

.archive-count {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fk-text-muted);
}

.archive-sort .woocommerce-ordering {
  margin: 0;
}

.archive-sort select.orderby {
  background: #FFF;
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-md);
  padding: 8px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--fk-navy);
  outline: none;
  cursor: pointer;
  transition: all 0.2s;
}

.archive-sort select.orderby:focus {
  border-color: var(--fk-blue-electric);
  box-shadow: 0 0 0 3px rgba(8, 102, 245, 0.1);
}

.archive-pagination-wrap {
  margin-top: 36px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.archive-empty-state {
  background: var(--fk-surface);
  border: 1px solid var(--fk-border);
  border-radius: var(--fk-radius-lg);
  padding: 60px 24px;
  text-align: center;
  max-width: 500px;
  margin: 40px auto;
  box-shadow: var(--fk-shadow-sm);
}

.archive-empty-state .empty-icon-wrap {
  margin-bottom: 16px;
}

.archive-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--fk-navy);
  margin-bottom: 8px;
}

.archive-empty-state p {
  font-size: 13px;
  color: var(--fk-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .archive-hero-card {
    padding: 22px 18px;
  }
  .archive-title {
    font-size: 22px;
  }
  .archive-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .archive-sort select.orderby {
    width: 100%;
  }
}

/* ==========================================================================
   15. FAKHARALI MASTER COD DIRECT ORDER MODAL POPUP
   ========================================================================== */
body.fk-modal-open {
  overflow: hidden !important;
  touch-action: none;
}

.fk-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.fk-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.fk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 53, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fk-modal-dialog {
  position: relative;
  background: #FFFFFF;
  border-radius: 18px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  box-shadow: 0 25px 60px -15px rgba(16, 27, 53, 0.35);
  box-sizing: border-box;
  z-index: 2;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  color: #101B35;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F8FAFC;
}

.fk-modal-dialog::-webkit-scrollbar {
  width: 6px;
}
.fk-modal-dialog::-webkit-scrollbar-track {
  background: #F8FAFC;
  border-radius: 8px;
}
.fk-modal-dialog::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 8px;
}

.fk-modal-dialog.active {
  transform: scale(1) translateY(0);
}

.fk-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--fk-border, #E2E8F0);
}

.fk-modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fk-modal-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 121, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fk-modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #101B35;
  margin: 0;
  font-family: var(--fk-font-display, 'Alexandria', sans-serif);
}

.fk-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  transition: all 0.2s ease;
}

.fk-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(90deg);
}

/* Modal Product Overview Card */
.fk-modal-product-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--fk-surface-subtle, #F8FAFC);
  border: 1px solid var(--fk-border, #E2E8F0);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}

.fk-prod-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fk-modal-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fk-thumb-fallback {
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fk-prod-details {
  flex: 1;
  min-width: 0;
}

.fk-prod-title {
  font-size: 14px;
  font-weight: 700;
  color: #101B35;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fk-prod-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fk-unit-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--fk-orange, #FF7900);
}

.fk-shipping-free-tag {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Form Groups & Inputs */
.fk-form-group {
  margin-bottom: 14px;
}

.fk-form-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #101B35;
  margin-bottom: 6px;
}

.fk-required-star {
  color: #EF4444;
}

.fk-label-hint {
  font-size: 11px;
  font-weight: normal;
  color: #64748B;
  margin-inline-start: 4px;
}

.fk-form-control {
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 14px;
  color: #101B35;
  box-sizing: border-box;
  outline: none;
  transition: all 0.2s ease;
}

.fk-form-control:focus {
  border-color: var(--fk-blue-electric, #0866F5);
  box-shadow: 0 0 0 3px rgba(8, 102, 245, 0.12);
}

.fk-textarea-control {
  height: auto;
  min-height: 64px;
  resize: vertical;
}

.fk-select-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-inline-end: 36px;
}

[dir="rtl"] .fk-select-control {
  background-position: left 12px center;
}

[dir="ltr"] .fk-select-control {
  background-position: right 12px center;
}

/* Phone input with Morocco flag */
.fk-phone-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fk-phone-flag {
  position: absolute;
  inset-inline-start: 12px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  pointer-events: none;
  z-index: 1;
}

.fk-phone-input {
  padding-inline-start: 80px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Quantity Stepper inside Modal */
.fk-qty-group {
  background: var(--fk-surface-subtle, #F8FAFC);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fk-qty-pill-count {
  font-size: 12px;
  font-weight: 800;
  background: var(--fk-orange, #FF7900);
  color: #FFF;
  padding: 1px 8px;
  border-radius: 999px;
  margin-inline-start: 6px;
}

.fk-modal-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  background: #FFF;
  overflow: hidden;
  height: 38px;
}

.fk-qty-btn {
  width: 38px;
  height: 100%;
  background: #F1F5F9;
  border: none;
  font-size: 18px;
  font-weight: 700;
  color: #101B35;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.fk-qty-btn:hover {
  background: #E2E8F0;
}

.fk-qty-input {
  width: 44px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: #101B35;
  background: #FFF;
  -moz-appearance: textfield;
}
.fk-qty-input::-webkit-inner-spin-button,
.fk-qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Modal Summary Box */
.fk-modal-summary-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-block: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fk-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #475569;
}

.fk-sum-label {
  font-weight: 600;
}

.fk-sum-value {
  font-weight: 700;
  color: #101B35;
}

.fk-free-shipping {
  color: #059669;
  font-weight: 800;
}

.fk-total-row {
  border-top: 1.5px dashed #CBD5E1;
  padding-top: 10px;
  margin-top: 4px;
  font-size: 15px;
}

.fk-total-row .fk-sum-label {
  font-weight: 800;
  color: #101B35;
}

.fk-total-display {
  font-size: 20px;
  font-weight: 900;
  color: var(--fk-orange, #FF7900);
}

/* Error Notice */
.fk-modal-error-notice {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Submit Button */
.fk-btn-modal-submit {
  width: 100%;
  height: 54px;
  background: var(--fk-orange, #FF7900);
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(255, 121, 0, 0.4);
  transition: all 0.22s ease;
  user-select: none;
}

.fk-btn-modal-submit:hover {
  background: var(--fk-orange-hover, #E56D00);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 121, 0, 0.5);
}

.fk-btn-modal-submit:active {
  transform: translateY(0);
}

.fk-btn-modal-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: fkSpin 0.7s linear infinite;
  display: inline-block;
}

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

.fk-modal-assurance {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  margin-top: 10px;
  text-align: center;
}

/* Success Confirmation State */
.fk-modal-success-state {
  text-align: center;
  padding: 10px 6px;
}

.fk-success-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

.fk-success-title {
  font-size: 20px;
  font-weight: 800;
  color: #101B35;
  margin-bottom: 8px;
}

.fk-success-msg {
  font-size: 13.5px;
  color: #64748B;
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto 20px auto;
}

.fk-order-receipt-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 22px;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
}

.receipt-label {
  font-weight: 600;
}

.receipt-value {
  font-weight: 700;
  color: #101B35;
}

.ref-badge {
  background: rgba(8, 102, 245, 0.1);
  color: #0866F5;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
}

.receipt-row.total-highlight {
  border-top: 1px dashed #CBD5E1;
  padding-top: 10px;
  font-size: 15px;
}

.receipt-row.total-highlight .total-val {
  color: #FF7900;
  font-size: 18px;
}

.badge-cod-green {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.fk-btn-return-shop {
  background: #101B35;
  color: #FFF;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.fk-btn-return-shop:hover {
  background: #1E293B;
  transform: translateY(-2px);
}

/* Mobile Bottom Sheet (Screen <= 600px) */
@media (max-width: 600px) {
  .fk-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .fk-modal-dialog {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: 92vh;
    padding: 22px 16px 28px 16px;
    transform: translateY(100%);
  }
  .fk-modal-dialog.active {
    transform: translateY(0);
  }
  .fk-modal-title {
    font-size: 15px;
  }
  .fk-btn-modal-submit {
    height: 50px;
    font-size: 15px;
  }
}

/* ==========================================================================
   SINGLE PRODUCT BENEFITS SECTION SPACING (32–40px Desktop, 28–32px Tablet, 24px Mobile)
   ========================================================================== */
.single-product .fakharali-trust-pillars,
body.single-product .fakharali-trust-pillars {
  margin-top: 36px !important;
  margin-bottom: 36px !important;
}

@media (max-width: 1024px) {
  .single-product .fakharali-trust-pillars,
  body.single-product .fakharali-trust-pillars {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
  }
}

@media (max-width: 768px) {
  .fakharali-sp-container {
    padding-inline: 14px;
    padding-top: 16px;
  }
  .fakharali-sp-tabs-card {
    padding: 20px 16px;
    margin-bottom: 0 !important;
  }
  .single-product .fakharali-trust-pillars,
  body.single-product .fakharali-trust-pillars {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    gap: 12px !important;
  }

  /* ==========================================================================
     MOBILE PRODUCT BENEFITS REDESIGN (ONE-COLUMN HORIZONTAL CARD LAYOUT)
     ========================================================================== */
  .sp-features-grid {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  .sp-feature-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border: 1px solid var(--fk-border, #E2E8F0) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(16, 27, 53, 0.04) !important;
    padding: 16px !important;
    min-height: 105px !important;
    gap: 16px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  }

  /* Right-Aligned Icon Container in RTL */
  .feature-icon-circle {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid var(--fk-border, #E5EAF2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(16, 27, 53, 0.05) !important;
  }

  .feature-icon-circle svg {
    width: 32px !important;
    height: 32px !important;
  }

  /* Left-Aligned Text with Subtle Vertical Separator */
  .feature-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border-inline-start: 1.5px solid var(--fk-border, #E5EAF2) !important;
    padding-inline-start: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: right !important;
  }

  [dir="ltr"] .feature-info {
    text-align: left !important;
  }

  .feature-info h4 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--fk-navy, #101B35) !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.2px !important;
  }

  .feature-info p {
    font-size: 15px !important;
    color: var(--fk-text-muted, #64748B) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
  }

  /* Delivery information card below benefits section */
  .policy-box,
  .sp-delivery-info-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #FFFFFF !important;
    border: 1px solid var(--fk-border, #E2E8F0) !important;
    border-radius: 20px !important;
    box-shadow: 0 2px 8px rgba(16, 27, 53, 0.04) !important;
    padding: 16px !important;
    min-height: 105px !important;
    gap: 16px !important;
    margin-top: 14px !important;
  }

  .policy-icon {
    width: 68px !important;
    height: 68px !important;
    min-width: 68px !important;
    min-height: 68px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 1px solid var(--fk-border, #E5EAF2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(16, 27, 53, 0.05) !important;
  }

  .policy-icon svg {
    width: 32px !important;
    height: 32px !important;
  }

  .policy-desc {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    border-inline-start: 1.5px solid var(--fk-border, #E5EAF2) !important;
    padding-inline-start: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: right !important;
  }

  [dir="ltr"] .policy-desc {
    text-align: left !important;
  }

  .policy-desc h4 {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--fk-navy, #101B35) !important;
    line-height: 1.3 !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: -0.2px !important;
  }

  .policy-desc p {
    font-size: 15px !important;
    color: var(--fk-text-muted, #64748B) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
  }

  /* Compact Tabs & Heading Spacing */
  .sp-tabs-nav-bar {
    gap: 8px !important;
    padding-bottom: 12px !important;
    margin-bottom: 16px !important;
  }

  .sp-tab-btn {
    padding: 10px 18px !important;
    font-size: 13.5px !important;
  }

  .sp-tab-heading {
    font-size: 19px !important;
    margin-bottom: 14px !important;
  }

  .sp-heading-accent {
    height: 18px !important;
    margin-inline-end: 8px !important;
  }
}

/* Micro-adjustments for Compact Mobile Screens (<= 390px) */
@media (max-width: 390px) {
  .feature-icon-circle,
  .policy-icon {
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
  }
  .feature-icon-circle svg,
  .policy-icon svg {
    width: 28px !important;
    height: 28px !important;
  }
  .sp-feature-item,
  .policy-box,
  .sp-delivery-info-card {
    padding: 14px !important;
    gap: 12px !important;
    min-height: 98px !important;
  }
  .feature-info,
  .policy-desc {
    padding-inline-start: 12px !important;
  }
  .feature-info h4,
  .policy-desc h4 {
    font-size: 17.5px !important;
  }
  .feature-info p,
  .policy-desc p {
    font-size: 14px !important;
  }
}
