/*
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.0
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: 1200px;
  --stx-container-padding: 1.25rem;
}

/* ==========================================================================
   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;
}

body {
  font-family: var(--stx-font);
  background-color: var(--stx-bg);
  color: var(--stx-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -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-logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.stx-logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}

.stx-nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.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-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: 2.5rem 0 3.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--stx-border);
}

.stx-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) {
  .stx-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   7. Product Gallery Component (800x800 WebP with Responsive Thumbs)
   ========================================================================== */
.stx-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

.stx-gallery-main {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border-radius: var(--stx-radius-lg);
  overflow: hidden;
  background-color: var(--stx-gray-100);
  border: 1px solid var(--stx-border);
  box-shadow: var(--stx-shadow-md);
}

.stx-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.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;
}

.stx-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.stx-gallery-thumb-item {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: var(--stx-radius-md);
  overflow: hidden;
  border: 2px solid var(--stx-border);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.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;
}

/* ==========================================================================
   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;
}

.stx-variant-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--stx-gray-900);
}

.stx-size-chart-trigger {
  color: var(--stx-green);
  font-size: 0.875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: var(--stx-green-light);
  padding: 4px 10px;
  border-radius: var(--stx-radius-full);
  transition: all 0.2s ease;
}

.stx-size-chart-trigger:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

.stx-pills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stx-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: var(--stx-radius-md);
  border: 2px solid var(--stx-border);
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--stx-gray-800);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.stx-pill:hover:not(.disabled) {
  border-color: var(--stx-red);
  background: var(--stx-red-light);
}

.stx-pill.active {
  border-color: var(--stx-red);
  background: var(--stx-red);
  color: #fff;
  box-shadow: 0 4px 10px rgba(193, 39, 45, 0.25);
}

.stx-pill.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--stx-gray-100);
  border-color: var(--stx-gray-200);
  text-decoration: line-through;
  color: var(--stx-gray-400);
}

.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;
}

/* ==========================================================================
   10. Frictionless 1-Click COD Checkout Form
   ========================================================================== */
.stx-order-form-card {
  background: #ffffff;
  border-radius: var(--stx-radius-lg);
  border: 2px solid var(--stx-red);
  padding: 1.5rem;
  box-shadow: var(--stx-shadow-lg);
  position: relative;
  margin-top: 1rem;
}

.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;
}

.stx-input-icon {
  position: absolute;
  right: 14px;
  color: var(--stx-gray-400);
  pointer-events: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.stx-input {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 14px;
  border-radius: var(--stx-radius-md);
  border: 1.5px solid var(--stx-border);
  background: var(--stx-gray-50);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  direction: rtl;
}

.stx-input:focus {
  outline: none;
  border-color: var(--stx-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.15);
}

.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 */
.stx-order-summary-box {
  background: var(--stx-gray-50);
  border-radius: var(--stx-radius-md);
  border: 1px solid var(--stx-border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.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:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.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);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stx-sticky-mobile-bar.hidden {
  transform: translateY(120%);
}

.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: 200px;
  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;
  box-shadow: 0 4px 10px rgba(193, 39, 45, 0.3);
}

@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: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 10px;
}

.stx-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--stx-gray-900);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stx-card-pricing {
  display: flex;
  align-items: baseline;
  gap: 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: 4px;
}

.stx-btn-card-order {
  flex: 1;
  height: 38px;
  background: var(--stx-dark);
  color: #fff;
  border-radius: var(--stx-radius-md);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stx-btn-card-order:hover {
  background: var(--stx-red);
}

.stx-btn-card-details {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--stx-border);
  border-radius: var(--stx-radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stx-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.stx-btn-card-details:hover {
  border-color: var(--stx-gray-400);
  background: var(--stx-gray-100);
}

/* ==========================================================================
   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: 2.5rem auto 4rem;
  padding: 0 1rem;
}

.stx-thankyou-card {
  background: #ffffff;
  border-radius: var(--stx-radius-lg);
  border: 1px solid var(--stx-border);
  padding: 2.5rem 2rem;
  box-shadow: var(--stx-shadow-lg);
  text-align: center;
  direction: rtl;
}

.stx-thankyou-badge-icon {
  width: 72px;
  height: 72px;
  background: #ecfdf5;
  color: var(--stx-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 0 8px #d1fae5;
}

.stx-thankyou-title {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--stx-gray-900);
  margin-bottom: 6px;
}

.stx-thankyou-subtitle {
  color: var(--stx-gray-600);
  font-size: 0.95rem;
}

.stx-order-id-chip {
  display: inline-block;
  background: var(--stx-gray-100);
  color: var(--stx-dark);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--stx-radius-full);
  margin: 1.25rem auto;
  font-size: 1rem;
}

/* Order SLA Timeline */
.stx-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 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 */
.stx-thankyou-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.stx-thankyou-table th, .stx-thankyou-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--stx-border);
  text-align: right;
}

.stx-thankyou-table th {
  background: var(--stx-gray-50);
  font-weight: 800;
}

/* 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);
}

/* ==========================================================================
   17. Floating WhatsApp Support Button
   ========================================================================== */
.stx-whatsapp-float {
  position: fixed;
  bottom: 84px;
  left: 20px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 975;
  transition: all 0.25s ease;
}

.stx-whatsapp-float:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .stx-whatsapp-float {
    bottom: 74px;
    left: 14px;
    width: 50px;
    height: 50px;
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   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: var(--stx-dark);
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  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: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.stx-footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stx-footer-links a:hover {
  color: #fff;
}

.stx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 600px) {
  .stx-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
