/*
Theme Name: Steylux Clothing Theme
Theme URI: https://steylux.com
Author: Steylux Engineering Team
Author URI: https://steylux.com
Description: Ultra-fast, high-converting modern clothing e-commerce WordPress theme tailored for the Moroccan market. Features 1-click COD checkout, 448 Moroccan cities logistics integration, interactive size selectors with out-of-stock guards, collapsible size chart modals, sticky mobile buy bar, and Rule 3-compliant speed optimizations.
Version: 1.0.3
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary / Steylux
Text Domain: steylux
Tags: e-commerce, custom-colors, custom-menu, featured-images, rtl-language-support, right-to-left
*/

/* ==========================================================================
   1. Design Tokens & CSS Custom Properties
   ========================================================================== */
:root {
  /* Moroccan Brand Color Palette */
  --stx-red: #c1272d;
  --stx-red-dark: #991f24;
  --stx-red-light: #fef2f2;
  --stx-green: #006233;
  --stx-green-dark: #004d28;
  --stx-green-light: #ecfdf5;
  --stx-gold: #d4af37;
  --stx-gold-light: #fffbeb;
  
  /* Neutrals */
  --stx-dark: #111827;
  --stx-dark-surface: #191919;
  --stx-gray-900: #0f172a;
  --stx-gray-800: #1e293b;
  --stx-gray-700: #334155;
  --stx-gray-600: #475569;
  --stx-gray-500: #64748b;
  --stx-gray-400: #94a3b8;
  --stx-gray-300: #cbd5e1;
  --stx-gray-200: #e2e8f0;
  --stx-gray-100: #f1f5f9;
  --stx-gray-50: #f8fafc;
  --stx-white: #ffffff;
  
  /* Semantic Tokens */
  --stx-primary: var(--stx-red);
  --stx-primary-hover: var(--stx-red-dark);
  --stx-success: var(--stx-green);
  --stx-warning: var(--stx-gold);
  --stx-bg: var(--stx-gray-50);
  --stx-card-bg: #ffffff;
  --stx-text: var(--stx-gray-900);
  --stx-text-muted: var(--stx-gray-600);
  --stx-border: var(--stx-gray-200);
  
  /* Shadows */
  --stx-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --stx-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --stx-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --stx-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --stx-shadow-sticky: 0 -4px 20px rgba(0, 0, 0, 0.12);
  
  /* Radii */
  --stx-radius-sm: 6px;
  --stx-radius-md: 10px;
  --stx-radius-lg: 16px;
  --stx-radius-full: 9999px;
  
  /* Typography */
  --stx-font: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Layout */
  --stx-max-width: 1320px;
  --stx-container-padding: 1rem;
}

/* ==========================================================================
   2. Font Face Declaration
   ========================================================================== */
@font-face {
  font-family: 'Alexandria';
  src: url('assets/fonts/Alexandria.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

/* ==========================================================================
   3. Modern Reset & RTL Base
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  direction: rtl;
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--stx-font);
  background-color: var(--stx-bg);
  color: var(--stx-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.stx-container {
  width: 100%;
  max-width: var(--stx-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--stx-container-padding);
  padding-right: var(--stx-container-padding);
}

/* ==========================================================================
   4. Announcement Ticker Bar
   ========================================================================== */
.stx-announcement-bar {
  background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #111827 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  z-index: 999;
}

.stx-announcement-bar .flag-icon {
  font-size: 1.1rem;
}

.stx-announcement-badge {
  background: var(--stx-red);
  color: #fff;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--stx-radius-full);
  font-weight: 700;
}

/* ==========================================================================
   5. Site Header & Navbar
   ========================================================================== */
.stx-header {
  position: sticky;
  top: 0;
  z-index: 990;
  background-color: var(--stx-dark-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.stx-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 var(--stx-container-padding);
  max-width: var(--stx-max-width);
  margin: 0 auto;
}

.stx-nav-brand-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stx-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.stx-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: height 0.25s ease;
}

/* Balanced, Harmonious Logo Size on Product Pages (Down two points as requested) */
body.single-product .stx-logo-img,
.single-product .stx-logo-img {
  height: 24px !important;
  max-height: 26px !important;
  width: auto !important;
}

@media (max-width: 768px) {
  body.single-product .stx-logo-img,
  .single-product .stx-logo-img {
    height: 21px !important;
    max-height: 23px !important;
  }
}

.stx-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 900px) {
  .stx-nav-menu {
    display: none !important;
  }
}

.stx-nav-link {
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.stx-nav-link:hover, .stx-nav-link.active {
  color: #ffffff;
}

.stx-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--stx-red);
  border-radius: 2px;
}

.stx-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stx-btn-track-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--stx-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stx-btn-track-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.stx-btn-cta-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--stx-red);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--stx-radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(193, 39, 45, 0.3);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.stx-btn-cta-nav:hover {
  background: var(--stx-red-dark);
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.45);
  transform: translateY(-1px);
}

.stx-mobile-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.stx-mobile-hamburger:hover {
  background: rgba(255, 255, 255, 0.18);
}

.stx-hamburger-line {
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.2s ease;
}

@media (max-width: 900px) {
  .stx-mobile-hamburger {
    display: flex !important;
  }
  .stx-track-btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .stx-btn-cta-nav {
    display: none !important;
  }
}

.stx-btn-cart-nav {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: var(--stx-radius-full);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.stx-btn-cart-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.stx-cart-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--stx-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--stx-dark-surface);
}

/* ==========================================================================
   6. Hero & Flagship Product Layout
   ========================================================================== */
.stx-hero-section {
  padding: 1.5rem 0 2.5rem;
  background: var(--stx-gray-50);
}

/* Dedicated Product Card Container (Matching User Images 9 & 10) */
.stx-product-card-wrap,
.stx-hero-card {
  max-width: 1320px;
  width: 100%;
  margin: 16px auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.stx-hero-grid,
.stx-card-grid {
  display: grid;
  grid-template-columns: 510px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .stx-hero-grid,
  .stx-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
  }
  .stx-card-media-col,
  .stx-card-info-col,
  .stx-product-details,
  .stx-gallery-wrapper {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .stx-gallery-wrapper {
    flex-direction: column-reverse !important;
    align-items: center !important;
  }
  .stx-compact-hero-img-box,
  .stx-gallery-main.stx-compact-hero-img-box {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 1 / 1 !important;
  }
  .stx-gallery-side-thumbs {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    flex-direction: row !important;
  }
  .stx-thumbs-vertical-track {
    flex-direction: row !important;
    overflow-x: auto !important;
    max-height: none !important;
    width: 100% !important;
  }
  .stx-accordion-order-form,
  .stx-accordion-form-inner,
  #stx-cod-checkout-form {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .stx-input-wrapper {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .stx-input {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .stx-product-card-wrap,
  .stx-hero-card {
    padding: 14px 12px;
    margin: 10px auto 16px;
    border-radius: 12px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Compact 1:1 Square Hero Image Box */
.stx-compact-hero-img-box,
.stx-gallery-main.stx-compact-hero-img-box {
  width: 100%;
  max-width: 420px !important;
  max-height: 420px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f8fafc;
  position: relative;
  border: 1px solid #e5e7eb;
  box-shadow: none !important;
}

.stx-compact-hero-img-box img,
.stx-gallery-main.stx-compact-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #ffffff !important;
  display: block;
}

/* Compact Thumbnails Carousel with < and > Navigation */
.stx-compact-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  max-width: 420px;
}

.stx-thumbs-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  padding: 2px 0;
}

.stx-thumbs-track::-webkit-scrollbar {
  display: none;
}

.stx-thumbs-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  color: #374151;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
  user-select: none;
}

.stx-thumbs-arrow:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
}

.stx-thumb-btn {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f1f5f9;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.stx-thumb-btn:hover {
  border-color: #9ca3af;
}

.stx-thumb-btn.active {
  border-color: #111827;
  box-shadow: 0 0 0 1px #111827;
}

.stx-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   7. Product Gallery Component (800x800 WebP with Responsive Thumbs)
   ========================================================================== */
.stx-gallery-wrapper {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  position: sticky;
  top: 90px;
}

/* Side-Stacked Thumbnails (Frames 2, 3, 4) */
.stx-gallery-side-thumbs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 76px;
  flex-shrink: 0;
}

.stx-thumbs-vertical-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px;
}

.stx-thumbs-vertical-track::-webkit-scrollbar {
  display: none;
}

.stx-thumbs-arrow {
  width: 100%;
  height: 24px;
  background: var(--stx-gray-100);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-radius-sm);
  color: var(--stx-gray-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all 0.2s ease;
  padding: 0;
}

.stx-thumbs-arrow:hover {
  background: var(--stx-gray-200);
  color: var(--stx-red);
}

.stx-gallery-thumbs {
  display: flex;
  gap: 8px;
}

.stx-gallery-thumb-item {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: var(--stx-radius-md);
  overflow: hidden;
  border: 2px solid var(--stx-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.stx-gallery-thumb-item:hover {
  border-color: var(--stx-red);
  transform: translateY(-2px);
}

.stx-gallery-thumb-item.active {
  border-color: var(--stx-red);
  box-shadow: 0 0 0 2px rgba(193, 39, 45, 0.25);
}

.stx-gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Frame 1: 1:1 Square Main Product Image in Center */
.stx-compact-hero-img-box,
.stx-gallery-main.stx-compact-hero-img-box {
  width: 420px;
  height: 420px;
  max-width: 420px !important;
  max-height: 420px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #f8fafc;
  position: relative;
  border: 1px solid #e5e7eb;
  box-shadow: none !important;
  flex-shrink: 0;
}

.stx-compact-hero-img-box img,
.stx-gallery-main.stx-compact-hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: #ffffff !important;
  display: block;
}

.stx-gallery-counter {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--stx-radius-full);
  z-index: 2;
  letter-spacing: 0.5px;
}

.stx-gallery-badge-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--stx-red);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--stx-radius-full);
  box-shadow: var(--stx-shadow-sm);
  z-index: 2;
}

@media (max-width: 960px) {
  .stx-gallery-wrapper {
    position: static;
    flex-direction: column-reverse;
    align-items: center;
    gap: 12px;
  }
  .stx-gallery-main.stx-compact-hero-img-box {
    width: 100%;
    max-width: 100% !important;
    height: auto;
    aspect-ratio: 1 / 1 !important;
  }
  .stx-gallery-side-thumbs {
    flex-direction: row;
    width: 100%;
    justify-content: center;
    gap: 8px;
  }
  .stx-thumbs-vertical-track {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px;
  }
  .stx-thumbs-arrow {
    display: none;
  }
}

/* ==========================================================================
   8. Product Details & Badges
   ========================================================================== */
.stx-product-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.stx-category-tag {
  color: var(--stx-green);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stx-product-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--stx-gray-900);
}

@media (max-width: 600px) {
  .stx-product-title {
    font-size: 1.35rem;
  }
}

.stx-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.stx-stars {
  color: #f59e0b;
  display: flex;
  gap: 2px;
}

.stx-review-count {
  color: var(--stx-gray-500);
  font-size: 0.85rem;
}

.stx-price-banner {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 16px;
  background: var(--stx-gray-50);
  border-radius: var(--stx-radius-md);
  border: 1px solid var(--stx-border);
}

.stx-current-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--stx-red);
}

.stx-regular-price {
  font-size: 1.15rem;
  color: var(--stx-gray-400);
  text-decoration: line-through;
}

.stx-discount-chip {
  background: var(--stx-red-light);
  color: var(--stx-red);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--stx-radius-full);
}

.stx-stock-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  padding: 10px 14px;
  border-radius: var(--stx-radius-md);
  border: 1px solid #fecaca;
}

/* ==========================================================================
   9. Variant Selector Pills & Size Chart Modal Trigger
   ========================================================================== */
.stx-variant-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stx-variant-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stx-options-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stx-variant-label {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--stx-gray-900);
}

.stx-active-size-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  min-width: 28px;
  border-radius: 9999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.stx-size-chart-trigger {
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.stx-size-chart-trigger:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  transform: translateY(-1px);
}

.stx-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stx-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  min-width: 44px;
  height: 40px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

.stx-pill:hover:not(.disabled):not(.active) {
  border-color: #0f172a;
  background: #f8fafc;
  transform: translateY(-1px);
}

.stx-pill.active {
  border-color: #0f172a !important;
  background: #0f172a !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2) !important;
}

.stx-pill.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f1f5f9;
  border-color: #e2e8f0;
  text-decoration: line-through;
  color: #94a3b8;
}

@media (max-width: 600px) {
  .stx-pills-group {
    gap: 6px;
  }
  .stx-pill {
    padding: 6px 12px;
    min-width: 40px;
    height: 38px;
    font-size: 0.85rem;
  }
}

.stx-pill-badge {
  position: absolute;
  top: -8px;
  left: -6px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--stx-radius-full);
  white-space: nowrap;
}

.stx-pill-badge.out-of-stock {
  background: #ef4444;
  color: #fff;
}

.stx-pill-badge.extra-price {
  background: #f59e0b;
  color: #fff;
}

/* Hero Card Product Information & Action Buttons */
.stx-card-divider {
  border: 0;
  border-top: 1px solid #f3f4f6;
  margin: 18px 0;
}

.stx-info-heading {
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px;
}

.stx-desc-paragraph {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 14px;
}

.stx-package-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}

.stx-package-heading {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1f2937;
  display: block;
  margin-bottom: 6px;
}

.stx-package-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: #374151;
  line-height: 1.5;
}

.stx-scarcity-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  width: fit-content;
}

.stx-card-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

@keyframes stxShimmer {
  0% { transform: translateX(-150%); }
  100% { transform: translateX(250%); }
}

@keyframes stxPulseAttract {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 22px rgba(193, 39, 45, 0.45), 0 0 0 4px rgba(193, 39, 45, 0.15);
    transform: scale(1.02);
  }
}

.stx-btn-primary-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #111827;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: stxPulseAttract 3s infinite ease-in-out;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.2);
  text-align: center;
  box-sizing: border-box;
}

.stx-btn-primary-order::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-150%);
  animation: stxShimmer 3.2s infinite ease-in-out;
  pointer-events: none;
}

.stx-btn-primary-order:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.3);
  color: #ffffff;
}

.stx-cta-arrow {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.stx-btn-primary-order.is-expanded .stx-cta-arrow {
  transform: rotate(180deg);
}

.stx-btn-secondary-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  box-sizing: border-box;
}

.stx-btn-secondary-cart:hover {
  background: #e5e7eb;
  color: #111827;
}

/* ==========================================================================
   10. Frictionless 1-Click COD Checkout Form
   ========================================================================== */
.stx-order-form-card {
  max-width: 1120px;
  width: 100%;
  margin: 24px auto 36px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  box-sizing: border-box;
  direction: rtl;
}

@media (max-width: 768px) {
  .stx-order-form-card {
    padding: 18px 14px;
    margin: 16px auto 24px;
    border-radius: 12px;
  }
}

.stx-order-form-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.stx-order-form-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stx-gray-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stx-order-form-header p {
  font-size: 0.85rem;
  color: var(--stx-gray-600);
  margin-top: 4px;
}

.stx-form-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stx-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.stx-input-label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--stx-gray-800);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stx-input-label .required {
  color: var(--stx-red);
}

.stx-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--stx-gray-50);
  border: 1.5px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  transition: all 0.2s ease;
  overflow: hidden;
}

.stx-input-wrapper:focus-within {
  border-color: var(--stx-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.15);
}

.stx-input-icon {
  padding: 0 12px;
  color: var(--stx-gray-400);
  pointer-events: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stx-input {
  width: 100%;
  flex: 1;
  height: 44px;
  padding: 0 8px;
  border-radius: 0;
  border: none !important;
  background: transparent !important;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--stx-gray-900);
  box-shadow: none !important;
  direction: rtl;
}

.stx-input:focus {
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.stx-input.valid {
  border-color: var(--stx-green);
  background-color: #f0fdf4;
}

.stx-input.invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.stx-input-valid-icon {
  position: absolute;
  left: 14px;
  color: var(--stx-green);
  font-size: 1.2rem;
  display: none;
}

.stx-input.valid ~ .stx-input-valid-icon {
  display: flex;
}

/* 448 Cities Dropdown Search */
.stx-city-search-container {
  position: relative;
}

.stx-city-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  box-shadow: var(--stx-shadow-xl);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
  margin-top: 4px;
}

.stx-city-dropdown.show {
  display: block;
}

.stx-city-option {
  padding: 10px 14px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  border-bottom: 1px solid var(--stx-gray-100);
  transition: background 0.15s ease;
}

.stx-city-option:last-child {
  border-bottom: none;
}

.stx-city-option:hover, .stx-city-option.selected {
  background: var(--stx-gray-100);
  color: var(--stx-red);
}

.stx-city-sla-badge {
  font-size: 0.75rem;
  background: var(--stx-green-light);
  color: var(--stx-green);
  padding: 2px 8px;
  border-radius: var(--stx-radius-full);
  font-weight: 700;
}

/* Quantity Stepper */
.stx-quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stx-qty-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--stx-radius-md);
  background: var(--stx-gray-100);
  border: 1.5px solid var(--stx-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stx-gray-800);
  transition: all 0.2s ease;
}

.stx-qty-btn:hover {
  background: var(--stx-gray-200);
  border-color: var(--stx-gray-400);
}

.stx-qty-value {
  font-size: 1.25rem;
  font-weight: 800;
  min-width: 40px;
  text-align: center;
}

/* Order Summary Box (Hidden initially, smooth reveal upon user interaction) */
.stx-order-summary-box {
  background: var(--stx-gray-50);
  border-radius: var(--stx-radius-md);
  border: 1px solid transparent;
  padding: 0 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.35s ease, margin 0.35s ease, border-color 0.3s ease;
}

.stx-order-summary-box.is-revealed {
  max-height: 350px;
  opacity: 1;
  padding: 1rem;
  margin: 12px 0 16px;
  border-color: var(--stx-border);
  pointer-events: auto;
}

@media (scripting: none) {
  .stx-order-summary-box {
    max-height: none !important;
    opacity: 1 !important;
    padding: 1rem !important;
    margin: 12px 0 16px !important;
    border-color: var(--stx-border) !important;
    pointer-events: auto !important;
  }
}

/* Thank You Upsell Offers */
.stx-upsell-card {
  background: #fff;
  border: 1px solid var(--stx-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stx-upsell-card img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block;
}

.stx-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--stx-gray-700);
}

.stx-summary-row.total {
  border-top: 1px dashed var(--stx-border);
  padding-top: 8px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--stx-gray-900);
}

.stx-summary-row.total .price-val {
  color: var(--stx-red);
  font-size: 1.4rem;
}

.stx-free-shipping-tag {
  color: var(--stx-green);
  font-weight: 700;
}

/* Submit Button */
.stx-btn-submit-order {
  width: 100%;
  height: 54px;
  background: linear-gradient(135deg, var(--stx-red) 0%, var(--stx-red-dark) 100%);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--stx-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(193, 39, 45, 0.35);
  transition: all 0.25s ease;
  margin-top: 6px;
}

.stx-btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(193, 39, 45, 0.45);
}

.stx-btn-submit-order.is-ready {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.45);
  animation: stxBeaconPulse 2s infinite ease-in-out;
}

@keyframes stxBeaconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(5, 150, 105, 0);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0);
    transform: scale(1);
  }
}

.stx-btn-submit-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  animation: none;
}

@media (max-width: 600px) {
  .stx-order-form-card {
    padding: 1.1rem 0.85rem;
    border-radius: var(--stx-radius-md);
  }
  .stx-order-summary-box {
    padding: 0.75rem;
  }
  .stx-summary-row {
    font-size: 0.82rem;
  }
  .stx-summary-row.total {
    font-size: 1rem;
  }
  .stx-summary-row.total .price-val {
    font-size: 1.25rem;
  }
  .stx-btn-submit-order {
    height: 50px;
    font-size: 1rem;
    padding: 0 10px;
  }
}

.stx-guarantee-microtext {
  font-size: 0.8rem;
  color: var(--stx-gray-500);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

/* ==========================================================================
   11. Sticky Mobile Buy Bar
   ========================================================================== */
.stx-sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  padding: 10px 16px;
  box-shadow: var(--stx-shadow-sticky);
  border-top: 1px solid var(--stx-border);
  z-index: 980;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.stx-sticky-mobile-bar.hidden,
body:has(#stx-accordion-order-form.is-open) #stx-sticky-bar {
  transform: translateY(130%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.stx-sticky-info {
  display: flex;
  flex-direction: column;
}

.stx-sticky-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--stx-gray-800);
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stx-sticky-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--stx-red);
}

.stx-sticky-btn {
  flex: 1;
  max-width: 220px;
  height: 44px;
  background: var(--stx-red);
  color: #fff;
  border-radius: var(--stx-radius-md);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  animation: stxPulseAttract 2.8s infinite ease-in-out;
  box-shadow: 0 4px 10px rgba(193, 39, 45, 0.3);
}

.stx-sticky-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-150%);
  animation: stxShimmer 3.2s infinite ease-in-out;
  pointer-events: none;
}

@media (min-width: 769px) {
  .stx-sticky-mobile-bar {
    display: none !important;
  }
}

/* ==========================================================================
   12. Multi-Product Catalog Showcase Grid
   ========================================================================== */
.stx-catalog-section {
  padding: 3.5rem 0;
  background: var(--stx-bg);
}

.stx-section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.stx-section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--stx-gray-900);
  margin-bottom: 0.5rem;
}

.stx-section-subtitle {
  font-size: 1rem;
  color: var(--stx-gray-600);
}

.stx-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .stx-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .stx-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .stx-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

.stx-product-card {
  background: #ffffff;
  border-radius: var(--stx-radius-lg);
  border: 1px solid var(--stx-border);
  overflow: hidden;
  box-shadow: var(--stx-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.stx-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--stx-shadow-md);
  border-color: var(--stx-gray-300);
}

.stx-card-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  background: var(--stx-gray-100);
  overflow: hidden;
}

.stx-card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.stx-product-card:hover .stx-card-thumb-wrap img {
  transform: scale(1.04);
}

.stx-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--stx-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--stx-radius-full);
}

.stx-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 12px;
}

.stx-card-top-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stx-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--stx-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.9em;
  min-height: 2.9em;
}

.stx-card-stock-hint {
  font-size: 0.75rem;
  color: #b91c1c;
  font-weight: 700;
  margin-top: 4px;
  height: 18px;
  min-height: 18px;
  line-height: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stx-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.stx-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stx-red);
}

.stx-card-regular {
  font-size: 0.85rem;
  color: var(--stx-gray-400);
  text-decoration: line-through;
}

.stx-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.stx-btn-card-order {
  flex: 1;
  height: 40px;
  background: var(--stx-dark);
  color: #fff;
  border-radius: var(--stx-radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.stx-btn-card-order:hover {
  background: var(--stx-red);
  color: #ffffff;
}

.stx-btn-card-add-cart {
  flex: 1;
  height: 40px;
  background: #ffffff;
  color: var(--stx-gray-800);
  border: 1.5px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.stx-btn-card-add-cart:hover {
  border-color: var(--stx-red);
  color: var(--stx-red);
  background: #fef2f2;
}

.stx-btn-card-details {
  height: 40px;
  padding: 0 14px;
  border: 1.5px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--stx-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}

@media (max-width: 640px) {
  .stx-card-actions {
    flex-direction: column;
    gap: 8px;
  }
  .stx-btn-card-order,
  .stx-btn-card-add-cart,
  .stx-btn-card-details {
    width: 100%;
    flex: none;
    height: 40px;
    padding: 0 10px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
}

.stx-btn-card-details:hover {
  border-color: var(--stx-gray-400);
  background: var(--stx-gray-100);
  color: var(--stx-gray-900);
}

/* ==========================================================================
   13. Trust Badges & Guarantees
   ========================================================================== */
.stx-trust-section {
  padding: 3rem 0;
  background: #ffffff;
  border-top: 1px solid var(--stx-border);
  border-bottom: 1px solid var(--stx-border);
}

.stx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .stx-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stx-trust-grid {
    grid-template-columns: 1fr;
  }
}

.stx-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
}

.stx-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--stx-red-light);
  color: var(--stx-red);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}

.stx-trust-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--stx-gray-900);
}

.stx-trust-text p {
  font-size: 0.82rem;
  color: var(--stx-gray-500);
}

/* ==========================================================================
   14. Verified Customer Reviews
   ========================================================================== */
.stx-reviews-section {
  padding: 3.5rem 0;
  background: var(--stx-bg);
}

.stx-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .stx-reviews-grid {
    grid-template-columns: 1fr;
  }
}

.stx-review-card {
  background: #ffffff;
  border-radius: var(--stx-radius-lg);
  border: 1px solid var(--stx-border);
  padding: 1.5rem;
  box-shadow: var(--stx-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stx-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stx-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stx-review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--stx-gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--stx-gray-700);
}

.stx-review-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.stx-review-city {
  font-size: 0.8rem;
  color: var(--stx-gray-500);
}

.stx-review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--stx-green);
  font-size: 0.78rem;
  font-weight: 700;
}

.stx-review-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--stx-gray-700);
}

/* ==========================================================================
   15. Modals (Size Chart & Quick Buy)
   ========================================================================== */
.stx-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.stx-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.stx-modal-card {
  background: #ffffff;
  border-radius: var(--stx-radius-lg);
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--stx-shadow-xl);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.stx-modal-overlay.active .stx-modal-card {
  transform: scale(1);
}

.stx-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--stx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stx-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--stx-gray-900);
}

.stx-modal-close-btn {
  font-size: 1.5rem;
  color: var(--stx-gray-400);
  transition: color 0.2s ease;
  padding: 4px;
}

.stx-modal-close-btn:hover {
  color: var(--stx-gray-800);
}

.stx-modal-body {
  padding: 1.5rem;
}

/* Size Chart Table Styling */
.stx-size-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 0.9rem;
}

.stx-size-table th, .stx-size-table td {
  padding: 10px 14px;
  border: 1px solid var(--stx-border);
  text-align: center;
}

.stx-size-table th {
  background: var(--stx-gray-100);
  font-weight: 800;
  color: var(--stx-gray-800);
}

.stx-size-table tr:nth-child(even) {
  background: var(--stx-gray-50);
}

.stx-size-table tr:hover {
  background: var(--stx-gold-light);
}

/* ==========================================================================
   16. Thank You Page (Order Confirmation & CAPI)
   ========================================================================== */
.stx-thankyou-wrapper {
  max-width: 680px;
  margin: 1.25rem auto 2.5rem;
  padding: 0 1rem;
}

.stx-thankyou-card {
  background: #ffffff;
  border-radius: var(--stx-radius-lg);
  border: 1px solid var(--stx-border);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--stx-shadow-lg);
  text-align: center;
  direction: rtl;
}

.stx-thankyou-badge-icon {
  width: 48px;
  height: 48px;
  background: #ecfdf5;
  color: var(--stx-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.75rem;
  box-shadow: 0 0 0 4px #d1fae5;
}

.stx-thankyou-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--stx-gray-900);
  margin-bottom: 4px;
}

.stx-thankyou-subtitle {
  color: var(--stx-gray-600);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.stx-order-id-chip {
  display: inline-block;
  background: var(--stx-gray-100);
  color: var(--stx-dark);
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--stx-radius-full);
  margin: 0.5rem auto;
  font-size: 0.88rem;
}

/* Order SLA Timeline */
.stx-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.25rem 0;
  position: relative;
}

.stx-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 40px;
  left: 40px;
  height: 3px;
  background: var(--stx-border);
  z-index: 1;
}

.stx-timeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.stx-timeline-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--stx-border);
  color: var(--stx-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.stx-timeline-step.completed .stx-timeline-circle {
  background: var(--stx-green);
  border-color: var(--stx-green);
  color: #fff;
}

.stx-timeline-step.active .stx-timeline-circle {
  background: #fff;
  border-color: var(--stx-red);
  color: var(--stx-red);
  box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.2);
}

.stx-timeline-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stx-gray-700);
  text-align: center;
}

/* Order Details Table (Compacted & Refined) */
.stx-thankyou-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.82rem;
}

.stx-thankyou-table th, .stx-thankyou-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--stx-border);
  text-align: right;
  font-size: 0.82rem;
  vertical-align: middle;
}

.stx-thankyou-table th {
  background: var(--stx-gray-50);
  font-weight: 800;
  font-size: 0.8rem;
  color: #475569;
}

.stx-ty-item-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stx-ty-item-thumb {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--stx-border);
  background: #f8fafc;
  flex-shrink: 0;
}

/* WhatsApp CTA Button */
.stx-btn-whatsapp-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--stx-radius-md);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  margin-top: 1rem;
  transition: all 0.2s ease;
}

.stx-btn-whatsapp-order:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

/* Thank You Page Upsells Grid & Image Aspect Ratio Fix */
.stx-thankyou-upsells {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--stx-border);
  text-align: right;
}

.stx-upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stx-upsell-card {
  background: #ffffff;
  border: 1px solid var(--stx-border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stx-upsell-card img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block;
}

/* (Section 17 merged into Section 22 for unified RIGHT-anchored positioning) */

/* ==========================================================================
   18. Toast Notifications
   ========================================================================== */
.stx-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.stx-toast {
  background: var(--stx-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--stx-radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--stx-shadow-xl);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  direction: rtl;
}

.stx-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.stx-toast.success {
  border-right: 4px solid var(--stx-green);
}

.stx-toast.error {
  border-right: 4px solid var(--stx-red);
}

/* ==========================================================================
   19. Site Footer
   ========================================================================== */
.stx-footer {
  margin-top: auto;
  background: #000000 !important;
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.stx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) {
  .stx-footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stx-footer-brand p {
  color: #94a3b8;
  margin-top: 10px;
  line-height: 1.6;
  max-width: 380px;
}

.stx-footer-links h4 {
  color: #ffffff !important;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  letter-spacing: -0.01em;
}

.stx-footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stx-footer-links a,
.stx-footer-link-btn {
  color: #94a3b8;
  transition: all 0.2s ease;
  text-decoration: none;
}

.stx-footer-links a:hover,
.stx-footer-link-btn:hover {
  color: #ffffff !important;
  transform: translateX(-3px);
}

.stx-footer-bottom {
  background: #000000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #64748b;
  text-align: center;
}

@media (max-width: 600px) {
  .stx-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ==========================================================================
   20. Marquee Ticker Bar
   ========================================================================== */
.stx-marquee-bar {
  background: #0f172a;
  color: #f1f5f9;
  overflow: hidden;
  contain: paint;
  max-width: 100vw;
  width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
  height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 995;
  user-select: none;
}

.stx-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: stxMarqueeLoop 32s linear infinite;
  will-change: transform;
}

.stx-marquee-track:hover {
  animation-play-state: paused;
}

.stx-marquee-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-left: 16px;
}

.stx-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stx-marquee-sep {
  color: var(--stx-gold);
  font-weight: 800;
  opacity: 0.7;
}

.stx-countdown-chip {
  background: var(--stx-red);
  color: #fff;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

@keyframes stxMarqueeLoop {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ==========================================================================
   21. Mobile Navigation Drawer
   ========================================================================== */
.stx-drawer-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stx-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.stx-mobile-drawer {
  position: fixed;
  top: 0;
  right: 0 !important;
  left: auto !important;
  bottom: 0;
  width: 85%;
  max-width: 330px;
  background: #191919;
  z-index: 1001;
  transform: translateX(100%) !important;
  visibility: hidden;
  pointer-events: none;
  contain: paint;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.5);
}

.stx-mobile-drawer.active {
  transform: translateX(0) !important;
  visibility: visible;
  pointer-events: auto;
}

.stx-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stx-drawer-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stx-drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.stx-drawer-body {
  padding: 18px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.stx-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stx-drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  background: none;
  border: none;
  text-align: right;
  width: 100%;
  cursor: pointer;
}

.stx-drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.stx-drawer-footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stx-drawer-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: background 0.2s ease, transform 0.2s ease;
}

.stx-drawer-wa-btn:hover {
  background: #22bf5b;
  transform: translateY(-1px);
}

/* ==========================================================================
   22. Floating WhatsApp Support Button (RIGHT Positioned)
   ========================================================================== */
.stx-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: auto !important;
  z-index: 998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.stx-whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 26px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.stx-wa-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: stxWaPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
}

@keyframes stxWaPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}

.stx-wa-badge {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%);
  background: var(--stx-dark);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: none;
}

@media (min-width: 768px) {
  .stx-wa-badge {
    display: block;
  }
}

@media (max-width: 768px) {
  .stx-whatsapp-float {
    bottom: 76px;
    right: 16px;
    left: auto !important;
    width: 50px;
    height: 50px;
    z-index: 999;
  }
}

/* ==========================================================================
   23. Same-Day Shipping Countdown
   ========================================================================== */
.stx-shipping-countdown-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 10px 14px;
  border-radius: 10px;
  margin: 12px 0 16px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.5;
}

.stx-ship-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.stx-countdown-highlight {
  background: var(--stx-red);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 3px;
  display: inline-block;
}

/* ==========================================================================
   24. Dynamic Order Tracker Modal & Timeline
   ========================================================================== */
.stx-tracker-card {
  max-width: 580px;
  width: 95%;
}

.stx-tracker-input-wrap {
  display: flex;
  gap: 8px;
}

@media (max-width: 500px) {
  .stx-tracker-input-wrap {
    flex-direction: column;
  }
}

.stx-tracking-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
  text-align: right;
}

.stx-tracking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.stx-tracking-status-badge {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.stx-tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  padding-right: 22px;
  border-right: 2px solid #e2e8f0;
  margin: 16px 6px 16px 0;
}

.stx-tracking-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stx-stage-dot {
  position: absolute;
  right: -29px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #cbd5e1;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #cbd5e1;
}

.stx-tracking-stage.completed .stx-stage-dot {
  background: #16a34a;
  box-shadow: 0 0 0 2px #16a34a;
}

.stx-tracking-stage.current .stx-stage-dot {
  background: #0284c7;
  box-shadow: 0 0 0 2px #0284c7;
  animation: pulseBadge 1.5s infinite;
}

.stx-stage-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: #1e293b;
}

.stx-stage-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.stx-stage-time {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ==========================================================================
   25. Trust Badges & Guarantees Section
   ========================================================================== */
.stx-trust-section {
  background: #ffffff;
  padding: 2.5rem 0;
  border-top: 1px solid var(--stx-border);
  border-bottom: 1px solid var(--stx-border);
}

.stx-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .stx-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 500px) {
  .stx-trust-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.stx-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.stx-trust-icon-box {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stx-red);
  flex-shrink: 0;
}

.stx-trust-text h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.stx-trust-text p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   26. Social Media & Compliance Badges
   ========================================================================== */
.stx-social-icons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.stx-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.stx-social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #ffffff;
  border-color: transparent;
}

.stx-social-btn.facebook:hover {
  background: #1877f2;
  color: #ffffff;
  border-color: transparent;
}

.stx-social-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: transparent;
}

.stx-compliance-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stx-compliance-chip {
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stx-trigger-tracker-link {
  color: var(--stx-gold) !important;
  font-weight: 700;
  cursor: pointer;
}

.stx-trigger-tracker-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   27. Form Focus Glowing Rings & Micro-Interactions
   ========================================================================== */
.stx-input:focus {
  border-color: var(--stx-red) !important;
  background-color: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(193, 39, 45, 0.14) !important;
  outline: none !important;
}

.stx-input-wrapper:focus-within .stx-input-icon {
  color: var(--stx-red);
}

.stx-input.valid ~ .stx-input-valid-icon {
  display: block;
}


/* ==========================================================================
   28. Store Homepage Hero, Guarantees, Reviews & FAQ Styles
   ========================================================================== */
.stx-store-hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--stx-bg) 100%);
  border-bottom: 1px solid var(--stx-border);
  text-align: center;
}

.stx-store-hero-content {
  max-width: 820px;
  margin: 0 auto;
}

.stx-hero-kicker {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--stx-radius-full);
  background: #fef2f2;
  color: var(--stx-red);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 14px;
  border: 1px solid #fee2e2;
}

.stx-hero-main-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: var(--stx-gray-900);
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

@media (max-width: 768px) {
  .stx-hero-main-title {
    font-size: 1.65rem;
  }
}

.stx-hero-subtitle {
  font-size: 1.05rem;
  color: var(--stx-gray-600);
  line-height: 1.7;
  margin-bottom: 24px;
}

.stx-hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.stx-btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--stx-red);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--stx-radius-md);
  box-shadow: 0 4px 14px rgba(193, 39, 45, 0.35);
  transition: all 0.25s ease;
}

.stx-btn-hero-primary:hover {
  background: var(--stx-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(193, 39, 45, 0.45);
  color: #ffffff;
}

.stx-btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  color: var(--stx-gray-800);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 24px;
  border-radius: var(--stx-radius-md);
  border: 1.5px solid var(--stx-border);
  transition: all 0.2s ease;
}

.stx-btn-hero-secondary:hover {
  background: var(--stx-gray-100);
  border-color: var(--stx-gray-400);
}

.stx-hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--stx-border);
}

@media (max-width: 900px) {
  .stx-hero-highlights {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .stx-hero-highlights {
    grid-template-columns: 1fr;
  }
}

.stx-highlight-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--stx-gray-700);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--stx-border);
}

.stx-highlight-item svg {
  color: var(--stx-red);
  flex-shrink: 0;
}

/* Guarantees Section */
.stx-guarantees-section {
  padding: 3.5rem 0;
  background: #ffffff;
  border-top: 1px solid var(--stx-border);
  border-bottom: 1px solid var(--stx-border);
}

.stx-section-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--stx-radius-full);
  background: #f1f5f9;
  color: var(--stx-gray-700);
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stx-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .stx-guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .stx-guarantees-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.stx-guarantee-card {
  background: var(--stx-gray-50);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-radius-lg);
  padding: 24px 20px;
  text-align: right;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stx-guarantee-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--stx-shadow-md);
  border-color: var(--stx-gray-300);
}

.stx-guarantee-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--stx-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.stx-guarantee-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--stx-gray-900);
  margin-bottom: 8px;
}

.stx-guarantee-card p {
  font-size: 0.88rem;
  color: var(--stx-gray-600);
  line-height: 1.6;
}

/* Reviews Section */
.stx-reviews-section {
  padding: 3.5rem 0;
  background: var(--stx-bg);
}

.stx-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .stx-reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.stx-review-card {
  background: #ffffff;
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-radius-lg);
  padding: 22px;
  box-shadow: var(--stx-shadow-sm);
}

.stx-review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stx-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stx-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stx-review-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--stx-gray-900);
}

.stx-review-city {
  font-size: 0.78rem;
  color: var(--stx-gray-500);
}

.stx-review-verified {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--stx-green);
  background: var(--stx-green-light);
  padding: 3px 8px;
  border-radius: var(--stx-radius-full);
}

.stx-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.stx-review-body {
  font-size: 0.88rem;
  color: var(--stx-gray-700);
  line-height: 1.65;
}

/* FAQ Accordion Section */
.stx-faq-section {
  padding: 3.5rem 0 4rem;
  background: #ffffff;
  border-top: 1px solid var(--stx-border);
}

.stx-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stx-faq-item {
  background: var(--stx-gray-50);
  border: 1px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stx-faq-item[open] {
  border-color: var(--stx-gray-400);
  box-shadow: var(--stx-shadow-sm);
  background: #ffffff;
}

.stx-faq-question {
  padding: 16px 20px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--stx-gray-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}

.stx-faq-question::-webkit-details-marker {
  display: none;
}

.stx-faq-toggle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stx-gray-500);
  transition: transform 0.25s ease;
}

.stx-faq-item[open] .stx-faq-toggle {
  transform: rotate(45deg);
  color: var(--stx-red);
}

.stx-faq-answer {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--stx-gray-700);
  line-height: 1.7;
}

/* ==========================================================================
   29. Frame 7 Compact Accordion Order Form (On Single Product Page)
   ========================================================================== */
.stx-accordion-order-form {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.stx-accordion-order-form.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}

.stx-accordion-form-inner {
  min-height: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  background: #f8fafc;
  border: 0 solid var(--stx-border);
  border-radius: var(--stx-radius-lg);
  padding: 0 22px;
  transition: padding 0.35s ease, border-width 0.35s ease;
  box-shadow: none;
}

.stx-accordion-order-form.is-open .stx-accordion-form-inner {
  padding: 20px 22px;
  border-width: 1.5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
  .stx-accordion-form-inner {
    padding: 0 14px;
    max-width: 100%;
  }
  .stx-accordion-order-form.is-open .stx-accordion-form-inner {
    padding: 16px 14px;
  }
}

.stx-accordion-order-form .stx-order-form-header {
  margin-bottom: 16px;
  text-align: right;
  border-bottom: 1px solid var(--stx-border);
  padding-bottom: 12px;
}

.stx-accordion-order-form .stx-order-form-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--stx-gray-900);
  justify-content: flex-start;
}

.stx-accordion-order-form .stx-order-form-header p {
  font-size: 0.85rem;
  color: var(--stx-gray-600);
  margin-top: 4px;
}

/* Iverymap Compact Input Wrappers with Field Validation */
.stx-form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stx-input-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stx-input-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--stx-gray-800);
  display: flex;
  align-items: center;
  gap: 4px;
}

.stx-input-label .required {
  color: #dc2626;
}

.stx-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  transition: all 0.2s ease;
}

.stx-input-wrapper:focus-within {
  border-color: var(--stx-red);
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.15);
}

.stx-input-wrapper .stx-input-icon {
  padding: 0 12px;
  color: var(--stx-gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  flex-shrink: 0;
}

.stx-input-wrapper .stx-input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  height: 44px;
  padding: 0 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--stx-gray-900);
}

.stx-input-wrapper .stx-input:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Requirement 7: Delete all green checkmarks from inputs */
.field-check-badge,
.stx-input-valid-indicator {
  display: none !important;
}

@keyframes stxInputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.stx-input-wrapper.is-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14) !important;
  background: #f0fdf4 !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.stx-input-wrapper.is-valid .stx-input-icon {
  color: #10b981 !important;
}

.stx-input-wrapper.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16) !important;
  background: #fef2f2 !important;
  animation: stxInputShake 0.4s ease-in-out !important;
}

.stx-input-wrapper.is-invalid .stx-input-icon {
  color: #ef4444 !important;
}

/* Floating City Autocomplete Suggestions Dropdown */
.stx-city-suggestions-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1050;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
  padding: 4px 0;
  direction: rtl;
  text-align: right;
}

.stx-city-suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.85rem;
  color: #1e293b;
  transition: background-color 0.15s ease;
}

.stx-city-suggestion-item:last-child {
  border-bottom: none;
}

.stx-city-suggestion-item:hover,
.stx-city-suggestion-item.is-selected {
  background-color: #f1f5f9;
}

.stx-city-suggestion-item .stx-city-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
}

/* Smart Cart Drawer Order Summary Reveal */
.stx-cart-summary {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-bottom: 0;
  pointer-events: none;
}

.stx-cart-summary.is-revealed {
  display: block !important;
  max-height: 350px !important;
  opacity: 1 !important;
  margin-bottom: 14px !important;
  pointer-events: auto !important;
}

.field-error-msg {
  display: none;
  color: #dc2626;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  text-align: right;
  padding: 2px 4px;
}

.field-error-msg.is-visible {
  display: block !important;
  animation: fadeIn 0.2s ease;
}

.city-shipping-badge {
  display: none;
  margin-top: 6px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--stx-radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #166534;
  direction: rtl;
  text-align: right;
}

.city-shipping-badge.is-active {
  display: block !important;
  animation: fadeIn 0.25s ease;
}

@keyframes stxBeaconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn--order-submit {
  width: 100%;
  height: 52px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: var(--stx-dark);
  color: #ffffff;
  margin-top: 8px;
  transition: all 0.25s ease;
}

.btn--order-submit:hover {
  transform: translateY(-1px);
}

.btn--order-submit.is-ready {
  background: linear-gradient(135deg, #059669, #047857) !important;
  animation: stxBeaconPulse 1.8s ease-in-out infinite !important;
}

.stx-order-summary-box,
.stx-modal-summary-box {
  display: none !important;
  background: #ffffff;
  border: 1.5px dashed var(--stx-border);
  border-radius: var(--stx-radius-md);
  padding: 14px 16px;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.stx-order-summary-box.is-revealed,
.stx-modal-summary-box.is-revealed {
  display: block !important;
  opacity: 1 !important;
  max-height: 500px !important;
  animation: fadeIn 0.3s ease;
  border-color: #86efac;
  background: #f0fdf4;
}

/* Breadcrumbs Styling */
.stx-breadcrumbs {
  font-size: 0.85rem;
  color: var(--stx-gray-500);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.stx-breadcrumbs a {
  color: var(--stx-gray-600);
  transition: color 0.2s ease;
}

.stx-breadcrumbs a:hover {
  color: var(--stx-red);
}

.stx-crumb-sep {
  margin: 0 4px;
  color: var(--stx-gray-400);
}

.stx-crumb-current {
  color: var(--stx-gray-900);
  font-weight: 700;
}

/* Scarcity Dot Animation */
.stx-scarcity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dc2626;
  display: inline-block;
  animation: stxPulseDot 2s infinite ease-in-out;
}

@keyframes stxPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Pure SVG Social Media Buttons */
.stx-social-icons-pure {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stx-social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.25s ease;
  text-decoration: none;
}

.stx-social-icon-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.stx-social-icon-btn.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
}

.stx-social-icon-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.stx-social-icon-btn.whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

/* Soft Shake Animation on Form Error */
@keyframes stxSoftShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

.stx-shake {
  animation: stxSoftShake 0.4s ease-in-out;
}

/* ==========================================================================
   19. Marquee Infinite Ticker Bar (Zero-AI Clean Text)
   ========================================================================== */
.stx-marquee-bar {
  background: #0f172a;
  color: #f8fafc;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 999;
  white-space: nowrap;
}

.stx-marquee-track {
  display: flex;
  width: max-content;
  animation: stxMarqueeScroll 28s linear infinite;
}

.stx-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes stxMarqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.stx-marquee-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}

.stx-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stx-marquee-sep {
  color: var(--stx-red);
  font-weight: 900;
  opacity: 0.7;
}

.stx-countdown-chip {
  background: rgba(193, 39, 45, 0.25);
  color: #fca5a5;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   20. Precision Navbar Layout: Centered Logo on Desktop, Left Logo on Mobile
   ========================================================================== */
.stx-navbar,
html[dir="rtl"] .stx-navbar {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  height: 68px !important;
  padding: 0 var(--stx-container-padding) !important;
  max-width: var(--stx-max-width) !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Desktop Right (RTL start): Navigation Menu */
.stx-nav-menu,
html[dir="rtl"] .stx-nav-menu {
  display: flex !important;
  align-items: center !important;
  gap: 24px !important;
  justify-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Desktop Center: Centered Brand Logo Across All Pages */
.stx-logo-link,
html[dir="rtl"] .stx-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  text-decoration: none !important;
}

/* Desktop Left (RTL end): Utilities Actions (Search, Cart) */
.stx-nav-actions,
html[dir="rtl"] .stx-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  justify-self: end !important;
}

/* Mobile & Tablet Viewports: Logo on LEFT, Actions/Hamburger on RIGHT */
@media (max-width: 900px) {
  .stx-navbar,
  html[dir="rtl"] .stx-navbar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 60px !important;
    padding: 0 16px !important;
  }

  .stx-nav-menu,
  html[dir="rtl"] .stx-nav-menu {
    display: none !important;
  }

  /* In RTL: order 1 sits on visual RIGHT (start), order 2 sits on visual LEFT (end) */
  .stx-nav-actions,
  html[dir="rtl"] .stx-nav-actions {
    order: 1 !important;
    justify-self: auto !important;
    gap: 8px !important;
  }

  .stx-logo-link,
  html[dir="rtl"] .stx-logo-link {
    order: 2 !important;
    justify-self: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .stx-logo-img {
    height: 22px !important;
    max-height: 22px !important;
    width: auto !important;
  }
}

.stx-btn-cart-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--stx-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.stx-btn-cart-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.stx-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 9999px;
  background: var(--stx-red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.25s ease;
}

.stx-cart-badge.has-items {
  transform: scale(1.1);
  background: #059669;
}

@media (max-width: 768px) {
  .stx-cart-btn-text,
  .stx-track-btn-text {
    display: none;
  }
  .stx-btn-cart-nav,
  .stx-btn-track-nav {
    padding: 8px 10px;
  }
}

/* ==========================================================================
   21. The 4 Guarantees Section (Directly ABOVE FAQ)
   ========================================================================== */
.stx-trust-strip-above-faq {
  padding: 2.5rem 0 1.5rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.stx-guarantees-row-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 992px) {
  .stx-guarantees-row-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stx-trust-strip-above-faq {
    padding: 1.25rem 0 1rem !important;
  }
  .stx-guarantees-row-compact {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stx-guarantee-chip {
    padding: 9px 8px !important;
    gap: 8px !important;
    border-radius: 12px !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
  }
  .stx-chip-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
  }
  .stx-chip-icon svg {
    width: 17px !important;
    height: 17px !important;
  }
  .stx-chip-text strong {
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.25 !important;
  }
  .stx-chip-text span {
    font-size: 0.63rem !important;
    color: #64748b !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
  }
}

.stx-guarantee-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 14px 16px;
  border-radius: var(--stx-radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stx-guarantee-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stx-chip-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--stx-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stx-chip-text {
  display: flex;
  flex-direction: column;
}

.stx-chip-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.stx-chip-text span {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   22. Compact FAQ Accordion
   ========================================================================== */
.stx-faq-compact {
  padding: 2rem 0 3.5rem;
  background: #f8fafc;
}

.stx-section-heading-compact {
  text-align: center;
  margin-bottom: 2rem;
}

.stx-faq-compact-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.stx-faq-compact-subtitle {
  font-size: 0.9rem;
  color: #64748b;
}

.stx-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stx-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--stx-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.stx-faq-item[open] {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stx-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.stx-faq-question::-webkit-details-marker {
  display: none;
}

.stx-faq-toggle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--stx-red);
  transition: transform 0.2s ease;
  line-height: 1;
}

.stx-faq-item[open] .stx-faq-toggle {
  transform: rotate(45deg);
}

.stx-faq-answer {
  padding: 0 20px 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
}

/* ==========================================================================
   23. Smart Cart Drawer & Sliding Panel
   ========================================================================== */
.stx-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stx-cart-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.stx-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #ffffff;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  direction: rtl;
  text-align: right;
  overflow: hidden;
}

.stx-cart-drawer.is-open {
  transform: translateX(0);
}

.stx-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.stx-cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stx-cart-header-title h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
}

.stx-cart-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stx-cart-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg);
}

/* Free Shipping Meter */
.stx-cart-progress-box {
  padding: 12px 20px;
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  flex-shrink: 0;
}

.stx-cart-progress-bar {
  width: 100%;
  height: 7px;
  background: #dcfce7;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.stx-cart-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stx-cart-progress-msg {
  font-size: 0.78rem;
  color: #166534;
  margin: 0;
  line-height: 1.4;
}

/* Cart Body & Items */
.stx-cart-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

.stx-cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1rem;
  color: #64748b;
}

.stx-cart-empty-icon {
  margin-bottom: 1rem;
  color: #94a3b8;
}

.stx-cart-empty-state h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.stx-cart-empty-state p {
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.stx-btn-cart-shop {
  background: var(--stx-red);
  color: #ffffff;
  padding: 10px 22px;
  border-radius: var(--stx-radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.stx-btn-cart-shop:hover {
  background: var(--stx-red-dark);
  transform: translateY(-2px);
}

.stx-cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stx-cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.stx-cart-item:last-child {
  border-bottom: none;
}

.stx-cart-item-thumb {
  width: 48px;
  height: 48px;
  min-width: 48px;
  max-width: 48px;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
  flex-shrink: 0;
}

.stx-cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stx-cart-item-info {
  flex: 1;
  min-width: 0;
}

.stx-cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.stx-cart-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 8px;
}

.stx-cart-item-unit-price {
  font-weight: 700;
  color: #0f172a;
}

.stx-cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stx-cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fafc;
}

.stx-cart-qty-btn {
  width: 26px;
  height: 26px;
  background: #ffffff;
  color: #334155;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.stx-cart-qty-btn:hover {
  background: #f1f5f9;
}

.stx-cart-qty-val {
  padding: 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  min-width: 24px;
  text-align: center;
}

.stx-cart-item-total {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--stx-red);
}

.stx-cart-item-del {
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stx-cart-item-del:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Cart Footer & Embedded Fast Checkout */
.stx-cart-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 16px 20px 20px;
  flex-shrink: 0;
  max-height: 52vh;
  overflow-y: auto;
}

.stx-cart-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 0.84rem;
  color: #475569;
}

.stx-cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stx-cart-total-row {
  font-size: 1.05rem;
  font-weight: 900;
  color: #0f172a;
  padding-top: 4px;
}

.stx-cart-total-val {
  color: var(--stx-red);
  font-size: 1.25rem;
}

.stx-cart-checkout-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--stx-radius-md);
  padding: 14px;
}

.stx-cart-checkout-header h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 2px;
}

.stx-cart-checkout-header p {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 12px;
}

.stx-cart-checkout-form .stx-form-group {
  margin-bottom: 10px;
}

.stx-cart-checkout-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}

.stx-btn-cart-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, var(--stx-red) 0%, var(--stx-red-dark) 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--stx-radius-md);
  margin-top: 8px;
  box-shadow: 0 4px 12px rgba(193, 39, 45, 0.3);
  transition: all 0.2s ease;
}

.stx-btn-cart-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(193, 39, 45, 0.45);
}

.stx-btn-cart-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   24. Mobile Responsive Image & Layout Safeguards
   ========================================================================== */
@media (max-width: 640px) {
  .stx-compact-hero-img-box,
  .stx-card-thumb-wrap img,
  .stx-main-img-box img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 1/1 !important;
    object-fit: contain !important;
    background: #ffffff !important;
  }

  .stx-cart-drawer {
    max-width: 100vw;
  }
}

/* ==========================================================================
   25. Thank You Page Animated Celebration Badge & Ripple Pulse
   ========================================================================== */
@keyframes stxCelebrationRipple {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 0.25; }
  100% { transform: scale(1.45); opacity: 0; }
}

.stx-celebration-hero-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 1rem;
}

.stx-celebration-icon-animated {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  animation: stxPopIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stxPopIn {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   STEYLUX OVERHAUL - SPECIFIC POLISH ENHANCEMENTS
   ========================================================================== */

/* 1. Universal Currency DH on the RIGHT Side (Strict LTR Bidi Isolation) */
.stx-price,
.price-val,
.stx-card-price,
.stx-card-regular,
.stx-current-price,
#stx-thankyou-total,
#stx-modal-total-display,
#stx-cart-total {
  direction: ltr !important;
  unicode-bidi: isolate !important;
  display: inline-block !important;
}

/* 2. Catalog Card 2nd Image Smooth Hover Swap */
.stx-card-thumb-link {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden !important;
  border-radius: 12px !important;
}

.stx-card-thumb-link img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: opacity 0.35s ease, transform 0.35s ease !important;
  display: block !important;
}

.stx-card-thumb-link .stx-thumb-hover {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.stx-product-card:hover .stx-thumb-primary {
  opacity: 0 !important;
  transform: scale(1.04) !important;
}

.stx-product-card:hover .stx-thumb-hover {
  opacity: 1 !important;
  transform: scale(1.04) !important;
}

/* 3. Sleek Desktop Navbar Cart Action Button (Icon Only + Count Badge) */
.stx-btn-cart-nav {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transition: all 0.25s ease !important;
  cursor: pointer !important;
}

.stx-btn-cart-nav:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

.stx-btn-cart-nav .stx-cart-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: var(--stx-red, #e11d48) !important;
  color: #fff !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  min-width: 18px !important;
  height: 18px !important;
  line-height: 18px !important;
  border-radius: 9999px !important;
  text-align: center !important;
  padding: 0 4px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
}

/* 4. Thank You Page Order Editing Controls & Lock */
.stx-ty-size-select {
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.stx-ty-size-select:focus {
  border-color: #0284c7 !important;
}

.stx-ty-qty-btn {
  transition: background 0.15s ease, color 0.15s ease;
}

.stx-ty-qty-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.stx-ty-del-btn {
  transition: transform 0.2s ease, color 0.2s ease;
}

.stx-ty-del-btn:hover {
  transform: scale(1.2);
  color: #dc2626 !important;
}



/* ==========================================================================
   20. Steylux Validation Shake Keyframe & Unwarped Input Polish
   ========================================================================== */
@keyframes stxInputShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.stx-input-wrapper.is-valid {
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12) !important;
  background: #ffffff !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.stx-input-wrapper.is-valid .stx-input-icon {
  color: #10b981 !important;
}

.stx-input-wrapper.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16) !important;
  background: #fef2f2 !important;
  animation: stxInputShake 0.4s ease-in-out !important;
}

.stx-input-wrapper.is-invalid .stx-input-icon {
  color: #ef4444 !important;
}

.stx-input-wrapper::after,
.stx-input-wrapper::before,
.stx-input-wrapper.is-valid::after,
.stx-input-wrapper.is-valid::before {
  content: none !important;
  display: none !important;
}

.stx-input {
  background-image: none !important;
}

.stx-city-fee-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #fee2e2;
  color: #b91c1c;
  white-space: nowrap;
}

.stx-upsell-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 16px !important;
}

.stx-upsell-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.stx-upsell-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.stx-upsell-add-btn {
  width: 100% !important;
  min-height: 48px !important;
  height: 48px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  border-radius: 8px !important;
  margin-top: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12) !important;
}


/* ==========================================================================
   39. Typography Refinement: Scaled-Down Font Sizes for Secondary Pages
   (Terms, Policies, Payment Methods, Contact Us, Thank You, and Order Tracking)
   Strictly Scoped: EXCLUDING Homepage (.home, .front-page) and Single Product (.single-product)
   ========================================================================== */

/* 1. Policy & Standard Content Pages (Terms, Policies, Payment, FAQ) */
body:not(.home):not(.single-product) .stx-page-container {
  font-size: 0.86rem !important;
  line-height: 1.65 !important;
}

body:not(.home):not(.single-product) .stx-page-header h1 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  margin-bottom: 6px !important;
}

body:not(.home):not(.single-product) .stx-page-header p {
  font-size: 0.82rem !important;
  color: #64748b !important;
}

body:not(.home):not(.single-product) .stx-page-article {
  font-size: 0.86rem !important;
  line-height: 1.75 !important;
  color: #334155 !important;
}

body:not(.home):not(.single-product) .stx-page-article h2 {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  margin-top: 1.25rem !important;
  margin-bottom: 0.5rem !important;
}

body:not(.home):not(.single-product) .stx-page-article h3 {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.4rem !important;
}

body:not(.home):not(.single-product) .stx-page-article p,
body:not(.home):not(.single-product) .stx-page-article li {
  font-size: 0.86rem !important;
  line-height: 1.75 !important;
}

/* 2. Contact Us Page */
body.page-template-page-contact-us .stx-contact-hero-card h1 {
  font-size: 1.45rem !important;
  font-weight: 900 !important;
}

body.page-template-page-contact-us .stx-contact-hero-card p {
  font-size: 0.86rem !important;
  line-height: 1.65 !important;
}

body.page-template-page-contact-us .stx-contact-card h3 {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

body.page-template-page-contact-us .stx-contact-card p {
  font-size: 0.8rem !important;
  line-height: 1.55 !important;
}

body.page-template-page-contact-us .stx-contact-faq-help h2 {
  font-size: 1.22rem !important;
  font-weight: 900 !important;
}

body.page-template-page-contact-us .stx-contact-faq-help p {
  font-size: 0.82rem !important;
}

body.page-template-page-contact-us .stx-contact-topic-btn strong {
  font-size: 0.86rem !important;
}

body.page-template-page-contact-us .stx-contact-topic-btn span {
  font-size: 0.76rem !important;
}

/* 3. Thank You Page */
body.page-template-page-thank-you .stx-thankyou-title,
.stx-thank-you-page .stx-thankyou-title {
  font-size: 1.3rem !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
}

body.page-template-page-thank-you .stx-thankyou-subtitle,
.stx-thank-you-page .stx-thankyou-subtitle {
  font-size: 0.82rem !important;
}

body.page-template-page-thank-you .stx-order-id-chip,
.stx-thank-you-page .stx-order-id-chip {
  font-size: 0.88rem !important;
  padding: 4px 14px !important;
}

body.page-template-page-thank-you .stx-timeline-label,
.stx-thank-you-page .stx-timeline-label {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

body.page-template-page-thank-you .stx-timeline-circle,
.stx-thank-you-page .stx-timeline-circle {
  width: 28px !important;
  height: 28px !important;
  font-size: 0.78rem !important;
}

body.page-template-page-thank-you .stx-delivery-alert-box,
.stx-thank-you-page .stx-delivery-alert-box {
  font-size: 0.82rem !important;
}

body.page-template-page-thank-you .stx-dispatch-countdown-banner,
.stx-thank-you-page .stx-dispatch-countdown-banner {
  font-size: 0.82rem !important;
}

body.page-template-page-thank-you .stx-thankyou-table th {
  font-size: 0.78rem !important;
}

body.page-template-page-thank-you .stx-thankyou-table td {
  font-size: 0.82rem !important;
}

body.page-template-page-thank-you .stx-thankyou-card h2,
body.page-template-page-thank-you .stx-thankyou-card h3,
.stx-thank-you-page .stx-thankyou-card h2,
.stx-thank-you-page .stx-thankyou-card h3 {
  font-size: 1.05rem !important;
}

body.page-template-page-thank-you .stx-thankyou-card p,
body.page-template-page-thank-you .stx-thankyou-card span,
.stx-thank-you-page .stx-thankyou-card p,
.stx-thank-you-page .stx-thankyou-card span {
  font-size: 0.82rem !important;
}

/* 4. Tracking Search Modal & Results Card */
#stx-order-tracker-modal .stx-modal-title {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
}

#stx-order-tracker-modal p {
  font-size: 0.82rem !important;
  color: #64748b !important;
}

#stx-order-tracker-modal #stx-tracker-query {
  font-size: 0.86rem !important;
  height: 42px !important;
}

#stx-order-tracker-modal #stx-tracker-submit-btn {
  font-size: 0.88rem !important;
  height: 42px !important;
  padding: 0 22px !important;
}

.stx-tracking-card {
  font-size: 0.84rem !important;
}

.stx-tracking-card .stx-track-num {
  font-size: 0.98rem !important;
  font-weight: 800 !important;
}

.stx-tracking-card .stx-track-dest {
  font-size: 0.8rem !important;
}

.stx-tracking-card .stx-track-stage-title {
  font-size: 0.84rem !important;
  font-weight: 700 !important;
}

.stx-tracking-card .stx-track-stage-desc {
  font-size: 0.78rem !important;
}

.stx-tracking-card .stx-track-stage-time {
  font-size: 0.72rem !important;
}

.stx-tracking-card .stx-track-badge {
  font-size: 0.75rem !important;
  padding: 2px 8px !important;
}

.stx-tracking-card .stx-track-items-box {
  font-size: 0.8rem !important;
  padding: 10px 14px !important;
}

.stx-tracking-card #stx-modal-wa-btn {
  font-size: 0.86rem !important;
  height: 42px !important;
}

/* Single Product Page Accordion Anchor Offset */
#stx-accordion-order-form {
  scroll-margin-top: 75px !important;
}

/* Mobile Hamburger Button Placement at Extreme Right */
@media (max-width: 900px) {
  #stx-hamburger-btn,
  html[dir="rtl"] #stx-hamburger-btn {
    order: -1 !important;
    margin-inline-end: 2px !important;
  }
}

/* Tracker Search Input Polish: Professional calm focus & alignment */
.stx-tracker-search-form .stx-input-wrapper {
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  border-radius: 10px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
}
.stx-tracker-search-form .stx-input-wrapper:focus-within {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15) !important;
}
.stx-tracker-search-form .stx-input-icon {
  color: #64748b !important;
  padding: 0 10px 0 6px !important;
}
.stx-tracker-search-form .stx-input {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  font-family: inherit !important;
}

/* Mobile Thank You Page Compactness & Width Reduction */
.stx-thankyou-wrapper {
  max-width: 580px !important;
  margin: 1rem auto 2rem !important;
}

@media (max-width: 640px) {
  .stx-thankyou-wrapper {
    max-width: 100% !important;
    padding: 0 8px !important;
    margin: 8px auto 16px !important;
  }
  .stx-thankyou-card {
    padding: 12px 10px !important;
    border-radius: 12px !important;
  }
  .stx-thankyou-table {
    width: 100% !important;
    font-size: 0.8rem !important;
  }
  .stx-thankyou-table th, 
  .stx-thankyou-table td {
    padding: 6px 4px !important;
    font-size: 0.78rem !important;
  }
  .stx-thankyou-table .stx-ty-item-cell strong {
    font-size: 0.8rem !important;
  }
  .stx-thankyou-table .stx-ty-item-thumb {
    width: 36px !important;
    height: 36px !important;
  }
  .stx-timeline {
    padding: 4px 0 8px !important;
    gap: 2px !important;
  }
  .stx-timeline-step .stx-timeline-label {
    font-size: 0.68rem !important;
  }
  .stx-timeline-step .stx-timeline-circle {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.7rem !important;
  }
  /* Compact Search Bar on Mobile */
  .stx-tracker-search-form .stx-input-wrapper {
    height: 40px !important;
  }
  .stx-tracker-search-form .stx-input {
    height: 40px !important;
    font-size: 0.82rem !important;
  }
  #stx-tracker-submit-btn {
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 0.82rem !important;
  }
}


/* ==========================================================================
   v3.8 OVERHAUL: TYPOGRAPHY, FORM COMPACTION & PRODUCT TEMPLATE CONDENSATION
   ========================================================================== */

/* 1. HOMEPAGE & CATALOG TYPOGRAPHY - 2 LEVELS SMALLER (Request 4) */
.stx-section-heading {
  margin-bottom: 1.5rem !important;
}
.stx-section-title {
  font-size: 1.6rem !important;
  line-height: 1.3 !important;
  letter-spacing: -0.3px !important;
}
@media (max-width: 600px) {
  .stx-section-title {
    font-size: 1.25rem !important;
  }
}
.stx-section-subtitle {
  font-size: 0.85rem !important;
}
.stx-card-title {
  font-size: 0.82rem !important;
  line-height: 1.35 !important;
  height: 2.6em !important;
  min-height: 2.6em !important;
}
.stx-card-stock-hint {
  font-size: 0.7rem !important;
  height: 16px !important;
  min-height: 16px !important;
  line-height: 16px !important;
}
.stx-card-pricing {
  margin-top: 4px !important;
  gap: 6px !important;
}
.stx-card-price {
  font-size: 1.1rem !important;
}
.stx-card-old-price {
  font-size: 0.82rem !important;
}
.stx-card-body {
  padding: 0.85rem !important;
  gap: 8px !important;
}
.stx-btn-card-order {
  font-size: 0.82rem !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: 8px !important;
}

/* 2. PRODUCT PAGE TYPOGRAPHY - 2 LEVELS SMALLER (Request 4) */
.stx-breadcrumbs {
  font-size: 0.75rem !important;
  margin-bottom: 8px !important;
  padding: 4px 0 !important;
}
.stx-product-title {
  font-size: 1.4rem !important;
  line-height: 1.25 !important;
  margin-bottom: 4px !important;
}
@media (max-width: 600px) {
  .stx-product-title {
    font-size: 1.15rem !important;
  }
}
.stx-current-price {
  font-size: 1.6rem !important;
}
.stx-regular-price {
  font-size: 0.95rem !important;
}
.stx-discount-chip {
  font-size: 0.74rem !important;
  padding: 2px 8px !important;
}
.stx-desc-paragraph {
  font-size: 0.8rem !important;
  line-height: 1.45 !important;
  margin: 0 0 6px !important;
}
.stx-package-box {
  padding: 8px 10px !important;
  margin-bottom: 8px !important;
  border-radius: 8px !important;
}
.stx-package-heading {
  font-size: 0.78rem !important;
  margin-bottom: 4px !important;
}
.stx-package-bullets {
  gap: 3px !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
}
.stx-variant-label {
  font-size: 0.82rem !important;
}
.stx-active-size-pill {
  font-size: 0.72rem !important;
  padding: 2px 8px !important;
}
.stx-size-chart-trigger {
  font-size: 0.74rem !important;
  padding: 3px 8px !important;
}
.stx-pill {
  font-size: 0.82rem !important;
  height: 32px !important;
  min-width: 38px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
}
.stx-pill-badge {
  font-size: 0.65rem !important;
  padding: 1px 4px !important;
}
.stx-scarcity-badge {
  font-size: 0.76rem !important;
  padding: 4px 8px !important;
  margin-bottom: 8px !important;
  border-radius: 6px !important;
}
.stx-btn-primary-order {
  font-size: 0.96rem !important;
  height: 42px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
}
.stx-btn-secondary-cart {
  font-size: 0.86rem !important;
  height: 38px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
}

/* 3. CONDENSE PRODUCT TEMPLATE BLOCK (Desktop & Mobile) (Request 6) */
.stx-single-product-page {
  padding: 0.8rem 0 2rem !important;
}
.stx-product-card-wrap,
.stx-hero-card {
  padding: 14px 18px !important;
  margin: 6px auto 14px !important;
  border-radius: 14px !important;
}
.stx-hero-grid,
.stx-card-grid {
  grid-template-columns: 420px 1fr !important;
  gap: 16px !important;
  align-items: start !important;
}
@media (max-width: 960px) {
  .stx-hero-grid,
  .stx-card-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .stx-product-card-wrap,
  .stx-hero-card {
    padding: 10px 12px !important;
    margin: 4px auto 12px !important;
  }
}
.stx-compact-hero-img-box,
.stx-gallery-main.stx-compact-hero-img-box {
  max-width: 350px !important;
  max-height: 350px !important;
  aspect-ratio: 1/1 !important;
  border-radius: 12px !important;
}
.stx-frame-5-header {
  margin-bottom: 6px !important;
}
.stx-price-banner {
  padding: 6px 12px !important;
  gap: 8px !important;
  margin: 4px 0 8px !important;
  border-radius: 8px !important;
}
.stx-product-info-block {
  margin-bottom: 6px !important;
}
.stx-variant-section {
  gap: 4px !important;
  margin-bottom: 6px !important;
}
.stx-variant-header {
  margin-bottom: 4px !important;
}
.stx-pills-group {
  gap: 5px !important;
}
.stx-card-actions-group {
  gap: 6px !important;
  margin-top: 4px !important;
}

/* 4. COMPACT ALL 3 ORDER FORMS (Request 3) */
/* Form 1: Product Accordion Form */
.stx-accordion-order-form.is-open {
  margin-top: 8px !important;
}
.stx-accordion-form-inner {
  padding: 0 10px !important;
}
.stx-accordion-order-form.is-open .stx-accordion-form-inner {
  padding: 10px 12px !important;
  border-radius: 12px !important;
}
@media (max-width: 600px) {
  .stx-accordion-order-form.is-open .stx-accordion-form-inner {
    padding: 8px 10px !important;
  }
}
.stx-accordion-order-form .stx-order-form-header {
  margin-bottom: 6px !important;
  padding-bottom: 4px !important;
}
.stx-accordion-order-form .stx-order-form-header h3 {
  font-size: 0.9rem !important;
  margin: 0 !important;
}
.stx-accordion-order-form .stx-order-form-header p {
  font-size: 0.72rem !important;
  margin-top: 2px !important;
}
.stx-form-grid {
  gap: 6px !important;
}
.stx-input-group {
  gap: 2px !important;
}
.stx-input-label {
  font-size: 0.76rem !important;
  margin-bottom: 2px !important;
}
.stx-input-wrapper {
  height: 36px !important;
  border-radius: 8px !important;
}
.stx-input-wrapper .stx-input-icon {
  padding: 0 8px !important;
}
.stx-input-wrapper .stx-input-icon svg {
  width: 15px !important;
  height: 15px !important;
}
.stx-input-wrapper .stx-input {
  height: 36px !important;
  font-size: 0.82rem !important;
  padding: 0 6px !important;
}
.btn--order-submit,
.stx-btn-submit-order {
  height: 42px !important;
  font-size: 0.92rem !important;
  margin-top: 6px !important;
  border-radius: 10px !important;
}
.stx-order-guarantees {
  padding: 4px 0 0 !important;
  font-size: 0.72rem !important;
  gap: 8px !important;
}

/* Form 2: Cart Drawer Checkout Form */
.stx-cart-footer {
  padding: 10px 14px 14px !important;
}
.stx-cart-checkout-box {
  padding: 8px 10px !important;
  border-radius: 10px !important;
}
.stx-cart-checkout-header h4 {
  font-size: 0.85rem !important;
  margin-bottom: 2px !important;
}
.stx-cart-checkout-header p {
  font-size: 0.72rem !important;
  margin-bottom: 6px !important;
}
.stx-cart-checkout-form .stx-form-group {
  margin-bottom: 6px !important;
}
.stx-cart-checkout-form label {
  font-size: 0.72rem !important;
  margin-bottom: 2px !important;
}
.stx-cart-checkout-form .stx-input-wrapper {
  height: 36px !important;
  border-radius: 8px !important;
}
.stx-cart-checkout-form .stx-input {
  height: 36px !important;
  font-size: 0.82rem !important;
}
.stx-btn-cart-submit {
  height: 42px !important;
  font-size: 0.88rem !important;
  margin-top: 6px !important;
  border-radius: 8px !important;
}

/* Form 3: Quick Buy Modal Form */
.stx-modal-buy-card,
.stx-modal-card {
  padding: 12px 14px !important;
  max-width: 440px !important;
}
.stx-modal-form-grid {
  gap: 6px !important;
}
.stx-modal-buy-body .stx-input-wrapper {
  height: 36px !important;
  border-radius: 8px !important;
}
.stx-btn-modal-submit {
  height: 42px !important;
  font-size: 0.88rem !important;
  margin-top: 6px !important;
}

/* 5. TRACKING SEARCH MODAL COMPACTION (Request 5) */
.stx-tracker-card {
  max-width: 420px !important;
  border-radius: 12px !important;
}
.stx-tracker-card .stx-modal-header {
  padding: 10px 14px !important;
}
.stx-tracker-card .stx-modal-title {
  font-size: 0.9rem !important;
}
.stx-tracker-card .stx-modal-body {
  padding: 12px 14px !important;
}
.stx-tracker-card .stx-modal-body p {
  font-size: 0.75rem !important;
  margin-bottom: 8px !important;
}
.stx-tracker-card .stx-input-wrapper {
  height: 36px !important;
  max-height: 36px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}
.stx-tracker-card .stx-input {
  height: 32px !important;
  max-height: 32px !important;
  font-size: 0.8rem !important;
  box-sizing: border-box !important;
}
.stx-tracker-card .stx-btn-card-order {
  height: 36px !important;
  max-height: 36px !important;
  font-size: 0.82rem !important;
  padding: 0 14px !important;
  box-sizing: border-box !important;
}


/* ==========================================================================
   v3.9 EMERGENCY FIX: GRID OVERLAP, INPUT TEXT CLIPPING & QUICK MODAL SIZE
   ========================================================================== */

/* 1. FIX IMAGE 1 OVERLAP: Bulletproof Desktop & Tablet Product Grid */
.stx-hero-grid,
.stx-card-grid {
  display: grid !important;
  grid-template-columns: 440px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start !important;
}

@media (max-width: 1040px) {
  .stx-hero-grid,
  .stx-card-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.stx-gallery-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  position: sticky !important;
  top: 85px !important;
  max-width: 440px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: visible !important;
}

@media (max-width: 1040px) {
  .stx-gallery-wrapper {
    position: static !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    max-width: 100% !important;
  }
}

.stx-gallery-side-thumbs {
  width: 68px !important;
  max-width: 68px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.stx-gallery-thumb-item {
  width: 64px !important;
  height: 64px !important;
  flex: 0 0 64px !important;
  border-radius: 8px !important;
}

.stx-compact-hero-img-box,
.stx-gallery-main.stx-compact-hero-img-box {
  width: 350px !important;
  max-width: 350px !important;
  height: 350px !important;
  max-height: 350px !important;
  aspect-ratio: 1 / 1 !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1040px) {
  .stx-compact-hero-img-box,
  .stx-gallery-main.stx-compact-hero-img-box {
    width: 100% !important;
    max-width: 360px !important;
    height: auto !important;
  }
  .stx-gallery-side-thumbs {
    width: 100% !important;
    max-width: 360px !important;
    flex-direction: row !important;
    justify-content: center !important;
  }
  .stx-thumbs-vertical-track {
    flex-direction: row !important;
    max-height: none !important;
    overflow-x: auto !important;
  }
}

.stx-product-details {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Gallery counter direction fix (1 / 8 instead of 8 / 1 in RTL) */
.stx-gallery-counter {
  direction: ltr !important;
  unicode-bidi: isolate !important;
}

/* 2. FIX IMAGE 2: Input Field Height & Arabic Text Clipping Defense */
.stx-input-wrapper {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  overflow: visible !important;
}

.stx-input-wrapper .stx-input {
  height: 38px !important;
  line-height: 38px !important;
  font-size: 0.84rem !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

.stx-input-wrapper .stx-input::placeholder {
  line-height: normal !important;
  opacity: 0.75 !important;
}

.btn--order-submit,
.stx-btn-submit-order {
  height: 44px !important;
  margin-top: 10px !important;
  font-size: 0.94rem !important;
  border-radius: 10px !important;
}

/* 3. FIX IMAGE 3: Quick Buy Modal Size Reduction (Request 2) */
.stx-quick-modal-card {
  max-width: 365px !important;
  width: calc(100% - 24px) !important;
  margin: 14px auto !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
  background: #ffffff !important;
}

@media (max-width: 480px) {
  .stx-quick-modal-card {
    max-width: 345px !important;
    width: calc(100% - 16px) !important;
    margin: 8px auto !important;
  }
}

/* Universal Clean White Modal Headers (Strict User Preference) */
.stx-quick-modal-card .stx-modal-header,
.stx-tracker-card .stx-modal-header,
.stx-modal-card .stx-modal-header,
.stx-modal-header {
  padding: 10px 14px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.stx-quick-modal-card .stx-modal-title,
.stx-tracker-card .stx-modal-title,
.stx-modal-card .stx-modal-title,
.stx-modal-title {
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.stx-quick-modal-card .stx-modal-close-btn,
.stx-tracker-card .stx-modal-close-btn,
.stx-modal-card .stx-modal-close-btn,
.stx-modal-close-btn {
  color: #64748b !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50% !important;
  width: 26px !important;
  height: 26px !important;
  font-size: 0.85rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.stx-quick-modal-card .stx-modal-close-btn:hover,
.stx-tracker-card .stx-modal-close-btn:hover,
.stx-modal-card .stx-modal-close-btn:hover,
.stx-modal-close-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.stx-quick-modal-card .stx-modal-body {
  padding: 0 !important;
}

/* ==========================================================================
   v3.9.2 BUTTON FIX: ELIMINATE MULTI-LINE TEXT WRAPPING IN ADD-TO-CART BUTTON
   ========================================================================== */
.stx-card-actions {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  align-items: center !important;
  margin-top: auto !important;
  padding-top: 6px !important;
}

.stx-btn-card-order {
  flex: 1 1 42% !important;
  min-width: 0 !important;
  height: 38px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  padding: 0 6px !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.stx-btn-card-order span {
  white-space: nowrap !important;
}

.stx-btn-card-add-cart {
  flex: 1 1 58% !important;
  min-width: 0 !important;
  height: 38px !important;
  font-size: 0.77rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  padding: 0 6px !important;
  gap: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

.stx-btn-card-add-cart span {
  white-space: nowrap !important;
  overflow: visible !important;
  line-height: normal !important;
}

.stx-btn-card-add-cart svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 640px) {
  .stx-card-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .stx-btn-card-order,
  .stx-btn-card-add-cart {
    width: 100% !important;
    flex: none !important;
    height: 38px !important;
    font-size: 0.84rem !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
  }
  .stx-btn-card-add-cart span {
    white-space: nowrap !important;
  }
}

/* ==========================================================================
   v4.0: COMPACT FAQ, COMPACT TRACKING DROPDOWN & INTERACTIVE REVIEWS
   ========================================================================== */

/* 1. COMPACT FAQ OVERHAUL (User Request 1) */
.stx-faq-compact {
  padding: 1.25rem 0 2rem !important;
  background: #f8fafc !important;
}

.stx-faq-compact .stx-container {
  max-width: 720px !important;
}

.stx-section-heading-compact {
  text-align: center !important;
  margin-bottom: 1.1rem !important;
}

.stx-faq-compact-title {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin-bottom: 3px !important;
}

.stx-faq-compact-subtitle {
  font-size: 0.78rem !important;
  color: #64748b !important;
}

.stx-faq-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

.stx-faq-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.2s ease !important;
}

.stx-faq-item[open] {
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.stx-faq-question {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  user-select: none !important;
  list-style: none !important;
}

.stx-faq-toggle {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: var(--stx-red) !important;
  line-height: 1 !important;
}

.stx-faq-answer {
  padding: 6px 14px 10px !important;
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
  color: #475569 !important;
  border-top: 1px solid #f1f5f9 !important;
}

/* 2. COMPACT TRACKING DROPDOWN & RESULTS LIST (User Request 2) */
.stx-tracker-card {
  max-width: 400px !important;
  border-radius: 12px !important;
}

.stx-tracker-card .stx-modal-body {
  padding: 10px 12px !important;
}

.stx-tracker-card .stx-modal-body p {
  font-size: 0.72rem !important;
  margin: 0 0 6px 0 !important;
}

.stx-tracker-search-form .stx-input {
  font-size: 0.76rem !important;
  height: 32px !important;
}

.stx-tracker-search-form .stx-btn-card-order {
  font-size: 0.76rem !important;
  height: 32px !important;
  padding: 0 12px !important;
}

.stx-tracking-card {
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-size: 0.76rem !important;
  margin-top: 8px !important;
}

.stx-tracking-head {
  padding-bottom: 6px !important;
  margin-bottom: 6px !important;
}

.stx-tracking-head strong {
  font-size: 0.86rem !important;
  font-weight: 800 !important;
}

.stx-tracking-head div {
  font-size: 0.7rem !important;
}

.stx-tracking-status-badge {
  font-size: 0.68rem !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
}

.stx-tracking-timeline {
  padding: 6px 0 !important;
}

.stx-tracking-stage {
  padding-bottom: 8px !important;
  font-size: 0.72rem !important;
}

.stx-stage-title {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

.stx-stage-desc {
  font-size: 0.68rem !important;
  margin-top: 2px !important;
}

.stx-stage-time {
  font-size: 0.65rem !important;
}

.stx-stage-dot {
  width: 10px !important;
  height: 10px !important;
}

.stx-tracking-card [style*="border-radius:8px"] {
  padding: 8px 10px !important;
  font-size: 0.72rem !important;
  margin: 8px 0 !important;
}

.stx-drawer-wa-btn {
  font-size: 0.76rem !important;
  padding: 6px 14px !important;
  height: 34px !important;
  border-radius: 8px !important;
}

/* 3. CONTINUOUS DYNAMIC REVIEWS MARQUEE (Pure WhatsApp Screenshots) */
.stx-reviews-section {
  padding: 2.5rem 0 3rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  overflow: hidden;
  position: relative;
}

.stx-reviews-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.6rem;
  padding: 0 16px;
}

.stx-reviews-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.stx-reviews-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Continuous Infinite Marquee */
.stx-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 20px;
  direction: ltr; /* Keeps continuous leftward scroll uniform across RTL/LTR */
  mask-image: linear-gradient(to right, transparent 0%, #000000 4%, #000000 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000000 4%, #000000 96%, transparent 100%);
}

.stx-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: stxMarqueeFlow 32s linear infinite;
  will-change: transform;
}

@keyframes stxMarqueeFlow {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333333%);
  }
}

.stx-marquee-wrapper:hover .stx-marquee-track,
.stx-marquee-wrapper:active .stx-marquee-track {
  animation-play-state: paused;
}

/* Smartphone Mockup Cards (Pure Images, No Text/Names) */
.stx-review-phone {
  flex: 0 0 220px !important;
  width: 220px !important;
  max-width: 220px !important;
  height: 440px !important;
  max-height: 440px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  position: relative !important;
  background: #0f172a !important;
  border: 1.5px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  box-sizing: border-box !important;
}

.stx-review-phone:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.13), 0 6px 12px rgba(0, 0, 0, 0.06) !important;
}

.stx-review-phone img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  pointer-events: none !important;
  border-radius: 20px !important;
}

.stx-phone-zoom-pill {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.stx-review-phone:hover .stx-phone-zoom-pill {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .stx-reviews-section {
    padding: 1.8rem 0 2.2rem;
  }
  .stx-reviews-title {
    font-size: 1.15rem;
  }
  .stx-reviews-subtitle {
    font-size: 0.78rem;
  }
  .stx-marquee-track {
    gap: 14px;
    animation-duration: 24s;
  }
  .stx-review-phone {
    flex: 0 0 170px;
    width: 170px;
    height: 330px;
    border-radius: 18px;
  }
  .stx-phone-zoom-pill {
    opacity: 0.9;
    transform: translateX(-50%) translateY(0);
    font-size: 0.68rem;
    padding: 4px 10px;
    bottom: 10px;
  }
}

/* Lightbox Modal */
.stx-review-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.stx-review-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.stx-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}

.stx-lightbox-content {
  position: relative;
  z-index: 10;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stx-lightbox-close {
  position: absolute;
  top: -42px;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stx-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

.stx-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.stx-lightbox-nav:hover {
  background: #ffffff;
  color: #0f172a;
}

.stx-lightbox-nav.prev {
  right: -56px;
}

.stx-lightbox-nav.next {
  left: -56px;
}

@media (max-width: 600px) {
  .stx-lightbox-nav.prev {
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
  }
  .stx-lightbox-nav.next {
    left: 8px;
    background: rgba(0, 0, 0, 0.6);
  }
}

.stx-lightbox-img-wrap {
  max-width: 380px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  background: #0b141a;
  position: relative;
}

.stx-lightbox-img-wrap img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.stx-lightbox-counter {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  direction: ltr;
  unicode-bidi: isolate;
}


/* ==========================================================================
   v4.3.0: MOBILE PRODUCT VIEWPORT, WHITE MODALS & SMART UX ROUTER REFINEMENTS
   ========================================================================== */

/* 1. PRODUCT GALLERY MOBILE OVERLAP DEFENSE */
@media (max-width: 1040px) {
  .stx-hero-grid,
  .stx-card-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .stx-gallery-wrapper {
    position: relative !important;
    top: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto 16px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    z-index: 2 !important;
  }
  .stx-compact-hero-img-box,
  .stx-gallery-main.stx-compact-hero-img-box {
    max-width: 350px !important;
    max-height: 350px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* 2. RAZOR-SHARP ADD-TO-CART & SECONDARY BUTTONS (Zero chromatic aberration) */
.stx-btn-secondary-cart,
.stx-btn-card-add-cart {
  background: #f8fafc !important;
  color: #0f172a !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.stx-btn-secondary-cart:hover,
.stx-btn-card-add-cart:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #020617 !important;
}

/* 3. MODAL CARDS & WHITE HEADERS WITH PROPER BREATHING ROOM */
.stx-quick-modal-card,
.stx-tracker-card {
  max-width: 380px !important;
  width: calc(100% - 24px) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.stx-quick-modal-card .stx-modal-header,
.stx-tracker-card .stx-modal-header {
  padding: 12px 16px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.stx-quick-modal-card .stx-modal-body,
.stx-tracker-card .stx-modal-body {
  padding: 14px 16px !important;
}

/* Form input to button breathing margin */
.stx-quick-modal-card .stx-btn-submit-order,
#stx-modal-submit-btn {
  margin-top: 14px !important;
  height: 44px !important;
  font-size: 0.95rem !important;
  border-radius: 8px !important;
}

/* 4. REVIEWS MARQUEE VISIBILITY & SMOOTH MOTION */
.stx-reviews-section {
  padding: 1.5rem 0 2.5rem !important;
  background: #ffffff !important;
}

.stx-marquee-wrapper {
  overflow: hidden !important;
  width: 100% !important;
  padding: 10px 0 !important;
}

.stx-review-phone img {
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
  border: 1px solid #e2e8f0 !important;
  display: block !important;
}


/* ==========================================================================
   v4.3.2: MOBILE FLOATING THUMBNAILS & CRISP SVG TOAST ICONS
   ========================================================================== */

/* 1. Crisp Toast Notifications with SVG Icons */
.stx-toast {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  pointer-events: auto !important;
  direction: rtl !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.stx-toast.success {
  border-right: 4px solid #10b981 !important;
}

.stx-toast.error {
  border-right: 4px solid #ef4444 !important;
}

.stx-toast.info {
  border-right: 4px solid #38bdf8 !important;
}

.stx-toast-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 22px !important;
  height: 22px !important;
}

.stx-toast-icon svg {
  display: block !important;
}

.stx-toast-msg {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  line-height: 1.4 !important;
}

/* 2. Mobile Floating Thumbnails Over Main Image (Left-aligned, floating directly above counter) */
@media (max-width: 1040px) {
  .stx-gallery-wrapper {
    position: relative !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto 16px auto !important;
    display: block !important;
  }

  .stx-compact-hero-img-box,
  .stx-gallery-main.stx-compact-hero-img-box {
    position: relative !important;
    width: 100% !important;
    max-width: 350px !important;
    height: 350px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    margin: 0 auto !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
  }

  .stx-compact-hero-img-box img,
  .stx-gallery-main.stx-compact-hero-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Counter Pill at bottom left */
  .stx-gallery-counter {
    position: absolute !important;
    bottom: 14px !important;
    left: 14px !important;
    z-index: 10 !important;
    background: rgba(15, 23, 42, 0.82) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    color: #ffffff !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }

  /* Floating Thumbnails Container: Stacked Vertically, Floating Over Image, Right Above Counter */
  .stx-gallery-side-thumbs {
    position: absolute !important;
    bottom: 50px !important;
    left: 14px !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: auto !important;
    max-width: 50px !important;
    max-height: 180px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    gap: 6px !important;
    padding: 5px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .stx-gallery-side-thumbs::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }

  .stx-thumbs-arrow {
    display: none !important;
  }

  .stx-thumbs-vertical-track {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    max-height: none !important;
    width: auto !important;
    overflow: visible !important;
  }

  .stx-gallery-thumb-item {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    flex: 0 0 38px !important;
    border-radius: 8px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
    overflow: hidden !important;
    background: #ffffff !important;
    padding: 0 !important;
    cursor: pointer !important;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease !important;
  }

  .stx-gallery-thumb-item.active {
    border-color: #0f172a !important;
    transform: scale(1.08) !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
  }

  .stx-gallery-thumb-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
  }
}


/* ==========================================================================
   v4.3.3: MODAL SCROLLING & CLOSE BTN, DESKTOP 40/60 PROPORTIONS & REVIEWS CONTAINER
   ========================================================================== */

/* 1. Mobile Quick Buy & Tracker Modals (Free Scrolling & Pinned Header) */
.stx-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 12px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.stx-modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
}

.stx-quick-modal-card,
.stx-tracker-card,
.stx-modal-card {
  max-width: 400px !important;
  width: 100% !important;
  max-height: calc(100vh - 24px) !important;
  max-height: calc(100dvh - 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
  overflow: hidden !important;
  margin: auto !important;
  position: relative !important;
}

.stx-modal-header,
.stx-quick-modal-card .stx-modal-header,
.stx-tracker-card .stx-modal-header {
  flex-shrink: 0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 30 !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.stx-modal-close-btn,
#stx-quick-modal-close,
#stx-tracker-modal-close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.stx-modal-close-btn:hover,
#stx-quick-modal-close:hover {
  background: #e2e8f0 !important;
  color: #c1272d !important;
}

.stx-modal-body,
.stx-quick-modal-card .stx-modal-body,
#stx-quick-modal-body,
.stx-tracker-card .stx-modal-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
  padding: 12px 16px 20px !important;
}

/* 2. Desktop Product Page: Contained 40% Gallery / 60% Details & Zero Overflow Defense */
@media (min-width: 1041px) {
  .stx-hero-grid,
  .stx-card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) !important;
    gap: 32px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .stx-card-media-col,
  .stx-gallery-wrapper {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  .stx-compact-hero-img-box,
  .stx-gallery-main.stx-compact-hero-img-box {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 480px !important;
    height: auto !important;
    max-height: 480px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
  }

  .stx-compact-hero-img-box img,
  .stx-gallery-main.stx-compact-hero-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  .stx-gallery-side-thumbs {
    width: 76px !important;
    max-width: 76px !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
  }

  .stx-gallery-thumb-item {
    width: 70px !important;
    height: 70px !important;
    flex: 0 0 70px !important;
    box-sizing: border-box !important;
  }

  .stx-card-info-col,
  .stx-product-details {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .stx-price-banner,
  .stx-product-info-block,
  .stx-card-actions-group,
  .stx-btn-hero-cta,
  .stx-btn-secondary-cart,
  .stx-variant-section {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* 3. Customer Reviews Section: Constrain marquee to content container width */
.stx-reviews-section {
  padding: 2rem 0 3rem !important;
  background: #ffffff !important;
}

.stx-reviews-section .stx-container {
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.stx-marquee-wrapper {
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 16px !important;
  padding: 10px 0 !important;
  position: relative !important;
  margin: 0 auto !important;
}


/* ==========================================================================
   v4.3.5: BULLETPROOF TOP TICKER, TOAST NOTIFICATION STACKING & DEVICE STABILITY
   ========================================================================== */

/* 1. High-Performance Infinite Top Ticker Bar (Seamless 60fps Stream) */
.stx-top-ticker-bar,
.stx-marquee-bar {
  background: #0f172a !important;
  color: #f8fafc !important;
  overflow: hidden !important;
  contain: paint !important;
  max-width: 100vw !important;
  width: 100% !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  position: relative !important;
  z-index: 995 !important;
  user-select: none !important;
  direction: ltr !important; /* LTR track layout so translate3d(-25%,0,0) draws items in from the right */
}

.stx-top-ticker-bar .stx-top-ticker-track,
.stx-marquee-bar .stx-marquee-track {
  display: flex !important;
  width: max-content !important;
  animation: stxTopTickerLoop 25s linear infinite !important;
  will-change: transform !important;
}

@keyframes stxTopTickerLoop {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-25%, 0, 0);
  }
}

.stx-top-ticker-group,
.stx-top-ticker-bar .stx-marquee-content {
  display: flex !important;
  align-items: center !important;
  gap: 20px !important;
  padding-right: 20px !important;
  padding-left: 0 !important;
  direction: rtl !important; /* Authentic Arabic text orientation */
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* 2. Scoped Customer Reviews Marquee (Prevent Global Override) */
#stx-reviews-marquee .stx-marquee-track {
  display: flex !important;
  gap: 20px !important;
  width: max-content !important;
  animation: stxReviewsMarqueeFlow 32s linear infinite !important;
  will-change: transform !important;
}

@keyframes stxReviewsMarqueeFlow {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-33.333333%, 0, 0);
  }
}

/* 3. Toast Notifications (Universal High-Priority Alert System) */
.stx-toast-container {
  position: fixed !important;
  bottom: 28px !important;
  right: 28px !important;
  z-index: 2000000000 !important; /* Strictly higher than Cart Drawer (10001) & Modals (9999) */
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
  max-width: 420px !important;
}

.stx-toast {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 12px 20px !important;
  border-radius: 12px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  pointer-events: auto !important;
  transform: translateY(20px) scale(0.96) !important;
  opacity: 0 !important;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  direction: rtl !important;
  z-index: 2000000000 !important;
}

.stx-toast.show {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .stx-toast-container {
    right: 0 !important;
    left: 0 !important;
    bottom: max(20px, env(safe-area-inset-bottom, 20px) + 12px) !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    pointer-events: none !important;
  }
  .stx-toast {
    max-width: calc(100vw - 32px) !important;
    margin: 0 auto !important;
  }
}

/* 4. Modern Mobile & Desktop Layout Stability (DVH, Safe-Area, Overscroll) */
.stx-cart-drawer {
  height: 100vh !important;
  height: 100dvh !important;
  overscroll-behavior-y: contain !important;
}

.stx-modal-overlay {
  height: 100vh !important;
  height: 100dvh !important;
  overscroll-behavior-y: contain !important;
}

.stx-header {
  padding-top: env(safe-area-inset-top, 0) !important;
}

.stx-sticky-mobile-bar {
  padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)) !important;
}

/* ==========================================================================
   v4.3.7 MASTER STOCK SYNC, SIZE SELECTORS, TIMELINE POLISH & MOTION
   ========================================================================== */

/* Point 4: Product Title Sizes (+1 Degree Enhancement) */
.stx-card-title {
  font-size: 1.12rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
}

.stx-product-title {
  font-size: 1.92rem !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}

@media (max-width: 768px) {
  .stx-card-title {
    font-size: 1.05rem !important;
  }
  .stx-product-title {
    font-size: 1.45rem !important;
  }
}

/* Point 2: Out of Stock Crossed-Out Mark (علامة مضروبة) */
.stx-pill.disabled,
.stx-pill.out-of-stock,
.stx-pill[aria-disabled="true"],
.stx-cart-size-pill.disabled,
.stx-cart-size-pill.out-of-stock {
  position: relative !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  text-decoration: none !important;
}

.stx-pill.disabled::after,
.stx-pill.out-of-stock::after,
.stx-pill[aria-disabled="true"]::after,
.stx-cart-size-pill.disabled::after,
.stx-cart-size-pill.out-of-stock::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important;
  left: -20% !important;
  right: -20% !important;
  height: 2px !important;
  background: #ef4444 !important;
  transform: rotate(-25deg) !important;
  transform-origin: center !important;
  pointer-events: none !important;
  z-index: 5 !important;
  box-shadow: 0 0 2px rgba(239, 68, 68, 0.4) !important;
}

/* Point 1: Cart Drawer Size Selector Styling */
.stx-cart-size-select-wrap {
  margin: 5px 0 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.stx-cart-size-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.stx-cart-size-pills {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
}

.stx-cart-size-pill {
  height: 25px !important;
  min-width: 28px !important;
  padding: 0 7px !important;
  border-radius: 6px !important;
  border: 1.5px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-sizing: border-box !important;
}

.stx-cart-size-pill:hover:not(.disabled) {
  border-color: #0f172a !important;
  color: #0f172a !important;
  background: #f8fafc !important;
}

.stx-cart-size-pill.active {
  border-color: #0f172a !important;
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2) !important;
}

.stx-cart-pill-badge {
  font-size: 0.58rem !important;
  padding: 0 3px !important;
  border-radius: 3px !important;
  margin-right: 3px !important;
  line-height: 1.2 !important;
}

.stx-cart-pill-badge.out {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  font-weight: 800 !important;
}

/* Point 5: Fixed Tracking Timeline Vertical Line Alignment */
.stx-tracking-timeline {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  margin: 16px 0 !important;
  padding: 0 !important;
  border-right: none !important; /* Eliminates container line distortion */
}

.stx-tracking-stage {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding-right: 32px !important;
  padding-bottom: 22px !important;
  box-sizing: border-box !important;
}

.stx-tracking-stage:last-child {
  padding-bottom: 4px !important;
}

/* The vertical connecting line: perfectly centered on right: 7px */
.stx-tracking-stage::before {
  content: '' !important;
  position: absolute !important;
  right: 7px !important;
  top: 18px !important;
  bottom: 0 !important;
  width: 2px !important;
  background: #e2e8f0 !important;
  z-index: 1 !important;
}

.stx-tracking-stage:last-child::before {
  display: none !important;
}

.stx-tracking-stage.completed::before {
  background: #10b981 !important;
}

/* The Circle Dot */
.stx-stage-dot {
  position: absolute !important;
  right: 0 !important;
  top: 2px !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
  transition: all 0.3s ease !important;
}

.stx-tracking-stage.completed .stx-stage-dot {
  background: #10b981 !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 2px #d1fae5 !important;
}

/* Point 6: Motion Pulse Radar Animation on CURRENT Step */
@keyframes stx-stage-radar {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.7);
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    transform: scale(1);
  }
}

.stx-tracking-stage.current .stx-stage-dot {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  animation: stx-stage-radar 1.8s infinite ease-out !important;
}

/* Thank You Horizontal Timeline Pulse Animation */
@keyframes stx-active-step-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(193, 39, 45, 0.6);
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(193, 39, 45, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(193, 39, 45, 0);
    transform: scale(1);
  }
}

.stx-timeline-step.active .stx-timeline-circle {
  animation: stx-active-step-pulse 2s infinite ease-in-out !important;
  border-color: #c1272d !important;
  color: #c1272d !important;
}
