/* ═══════════════════════════════════════════════════════════════════
   Alfa Slab Inventory — Frontend Styles
   Premium marble/stone — RTL Arabic + English bilingual
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ─────────────────────────────────────────── */
:root {
    /* Brand Colors */
    --alfa-gold: #c9a96e;
    --alfa-gold-light: #d4b97e;
    --alfa-gold-dark: #a88b4a;
    --alfa-dark: #1a1a1a;
    --alfa-darker: #111111;
    --alfa-surface: #ffffff;
    --alfa-surface-alt: #f8f7f5;
    --alfa-border: #e8e5df;
    --alfa-border-light: #f0ede8;
    --alfa-text: #2d2d2d;
    --alfa-text-muted: #7a7a7a;
    --alfa-text-light: #a0a0a0;

    /* Status */
    --alfa-green: #2ecc71;
    --alfa-green-bg: #f0faf4;
    --alfa-red: #e74c3c;
    --alfa-red-bg: #fdf1f0;

    /* WhatsApp */
    --alfa-whatsapp: #25d366;
    --alfa-whatsapp-hover: #1ebe5d;

    /* Spacing */
    --alfa-gap: 20px;
    --alfa-radius: 12px;
    --alfa-radius-sm: 8px;
    --alfa-radius-xs: 6px;

    /* Shadows */
    --alfa-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --alfa-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    --alfa-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --alfa-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* Transitions */
    --alfa-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --alfa-duration: 0.3s;
}

/* ─── Global Reset for Plugin Scope ─────────────────────────────── */
.alfa-catalog-wrapper *,
.alfa-single-product *,
.alfa-categories-grid * {
    box-sizing: border-box;
}

/* ─── Typography — Arabic + Latin ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&family=Tajawal:wght@400;500;700&display=swap');

.alfa-catalog-wrapper,
.alfa-single-product,
.alfa-categories-grid {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--alfa-text);
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

/* ─── English Sub-labels ────────────────────────────────────────── */
.alfa-title-en,
.alfa-spec-label-en,
.alfa-badge-en {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    opacity: 0.55;
    font-size: 0.75em;
    margin-inline-start: 6px;
    letter-spacing: 0;
    text-transform: none;
}

.alfa-slab-block-id-en {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--alfa-text-muted);
    font-weight: 400;
    opacity: 0.7;
    margin-top: 2px;
}

/* ─══════════════════════════════════════════════════════════════════
   CATALOG
   ═══════════════════════════════════════════════════════════════════ */

.alfa-catalog-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ── Header ─────────────────────────────────────────────────────── */
.alfa-catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.alfa-catalog-title {
    font-family: 'Tajawal', 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--alfa-dark);
    margin: 0;
    line-height: 1.3;
}

.alfa-catalog-subtitle {
    font-size: 15px;
    color: var(--alfa-text-muted);
    margin: 4px 0 0;
}

.alfa-search-box {
    position: relative;
    width: 300px;
}

.alfa-search-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--alfa-text-muted);
    pointer-events: none;
}

.alfa-search-box input {
    width: 100%;
    padding: 10px 16px;
    padding-inline-start: 42px;
    border: 1.5px solid var(--alfa-border);
    border-radius: 50px;
    background: var(--alfa-surface);
    font-size: 14px;
    font-family: inherit;
    color: var(--alfa-text);
    transition: all var(--alfa-duration) var(--alfa-ease);
    outline: none;
    text-align: right;
}

.alfa-search-box input:focus {
    border-color: var(--alfa-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.alfa-search-box input::placeholder {
    color: var(--alfa-text-light);
}

/* ── Category Tabs ──────────────────────────────────────────────── */
.alfa-filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.alfa-filter-tabs::-webkit-scrollbar {
    display: none;
}

.alfa-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border: 1.5px solid var(--alfa-border);
    border-radius: 50px;
    background: var(--alfa-surface);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--alfa-text-muted);
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
    white-space: nowrap;
}

.alfa-tab:hover {
    border-color: var(--alfa-gold);
    color: var(--alfa-gold-dark);
}

.alfa-tab.active {
    background: var(--alfa-dark);
    border-color: var(--alfa-dark);
    color: #fff;
}

.alfa-tab-count {
    font-size: 12px;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 8px;
    border-radius: 50px;
    font-weight: 600;
}

.alfa-tab.active .alfa-tab-count {
    background: rgba(255, 255, 255, 0.2);
}

/* ── Attribute Filters ──────────────────────────────────────────── */
.alfa-filters-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.alfa-filter-select {
    padding: 8px 14px;
    padding-inline-end: 36px;
    border: 1.5px solid var(--alfa-border);
    border-radius: var(--alfa-radius-sm);
    background: var(--alfa-surface);
    font-family: inherit;
    font-size: 13px;
    color: var(--alfa-text);
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237a7a7a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    outline: none;
}

.alfa-filter-select:focus {
    border-color: var(--alfa-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.alfa-filter-select:hover {
    border-color: var(--alfa-gold-light);
}

.alfa-filter-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--alfa-radius-sm);
    background: var(--alfa-red-bg);
    color: var(--alfa-red);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-filter-reset:hover {
    background: var(--alfa-red);
    color: #fff;
}

/* ── Results Info ───────────────────────────────────────────────── */
.alfa-results-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--alfa-text-muted);
}

/* ── Product Grid ───────────────────────────────────────────────── */
.alfa-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--alfa-gap);
}

/* ── Product Card ───────────────────────────────────────────────── */
.alfa-product-card {
    background: var(--alfa-surface);
    border: 1px solid var(--alfa-border-light);
    border-radius: var(--alfa-radius);
    overflow: hidden;
    transition: all var(--alfa-duration) var(--alfa-ease);
    cursor: pointer;
}

.alfa-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--alfa-shadow-lg);
    border-color: var(--alfa-gold-light);
}

.alfa-product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--alfa-surface-alt);
}

.alfa-product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--alfa-ease);
}

.alfa-product-card:hover .alfa-product-card-image img {
    transform: scale(1.05);
}

.alfa-product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--alfa-surface-alt);
}

.alfa-product-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.alfa-product-badge-available {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(46, 204, 113, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.alfa-product-badge-sold {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 12px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(231, 76, 60, 0.9);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

.alfa-product-card-content {
    padding: 16px 18px 18px;
}

.alfa-product-card-title {
    font-family: 'Tajawal', 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--alfa-dark);
    margin: 0 0 10px;
    line-height: 1.4;
}

.alfa-product-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.alfa-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: var(--alfa-surface-alt);
    border-radius: 50px;
    font-size: 12px;
    color: var(--alfa-text-muted);
}

.alfa-meta-tag svg {
    flex-shrink: 0;
}

.alfa-product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--alfa-border-light);
}

.alfa-slab-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--alfa-text-muted);
    font-weight: 500;
}

.alfa-view-slabs-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--alfa-dark);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-view-slabs-btn:hover {
    background: var(--alfa-gold);
    transform: translateX(-2px);
}

/* ── No Results ─────────────────────────────────────────────────── */
.alfa-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--alfa-text-muted);
}

.alfa-no-results-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.alfa-no-results h3 {
    font-family: 'Tajawal', serif;
    font-size: 22px;
    color: var(--alfa-dark);
    margin: 0 0 8px;
}

.alfa-no-results p {
    font-size: 15px;
    margin: 0;
}

/* ── Loading ────────────────────────────────────────────────────── */
.alfa-loading {
    text-align: center;
    padding: 40px;
}

.alfa-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--alfa-border);
    border-top-color: var(--alfa-gold);
    border-radius: 50%;
    animation: alfa-spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes alfa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Pagination ─────────────────────────────────────────────────── */
.alfa-pagination {
    text-align: center;
    margin-top: 40px;
}

.alfa-load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    background: var(--alfa-surface);
    border: 2px solid var(--alfa-dark);
    border-radius: 50px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--alfa-dark);
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-load-more-btn:hover {
    background: var(--alfa-dark);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════════════ */

.alfa-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    animation: alfa-fadeIn 0.3s var(--alfa-ease);
}

.alfa-modal {
    position: relative;
    width: 100%;
    max-width: 1100px;
    background: var(--alfa-surface);
    border-radius: var(--alfa-radius);
    box-shadow: var(--alfa-shadow-xl);
    animation: alfa-slideUp 0.4s var(--alfa-ease);
    margin-top: 20px;
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
}

.alfa-modal-close {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: var(--alfa-text);
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.alfa-modal-content {
    padding: 32px;
}

@keyframes alfa-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes alfa-slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SINGLE PRODUCT
   ═══════════════════════════════════════════════════════════════════ */

.alfa-single-product {
    max-width: 1320px;
    margin: 0 auto;
}

/* ── Hero ────────────────────────────────────────────────────────── */
.alfa-product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
    align-items: start;
}

.alfa-product-hero-image {
    border-radius: var(--alfa-radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--alfa-surface-alt);
    /* Image appears on the right in RTL (first column) */
    order: 2;
}

.alfa-product-hero-info {
    order: 1;
}

.alfa-product-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alfa-product-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--alfa-text-muted);
    margin-bottom: 12px;
}

.alfa-breadcrumb-category {
    color: var(--alfa-gold);
    font-weight: 500;
}

.alfa-breadcrumb-sep {
    color: var(--alfa-border);
}

.alfa-product-title {
    font-family: 'Tajawal', 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--alfa-dark);
    margin: 0 0 16px;
    line-height: 1.3;
}

.alfa-product-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--alfa-text-muted);
    margin: 0 0 24px;
}

/* ── Specs Grid ─────────────────────────────────────────────────── */
.alfa-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.alfa-spec-item {
    padding: 14px 18px;
    background: var(--alfa-surface-alt);
    border-radius: var(--alfa-radius-sm);
    border: 1px solid var(--alfa-border-light);
}

.alfa-spec-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--alfa-text-light);
    margin-bottom: 4px;
}

.alfa-spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--alfa-dark);
}

/* ── Stats ──────────────────────────────────────────────────────── */
.alfa-product-stats {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--alfa-border-light);
}

.alfa-stat {
    text-align: center;
}

.alfa-stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--alfa-dark);
    line-height: 1;
    margin-bottom: 4px;
}

.alfa-stat-available {
    color: var(--alfa-green);
}

.alfa-stat-label {
    font-size: 12px;
    color: var(--alfa-text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   SLABS SECTION
   ═══════════════════════════════════════════════════════════════════ */

.alfa-slabs-section {
    margin-top: 20px;
}

.alfa-slabs-header {
    margin-bottom: 24px;
}

.alfa-slabs-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Tajawal', 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--alfa-dark);
    margin: 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--alfa-border-light);
}

.alfa-slabs-title svg {
    color: var(--alfa-gold);
}

.alfa-slabs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--alfa-gap);
}

/* ── Slab Card ──────────────────────────────────────────────────── */
.alfa-slab-card {
    background: var(--alfa-surface);
    border: 1px solid var(--alfa-border-light);
    border-radius: var(--alfa-radius);
    overflow: hidden;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-slab-card:hover {
    box-shadow: var(--alfa-shadow);
    border-color: var(--alfa-gold-light);
}

.alfa-slab-sold {
    opacity: 0.65;
}

.alfa-slab-sold:hover {
    opacity: 0.85;
}

.alfa-slab-image-wrap {
    position: relative;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--alfa-surface-alt);
}

.alfa-slab-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--alfa-ease);
}

.alfa-slab-card:hover .alfa-slab-image {
    transform: scale(1.04);
}

.alfa-slab-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alfa-slab-zoom {
    position: absolute;
    top: 10px;
    inset-inline-start: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    color: var(--alfa-dark);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-slab-card:hover .alfa-slab-zoom {
    opacity: 1;
    transform: scale(1);
}

.alfa-slab-zoom:hover {
    background: var(--alfa-gold);
    color: #fff;
}

.alfa-slab-status-badge {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.alfa-status-available {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
}

.alfa-status-sold {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.alfa-slab-info {
    padding: 14px 16px 16px;
}

.alfa-slab-header {
    margin-bottom: 10px;
}

.alfa-slab-block-id {
    font-size: 16px;
    font-weight: 700;
    color: var(--alfa-dark);
    font-family: 'Tajawal', serif;
}

.alfa-slab-details {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.alfa-slab-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--alfa-text-muted);
    padding: 4px 10px;
    background: var(--alfa-surface-alt);
    border-radius: var(--alfa-radius-xs);
}

.alfa-slab-detail svg {
    flex-shrink: 0;
    color: var(--alfa-gold);
}

/* ── WhatsApp CTA ───────────────────────────────────────────────── */
.alfa-slab-cta {
    margin-top: auto;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.alfa-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: var(--alfa-whatsapp);
    color: #fff !important;
    border: none;
    border-radius: var(--alfa-radius-sm);
    font-family: 'Tajawal', inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-whatsapp-btn:hover {
    background: var(--alfa-whatsapp-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: #fff !important;
    text-decoration: none;
}

.alfa-whatsapp-icon {
    flex-shrink: 0;
}

.alfa-whatsapp-btn-en {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    opacity: 0.8;
    margin-inline-start: 4px;
}

.alfa-product-url-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #fff !important;
    border: none;
    border-radius: var(--alfa-radius-sm);
    font-family: 'Tajawal', inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-product-url-btn:hover {
    background: #333;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.alfa-product-url-btn-en {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    opacity: 0.8;
    margin-inline-start: 4px;
}

.alfa-sold-label {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--alfa-red);
    font-weight: 500;
    padding: 10px;
    background: var(--alfa-red-bg);
    border-radius: var(--alfa-radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════════════════════════════ */

.alfa-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--alfa-gap);
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
}

.alfa-category-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--alfa-surface);
    border: 1px solid var(--alfa-border-light);
    border-radius: var(--alfa-radius);
    cursor: pointer;
    transition: all var(--alfa-duration) var(--alfa-ease);
}

.alfa-category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--alfa-shadow-lg);
    border-color: var(--alfa-gold);
}

.alfa-category-icon {
    font-size: 48px;
    margin-bottom: 12px;
    line-height: 1;
}

.alfa-category-name {
    font-family: 'Tajawal', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--alfa-dark);
    margin: 0 0 6px;
}

.alfa-category-count {
    font-size: 13px;
    color: var(--alfa-text-muted);
}

/* ═══════════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════════ */

.alfa-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: alfa-fadeIn 0.3s var(--alfa-ease);
}

.alfa-lightbox-overlay img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: var(--alfa-shadow-xl);
    animation: alfa-slideUp 0.4s var(--alfa-ease);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .alfa-product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .alfa-product-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .alfa-product-hero-image {
        order: unset;
    }

    .alfa-product-hero-info {
        order: unset;
    }

    .alfa-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .alfa-catalog-wrapper {
        padding: 24px 16px;
    }

    .alfa-catalog-header {
        flex-direction: column;
        align-items: stretch;
    }

    .alfa-search-box {
        width: 100%;
    }

    .alfa-catalog-title {
        font-size: 26px;
    }

    .alfa-filters-bar {
        gap: 8px;
    }

    .alfa-filter-select {
        flex: 1;
        min-width: 0;
    }

    .alfa-product-title {
        font-size: 28px;
    }

    .alfa-specs-grid {
        grid-template-columns: 1fr;
    }

    .alfa-slabs-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .alfa-modal {
        margin: 10px;
    }

    .alfa-modal-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .alfa-product-grid {
        grid-template-columns: 1fr;
    }

    .alfa-categories-grid {
        grid-template-columns: 1fr;
    }

    .alfa-slabs-grid {
        grid-template-columns: 1fr;
    }

    .alfa-filter-tabs {
        gap: 6px;
    }

    .alfa-tab {
        padding: 6px 14px;
        font-size: 13px;
    }
}