@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════
   DESIGN SYSTEM — LUXURY EDITORIAL DARK
   Sherbaji Electric / قائمة الأسعار
═══════════════════════════════════════════ */

:root {
    --brand:        #09332f;
    --brand-deep:   #061f1c;
    --brand-mid:    #0e4a45;
    --brand-light:  #1a6b64;
    --gold:         #c9aa72;
    --gold-light:   #dfc99a;
    --gold-dark:    #9d7f4e;
    --soft:         #f5f3ef;
    --surface:      #ffffff;
    --surface-2:    #faf9f7;
    --text:         #1a1a1a;
    --text-muted:   #7a7873;
    --sale:         #c0392b;
    --border:       rgba(201, 170, 114, 0.18);
    --border-soft:  rgba(201, 170, 114, 0.09);
    --shadow-gold:  0 8px 32px rgba(201, 170, 114, 0.12);
    --shadow-dark:  0 20px 60px rgba(6, 31, 28, 0.18);
    --radius-sm:    10px;
    --radius-md:    18px;
    --radius-lg:    28px;
    --radius-xl:    40px;
}

/* ─── BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--soft);
    color: var(--text);
    padding-top: 72px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(9, 51, 47, 0.06) 0%, transparent 70%);
}

/* ─── ACTION BAR ────────────────────────────────────────── */
.action-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: #09332f;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 0 rgba(201, 170, 114, 0.2), 0 8px 32px rgba(6, 31, 28, 0.35);
    border-bottom: 1px solid rgba(201, 170, 114, 0.15);
    padding-top: env(safe-area-inset-top);
    height: calc(72px + env(safe-area-inset-top));
}

.action-bar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.action-bar-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.action-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.action-half:hover {
    background: rgba(201, 170, 114, 0.08);
}

.action-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    width: 100%;
    height: 100%;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.action-btn:hover {
    color: var(--gold-light);
    transform: translateY(-1px);
}

.action-icon {
    font-size: 1.15rem;
}

.action-text {
    font-size: 0.78rem;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    letter-spacing: 0.04em;
}

.separator {
    width: 1px;
    background: rgba(201, 170, 114, 0.22);
    height: 38%;
    align-self: center;
}

/* ─── HEADER ────────────────────────────────────────────── */
.catalog-header {
    background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-mid) 100%);
    color: #fff;
    padding: 80px 0 35px;
    margin-top: -20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.catalog-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 80% at 30% 50%, rgba(201,170,114,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 50%);
}

.catalog-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--soft);
    /* clip-path: ellipse(55% 100% at 50% 100%); */
}

.catalog-header .container {
    position: relative;
    z-index: 2;
}

.catalog-header img {
    filter: brightness(1.1) drop-shadow(0 4px 20px rgba(201,170,114,0.3));
    transition: transform 0.4s ease;
}

.catalog-header img:hover {
    transform: scale(1.03);
}

/* ─── VISITOR COUNTER ───────────────────────────────────── */
.visitor-counter {
    margin: -4.5rem auto 2.5rem;
    position: relative;
    z-index: 20;
}

.visitor-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dark), 0 1px 0 rgba(255,255,255,0.9) inset;
    padding: 1.8rem;
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visitor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold), var(--brand));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.visitor-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark), var(--shadow-gold), 0 1px 0 rgba(255,255,255,0.9) inset;
}

.visitor-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(9,51,47,0.25);
}

.visitor-icon i {
    color: var(--gold);
    font-size: 1.6rem;
}

.visitor-number {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--brand);
    line-height: 1;
    letter-spacing: -0.02em;
}

.live-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.live-dot {
    width: 9px;
    height: 9px;
    background: #27ae60;
    border-radius: 50%;
    animation: pulse 2.2s infinite;
    box-shadow: 0 0 0 0 rgba(39,174,96,0.4);
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(39,174,96,0.4); }
    60%  { box-shadow: 0 0 0 8px rgba(39,174,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
}

/* ─── SEARCH CARD ───────────────────────────────────────── */
.search-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dark), 0 1px 0 rgba(255,255,255,0.9) inset;
    padding: 1.8rem 2rem;
    border: 1px solid var(--border);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--brand), var(--gold));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-dark), var(--shadow-gold), 0 1px 0 rgba(255,255,255,0.9) inset;
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 1.8rem;
}

.search-input {
    width: 100%;
    padding: 1rem 3.2rem 1rem 1.2rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(201,170,114,0.12);
}

.search-icon {
    position: absolute;
    right: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.9rem;
}

.clear-search {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: none;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-search:hover {
    color: var(--brand);
    background: rgba(9,51,47,0.07);
}

/* ─── CATEGORIES ────────────────────────────────────────── */
.categories-wrapper {
    margin-top: 0;
}

.categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.categories-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-height: 180px;
    overflow-y: auto;
    padding: 0.3rem 0;
}

.categories-grid::-webkit-scrollbar { width: 4px; }
.categories-grid::-webkit-scrollbar-track { background: var(--border-soft); border-radius: 10px; }
.categories-grid::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

.category-btn {
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.category-btn:hover {
    background: var(--brand);
    color: white;
    border-color: var(--brand);
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    color: white;
    border-color: transparent;
}

/* ─── CATALOG SECTION ───────────────────────────────────── */
.catalog-section {
    background: transparent;
    border-radius: 0;
    margin-bottom: 10px;
}

.search-result-count {
    font-size: 14px;
    font-weight: 400;
    color: #b9a87a;
    margin-right: 8px;
}

.section-title {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    /* font-size: 1.9rem;
    font-weight: 700; */
    color: var(--brand);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.01em;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
}

/* ─── PRODUCT CARD ──────────────────────────────────────── */
.product-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    height: 100%;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: var(--surface);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(201,170,114,0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    cursor: pointer;
}

/* Desktop hover */
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    -webkit-tap-highlight-color: transparent;
}

/* Mobile tap */
.product-card:active {
    transform: scale(0.98);
}

.product-card.pressed {
    transform: scale(0.97);
    box-shadow:
        0 12px 30px rgba(9,51,47,0.15),
        0 2px 10px rgba(201,170,114,0.12);
}

.product-card:hover::before {
    opacity: 1;
}

/* ─── SALE BADGE ────────────────────────────────────────── */
.sale-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(192,57,43,0.3);
}

/* ─── PRODUCT CODE ──────────────────────────────────────── */
.product-code {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    color: #fff;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(9,51,47,0.2);
    font-family: 'DM Sans', sans-serif;
}

/* ─── PRODUCT IMAGE ─────────────────────────────────────── */
.product-image {
    height: 180px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    background: #ffff;
    transition: background 0.3s ease;
}

.product-card:hover .product-image {
    background: #ffff;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.06);
}

/* ─── PRODUCT NAME ──────────────────────────────────────── */
.product-name {
    font-size: 0.93rem;
    font-weight: 500;
    min-height: 48px;
    color: var(--text);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* ─── PRODUCT FOOTER / PRICES ───────────────────────────── */
.product-footer {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.price {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-dark);
    letter-spacing: 0.01em;
}

.sale-price {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sale);
}

.original-price {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

/* ─── NO RESULTS ────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    display: none;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    color: var(--gold);
    opacity: 0.5;
}

/* ─── SEARCH HIGHLIGHT ──────────────────────────────────── */
.highlight {
    background: linear-gradient(120deg, rgba(201,170,114,0.3), rgba(201,170,114,0.15));
    padding: 0 3px;
    border-radius: 3px;
    color: var(--brand);
    font-weight: 600;
}

/* ─── RESULT COUNT ──────────────────────────────────────── */
.result-count {
    background: var(--brand);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    display: none;
    font-weight: 500;
}

/* ─── LOADING ────────────────────────────────────────────── */
.search-loading {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    color: var(--gold);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(245,243,239,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    backdrop-filter: blur(8px);
}

.loading-overlay i {
    color: var(--brand) !important;
}

.loading-overlay p {
    color: var(--brand) !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    margin-top: 20px;
}

/* ─── DIVIDER ────────────────────────────────────────────── */
.divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 18px auto;
    border-radius: 2px;
    opacity: 0.5;
}

/* ─── PAGINATION ─────────────────────────────────────────── */
.pagination-wrapper {
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    direction: ltr;
}

.page-item { display: inline-flex; }

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.6rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.page-link i {
    font-size: 0.85rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

.page-link:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(9,51,47,0.2);
}

.page-link:hover i { color: var(--gold-light); }

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    border-color: transparent;
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(9,51,47,0.25);
}

.page-item.disabled .page-link {
    background: var(--surface-2);
    border-color: var(--border-soft);
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.5;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    padding: 0 1rem;
    gap: 8px;
}

.page-info {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.page-info span {
    color: var(--brand);
    font-weight: 600;
    padding: 0 3px;
}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-mid) 100%);
    color: var(--gold-light);
    border: 1.5px solid rgba(201,170,114,0.35);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(9,51,47,0.3);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(9,51,47,0.35);
    border-color: var(--gold);
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── WHATSAPP BUTTON ────────────────────────────────────── */
/* --- Professional WhatsApp Pricing Button --- */

.btn-whatsapp-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Slightly increased for better visual rhythm */
    position: relative;
    overflow: hidden;

    /* Solid, sophisticated background instead of a harsh gradient */
    background: var(--gold);
    color: #ffffff;
    text-decoration: none;

    /* Slightly larger padding and font for better accessibility and clickability */
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.8rem; /* Increased from 0.82rem for readability */
    letter-spacing: 0.03em;
    width: 100%;
    cursor: pointer;

    /* Subtle border and realistic, layered shadow for premium depth */
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08),
                0 4px 12px rgba(9, 51, 47, 0.08);

    /* Premium easing curve for all transitions */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* The "Shine" Effect - Made softer and more elegant */
.btn-whatsapp-price::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.6s ease-in-out;
}

/* Icon Styling - Integrating nicely with the brand colors */
.btn-whatsapp-price i {
    font-size: 1.1rem;
    color: var(--gold); /* Uses gold instead of green for a unified luxury/premium feel */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Hover States --- */

.btn-whatsapp-price:hover {
    /* Subtle shift to the mid-brand color rather than a jarring jump to gold */
    background: var(--brand-mid);
    border-color: rgba(201, 170, 114, 0.3); /* Subtle gold border appears */
    color: #ffffff;

    /* Gentle lift */
    transform: translateY(-1px);

    /* Shadow disperses softly */
    box-shadow: 0 6px 16px rgba(9, 51, 47, 0.12),
                0 2px 4px rgba(9, 51, 47, 0.08);
}

.btn-whatsapp-price:hover::after {
    left: 150%;
}

.btn-whatsapp-price:hover i {
    /* Softer scale, no rotation (rotation can look gimmicky) */
    transform: scale(1.1);
    color: #ffffff;
}

/* --- Active/Click State --- */

.btn-whatsapp-price:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(9, 51, 47, 0.1);
    transition: all 0.1s ease; /* Faster snap on click */
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
    background: linear-gradient(180deg, var(--surface-2) 0%, #ede9e1 100%);
    color: var(--text);
    padding: 60px 0 36px;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.5;
}

footer h6 {
    /* font-family: 'Cormorant Garamond', Georgia, serif; */
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

footer i {
    color: var(--gold);
    margin-left: 8px;
}

footer a {
    color: var(--text) !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand) !important;
}

footer .border-top {
    border-color: var(--border) !important;
}

footer .text-center {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

/* ─── PAGE SIZE SELECTOR ─────────────────────────────────── */
.page-size-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.page-size-selector label {
    color: var(--text);
    font-weight: 500;
    font-size: 0.88rem;
}

.page-size-selector select {
    padding: 0.5rem 2rem 0.5rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--brand);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    transition: all 0.2s;
}

.page-size-selector select:hover,
.page-size-selector select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,170,114,0.12);
}

/* ─── RTL ARROWS ─────────────────────────────────────────── */
[dir="rtl"] .page-item:first-child .page-link i { transform: rotate(180deg); }
[dir="rtl"] .page-item:last-child  .page-link i { transform: rotate(180deg); }

/* ─── PRINT ──────────────────────────────────────────────── */
@media print {
    .action-bar, .search-section, .category-filter, .visitor-counter { display: none !important; }
    body { background: #fff; padding-top: 0; }
    .product-card { box-shadow: none; border: 1px solid #ddd; }
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .visitor-number { font-size: 1.8rem; }
    .visitor-icon   { width: 46px; height: 46px; }
    .visitor-icon i { font-size: 1.3rem; }
    .visitor-card, .search-card { padding: 1.3rem; }
    .categories-grid { max-height: 140px; }
    .category-btn    { font-size: 0.82rem; }
    .action-bar      { height: 64px; }
    body             { padding-top: 64px; }
    /* .section-title   { font-size: 1.5rem; } */
    .product-image   { height: 150px; }
}

@media (max-width: 576px) {
    .action-bar  { height: 60px; }
    body         { padding-top: 58px; }
    .visitor-number { font-size: 1.5rem; }
    .visitor-card .d-flex { gap: 1rem !important; }
    .action-btn  { margin-top: 5px; }
    .scroll-to-top { bottom: 20px; left: 20px; width: 42px; height: 42px; }
    .page-link   { min-width: 36px; height: 36px; font-size: 0.85rem; }
    .page-item:first-child .page-link span,
    .page-item:last-child  .page-link span { display: none; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-item {
    animation: fadeIn 0.4s ease both;
}

.product-item:nth-child(1)  { animation-delay: 0.04s; }
.product-item:nth-child(2)  { animation-delay: 0.08s; }
.product-item:nth-child(3)  { animation-delay: 0.12s; }
.product-item:nth-child(4)  { animation-delay: 0.16s; }
.product-item:nth-child(5)  { animation-delay: 0.20s; }
.product-item:nth-child(6)  { animation-delay: 0.24s; }
.product-item:nth-child(7)  { animation-delay: 0.28s; }
.product-item:nth-child(8)  { animation-delay: 0.32s; }







/* ═══════════════════════════════════════════════════
   Prayer Bar  —  Premium Glassmorphism Style
   ═══════════════════════════════════════════════════ */

.prayer-bar {
    display: inline-flex; /* Ensures it perfectly wraps the content and centers */
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.06); /* Subtle transparent background */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); /* For Safari support */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px; /* Perfect rounded pill shape */
    padding: 7px 16px 7px 20px; /* Optically balanced padding */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prayer-bar:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(185, 168, 122, 0.5); /* Brand gold border on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    color: inherit;
}

.prayer-bar:active {
    transform: translateY(0);
}

/* Hijri date */
.prayer-bar__hijri {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    flex-shrink: 0;
}

.prayer-bar__hijri svg {
    color: #b9a87a; /* Gold calendar icon */
    flex-shrink: 0;
}

/* Separator */
.prayer-bar__sep {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.2); /* Soft subtle line */
    flex-shrink: 0;
}

/* Next prayer */
.prayer-bar__next {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.prayer-bar__label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

.prayer-bar__time {
    font-size: 13px;
    font-weight: 800;
    color: #09332f; /* Dark green text */
    background: #b9a87a; /* Gold background badge */
    padding: 3px 12px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Arrow */
.prayer-bar__arrow {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.prayer-bar:hover .prayer-bar__arrow {
    color: #b9a87a;
    transform: translateX(-4px); /* Moves left slightly indicating action (RTL) */
}

/* Mobile Adjustments */
@media (max-width: 520px) {
    .prayer-bar {
        gap: 10px;
        padding: 6px 12px;
    }
    .prayer-bar__hijri, .prayer-bar__label, .prayer-bar__time {
        font-size: 11px;
    }
    .prayer-bar__time {
        padding: 2px 8px;
    }
    .prayer-bar__sep {
        height: 14px;
    }
    .prayer-bar__arrow {
        display: block;
    }
}



/* ═══════════════════════════════════════════════════
   Currency Converter Widget
   ═══════════════════════════════════════════════════ */
.currency-widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid rgba(9, 51, 47, 0.08);
    max-width: 100%;
    margin-bottom: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.currency-widget:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.currency-widget__header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #09332f;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 14px;
}

.currency-widget__header i {
    color: #b9a87a;
}

.currency-widget__body {
    display: flex;
    align-items: center;
    gap: 10px;
}

.currency-input-group {
    display: flex;
    align-items: center;
    background: #f5f4f0;
    border-radius: 8px;
    flex: 1;
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color 0.2s;
}

.currency-input-group:focus-within {
    border-color: #b9a87a;
    background: #fff;
}

.currency-symbol {
    padding: 8px 12px;
    background: rgba(9, 51, 47, 0.05);
    color: #09332f;
    font-weight: 700;
    font-size: 13px;
    border-left: 1px solid rgba(0,0,0,0.05);
}

.currency-input-group input {
    border: none;
    background: transparent;
    padding: 8px 12px;
    width: 100%;
    font-weight: 700;
    color: #111;
    outline: none;
    font-variant-numeric: tabular-nums;
    direction: ltr; /* Keeps numbers formatted correctly */
}

.currency-equals {
    color: #bbb;
    font-size: 12px;
}

.currency-widget__footer {
    margin-top: 12px;
    font-size: 11px;
    color: #888;
    text-align: right;
}

#currentRateDisplay {
    font-weight: 700;
    color: #b9a87a;
}




/* تنسيقات لوحة التحكم العصرية */
.modern-dashboard {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

/* شريط البحث */
.modern-search-wrapper {
    position: relative;
    margin-bottom: 20px;
}
.modern-search-wrapper .search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #b9a87a;
    font-size: 18px;
}
.modern-search-input {
    width: 100%;
    padding: 14px 45px 14px 45px;
    border-radius: 50px;
    border: 1px solid #eee;
    background: #fdfdfd;
    font-size: 15px;
    transition: all 0.3s ease;
}
.modern-search-input:focus {
    border-color: #b9a87a;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(185, 168, 122, 0.1);
}
.clear-search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    font-size: 18px;
    display: none; /* يتم إظهاره عبر JS */
}

/* تصنيفات السحب الأفقي */
.categories-scroll-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 15px;
    scrollbar-width: none; /* إخفاء شريط التمرير في فايرفوكس */
    -webkit-overflow-scrolling: touch;
}
.categories-scroll-wrapper::-webkit-scrollbar {
    display: none; /* إخفاء شريط التمرير في كروم وسفاري */
}
.cat-pill {
    white-space: nowrap;
    padding: 8px 20px;
    background: #f4f4f4;
    border-radius: 50px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.cat-pill.active {
    background: #09332f;
    color: #ffffff;
}
.cat-pill:hover:not(.active) {
    background: #e9e9e9;
    color: #000;
}

/* نظام التبويبات (Tabs) */
.tools-nav {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
.tools-nav-btn {
    background: none;
    border: none;
    padding: 10px 5px;
    font-weight: 600;
    font-size: 14px;
    color: #888;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}
.tools-nav-btn.active {
    color: #09332f;
}
.tools-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: #b9a87a;
    border-radius: 3px 3px 0 0;
}
.tool-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}
.tool-pane.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* الحاسبة والإحصائيات */
.calc-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.calc-input-group {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
}
.currency-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}
.calc-input-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fcfcfc;
    font-weight: bold;
}
.calc-input-group input:focus {
    border-color: #b9a87a;
    outline: none;
}
.calc-icon {
    color: #b9a87a;
    background: #f4f4f4;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-top: 20px; /* لضبط المحاذاة مع العناوين */
}
.calc-footer {
    font-size: 11px;
    color: #888;
}
.stats-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.stat-box {
    flex: 1;
    min-width: 130px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.stat-icon {
    font-size: 24px;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.stat-number {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}
.stat-label {
    font-size: 12px;
    color: #777;
    margin-top: 4px;
}


/* تنسيق تلميح السحب للتصنيفات */
.categories-hint {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 5px;
}

.categories-hint .pulse-icon {
    color: #b9a87a; /* نفس اللون الذهبي المستخدم في موقعك */
    animation: slidePulse 1.5s infinite ease-in-out;
}

@keyframes slidePulse {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50% { transform: translateX(-3px); opacity: 1; }
}
