/* ===== SECTION WIDGET VISIBILITY ===== */
/* Hide standalone SSR render; show only when inside data-qumra-section (AJAX) */
.shop-products-content { display: none; }
[data-qumra-section="shop-products"] .shop-products-content { display: block; }

/* ===== SUKOON COLOR SYSTEM ===== */
:root {
    /* Primary Palette — cool neutral to complement cyan */
    --color-bg-primary: #F8FAFB;
    --color-bg-secondary: #EBF1F3;
    --color-bg-tertiary: #DCE5E8;
    --color-surface: #FFFFFF;

    /* Section Alternation */
    --color-section-a: #FFFFFF;
    --color-section-b: #F1F6F7;

    /* Header */
    --color-header: #FFFFFF;
    --color-header-text: #1A2C32;
    --color-header-border: #E2EAEC;

    /* Footer */
    --color-footer: #1A2C32;
    --color-footer-text: #9FB5BD;
    --color-footer-text-muted: #607D8B;
    --color-footer-border: #2A3E46;
    --color-footer-heading: #FFFFFF;

    /* Text */
    --color-text-primary: #1A2C32;
    --color-text-secondary: #546E7A;
    --color-text-tertiary: #979797;

    /* Accent — Cyan */
    --color-accent: #00BCD4;
    --color-accent-hover: #00838F;
    --color-accent-light: #B2EBF2;

    /* Primary alias (used by Tailwind & components) */
    --color-primary: #00BCD4;
    --color-primary-dark: #00838F;

    /* Borders */
    --color-border: #D4DFE2;
    --color-border-hover: #C0CED2;
    --color-border-focus: #00BCD4;

    /* Status */
    --color-success: #7FB69E;
    --color-error: #C4726C;
    --color-warning: #C9A96E;

    /* Typography — Font Stacks */
    --font-heading-ar: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
    --font-heading-en: 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-body-ar: 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
    --font-body-en: 'DM Sans', system-ui, -apple-system, sans-serif;

    /* Spacing — 8px base grid */
    --space-1: 4px;     /* Inline icon gaps */
    --space-2: 8px;     /* Tight padding (tags, badges) */
    --space-3: 12px;    /* Inner component padding */
    --space-4: 16px;    /* Default component padding */
    --space-5: 24px;    /* Card padding */
    --space-6: 32px;    /* Section inner padding */
    --space-7: 48px;    /* Between related sections */
    --space-8: 64px;    /* Section vertical padding — Sukoon minimum */
    --space-9: 80px;    /* Large section gaps */
    --space-10: 120px;  /* Hero/CTA vertical padding */

    /* Border Radius — default: --radius-md (8px) */
    --radius-none: 0px;     /* Full-bleed sections, images */
    --radius-sm: 4px;       /* Tags, badges, small buttons */
    --radius-md: 8px;       /* Cards, inputs, standard buttons */
    --radius-lg: 12px;      /* Modals, large cards */
    --radius-xl: 16px;      /* Featured cards, hero sections */
    --radius-full: 9999px;  /* Pills, avatars */

    /* Shadows — barely noticeable, felt not seen */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);     /* Subtle card elevation */
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);     /* Elevated cards, dropdowns */
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);     /* Modals, floating elements */
    --shadow-focus: 0 0 0 3px #00BCD447; /* Focus ring — accent-based */

    /* Animation & Motion — slow and gentle, never rushed */
    --transition-fast: 200ms ease;
    --transition-base: 400ms ease-in-out;
    --transition-slow: 900ms ease-in-out;
    --transition-glacial: 1200ms cubic-bezier(0.25, 0, 0.25, 1);
}

/* ===== HEADER — Scroll State ===== */
.header-scrolled {
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 1px 8px rgba(0,0,0,0.04);
}

/* ===== SECTION ALTERNATION ===== */
.section-a { background: var(--color-section-a); }
.section-b { background: var(--color-section-b); }

/* ===== RESET ===== */
/* Tailwind v4 preflight handles the full reset. */
/* We only keep x-cloak and base body styles. */

/* Alpine.js — hide elements until initialized */
[x-cloak] {
    display: none !important;
}

body {
    font-family: var(--font-body-ar);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: 16px;
    animation: pageEnter 600ms ease both;
}

html[lang="en"] body,
html[dir="ltr"] body {
    font-family: var(--font-body-en);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== SUKOON TYPOGRAPHY SYSTEM ===== */

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading-ar);
    color: var(--color-text-primary);
}

html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3,
html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6,
html[dir="ltr"] h1, html[dir="ltr"] h2, html[dir="ltr"] h3,
html[dir="ltr"] h4, html[dir="ltr"] h5, html[dir="ltr"] h6 {
    font-family: var(--font-heading-en);
}

/* H1 — Page Title */
h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* H2 — Section Title */
h2 {
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

/* H3 — Card Title */
h3 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* H4 — Subtitle */
h4 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
}

/* --- Body Variants --- */
.text-body-lg {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.text-body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.text-body-sm {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.015em;
    color: var(--color-text-secondary);
}

.text-caption {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: var(--color-text-tertiary);
}

/* --- Price --- */
.text-price {
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    font-family: var(--font-heading-ar);
}

.text-price-sale {
    font-size: 1.375rem;
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: line-through;
    color: var(--color-text-tertiary);
}

/* --- Typography Rules --- */
p {
    max-width: 65ch;
    margin-bottom: 1.5em;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Mobile Type Scale --- */
@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1rem; }
    .text-body-lg { font-size: 1rem; }
    .text-body { font-size: 0.9375rem; }
    .text-body-sm { font-size: 0.8125rem; }
    .text-caption { font-size: 0.6875rem; }
    .text-price, .text-price-sale { font-size: 1.125rem; }
}

/* Image fade-in on load */
.img-fade {
    opacity: 0;
    transition: opacity 600ms ease;
}

.img-fade.is-loaded {
    opacity: 1;
}

/* Scroll Reveal — only when JS has initialised (prevents builder blanking) */
html.reveal-init .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 700ms ease, transform 700ms ease;
}
html.reveal-init .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover — subtle opacity, NO scale on cards */
.hover-fade {
    transition: opacity 400ms ease;
}

.hover-fade:hover {
    opacity: 0.85;
}


.btn-breathe-white {
    animation: btnBreatheWhite 3s ease-in-out infinite;
}


/* ===== THEME COLOR UTILITIES ===== */
.bg-accent        { background-color: var(--color-accent); }
.bg-accent-hover  { background-color: var(--color-accent-hover); }
.text-accent      { color: var(--color-accent); }
.text-secondary   { color: var(--color-text-secondary); }
.text-tertiary    { color: var(--color-text-tertiary); }
.bg-tertiary      { background-color: var(--color-bg-tertiary); }
.border-accent    { border-color: var(--color-accent); }

.hover\:bg-accent:hover       { background-color: var(--color-accent); }
.hover\:bg-accent-hover:hover { background-color: var(--color-accent-hover); }
.hover\:border-accent:hover   { border-color: var(--color-accent); }
.hover\:text-accent:hover     { color: var(--color-accent); }

/* ===== SUKOON BUTTON SYSTEM ===== */

/* Base — shared by all buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 300ms ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Primary */
.btn-primary {
    background: var(--color-accent);
    color: #FFFFFF;
    border: none;
    padding: 14px 32px;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    opacity: 0.85;
}

.btn-primary:active {
    background: #6B8790;
    transform: translateY(0);
}

/* Secondary */
.btn-secondary {
    background: transparent;
    color: var(--color-text-primary);
    border: 1.5px solid var(--color-border);
    padding: 14px 32px;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-secondary:active {
    border-color: var(--color-accent-hover);
    color: var(--color-accent-hover);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--color-accent);
    padding: 8px 4px;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-ghost:hover {
    text-underline-offset: 2px;
}

.btn-ghost:active {
    color: var(--color-accent-hover);
}

/* ===== SUKOON FORM & INPUT STYLES ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="tel"],
input[type="url"],
textarea,
select,
.input {
    width: 100%;
    background: var(--color-surface);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

input::placeholder,
textarea::placeholder,
.input::placeholder {
    color: var(--color-text-tertiary);
}

input:focus,
textarea:focus,
select:focus,
.input:focus {
    border-color: var(--color-border-focus);
    box-shadow: var(--shadow-focus);
}

/* Error state */
input.is-error,
textarea.is-error,
select.is-error,
.input.is-error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(196,114,108,0.15);
}

/* Label */
label,
.label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

/* Helper / Error text */
.input-helper {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: var(--space-1);
}

.input-error {
    font-size: 13px;
    color: var(--color-error);
    margin-top: var(--space-1);
}

/* ===== SUKOON ICON SYSTEM ===== */
/* Line/outline icons, 1.5px stroke — Phosphor Icons (Light) */

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
    flex-shrink: 0;
}

.icon svg {
    stroke-width: 1.5;
}

.icon-sm { width: 16px; height: 16px; }      /* Inline */
.icon-md { width: 20px; height: 20px; }      /* Default */
.icon-lg { width: 24px; height: 24px; }      /* Navigation */

/* ===== SUKOON IMAGE TREATMENT ===== */

/* Aspect Ratios */
.img-product { aspect-ratio: 4 / 5; }        /* Product — portrait */
.img-hero { aspect-ratio: 16 / 9; }          /* Hero — wide */
.img-category { aspect-ratio: 1 / 1; }       /* Category — square */

/* Base image style */
.img-product,
.img-hero,
.img-category,
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.9);
}

/* Image in cards — rounded */
.img-card {
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Image standalone — no radius */
.img-full {
    border-radius: var(--radius-none);
    overflow: hidden;
}

/* Hover — slow subtle zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform var(--transition-slow);
}

.img-zoom:hover img {
    transform: scale(1.02);
}

/* Placeholder — shown before image loads */
.img-placeholder {
    background: var(--color-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Blur-up loading technique */
.img-blur {
    filter: blur(15px) saturate(0.9);
    transform: scale(1.05);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.img-blur.is-loaded {
    filter: blur(0) saturate(0.9);
    transform: scale(1);
}










/* Qamar Theme - Stylesheet */

/* ===== Base Styles ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
  }
  
  .active {
    color: var(--color-accent);
  }
  
  .removing {
    opacity: 0;
    transition: all 0.4s ease;
  }
  html[dir="ltr"] .removing { transform: translateX(-100%); }
  html[dir="rtl"] .removing { transform: translateX(100%); }

  /* ===== Line Clamp ===== */
  .line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Button Styles — see Sukoon Button System above */
  
  /* ===== Scrollbar ===== */
  .custom-scrollbar::-webkit-scrollbar {
    width: 4px;
  }
  
  .custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
  }
  
  /* Hide scrollbar but keep scroll */
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
  
  .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-secondary);
  }
  
  /* ===== Swiper Custom Styles ===== */
  .swiper-pagination-bullet {
    background: var(--color-accent) !important;
    opacity: 0.4;
  }
  
  .swiper-pagination-bullet-active {
    opacity: 1 !important;
  }
  
  .swiper-button-next,
  .swiper-button-prev {
    color: var(--color-accent) !important;
    background: rgba(255, 255, 255, 0.9);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
    font-weight: bold;
  }
  
  /* Swiper equal-height slides */
  .swiper-outside-pagination .swiper-wrapper {
    align-items: stretch;
  }
  .swiper-outside-pagination .swiper-slide {
    height: auto;
  }
  
  /* Pagination outside slides (for product sliders) */
  .swiper-outside-pagination {
    overflow-x: clip;
    overflow-y: visible;
  }
  
  .swiper-outside-pagination > .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 1.5rem;
  }
  
  /* ===== Toast Notifications ===== */
  .toast {
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    animation: toastIn 0.4s ease;
  }
  
  .toast-success { background-color: #10b981; }
  .toast-error { background-color: #ef4444; }
  .toast-warning { background-color: #f59e0b; }
  .toast-info { background-color: var(--color-accent); }
  
  @keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  /* ===== Overlay ===== */
  /* Lang form reset — remove default form spacing */
  .lang-form {
    margin: 0;
    padding: 0;
  }

  .overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    backdrop-filter: blur(2px);
  }
  
  /* ===== Drawer ===== */
  .drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: #fff;
    z-index: 50;
    overflow-y: auto;
    transition: transform 0.4s ease;
  }

  html[dir="rtl"] .drawer-start {
    right: 0;
    transform: translateX(100%);
  }
  
  html[dir="ltr"] .drawer-start {
    left: 0;
    transform: translateX(-100%);
  }
  
  html[dir="rtl"] .drawer-end {
    left: 0;
    transform: translateX(-100%);
  }
  
  html[dir="ltr"] .drawer-end {
    right: 0;
    transform: translateX(100%);
  }
  
  .drawer.open {
    transform: translateX(0) !important;
  }
  
  /* ===== Animations ===== */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .animate-fade-in { animation: fadeIn 0.4s ease; }
  .animate-slide-up { animation: slideUp 0.7s ease; }
  
  /* ===== Product Card ===== */
  /* Cards use Tailwind classes directly. This section is for AJAX-loaded cards only. */
  .ajax-card {
    transition: opacity 700ms ease, transform 700ms ease;
  }
  
  
  /* ===== Section Header ===== */
  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
  }
  
  .section-header p {
    color: var(--color-text-secondary);
    font-size: 1rem;
  }
  
  /* ===== Loading & Success Animations ===== */
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  
  .animate-spin {
    animation: spin 0.8s linear infinite;
  }
  
  @keyframes checkPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  .animate-check {
    animation: checkPop 0.4s ease;
  }
  
  /* ===== Cart Item Enter ===== */
  @keyframes cartItemEnter {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .cart-item-enter {
    animation: cartItemEnter 0.4s ease-out;
  }
  
  /* ===== Rating Stars ===== */
  .stars {
    display: inline-flex;
    gap: 2px;
  }
  
  .stars .star-filled { color: #fbbf24; }
  .stars .star-empty { color: var(--color-border); }
  
  /* ===== Price Range Slider ===== */
  .price-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
  }
  
  .price-slider .slider-track {
    position: absolute;
    width: 100%;
    height: 5px;
    background: var(--color-border);
    border-radius: 9999px;
  }

  .price-slider .slider-range {
    position: absolute;
    height: 5px;
    background: var(--color-accent);
    border-radius: 9999px;
  }
  
  .price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
    margin: 0;
    padding: 0;
    height: 5px;
    outline: none;
  }
  
  .price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--color-accent);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .price-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  }

  .price-slider input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
  }

  .price-slider input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    border: 2.5px solid var(--color-accent);
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    cursor: pointer;
  }
  
  .price-slider input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
  }

  /* ===== Missing Keyframes ===== */
  @keyframes pageEnter {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes btnBreatheWhite {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  }

  /* ===== Reduced Motion ===== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html.reveal-init .reveal { opacity: 1; transform: none; }
    .img-fade { opacity: 1; }
  }



  .p-qoute * {
    color: white ;
  }