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

/* ===== THEME COLOR SYSTEM ===== */
:root {
    /* Background — Clean & Light */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #F9F4F7;
    --color-bg-tertiary: #F3EAF0;
    --color-bg-green: #EFF4EC;
    --color-bg-peach: #FDF0F6;
    --color-surface: #FFFFFF;

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

    /* Header */
    --color-header: #FFFFFF;
    --color-header-text: #2D2D2D;
    --color-header-border: #F0E0EA;

    /* Footer — Deep */
    --color-footer: #1A1A2E;
    --color-footer-text: #B8A8C0;
    --color-footer-text-muted: #8A7A94;
    --color-footer-border: #2D2D42;
    --color-footer-heading: #F5EDF8;

    /* Text */
    --color-text-primary: #2D2D2D;
    --color-text-secondary: #6B6B7B;
    --color-text-tertiary: #9A9AAA;

    /* Accent — Pink */
    --color-accent: #DE2677;
    --color-accent-hover: #B81F62;
    --color-accent-light: #FDF0F6;

    /* Accent Secondary */
    --color-accent-secondary: #7A8B6F;
    --color-accent-secondary-hover: #667858;
    --color-accent-secondary-light: #F0F4ED;

    /* Primary alias (used by Tailwind & components) */
    --color-primary: #DE2677;
    --color-primary-dark: #B81F62;
    --color-primary-rgb: 222, 38, 119;
    --primary-rgb: 222, 38, 119;

    /* Borders */
    --color-border: #E8DDE5;
    --color-border-hover: #D4C4D0;
    --color-border-focus: #DE2677;

    /* Status */
    --color-success: #6B8F5E;
    --color-error: #C4503E;
    --color-warning: #D4943A;

    /* Typography */
    --font-heading-ar: 'Zain', 'Tajawal', 'Noto Sans Arabic', sans-serif;
    --font-heading-en: 'Lora', 'Georgia', 'Times New Roman', serif;
    --font-body-ar: 'Zain', 'Tajawal', 'Noto Sans Arabic', sans-serif;
    --font-body-en: 'DM Sans', 'Inter', 'Segoe UI', sans-serif;

    /* Spacing — 8px base grid */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 80px;
    --space-10: 120px;

    /* Gradient Accent — Pink */
    --gradient-accent: linear-gradient(135deg, #DE2677, #B81F62);
    --gradient-accent-hover: linear-gradient(135deg, #B81F62, #961A50);
    --gradient-accent-light: var(--color-accent-light);
    --gradient-accent-subtle: var(--color-bg-secondary);

    /* Border Radius */
    --radius-none: 0px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(45,45,45,0.05);
    --shadow-md: 0 2px 10px rgba(45,45,45,0.07);
    --shadow-lg: 0 6px 20px rgba(45,45,45,0.09);
    --shadow-xl: 0 12px 36px rgba(45,45,45,0.12);
    --shadow-accent: 0 4px 18px rgba(222,38,119,0.18);
    --shadow-accent-lg: 0 8px 32px rgba(222,38,119,0.22);
    --shadow-focus: 0 0 0 3px rgba(222,38,119,0.2);

    /* Animation & Motion */
    --transition-fast: 200ms ease;
    --transition-base: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 700ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-glacial: 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== HEADER — Scroll State ===== */
.header-scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--color-border);
}

/* ===== 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.8;
    font-weight: 400;
    letter-spacing: 0.01em;
    font-size: 16px;
    animation: pageEnter 800ms cubic-bezier(0.25, 0.1, 0.25, 1) both;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* Arabic headings — Almarai bold for artisan feel */
html[lang="ar"] h1, html[lang="ar"] h2,
html[dir="rtl"] h1, html[dir="rtl"] h2 {
    font-weight: 700;
}

html[lang="ar"] h3, html[lang="ar"] h4,
html[dir="rtl"] h3, html[dir="rtl"] h4 {
    font-weight: 600;
}

/* H1 — Hero Title */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* H2 — Section Title */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

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

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

/* --- Body Variants --- */
.text-body-lg {
    font-size: 1.125rem;
    font-weight: 400;
    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: 400;
    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: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.375rem; }
    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); }

/* Hirfa Artisan Utilities */
.bg-accent-secondary        { background-color: var(--color-accent-secondary); }
.bg-accent-secondary-light  { background-color: var(--color-accent-secondary-light); }
.text-accent-secondary      { color: var(--color-accent-secondary); }
.border-accent-secondary    { border-color: var(--color-accent-secondary); }
.bg-green                   { background-color: var(--color-bg-green); }
.bg-peach                   { background-color: var(--color-bg-peach); }

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

/* ===== HIRFA BUTTON SYSTEM — Artisan ===== */

/* Base — shared by all buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 300ms ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Primary — solid terracotta, no lift, warm glow on hover */
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: var(--radius-sm);
    border-bottom: 3px solid var(--color-accent-hover);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    border-bottom-color: #854E33;
    box-shadow: var(--shadow-accent);
}

.btn-primary:active {
    background: #854E33;
    color: #fff;
    border-bottom-width: 1px;
    padding-bottom: 15px;
}

/* Secondary — warm outline, dashed border for craft feel */
.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    border: 1.5px dashed var(--color-accent);
    padding: 13px 32px;
    border-radius: var(--radius-sm);
}

.btn-secondary:hover {
    background: var(--color-accent-light);
    border-style: solid;
    color: var(--color-accent-hover);
}

.btn-secondary:active {
    background: var(--color-bg-peach);
    color: var(--color-accent-hover);
}

/* Ghost — craft-style dotted underline CTA */
.btn-ghost {
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    padding: 8px 0;
    text-decoration: none;
    position: relative;
    border-bottom: 1.5px dotted var(--color-border);
    transition: all 300ms ease;
}

.btn-ghost:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    border-bottom-style: solid;
}

/* ===== HIRFA ARTISAN GRADIENT UTILITIES ===== */
.hirfa-gradient-bg       { background: var(--gradient-accent); }
.hirfa-gradient-bg-hover:hover { background: var(--gradient-accent-hover); }
.hirfa-gradient-bg-light { background: var(--color-accent-light); }
.hirfa-gradient-bg-subtle { background: var(--color-bg-secondary); }
.hirfa-gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HIRFA CARD SYSTEM — Artisan: grounded & warm ===== */
/* No floating/lifting — cards stay grounded like handcraft */
.hirfa-card {
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
    position: relative;
}
.hirfa-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transition: transform 400ms ease;
}
.hirfa-card:hover {
    background: var(--color-bg-peach);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}
.hirfa-card:hover::after {
    transform: scaleX(1);
}

/* Card with craft-stitch top border */
.hirfa-card-stitch {
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transition: background 300ms ease, box-shadow 300ms ease;
}
.hirfa-card-stitch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        90deg,
        var(--color-accent) 0px,
        var(--color-accent) 8px,
        transparent 8px,
        transparent 14px
    );
}
.hirfa-card-stitch:hover {
    background: var(--color-bg-peach);
    box-shadow: var(--shadow-md);
}

/* ===== HIRFA DECORATIVE ELEMENTS ===== */
.hirfa-section-deco {
    position: relative;
    overflow: hidden;
}

/* Artisan ornamental divider — three dots (craft stitch) */
.hirfa-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
}

.hirfa-ornament-dot {
    width: 5px;
    height: 5px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    flex-shrink: 0;
}

.hirfa-ornament-dot:nth-child(2) {
    width: 7px;
    height: 7px;
    opacity: 0.6;
}

.hirfa-ornament-line {
    width: 40px;
    height: 1.5px;
    background: var(--color-border);
}

/* Section subtitle label — craft badge style */
.hirfa-craft-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-light);
    padding: 5px 14px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--color-accent);
}

/* ===== HIRFA SECTION HEADER — Left-aligned artisan style ===== */
.hirfa-section-header {
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}
.hirfa-section-header .hirfa-sh-accent {
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 16px;
    border-radius: 1px;
}
.hirfa-section-header h2 {
    margin-bottom: 12px;
}
.hirfa-section-header p {
    color: var(--color-text-secondary);
    max-width: 520px;
    font-size: 15px;
    line-height: 1.75;
    letter-spacing: 0.01em;
}
/* Centered variant */
.hirfa-section-header.is-centered {
    text-align: center;
}
.hirfa-section-header.is-centered .hirfa-sh-accent {
    margin-inline: auto;
}
.hirfa-section-header.is-centered p {
    margin-inline: auto;
}

/* ===== HIRFA HOVER — Warm tint, no floating ===== */
.hirfa-lift {
    transition: all 300ms ease;
}
.hirfa-lift:hover {
    background: var(--color-accent-light);
    box-shadow: var(--shadow-sm);
}

/* ===== HIRFA 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%;
    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-accent);
    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(192,80,70,0.12);
}

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

/* ===== HIRFA 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 */

/* ===== HIRFA 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 — warm & natural for artisan feel */
.img-product,
.img-hero,
.img-category,
.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

/* Hover — gentle zoom for warm, organic feel */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 500ms ease, filter 500ms ease;
}

.img-zoom:hover img {
    transform: scale(1.04);
    filter: brightness(1.03) saturate(1.05);
}

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










/* Hirfa 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 — Hirfa Button System */
  
  /* ===== 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: var(--color-surface);
    width: 40px !important;
    height: 40px !important;
    border-radius: var(--radius-sm);
    box-shadow: none;
    border: 1.5px solid var(--color-border);
    transition: all 0.3s ease;
  }

  .swiper-button-next:hover,
  .swiper-button-prev:hover {
    background: var(--color-accent);
    color: #fff !important;
    border-color: var(--color-accent);
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
    font-weight: 500;
  }
  
  /* 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 — Artisan ===== */
  .toast {
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 24px rgba(61, 43, 26, 0.18);
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-inline-start: 3px solid rgba(255,255,255,0.3);
  }

  .toast-success { background-color: #5E8B4E; }
  .toast-error { background-color: #C4503E; }
  .toast-warning { background-color: #D4943A; }
  .toast-info { background-color: #2A1F14; color: var(--color-accent); border-inline-start-color: var(--color-accent); }

  @keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    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(42, 31, 20, 0.5);
    z-index: 10000;
    backdrop-filter: blur(6px);
  }

  /* ===== Drawer ===== */
  .drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 400px;
    background: #fff;
    z-index: 10001;
    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: #F5A623; }
  .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 ;
  }

/* ===== ARTISAN UTILITY CLASSES ===== */

/* Artisan category/meta label */
.editorial-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    position: relative;
    padding-inline-start: 12px;
}
.editorial-label::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
}

/* Artisan horizontal rule divider — dashed craft style */
.editorial-rule {
    width: 100%;
    height: 0;
    border: none;
    border-top: 1.5px dashed var(--color-border);
    position: relative;
}

/* Artisan link — dotted underline that becomes solid */
.editorial-link {
    position: relative;
    display: inline-block;
    color: var(--color-text-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-border-hover);
    padding-bottom: 1px;
    transition: color 300ms ease, border-color 300ms ease;
}
.editorial-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
    border-bottom-style: solid;
}

/* Drop cap for article content — artisan decorative first letter */
.hirfa-article-content > p:first-of-type::first-letter {
    font-family: var(--font-heading-ar);
    float: right;
    font-size: 3.5em;
    line-height: 0.85;
    padding-inline-end: 12px;
    padding-top: 4px;
    color: var(--color-accent);
    font-weight: 700;
}
html[dir="ltr"] .hirfa-article-content > p:first-of-type::first-letter {
    font-family: var(--font-heading-en);
    float: left;
    padding-inline-start: 0;
    padding-inline-end: 12px;
}

/* Artisan selection color */
::selection {
    background: rgba(222, 38, 119, 0.2);
    color: var(--color-text-primary);
}

/* Artisan scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-hover);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* ===== HIRFA ARTISAN EXTRAS ===== */

/* Subtle linen texture overlay for hero/banner sections */
.hirfa-texture {
    position: relative;
}
.hirfa-texture::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233D2B1A' fill-opacity='1'%3E%3Cpath d='M0 0h1v1H0zM20 0h1v1h-1zM0 20h1v1H0zM20 20h1v1h-1z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Stitch border — top or bottom decorative dashed line */
.hirfa-stitch-top {
    border-top: 2px dashed var(--color-border);
    padding-top: var(--space-5);
}

.hirfa-stitch-bottom {
    border-bottom: 2px dashed var(--color-border);
    padding-bottom: var(--space-5);
}

/* Badge — handmade/artisan product badge */
.hirfa-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    background: var(--color-accent);
    color: #fff;
}

.hirfa-badge-outline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    background: transparent;
    color: var(--color-accent);
    border: 1.5px solid var(--color-accent);
}

.hirfa-badge-sage {
    background: var(--color-accent-secondary);
    color: #fff;
}

/* Warm divider with center dot */
.hirfa-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: var(--space-6) 0;
}
.hirfa-divider::before,
.hirfa-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}
.hirfa-divider-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    flex-shrink: 0;
}

/* ===== BEAUTYA Product Card (global, used by SSR + AJAX-built cards) ===== */
.bty-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
}
.bty-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: var(--color-border-hover);
}
.bty-card-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 3;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    letter-spacing: 0.01em;
}
.bty-card-img {
    aspect-ratio: 1 / 1;
    background: var(--color-surface);
    position: relative;
    overflow: hidden;
}
.bty-card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.bty-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.bty-card:hover .bty-card-img img { transform: scale(1.04); }
.bty-card-add {
    position: absolute;
    inset-inline: 16px;
    bottom: 14px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    font-family: inherit;
    text-align: center;
    z-index: 5;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}
.bty-card:hover .bty-card-add { opacity: 1; transform: translateY(0); }
.bty-card-add:hover { background: var(--color-accent); color: #fff; }
.bty-card-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    border-top: 1px solid var(--color-border);
}
.bty-card-brand {
    color: var(--color-text-secondary);
    font-size: 0.78rem;
}
.bty-card-name {
    color: var(--color-text-primary);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 2px 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}
.bty-card-name a { color: inherit; text-decoration: none; }
.bty-card-name a:hover { color: var(--color-accent); }
.bty-card-prices {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.bty-card-price-old {
    color: var(--color-text-tertiary);
    font-size: 0.85rem;
    text-decoration: line-through;
}
.bty-card-price-new {
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 800;
}
.bty-card-oos {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.7);
    z-index: 4;
    pointer-events: none;
}
.bty-card-oos span {
    background: #fff;
    color: var(--color-text-tertiary);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    font-size: 0.78rem;
    font-weight: 600;
}
@media (max-width: 768px), (hover: none) {
    .bty-card-add {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}