/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Description: Porto Child Theme for Al-Islamia Bookstore
Author: P-THEMES & Antigravity
Author URI: https://www.portotheme.com/
Template: porto
Version: 1.0.0
Text Domain: porto-child
*/

/* ==========================================================================
   Core Color Palette & Visual System
   ========================================================================== */
:root {
    --primary-color: #005C3E;      /* Emerald Green from Logo */
    --accent-color: #D4AF37;       /* Luxury Gold from Logo */
    --accent-dark: #C5A029;        /* Darker Gold for Hover states */
    --bg-light: #F9F8F6;           /* Premium off-white paper color */
    --text-dark: #1E2D2F;          /* Charcoal with hint of green for maximum readability */
    --border-color: #E6EDE6;       /* Soft green-tinted border */
    
    /* Elegant Shadows */
    --card-shadow: 0 6px 18px rgba(0, 92, 62, 0.04);
    --card-shadow-hover: 0 12px 30px rgba(0, 92, 62, 0.09);
    --btn-shadow: 0 4px 12px rgba(0, 92, 62, 0.15);
    --btn-shadow-hover: 0 6px 18px rgba(212, 175, 55, 0.25);
    
    /* Borders */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Typography */
    --font-family-arabic: 'Tajawal', 'Cairo', sans-serif;
}

/* ==========================================================================
   DEFENSIVE: Force main page content always visible on mobile
   Prevents Porto JS / sticky header init from hiding content
   IMPORTANT: owl-carousel MUST have overflow:hidden — excluded from this rule
   ========================================================================== */
@media (max-width: 991px) {
    /* Force the main content column and its wrappers to always show */
    body.home #main,
    body.home .main-content,
    body.home .wpb-content-wrapper,
    body.home .alislamia-home-container,
    body.home .home-tabs-section,
    body.home .home-category-grid,
    body.home .home-recommendation-feed,
    body.home .home-main-banner-grid,
    body.home .department-showcase,
    body.home .home-feature-strip {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }

    /* vc_row — visible EXCEPT carousel rows which need overflow:hidden */
    body.home .vc_row:not(.home-banner-slider) {
        overflow: visible !important;
    }

    /* owl-carousel MUST keep overflow:hidden to clip slides correctly */
    body.home .home-banner-slider,
    body.home .home-banner-slider .vc_column_container,
    body.home .home-banner-slider .wpb_wrapper,
    body.home .home-banner-slider .vc_column-inner,
    body.home .porto-carousel.owl-carousel,
    body.home .owl-stage-outer {
        overflow: hidden !important;
    }

    /* Ensure wpb_wrapper is not squeezed (excluding carousel) */
    body.home .wpb_wrapper:not(.home-banner-slider *),
    body.home .vc_column-inner:not(.home-banner-slider *),
    body.home .vc_column_container:not(.home-banner-slider *) {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Tab panes — keep active one visible */
    body.home .tab-pane.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* WooCommerce product grids on homepage */
    body.home .products-container,
    body.home ul.products,
    body.home .woocommerce.columns-4 {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
    }
}

/* ==========================================================================
   Modern Typography & Readability
   ========================================================================== */
body, p, a, span, button, input, select, textarea {
    font-family: var(--font-family-arabic) !important;
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-arabic) !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   WooCommerce Product Card Optimizations
   ========================================================================== */
.product-col .product, 
ul.products li.product,
.product-category {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 15px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    overflow: hidden;
}

.product-col .product:hover,
ul.products li.product:hover,
.product-category:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

/* Product Titles */
.product-col .product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title,
.product-col .product h3,
ul.products li.product h3 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    color: var(--text-dark) !important;
    transition: color 0.2s ease;
    white-space: normal !important;
    line-height: 1.4 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: 2.66rem !important;
}

.product-col .product:hover .woocommerce-loop-product__title,
ul.products li.product:hover .woocommerce-loop-product__title {
    color: var(--primary-color) !important;
}

/* Product Prices */
.price, 
.amount {
    color: var(--accent-dark) !important;
    font-weight: 700 !important;
    font-size: 1.15rem !important;
}

del .amount {
    color: #a0aec0 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}

ins {
    text-decoration: none !important;
}

/* ==========================================================================
   Buttons & CTAs (Call to Actions)
   ========================================================================== */
/* Main buttons */
.button, 
.btn-primary, 
.woocommerce-button,
.woocommerce #respond input#submit.alt, 
.woocommerce a.button.alt, 
.woocommerce button.button.alt, 
.woocommerce input.button.alt {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-family: var(--font-family-arabic) !important;
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 24px !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
}

.button:hover, 
.btn-primary:hover, 
.woocommerce-button:hover,
.woocommerce #respond input#submit.alt:hover, 
.woocommerce a.button.alt:hover, 
.woocommerce button.button.alt:hover, 
.woocommerce input.button.alt:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Add to Cart button in loops */
.add_to_cart_button,
.ajax_add_to_cart {
    border-radius: var(--radius-sm) !important;
    font-size: 0.82rem !important;
    padding: 6px 14px !important;
    display: table !important;
    margin: 0 auto 5px auto !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.3 !important;
}

/* Ensure centering wrapper */
.add-links-wrap, .add-links {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    flex-direction: column !important;
    align-items: center !important;
}

/* ==========================================================================
   Sale Badges & Overlays
   ========================================================================== */
.onsale {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-family: var(--font-family-arabic) !important;
    border-radius: var(--radius-sm) !important;
    padding: 4px 10px !important;
    font-size: 0.8rem !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
}

/* ==========================================================================
   Mobile Optimization
   ========================================================================== */
@media (max-width: 767px) {
    /* Tighten margins for mobile grid */
    ul.products li.product {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    
    /* Floating Mobile Add to Cart button for Single Product Pages */
    .single-product .entry-summary .cart {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 12px 20px;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        display: flex;
        gap: 10px;
        margin: 0 !important;
    }
    
    .single-product .entry-summary .cart .quantity {
        margin-bottom: 0 !important;
    }
    
    .single-product .entry-summary .cart .single_add_to_cart_button {
        flex: 1;
        margin: 0 !important;
        padding: 14px !important;
        border-radius: var(--radius-md) !important;
    }
    
    /* Ensure page is not cut off by floating bottom bar */
    body.single-product {
        padding-bottom: 80px !important;
    }
}

/* ==========================================================================
   Blog & Readability Optimizations
   ========================================================================== */
.post-item, .post {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s ease !important;
}

.post-item:hover, .post:hover {
    box-shadow: var(--card-shadow-hover) !important;
    transform: translateY(-4px) !important;
}

.post-content p {
    font-size: 1.15rem !important;
    line-height: 1.85 !important;
    color: var(--text-dark) !important;
    margin-bottom: 24px !important;
}

.post-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   Amazon & Alibaba-Style Homepage Layout (Alislamia)
   ========================================================================== */
.alislamia-home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 15px;
    background-color: var(--bg-light);
}

/* 1. Amazon Style 4-in-1 Category Cards Grid */
.home-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.cat-grid-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cat-grid-card h3 {
    font-size: 1.2rem !important;
    margin-bottom: 15px !important;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.cat-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.cat-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cat-grid-item:hover {
    transform: scale(1.05);
}

.cat-thumb {
    width: 60px;
    height: 60px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

.cat-grid-item span {
    font-size: 0.85rem;
    font-weight: 600;
}

.card-footer-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    transition: color 0.2s ease;
}

.card-footer-link:hover {
    color: var(--accent-color) !important;
}

/* 2. Flash Deals Section */
.home-flash-deals {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent-color);
    padding: 25px;
    box-shadow: var(--card-shadow-hover);
    margin-bottom: 40px;
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.deals-title-area h2 {
    font-size: 1.7rem !important;
    margin-top: 5px !important;
}

.deal-badge {
    background-color: #ff0a54;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
}

.deals-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.timer-box {
    background-color: var(--primary-color);
    color: #ffffff;
    width: 35px;
    height: 35px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.deals-product-row ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.deals-product-row ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
}

/* 3. Alibaba Style Dynamic Showcase Tabs */
.home-tabs-section {
    margin-bottom: 40px;
}

.tabs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.tabs-buttons {
    display: flex;
    gap: 10px;
}

.tab-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.tab-pane ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.tab-pane ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
}

/* 4. Department Banner Showcase */
.department-showcase {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 20px;
    margin-bottom: 40px;
}

.dept-banner {
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: var(--card-shadow);
    color: #ffffff;
    height: 100%;
    min-height: 380px;
}

.dept-banner h2 {
    color: #ffffff !important;
    font-size: 1.6rem !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
}

.dept-banner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 20px;
}

.dept-btn {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

.dept-products ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

.dept-products ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
}

/* 5. Infinite recommendation feed */
.home-recommendation-feed {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 30px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

.feed-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.feed-header h2 {
    font-size: 1.8rem !important;
}

.feed-header p {
    color: #718096;
    margin-top: 5px;
}

.feed-grid ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.feed-grid ul.products li.product {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Grid Adapters for Amazon/Alibaba Layout */
@media (max-width: 1200px) {
    .home-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .department-showcase {
        grid-template-columns: 1.2fr 2.8fr;
    }
}

@media (max-width: 991px) {
    .department-showcase {
        grid-template-columns: 1fr;
    }
    .dept-banner {
        min-height: 200px;
    }
    .deals-product-row ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .home-category-grid {
        grid-template-columns: 1fr;
    }
    .deals-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .deals-product-row ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .tabs-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .dept-products ul.products, 
    .feed-grid ul.products,
    .tab-pane ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ==========================================================================
   Home Page Top Features & Banner Showcase Grid
   ========================================================================== */
.home-features-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 15px 20px;
    margin-bottom: 25px;
    box-shadow: var(--card-shadow);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px 15px;
}

.feature-item:not(:last-child) {
    border-left: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text h4 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: var(--text-dark) !important;
}

.feature-text p {
    font-size: 0.85rem !important;
    color: #718096 !important;
    margin: 0 !important;
}

/* Main Banner Grid */
.home-main-banner-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Right (Large Banner), Left (Stacked Banners) */
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

/* Styling for the central large green banner */
.main-green-banner {
    background: linear-gradient(135deg, #005C3E 0%, #003F2A 100%);
    border-radius: var(--radius-md);
    padding: 50px 40px;
    color: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-color);
}

.main-green-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.main-green-banner .banner-badge {
    background-color: var(--accent-color);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.main-green-banner h2 {
    color: #ffffff !important;
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.35 !important;
}

.main-green-banner p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    margin: 0 0 30px 0 !important;
    max-width: 500px;
}

.banner-btn {
    background-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
    padding: 12px 30px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    border: none !important;
    box-shadow: var(--btn-shadow);
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.banner-btn:hover {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Stacked Column (Left) */
.grid-col-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.stacked-banner-card {
    border-radius: var(--radius-md);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: calc(50% - 10px);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.stacked-banner-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

.gold-card {
    background: linear-gradient(135deg, #E6C262 0%, #D4AF37 100%);
    border-color: #C5A029;
}

.gold-card h3 {
    color: var(--text-dark) !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
}

.gold-card p {
    color: rgba(30, 45, 47, 0.85) !important;
    font-size: 0.85rem !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
}

.gold-card .card-link {
    color: var(--text-dark) !important;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.green-card {
    background: linear-gradient(135deg, #005C3E 0%, #00462F 100%);
    border-color: var(--primary-color);
}

.green-card h3 {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    margin: 0 0 8px 0 !important;
}

.green-card p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.85rem !important;
    margin: 0 0 15px 0 !important;
    line-height: 1.4 !important;
}

.green-card .card-link {
    color: var(--accent-color) !important;
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}

.card-link:hover {
    gap: 12px;
}

/* Responsiveness overrides for the new section */

@media (max-width: 991px) {
    .home-main-banner-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stacked-banner-card {
        height: auto;
        padding: 30px 25px;
    }
}

@media (max-width: 767px) {
    .home-features-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .feature-item:not(:last-child) {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
    }
}

/* ==========================================================================
   Slider Customization (Smooth Rounded Borders & Branding Colors)
   ========================================================================== */
.home-banner-slider,
.home-banner-slider .porto-carousel,
.home-banner-slider .owl-stage-outer,
.home-banner-slider .slide,
.home-banner-slider .porto_ultimate_content_box,
.home-banner-slider .owl-item {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
}

.home-banner-slider .porto-carousel {
    box-shadow: var(--card-shadow-hover) !important;
    border: 1px solid var(--border-color);
}

/* Slider buttons update to match brand colors */
.home-banner-slider .vc_btn3, 
.home-banner-slider .slide .btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
}

.home-banner-slider .vc_btn3:hover, 
.home-banner-slider .slide .btn:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Custom Top Navigation Bar Row (Home Header Top Bar replacement)
   ========================================================================== */
.custom-home-top-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003F2A 100%);
    border-radius: var(--radius-md); /* 12px rounded borders */
    padding: 12px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px; /* Balanced spacing between items */
    color: #ffffff;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--primary-color);
    margin-bottom: 25px !important;
    width: 100%;
}

.custom-home-top-bar a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    padding: 6px 14px;
    border-radius: 30px;
}

.custom-home-top-bar a span.nav-text {
    color: inherit !important;
}

.custom-home-top-bar a:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.custom-home-top-bar a i {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.custom-home-top-bar a:hover i {
    color: var(--accent-color);
}

/* Social items inside top bar */
.custom-home-top-bar a.top-social-item {
    font-size: 0.95rem;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.07);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
}

.custom-home-top-bar a.top-social-item:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.2);
    font-weight: 300;
    margin: 0 5px;
    font-size: 0.9rem;
}

/* Brand Mosque Link Highlight */
.custom-home-top-bar a.home-mosque-link {
    font-weight: 800 !important;
    color: var(--accent-color) !important; /* Luxury Gold */
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
}

.custom-home-top-bar a.home-mosque-link i {
    color: var(--accent-color) !important;
    font-size: 1rem;
}

.custom-home-top-bar a.home-mosque-link:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border-color: var(--accent-color) !important;
    color: #ffffff !important;
}

.custom-home-top-bar a.home-mosque-link:hover i {
    color: #ffffff !important;
}

/* Login/Logout buttons styling */
.custom-home-top-bar a.login-link,
.custom-home-top-bar a.logout-link {
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    background-color: rgba(255, 255, 255, 0.04);
}

.custom-home-top-bar a.login-link:hover,
.custom-home-top-bar a.logout-link:hover {
    border-color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Responsive top bar menu - Mobile/Tablet Premium Icons-Only Horizontal Navigation */
@media (max-width: 991px) {
    /* ── Green nav bar: fluid layout fills ANY screen width ── */
    .custom-home-top-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-evenly !important; /* distribute icons evenly */
        align-items: center !important;
        gap: 4px !important;
        padding: 8px 6px !important;
        margin: 0 auto 20px auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Each link icon: take equal share of width, stay square */
    .custom-home-top-bar > a:not(.dropdown-content a) {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 1 0 !important;        /* equal share of space */
        min-width: 0 !important;
        max-width: 48px !important;
        aspect-ratio: 1 / 1 !important; /* always square */
        height: auto !important;
        width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
        position: relative !important;
    }

    /* Dropdown wrappers: same equal share */
    .custom-home-top-bar > .top-bar-dropdown {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 48px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .custom-home-top-bar > .top-bar-dropdown > .dropdown-trigger {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        background-color: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Icon font size: fluid using clamp — scales with screen width */
    .custom-home-top-bar > a:not(.dropdown-content a) i,
    .custom-home-top-bar > .top-bar-dropdown > .dropdown-trigger i:first-child {
        font-size: clamp(0.8rem, 3.5vw, 1.15rem) !important;
        color: #ffffff !important;
        margin: 0 !important;
    }
    
    /* Hover & Active States — links */
    .custom-home-top-bar > a:not(.dropdown-content a):hover,
    .custom-home-top-bar > a:not(.dropdown-content a):focus,
    .custom-home-top-bar > a:not(.dropdown-content a):active {
        background-color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
        transform: translateY(-2px) scale(1.08) !important;
    }
    
    .custom-home-top-bar > a:not(.dropdown-content a):hover i,
    .custom-home-top-bar > a:not(.dropdown-content a):focus i,
    .custom-home-top-bar > a:not(.dropdown-content a):active i {
        color: var(--text-dark) !important;
    }
    
    /* Hover & Active States — dropdown triggers */
    .custom-home-top-bar > .top-bar-dropdown.open > .dropdown-trigger,
    .custom-home-top-bar > .top-bar-dropdown > .dropdown-trigger:hover {
        background-color: var(--accent-color) !important;
        border-color: var(--accent-color) !important;
    }
    
    /* Hide text labels and dropdown arrow completely on mobile */
    .custom-home-top-bar a:not(.dropdown-content a) .nav-text,
    .custom-home-top-bar .dropdown-trigger .nav-text,
    .custom-home-top-bar .dropdown-trigger .dropdown-arrow {
        display: none !important;
    }
    
    /* Hide dividers */
    .top-bar-divider {
        display: none !important;
    }
    
    /* Enable Sticky Menu on Mobile/Tablet
       Specificity: (1,3,0) beats the breakout rule (1,2,0) ✓ */
    #header .home-header-menu-row .custom-home-top-bar.sticky-active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        /* Reset breakout margins — not needed when position:fixed */
        margin-left: 0 !important;
        margin-right: 0 !important;
        transform: none !important;
        border-radius: 0 !important;
        padding: 6px 8px !important;
        z-index: 99999 !important;
        box-shadow: 0 4px 15px rgba(0, 92, 62, 0.2) !important;
        animation: slideDownStickyMobile 0.3s ease-out forwards !important;
        justify-content: space-evenly !important;
        gap: 4px !important;
        background: linear-gradient(135deg, var(--primary-color) 0%, #003F2A 100%) !important;
    }

    .top-bar-sticky-placeholder {
        margin-bottom: 20px !important;
    }
    
    @keyframes slideDownStickyMobile {
        from { transform: translateY(-58px); }
        to { transform: translateY(0); }
    }
    
    /* Completely hide the hamburger mobile toggle button, mobile menu panel, and any mobile sidebar panels */
    .mobile-toggle,
    #side-nav-panel,
    .mobile-sidebar-panel,
    .mobile-sidebar,
    .sidebar-overlay,
    .panel-overlay,
    .sidebar-toggle,
    .porto-product-filters,
    .porto-product-filters-toggle,
    .porto-mobile-sidebar-toggle,
    #mobile-sidebar-toggle {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Reset any page shifts or layouts caused by Porto's side menu/sidebar states */
    html.filter-sidebar-opened,
    html.sidebar-opened,
    html.panel-opened {
        overflow: auto !important;
    }
    html.filter-sidebar-opened .page-wrapper,
    html.sidebar-opened .page-wrapper,
    html.panel-opened .page-wrapper {
        transform: none !important;
        right: 0 !important;
        left: 0 !important;
    }

    /* ================================================
       MOBILE/TABLET HEADER LAYOUT FIX
       Layout (RTL right→left): [Logo] [Search—flex] [Phone+Icon] [Cart]
    ================================================ */

    /* 1. Hide Porto's duplicate mobile search row */
    .vc_row.d-block.d-lg-none.header-main {
        display: none !important;
    }

    /* 2. Hide hamburger toggle */
    .mobile-toggle {
        display: none !important;
    }

    /* 3. Outer row flex container */
    #header .vc_row:not(.d-block):not(.home-header-menu-row) .align-items-center {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 5px 8px !important;
        width: 100% !important;
    }

    /* 10. إتاحة الرؤية الكاملة وتكبير اللوجو ومحاذاة العناصر */
    #header,
    #header .header-main,
    #header .porto-wrap-container,
    #header .porto-wrap-container .container,
    #header .porto-wrap-container .row,
    #header .vc_row.top-row.no-padding,
    #header .vc_row.top-row.no-padding .row,
    #header .flex-1.col-md-11,
    #header .flex-auto.col-md-1 {
        overflow: visible !important;
    }

    #header .vc_row.top-row.no-padding {
        min-height: 100px !important;
        height: auto !important;
    }

    /* الشعار - محاذاته لأقصى اليمين وإتاحة المساحة الكافية لتكبيره */
    #header .flex-auto.col-md-1 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 60% !important; /* السماح للشعار بالتمدد حتى 60% من عرض الشاشة */
        padding: 0 !important;
        order: 1 !important;
        margin-right: 10px !important; /* مسافة من الحافة اليمنى */
        margin-left: auto !important;  /* دفع الشعار لأقصى اليمين */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    #header .logo {
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    #header .logo a {
        display: flex !important;
        align-items: center !important;
    }

    #header .logo img {
        max-height: 85px !important; /* زيادة الحجم الأقصى للشعار */
        height: 80px !important;     /* تحديد الارتفاع الفعلي ليكون كبيراً وواضحاً كالمحترفين */
        width: auto !important;
        transform: none !important; /* إلغاء أي تكبير إضافي غير مستقر */
        /* لا يتم استخدام display: block !important هنا لمنع تكرار الشعار (sticky/standard logo) */
    }

    /* حاوية الترويسة اليسرى للأيقونات والعناصر */
    #header .flex-1.col-md-11 {
        flex: 0 0 auto !important;
        width: auto !important;
        padding: 0 !important;
        order: 2 !important;
        margin-left: 10px !important;  /* مسافة من الحافة اليسرى */
        margin-right: auto !important; /* دفع عناصر البحث والهاتف لأقصى اليسار */
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    /* الحاوية الداخلية للبحث والهاتف - رأسية ومتراصة بالترتيب */
    #header .flex-1.col-md-11 .wpb_wrapper.vc_column-inner {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        justify-content: center !important;
        padding: 0 !important;
        width: auto !important;
        max-width: 160px !important;
        direction: ltr !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
        margin: 0 !important;
        gap: 6px !important;
    }

    /* شريط البحث التلقائي - معروض بشكل دائم وبسيط */
    #header .searchform-popup.d-none.d-lg-block {
        display: block !important;
        order: 1 !important;
        width: 150px !important;
        max-width: 150px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        position: relative !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }

    #header .searchform-popup .search-toggle {
        display: none !important; /* إخفاء أيقونة التبديل */
    }

    #header .searchform-popup form.searchform {
        display: block !important;
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        transform: none !important;
    }

    #header .searchform-popup .searchform-fields {
        display: flex !important;
        align-items: center !important;
        background: #f4f4f4 !important;
        border: 1px solid rgba(0, 92, 62, 0.2) !important;
        border-radius: 20px !important;
        padding: 2px 8px !important;
        height: 32px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #header .searchform-popup .searchform-fields .text {
        flex: 1 !important;
        display: block !important;
    }

    #header .searchform-popup .searchform-fields input[name="s"] {
        width: 100% !important;
        border: none !important;
        background: transparent !important;
        font-size: 12px !important;
        padding: 0 4px !important;
        height: 24px !important;
        outline: none !important;
        box-shadow: none !important;
        color: #333333 !important;
        font-family: 'Cairo', sans-serif !important;
    }

    #header .searchform-popup .searchform-fields .button-wrap {
        display: block !important;
    }

    #header .searchform-popup .searchform-fields button.btn-special {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
    }

    #header .searchform-popup .searchform-fields button.btn-special i {
        font-size: 13px !important;
        color: #005C3E !important;
    }

    /* الهاتف - معروض تحت شريط البحث مباشرة */
    #header .porto-sicon-box.d-none.d-lg-flex {
        display: flex !important;
        order: 2 !important;
        flex-direction: row !important; /* الأيقونة على اليسار والرقم على اليمين بالـ LTR */
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        width: auto !important;
        cursor: pointer !important;
        height: auto !important;
        flex: 0 0 auto !important;
    }

    #header .porto-sicon-box .porto-sicon-heading-right {
        order: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #header .porto-sicon-box .porto-just-icon-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #005C3E !important;
    }

    #header .porto-sicon-box .porto-just-icon-wrapper i {
        font-size: 15px !important;
        color: #005C3E !important;
    }

    #header .porto-sicon-box .porto-sicon-header {
        order: 2 !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #header .porto-sicon-box .porto-sicon-title {
        display: none !important; /* إخفاء نص "اتصل بنا الآن" */
    }

    #header .porto-sicon-box .porto-sicon-header p {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #005C3E !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        line-height: 1 !important;
        font-family: 'Cairo', sans-serif !important;
    }

    /* إخفاء السلة تماماً على الهواتف */
    #header #mini-cart {
        display: none !important;
    }

    /* إزالة مساحة التباعد الكبيرة بين القائمة والسلايدر على الهواتف والأجهزة اللوحية */
    #header {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    #header .home-header-menu-row {
        margin-top: 0 !important;    /* إلغاء تباعد Bootstrap mt-4 */
        margin-bottom: 0 !important; /* إلغاء الهوامش السفلية للسطر الأخضر */
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    #header .home-header-menu-row .custom-home-top-bar {
        margin-bottom: 4px !important; /* تقليل مسافة تباعد القائمة الخضراء مع السلايدر لتكون 4px فقط */
    }
    #main {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #main > .container {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #main .main-content-wrap {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #main .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #main #content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #main .page-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    #main .wpb-content-wrapper {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* إخفاء سطر البحث الرمادي السفلي القديم */
    #header .d-block.d-lg-none.vc_custom_1695265028367 {
        display: none !important;
    }

    /* 9. إخفاء التنسيقات غير الضرورية */
    #header .header-contact,
    #header .porto-slogan {
        display: none !important;
    }

    /* 10. Green nav bar — force full width through ALL Porto/WPBakery wrapper elements */
    #header .home-header-menu-row,
    #header .home-header-menu-row .porto-wrap-container,
    #header .home-header-menu-row .container,
    #header .home-header-menu-row .row,
    #header .home-header-menu-row [class*="col-"],
    #header .home-header-menu-row .wpb_column,
    #header .home-header-menu-row .vc_column-inner,
    #header .home-header-menu-row .wpb_wrapper,
    #header .home-header-menu-row .wpb_raw_code,
    #header .home-header-menu-row .wpb_raw_html,
    #header .home-header-menu-row .porto-container,
    #header .home-header-menu-row .porto-inner-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        float: none !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #header .home-header-menu-row [class*="col-"],
    #header .home-header-menu-row .wpb_wrapper {
        text-align: start !important;
    }

    /* Safe fluid top-bar width, no negative viewport breakout margins */
    #header .home-header-menu-row .custom-home-top-bar {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    #header .home-header-menu-row .custom-home-top-bar > a:not(.dropdown-content a),
    #header .home-header-menu-row .custom-home-top-bar > .top-bar-dropdown {
        max-width: 60px !important;
    }

    .custom-home-top-bar a[title="المفضلة"],
    .custom-home-top-bar a[title="حسابي"] {
        display: none !important;
    }

}

/* No fixed breakpoints needed — icons are fully fluid via flex:1 1 0 + clamp() */

/* Policies & Social Media Dropdown Styles (Desktop & Mobile) */
.top-bar-dropdown {
    position: relative !important;
}

.top-bar-dropdown .dropdown-trigger {
    cursor: pointer !important;
}

.top-bar-dropdown .dropdown-content {
    display: none;
    position: absolute !important;
    background-color: #ffffff !important;
    min-width: 180px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    z-index: 10000 !important;
    top: 100% !important;
    right: 0 !important;
    padding: 6px 0 !important;
    margin-top: 8px !important;
    animation: fadeInDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Dropdown Hover Bridge to prevent premature closing */
.top-bar-dropdown::before {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    height: 12px !important;
    background: transparent !important;
    z-index: 9999 !important;
}

.top-bar-dropdown:hover .dropdown-content,
.top-bar-dropdown.open .dropdown-content {
    display: block !important;
}


.top-bar-dropdown .dropdown-content a {
    color: var(--text-dark) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 16px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    transform: none !important;
    text-align: right !important;
}

.top-bar-dropdown .dropdown-content a:hover {
    background-color: #F0F7F4 !important;
    color: var(--primary-color) !important;
    transform: none !important;
}

.top-bar-dropdown .dropdown-content a i {
    font-size: 1rem !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    width: 16px !important;
    text-align: center !important;
}

/* Custom Utility Classes for Responsive Visibility */
@media (max-width: 991px) {
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: inline-flex !important;
    }
}
@media (min-width: 992px) {
    .hide-desktop,
    .top-bar-dropdown.hide-desktop {
        display: none !important;
    }
    .show-desktop {
        display: inline-flex !important;
    }
}

/* ==========================================================================
   Sidebar & Small Slider Cosmetic Enhancements
   ========================================================================== */
/* Sidebar Container Card */
.porto_sidebar_menu, 
.widget_sidebar_menu {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 18px !important;
    box-shadow: var(--card-shadow) !important;
    overflow: visible !important;
    margin-bottom: 25px !important;
}

/* Sidebar Menu Header */
.porto_sidebar_menu h3.widget-title,
.widget_sidebar_menu h3.widget-title {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 10px !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sidebar menu links styling */
.porto_sidebar_menu li.menu-item > a,
.widget_sidebar_menu li.menu-item > a {
    font-family: var(--font-family-arabic) !important;
    font-weight: 600 !important;
    color: var(--text-dark) !important;
    padding: 12px 15px !important;
    border-radius: var(--radius-sm) !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.porto_sidebar_menu li.menu-item > a:hover,
.widget_sidebar_menu li.menu-item > a:hover {
    background-color: var(--bg-light) !important;
    color: var(--primary-color) !important;
    border-color: var(--border-color) !important;
    padding-right: 22px !important; /* Slide-in effect for RTL */
}

/* Small Book Carton Slider Gallery (owl-carousel or nivo) */
.vc_gallery,
.vc_gallery-slides,
.nivoSlider,
.nivo-controlNav,
.porto_sidebar_menu .owl-carousel {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
    background: #ffffff;
}

/* Centering and card styling for TikTok Embed widget */
.tiktok-embed {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    margin-top: 20px !important;
    padding: 10px !important;
    display: flex !important;
    justify-content: center !important;
}

/* TikTok Button styling inside embed */
.tiktok-embed iframe {
    border-radius: var(--radius-md) !important;
}


/* ==========================================================================
   New Premium Cosmetic Enhancements (Logo, Cart, Sticky, Titles & Buttons)
   ========================================================================== */

/* 1. Logo Enlargement (45% larger) & Alignment (Shifted Left in RTL) */
.header-main .logo,
.logo {
    overflow: visible !important;
}
.header-main .logo img,
.logo img,
.header-logo img {
    transform: scale(1.45) !important;
    transform-origin: right center !important; /* Keep right edge aligned in RTL */
    margin-left: 25px !important; /* Shift left slightly in RTL */
    position: relative !important;
    z-index: 999 !important;
    transition: all 0.3s ease !important;
}

/* 2. Shopping Cart Icon Enlargement in Header */
.mini-cart .minicart-icon,
.mini-cart-icon,
.minicart-icon i {
    font-size: 23px !important;
    transition: all 0.25s ease !important;
}

/* 3. Sticky Navigation Bar with Eased Slide Down Animation (Magnetic Feel) - Desktop Only */
@media (min-width: 992px) {
    .custom-home-top-bar.sticky-active {
        position: fixed !important;
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 30px) !important; /* Account for screen margins */
        max-width: 1170px !important; /* Match Porto's default container width */
        z-index: 99999 !important;
        box-shadow: 0 8px 25px rgba(0, 92, 62, 0.16) !important;
        border-radius: 0 0 12px 12px !important;
        margin-bottom: 0 !important;
        animation: slideDownSticky 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    }
    
    @keyframes slideDownSticky {
        from {
            transform: translate(-50%, -100%) !important;
        }
        to {
            transform: translate(-50%, 0) !important;
        }
    }
}

/* Placeholder to prevent layout jump on stick */
.top-bar-sticky-placeholder {
    width: 100% !important;
    margin-bottom: 25px !important;
}

/* 4. Global Product Grid Title Alignment (2 lines, same height, centered) */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
.product-col .product .woocommerce-loop-product__title,
.product-col .product h3,
ul.products li.product h3,
.widget_products li .product-title {
    white-space: normal !important; /* Allow wrapping */
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important; /* Maximum of 2 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 2.6em !important; /* Perfectly keeps card grids balanced and aligned */
    line-height: 1.3em !important;
    font-size: 0.95rem !important; /* Slightly smaller for ideal display */
    text-align: center !important; /* Symmetric centering */
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

/* 5. Global Product Grid Buttons (Add to Cart, Read More, Select Options - Centered, 10% smaller, fits text) */
.woocommerce ul.products li.product .button,
.woocommerce-page ul.products li.product .button,
.product-col .product .button,
.woocommerce .products .product .add_to_cart_button,
.woocommerce .products .product .ajax_add_to_cart,
.woocommerce .products .product .product_type_simple,
.woocommerce .products .product .product_type_variable,
.woocommerce .products .product .product_type_grouped,
.woocommerce .products .product .product_type_external,
.woocommerce .products li.product .button {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 90% !important; /* Balanced proportion inside the card */
    max-width: 100% !important;
    margin: 10px auto 0 auto !important; /* Centers button perfectly */
    padding: 8px 12px !important; /* Compact padding to secure whole text */
    font-size: 0.82rem !important; /* 10% smaller font size */
    font-weight: 700 !important;
    white-space: nowrap !important; /* Absolute prevention of word cuts */
    border-radius: var(--radius-sm) !important;
    text-shadow: none !important;
    box-shadow: var(--btn-shadow) !important;
    float: none !important; /* Prevents alignment break */
    text-align: center !important;
}

/* Fix alignment on parent wrappers of Porto add-to-cart buttons */
.woocommerce ul.products li.product .add-to-cart-wrap,
.products li.product .add-to-cart-wrap {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    float: none !important;
}

/* TikTok Embed Iframe Width adjustment to prevent sidebar overflow */
.tiktok-card-wrapper iframe,
.tiktok-embed iframe,
#tiktok-embed-inner-container iframe,
#tiktok-embed-inner-container blockquote {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
}






/* ==========================================================================
   Generalizing Design to Inner Pages (Cart, Checkout, My Account, etc.)
   ========================================================================== */

/* --- 1. Single Product Page Enhancements --- */
.woocommerce-product-gallery__wrapper,
.product-image-slider.owl-carousel {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border-color) !important;
}

.woocommerce-tabs.wc-tabs-wrapper {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px !important;
    margin-top: 30px !important;
}

.woocommerce-tabs ul.tabs li {
    border-radius: var(--radius-sm) var(--radius-sm) 0 0 !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color) !important;
    border-top-color: var(--primary-color) !important;
}

.quantity .qty {
    border-radius: var(--radius-sm) !important;
}
.quantity .plus, .quantity .minus {
    border-radius: var(--radius-sm) !important;
}

/* --- 2. Cart & Checkout Pages --- */
.woocommerce-cart-form,
.woocommerce-checkout {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    padding: 25px !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 30px !important;
}

.cart-collaterals .cart_totals,
#order_review {
    background: var(--bg-light) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow-hover) !important;
    padding: 25px !important;
    border: 1px solid var(--accent-color) !important;
}

/* Form Inputs, Selects, and Textareas */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px 15px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout textarea:focus,
.woocommerce form .form-row input.input-text:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 5px rgba(0, 92, 62, 0.2) !important;
}

/* --- 3. My Account Page --- */
.woocommerce-MyAccount-navigation {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden !important;
    padding: 15px 0 !important;
}

.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border-color) !important;
}

.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    padding: 12px 20px !important;
    display: block !important;
    color: var(--text-dark) !important;
    transition: all 0.25s ease !important;
    font-weight: 600 !important;
}

.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background-color: var(--bg-light) !important;
    color: var(--primary-color) !important;
    border-right: 4px solid var(--primary-color) !important; /* RTL */
}

.woocommerce-MyAccount-content {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    padding: 25px !important;
    border: 1px solid var(--border-color) !important;
}

/* --- 4. System Notices & Messages --- */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    padding: 15px 25px !important;
    font-weight: 600 !important;
}

.woocommerce-message {
    border-top-color: var(--primary-color) !important;
}

.woocommerce-error {
    border-top-color: #ff0a54 !important;
}

.woocommerce-info {
    border-top-color: var(--accent-color) !important;
}

/* --- 5. Breadcrumbs and Page Titles --- */
.page-header .page-title {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 2.2rem !important;
}

.breadcrumbs-wrap {
    background: var(--bg-light) !important;
    border-bottom: 1px solid var(--border-color) !important;
}


/* ==========================================================================
   Shop Sidebar Widgets Enhancements
   ========================================================================== */

/* Widget Containers */
.sidebar .widget {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    padding: 25px !important;
    margin-bottom: 30px !important;
    border: 1px solid var(--border-color) !important;
}

/* Widget Titles */
.sidebar .widget-title {
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 15px !important;
    margin-bottom: 20px !important;
    font-family: var(--font-family-arabic) !important;
    text-transform: capitalize !important;
}

/* Categories List */
.sidebar .widget_product_categories ul li,
.sidebar .widget_layered_nav ul li {
    padding: 10px 0 !important;
    border-bottom: 1px dashed #eaebec !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.sidebar .widget_product_categories ul li:last-child,
.sidebar .widget_layered_nav ul li:last-child {
    border-bottom: none !important;
}

.sidebar .widget_product_categories ul li a,
.sidebar .widget_layered_nav ul li a {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    transition: all 0.25s ease !important;
}

.sidebar .widget_product_categories ul li a:hover,
.sidebar .widget_layered_nav ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(-5px) !important; /* RTL slide */
}

.sidebar .widget_product_categories ul li .count,
.sidebar .widget_layered_nav ul li .count {
    background: var(--bg-light) !important;
    color: var(--primary-color) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    border: 1px solid var(--border-color) !important;
}

/* Price Filter Widget */
.widget_price_filter .price_slider_wrapper .ui-widget-content {
    background-color: var(--border-color) !important;
    border-radius: 10px !important;
    height: 6px !important;
}

.widget_price_filter .price_slider_wrapper .ui-slider-range {
    background-color: var(--primary-color) !important;
    border-radius: 10px !important;
}

.widget_price_filter .price_slider_wrapper .ui-slider-handle {
    background-color: #ffffff !important;
    border: 2px solid var(--primary-color) !important;
    width: 16px !important;
    height: 16px !important;
    top: -5px !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

.widget_price_filter .price_slider_amount .button {
    background-color: var(--accent-color) !important;
    color: #ffffff !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 700 !important;
    padding: 6px 15px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.widget_price_filter .price_slider_amount .button:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--btn-shadow-hover) !important;
}

.widget_price_filter .price_label {
    color: var(--text-dark) !important;
    font-weight: 600 !important;
}

/* Color Filter Widget Customization */
.sidebar .widget_layered_nav .color-swatch,
.sidebar .filter-color-list li .filter-color {
    border-radius: 50% !important;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    transition: transform 0.2s ease, border-color 0.2s ease !important;
}

.sidebar .widget_layered_nav .color-swatch:hover,
.sidebar .filter-color-list li:hover .filter-color {
    transform: scale(1.15) !important;
    border-color: var(--accent-color) !important;
}


/* ==========================================================================
   Header Elements & Navigation Icons Customizations
   ========================================================================== */

/* Top nav bar new icons */
.custom-home-top-bar a.top-nav-icon-link {
    position: relative !important;
    font-size: 1.1rem !important;
    padding: 8px !important;
    width: 36px;
    height: 36px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transition: all 0.25s ease !important;
}

.custom-home-top-bar a.top-nav-icon-link:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

/* Nav badge (cart/wishlist count) */
.custom-home-top-bar a.top-nav-icon-link .nav-badge {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    background-color: var(--accent-color) !important;
    color: var(--text-dark) !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    width: 18px;
    height: 18px;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid var(--primary-color) !important;
}

/* Dynamic login/logout shift spacing */
.custom-home-top-bar a.logout-link,
.custom-home-top-bar a.login-link {
    margin-right: 10px !important;
}

/* Header search and phone box modifications */
.header-main .vc_column.flex-1 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.header-main .porto-hb-search-form,
.header-main .searchform-popup {
    flex: 1 !important;
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.header-main .porto-info-box {
    margin-right: auto !important; /* Pushes phone to left in RTL */
    margin-left: 0 !important;
    transition: all 0.3s ease !important;
}

.header-main [class*="info-box"] [class*="subtitle"],
.header-main [class*="info-box"] h3,
.header-main [class*="info-box"] h4,
.header-main [class*="info-box"] .subtitle,
.header-main .porto_info_box .info-box-subtitle,
.header-main .porto-info-box .info-box-subtitle,
.header-main .porto_info_box h3,
.header-main .porto-info-box h3 {
    font-size: 36px !important;
    line-height: 1.1 !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

.header-main .porto-info-box .info-box-title {
    font-size: 12px !important;
    color: #718096 !important;
    text-align: left !important;
}


/* ==========================================================================
   Shop Sidebar Widgets Customizations
   ========================================================================== */

/* Sidebar Product Search Widget */
.widget_woocommerce_product_search form {
    position: relative;
}

.widget_woocommerce_product_search input[type="search"] {
    width: 100% !important;
    padding: 12px 45px 12px 15px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-light) !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
}

.widget_woocommerce_product_search input[type="search"]:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 10px rgba(0, 92, 62, 0.1) !important;
}

.widget_woocommerce_product_search button {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    color: var(--primary-color) !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
    cursor: pointer;
}

/* Sidebar Product Tag Cloud widget */
.widget_woocommerce_product_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.widget_woocommerce_product_tag_cloud .tagcloud a {
    font-size: 0.82rem !important;
    background: var(--bg-light) !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color) !important;
    padding: 6px 12px !important;
    border-radius: 30px !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.widget_woocommerce_product_tag_cloud .tagcloud a:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-1px) !important;
}


/* ==========================================================================
   Premium Document Pages (Privacy, Refund, About) Customizations
   ========================================================================== */

.alislamia-premium-policy {
    background: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow-hover) !important;
    padding: 40px !important;
    margin: 20px 0 !important;
}

.policy-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 25px;
}

.policy-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.policy-header h1 {
    font-size: 2.2rem !important;
    margin-bottom: 10px !important;
    color: var(--primary-color) !important;
}

.policy-header p {
    color: #718096;
    font-size: 1.1rem;
}

.policy-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.policy-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
}

.policy-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.policy-card.highlight-card {
    background: #fffdf6;
    border-color: var(--accent-color);
    grid-column: span 2;
}

.policy-card.highlight-card:hover {
    border-color: var(--accent-dark);
}

.policy-card .card-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.policy-card.highlight-card .card-icon {
    color: var(--accent-dark);
}

.policy-card .card-content h3 {
    font-size: 1.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.policy-card .card-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0;
}

.policy-card .card-content ul {
    padding-right: 20px;
    margin: 10px 0;
}

.policy-card .card-content li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
}

.policy-card .card-content .note-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e53e3e;
    margin-top: 10px;
}

.policy-card .phone-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-decoration: underline !important;
}

.why-choose-us-footer {
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.why-choose-us-footer h3 {
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--btn-shadow);
}

/* --- Premium About Us Page Customizations --- */
.alislamia-premium-about {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
    margin-bottom: 40px;
}

.about-hero-section {
    background: linear-gradient(135deg, rgba(0, 92, 62, 0.95) 0%, rgba(0, 63, 42, 0.85) 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    position: relative;
    border-bottom: 4px solid var(--accent-color);
}

.about-hero-content h1 {
    color: #ffffff !important;
    font-size: 2.8rem !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about-hero-content p {
    color: var(--accent-color) !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.about-grid-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
}

.about-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.about-card .card-badge {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

.about-card h2 {
    font-size: 1.45rem !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.about-card p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 12px;
}


/* ==========================================================================
   Footer Customizations & Payment Badges
   ========================================================================== */

.copyright-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    margin-bottom: 0 !important;
}

.copyright-text .designer-link {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.copyright-text .designer-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.alislamia-payment-badges {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.alislamia-payment-badges i {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, 0.8) !important;
    transition: color 0.2s ease;
}

@media (max-width: 991px) {
    .policy-grid,
    .about-grid-sections {
        grid-template-columns: 1fr;
    }
    .policy-card.highlight-card {
        grid-column: span 1;
    }
font-size: 1.25rem !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.policy-card .card-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 0;
}

.policy-card .card-content ul {
    padding-right: 20px;
    margin: 10px 0;
}

.policy-card .card-content li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    position: relative;
}

.policy-card .card-content .note-text {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e53e3e;
    margin-top: 10px;
}

.policy-card .phone-link {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-decoration: underline !important;
}

.why-choose-us-footer {
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.why-choose-us-footer h3 {
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
}

.badges-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge-item {
    background: var(--primary-color);
    color: #ffffff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--btn-shadow);
}

/* --- Premium About Us Page Customizations --- */
.alislamia-premium-about {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow-hover);
    overflow: hidden;
    margin-bottom: 40px;
}

.about-hero-section {
    background: linear-gradient(135deg, rgba(0, 92, 62, 0.95) 0%, rgba(0, 63, 42, 0.85) 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    position: relative;
    border-bottom: 4px solid var(--accent-color);
}

.about-hero-content h1 {
    color: #ffffff !important;
    font-size: 2.8rem !important;
    margin-bottom: 10px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.about-hero-content p {
    color: var(--accent-color) !important;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* About Hero Row Premium Overlay & Text Contrast */
.about-hero-row {
    position: relative !important;
    overflow: hidden !important;
}
.about-hero-row::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to left, rgba(0, 92, 62, 0.75), rgba(0, 0, 0, 0.35)) !important;
    z-index: 1 !important;
}
.about-hero-row > .container,
.about-hero-row > .container > .row,
.about-hero-row .vc_column-inner {
    position: relative !important;
    z-index: 2 !important;
}
.about-hero-row .porto-ultimate-heading h1,
.about-hero-row .porto-ultimate-heading h3,
.about-hero-row .porto-ultimate-heading p,
.about-hero-row .porto-ultimate-heading span,
.about-hero-row .porto-ultimate-heading div {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}
.about-hero-row .porto-ultimate-heading .main-heading {
    color: var(--accent-color) !important;
}

.about-grid-sections {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 40px;
}

.about-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow);
    border-color: var(--primary-color);
}

.about-card .card-badge {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

.about-card h2 {
    font-size: 1.45rem !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
}

.about-card p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-dark);
    margin-bottom: 12px;
}


/* ==========================================================================
   Footer Customizations & Payment Badges
   ========================================================================== */

.copyright-text {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.85rem;
    margin-bottom: 0 !important;
}

.copyright-text .designer-link {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.copyright-text .designer-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.alislamia-payment-badges {
    display: grid !important;
    grid-template-columns: repeat(2, 120px) !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
}
.alislamia-payment-badges .wallet-badge.we {
    grid-column: span 2 !important;
    text-align: center !important;
    justify-content: center !important;
}

.alislamia-payment-badges i {
    font-size: 1.4rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    transition: color 0.2s ease;
}

@media (max-width: 991px) {
    .policy-grid,
    .about-grid-sections {
        grid-template-columns: 1fr;
    }
    .policy-card.highlight-card {
        grid-column: span 1;
    }
    .about-hero-content h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 767px) {
    .alislamia-premium-policy {
        padding: 20px !important;
    }
    .policy-card {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }
}

/* Premium Mobile Wallet Badges in Footer */
.wallet-badge {
    color: #ffffff !important;
    font-size: 0.72rem !important;
    font-weight: 700;
    padding: 3px 8px !important;
    border-radius: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 22px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    font-family: var(--font-family-arabic);
    cursor: default;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-badge:hover {
    transform: translateY(-1px) scale(1.03);
}

.wallet-badge i {
    font-size: 0.85rem !important;
    color: #ffffff !important;
}

/* Wallet Brand Colors */
.wallet-badge.vodafone {
    background: #e60000;
    box-shadow: 0 2px 6px rgba(230, 0, 0, 0.25);
}
.wallet-badge.orange {
    background: #ff6600;
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.25);
}
.wallet-badge.etisalat {
    background: #7ab800;
    box-shadow: 0 2px 6px rgba(122, 184, 0, 0.25);
}
.wallet-badge.we {
    background: #5e2750;
    box-shadow: 0 2px 6px rgba(94, 39, 80, 0.25);
}


/* ==========================================================================
   Policies Dropdown Customizations (Top Nav Bar)
   ========================================================================== */

.top-bar-dropdown {
    position: relative;
    display: inline-block;
}

.top-bar-dropdown .dropdown-trigger {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-bar-dropdown .dropdown-arrow {
    font-size: 0.7rem !important;
    transition: transform 0.25s ease !important;
}

.top-bar-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg) !important;
}

.top-bar-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff !important;
    min-width: 180px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    z-index: 10000;
    top: 100%;
    right: 0;
    padding: 6px 0;
    margin-top: 8px;
    animation: fadeInDropdown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.top-bar-dropdown .dropdown-content::before {
    content: '' !important;
    position: absolute !important;
    top: -30px !important;
    left: -80px !important;
    right: -80px !important;
    height: 35px !important;
    background: transparent !important;
    z-index: 9999 !important;
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-bar-dropdown:hover .dropdown-content {
    display: block !important;
}

.top-bar-dropdown .dropdown-content a {
    color: var(--text-dark) !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: none !important;
    margin: 0 !important;
}

.top-bar-dropdown .dropdown-content a:hover {
    background-color: var(--bg-light) !important;
    color: var(--primary-color) !important;
    padding-right: 20px !important; /* Slide effect on hover */
}

.top-bar-dropdown .dropdown-content a i {
    font-size: 0.88rem;
    color: var(--primary-color) !important;
}

.top-bar-dropdown .dropdown-content a:hover i {
    color: var(--accent-color) !important;
}


/* ==========================================================================
   My Account Premium Design & Layout (RTL Optimized)
   ========================================================================== */

/* Main My Account Content Area */
.woocommerce-MyAccount-content {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--card-shadow) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
}

/* Sidebar Navigation container */
.woocommerce-MyAccount-navigation {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 30px !important;
}

.woocommerce-MyAccount-navigation h5 {
    color: var(--primary-color) !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 12px !important;
    margin-bottom: 15px !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.woocommerce-MyAccount-navigation li:last-child {
    margin-bottom: 0 !important;
}

.woocommerce-MyAccount-navigation li a {
    display: flex !important;
    align-items: center !important;
    padding: 12px 16px !important;
    color: var(--text-dark) !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    background: transparent;
    border-right: 3px solid transparent;
}

.woocommerce-MyAccount-navigation li a i {
    font-size: 1.1rem !important;
    margin-left: 12px !important; /* Space after icon in RTL */
    color: var(--primary-color) !important;
    width: 20px;
    text-align: center;
    transition: transform 0.25s ease, color 0.25s ease !important;
}

/* Hover State */
.woocommerce-MyAccount-navigation li a:hover {
    background: var(--bg-light) !important;
    color: var(--primary-color) !important;
    border-right-color: var(--accent-color) !important;
}

.woocommerce-MyAccount-navigation li a:hover i {
    color: var(--accent-color) !important;
    transform: scale(1.15);
}

/* Active State */
.woocommerce-MyAccount-navigation li.is-active a {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-right-color: var(--accent-color) !important;
}

.woocommerce-MyAccount-navigation li.is-active a i {
    color: var(--accent-color) !important;
}

/* Welcome Card styling */
.dashboard-welcome-card {
    background: linear-gradient(135deg, rgba(0, 92, 62, 0.04) 0%, rgba(212, 175, 55, 0.02) 100%);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 30px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
}

.dashboard-welcome-card::after {
    content: '\f66f'; /* Mosque icon in FontAwesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: -20px;
    left: -10px;
    font-size: 8rem;
    color: rgba(0, 92, 62, 0.02);
    pointer-events: none;
    transform: rotate(-15deg);
}

.welcome-badge {
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 15px;
}

.dashboard-welcome-card h2 {
    font-size: 1.8rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 10px !important;
}

.dashboard-welcome-card h2 strong {
    color: var(--accent-color) !important;
}

.dashboard-welcome-card p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

.welcome-desc {
    margin-top: 15px;
    border-top: 1px solid rgba(0, 92, 62, 0.1);
    padding-top: 15px;
}

.welcome-desc a {
    color: var(--primary-color) !important;
    font-weight: 700;
    text-decoration: underline !important;
}

.welcome-desc a:hover {
    color: var(--accent-color) !important;
}

/* Dashboard Cards Grid */
.dashboard-card {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 25px 20px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

.dashboard-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--card-shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.dashboard-card::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 3px !important;
    background: var(--primary-color) !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.dashboard-card:hover::after {
    transform: scaleX(1) !important;
}

.card-icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(0, 92, 62, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon-wrapper {
    background: var(--primary-color);
}

.card-icon-wrapper i {
    font-size: 1.8rem !important;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.dashboard-card:hover .card-icon-wrapper i {
    color: #ffffff !important;
    transform: scale(1.1);
}

.card-details h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
}

.card-meta-desc {
    font-size: 0.85rem !important;
    color: #718096 !important;
    line-height: 1.5 !important;
    margin-bottom: 15px !important;
}

.card-action-text {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: color 0.2s ease !important;
}

.dashboard-card:hover .card-action-text {
    color: var(--accent-color) !important;
}

.card-action-text i {
    font-size: 0.75rem !important;
    transition: transform 0.2s ease !important;
}

.dashboard-card:hover .card-action-text i {
    transform: translateX(-4px) !important; /* Move left in RTL */
}

/* My Account Tables and Forms Styling */
.woocommerce-MyAccount-content table.shop_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.woocommerce-MyAccount-content table.shop_table th {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    text-align: right !important; /* RTL Align */
}

.woocommerce-MyAccount-content table.shop_table td {
    padding: 14px 18px !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    font-size: 0.9rem !important;
    vertical-align: middle !important;
    text-align: right !important; /* RTL Align */
}

.woocommerce-MyAccount-content table.shop_table tr:hover td {
    background-color: var(--bg-light) !important;
}

/* Order Status Badges */
.woocommerce-MyAccount-content .order-status,
.woocommerce-MyAccount-content .woocommerce-status {
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.woocommerce-MyAccount-content .status-completed,
.woocommerce-MyAccount-content .order-status.completed {
    background-color: rgba(0, 92, 62, 0.1) !important;
    color: var(--primary-color) !important;
}

.woocommerce-MyAccount-content .status-processing,
.woocommerce-MyAccount-content .order-status.processing {
    background-color: rgba(212, 175, 55, 0.1) !important;
    color: var(--accent-dark) !important;
}

.woocommerce-MyAccount-content .status-on-hold,
.woocommerce-MyAccount-content .order-status.on-hold,
.woocommerce-MyAccount-content .status-pending,
.woocommerce-MyAccount-content .order-status.pending {
    background-color: #f7fafc !important;
    color: #4a5568 !important;
    border: 1px solid #cbd5e0 !important;
}

/* My Account Address Forms & Account Details Settings */
.woocommerce-MyAccount-content fieldset {
    border: 1px solid var(--border-color) !important;
    padding: 25px !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 25px !important;
    background: var(--bg-light) !important;
}

.woocommerce-MyAccount-content legend {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    padding: 0 15px !important;
    float: none !important;
    width: auto !important;
    border: none !important;
    margin-bottom: 0 !important;
}

.woocommerce-MyAccount-content .form-row {
    margin-bottom: 18px !important;
}

.woocommerce-MyAccount-content label {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.woocommerce-MyAccount-content input.input-text,
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
    width: 100% !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 11px 15px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}

.woocommerce-MyAccount-content input.input-text:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(0, 92, 62, 0.1) !important;
    outline: none !important;
}

/* ==========================================================================
   Contact Us Page Premium Styling
   ========================================================================== */
.alislamia-premium-contact {
    margin: 20px 0 !important;
}

.contact-header-section {
    text-align: center;
    margin-bottom: 50px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 30px;
}

.contact-header-section h1 {
    font-size: 2.6rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 12px !important;
    font-weight: 800 !important;
}

.contact-header-section p {
    font-size: 1.15rem;
    color: #718096;
    margin-bottom: 0 !important;
}

/* Contact Info Grid */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 55px;
}

.contact-info-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

/* All cards hover slightly for visual feedback */
.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-info-card:hover::after {
    transform: scaleX(1);
}

.info-card-icon {
    width: 65px;
    height: 65px;
    background: rgba(0, 92, 62, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-info-card:hover .info-card-icon {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.info-card-text .info-card-title,
.info-card-text h3 {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.info-card-text .info-card-val,
.info-card-text p {
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
    display: block !important;
}

.contact-info-card.link-card {
    padding: 0 !important;
}

.contact-card-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 30px 20px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.info-card-text {
    display: block !important;
}

.info-card-title {
    display: block !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
}

.info-card-val {
    display: block !important;
    font-size: 0.95rem !important;
    color: #718096 !important;
    margin-bottom: 0 !important;
    line-height: 1.6 !important;
}

/* Premium Form Card */
.contact-form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: var(--card-shadow-hover);
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.contact-form-card h2 {
    font-size: 1.9rem !important;
    color: var(--primary-color) !important;
    margin-bottom: 12px !important;
    text-align: center;
    font-weight: 800 !important;
}

.contact-form-card p {
    text-align: center;
    color: #718096;
    margin-bottom: 30px !important;
}

/* Contact Form Grid and Input styles */
.contact-form-row {
    margin-right: -10px;
    margin-left: -10px;
}

.contact-form-row > div {
    padding-right: 10px;
    padding-left: 10px;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
    width: 100% !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    padding: 12px 16px !important;
    background: var(--bg-light) !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    font-family: var(--font-family-arabic) !important;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(0, 92, 62, 0.12) !important;
    outline: none !important;
}

.contact-form-card input[type="submit"] {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 13px 45px !important;
    font-size: 1rem !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    display: inline-block;
    margin-top: 15px !important;
    width: auto !important;
}

.contact-form-card input[type="submit"]:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Contact Form 7 Validation Alerts Styling */
.wpcf7-not-valid-tip {
    color: #e53e3e !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    margin-top: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.wpcf7-not-valid-tip::before {
    content: '\f06a'; /* Alert icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.wpcf7-response-output {
    border-radius: var(--radius-md) !important;
    padding: 15px 20px !important;
    margin: 25px 0 0 0 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-width: 1px !important;
    border-style: solid !important;
}

/* CF7 Response Colors */
div.wpcf7-mail-sent-ok { /* Success alert */
    background: rgba(0, 92, 62, 0.08) !important;
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}

div.wpcf7-validation-errors, 
div.wpcf7-acceptance-missing,
div.wpcf7-mail-sent-ng { /* Failure alert */
    background: rgba(229, 62, 62, 0.08) !important;
    border-color: #e53e3e !important;
    color: #e53e3e !important;
}

/* ==========================================================================
   Blog Premium Styling & Layout
   ========================================================================== */

/* Modernizing post cards in loops */
.post-item, 
.post-item-style-default {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 25px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    margin-bottom: 30px !important;
    overflow: hidden;
}

.post-item:hover, 
.post-item-style-default:hover {
    box-shadow: var(--card-shadow-hover) !important;
    transform: translateY(-5px) !important;
    border-color: var(--primary-color) !important;
}

/* Post category badge */
.post-item .post-date .day,
.post-item .post-date .month,
.post-item .post-date,
.post-meta-category,
.post-item .category-list a {
    background-color: rgba(0, 92, 62, 0.08) !important;
    color: var(--primary-color) !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.post-item .category-list a:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

/* Post Meta info bar */
.post-meta,
.entry-meta,
.post-item .post-meta {
    font-size: 0.85rem !important;
    color: #718096 !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 12px !important;
}

.post-meta span, 
.entry-meta span {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.post-meta i, 
.entry-meta i {
    color: var(--primary-color) !important;
    font-size: 0.9rem !important;
}

/* Post title in loops */
.post-title a {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.post-title a:hover {
    color: var(--accent-color) !important;
}

/* Post description paragraph in loops */
.post-content p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: var(--text-dark) !important;
    margin-bottom: 20px !important;
}

/* Read More link */
.post-read-more, 
.read-more,
.post-item .read-more {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.post-read-more:hover, 
.read-more:hover {
    color: var(--accent-color) !important;
    padding-right: 8px !important; /* Slide-out effect on hover */
}

/* Pagination Box Styles */
.pagination, 
.page-numbers,
.porto-ajax-loading + .pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
    padding: 0 !important;
    list-style: none !important;
}

.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

.page-numbers li a, 
.page-numbers li span {
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    background: #ffffff !important;
    color: var(--text-dark) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.page-numbers li a:hover, 
.page-numbers li span.current {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: var(--btn-shadow) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Single Post Page & Comments Customizations
   ========================================================================== */

/* Single post readability enhancements */
.single-post article.post {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 35px !important;
    box-shadow: var(--card-shadow) !important;
}

.single-post .post-content {
    font-size: 1.1rem !important;
    line-height: 1.85 !important;
    color: var(--text-dark) !important;
}

.single-post .post-content h2, 
.single-post .post-content h3 {
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.single-post .post-content h2 {
    font-size: 1.8rem !important;
}

.single-post .post-content h3 {
    font-size: 1.45rem !important;
}

/* Arabic Premium Callouts (Blockquotes) */
.single-post blockquote,
blockquote {
    background: var(--bg-light) !important;
    border-right: 4px solid var(--primary-color) !important; /* Thick right border for Arabic RTL text */
    border-left: none !important;
    padding: 20px 25px !important;
    margin: 25px 0 !important;
    border-radius: var(--radius-sm) !important;
    font-style: normal !important;
}

.single-post blockquote p {
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
}

/* Comments Section Styling */
#comments {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 35px !important;
    margin-top: 40px !important;
    box-shadow: var(--card-shadow) !important;
}

#comments h2, 
#respond h3 {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 12px !important;
    margin-bottom: 25px !important;
}

.comment-list .comment-body {
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 20px !important;
    margin-bottom: 20px !important;
}

.comment-list .comment-meta {
    font-size: 0.85rem !important;
    color: #718096 !important;
    margin-bottom: 10px !important;
}

.comment-list .comment-author .fn {
    font-weight: 700 !important;
    color: var(--text-dark) !important;
}

.comment-list .reply a {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-decoration: none !important;
}

/* Comments form fields */
#respond input[type="text"],
#respond input[type="email"],
#respond textarea {
    width: 100% !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 11px 15px !important;
    background: var(--bg-light) !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 15px !important;
}

#respond input:focus,
#respond textarea:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(0, 92, 62, 0.1) !important;
    outline: none !important;
}

#respond input[type="submit"] {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 35px !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    border: none !important;
}

#respond input[type="submit"]:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Responsive Adjustments for Contact Us, My Account & Blog
   ========================================================================== */

@media (max-width: 1199px) {
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .woocommerce-MyAccount-content {
        padding: 25px 20px !important;
    }
}

@media (max-width: 767px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 25px 20px;
    }
    
    .woocommerce-MyAccount-content .row [class*="col-"] a,
    .woocommerce-MyAccount-content [class*="col-"] .icon-box,
    .woocommerce-MyAccount-content .porto-icon-box,
    .dashboard-card {
        padding: 20px 15px !important;
    }
    
    .single-post article.post,
    #comments {
        padding: 25px 20px !important;
    }
}

/* ==========================================================================
   Wishlist Page (قائمة التمني) Premium Styling
   ========================================================================== */
.wishlist_table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--card-shadow) !important;
    width: 100% !important;
    margin-bottom: 35px !important;
    background: #ffffff !important;
}

.wishlist_table th {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 15px 20px !important;
    border: none !important;
    font-size: 0.95rem !important;
    text-align: right !important; /* RTL Align */
}

.wishlist_table td {
    padding: 15px 20px !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    text-align: right !important; /* RTL Align */
    font-size: 0.9rem !important;
}

.wishlist_table tr:hover td {
    background-color: var(--bg-light) !important;
}

/* Product thumbnail */
.wishlist_table td.product-thumbnail img {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    max-width: 70px !important;
    height: auto !important;
}

/* Product Title */
.wishlist_table td.product-name a {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    transition: color 0.2s ease !important;
}

.wishlist_table td.product-name a:hover {
    color: var(--accent-color) !important;
}

/* Price */
.wishlist_table td.product-price span.amount {
    color: var(--accent-dark) !important;
    font-weight: 700 !important;
}

/* Stock Status */
.wishlist_table td.product-stock-status span.wishlist-in-stock {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    background-color: rgba(0, 92, 62, 0.08) !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    display: inline-block !important;
}

.wishlist_table td.product-stock-status span.wishlist-out-of-stock {
    color: #e53e3e !important;
    font-weight: 700 !important;
    background-color: rgba(229, 62, 62, 0.08) !important;
    padding: 4px 12px !important;
    border-radius: 30px !important;
    font-size: 0.8rem !important;
    display: inline-block !important;
}

/* Add to Cart button in Wishlist */
.wishlist_table td.product-add-to-cart a.add_to_cart {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.wishlist_table td.product-add-to-cart a.add_to_cart:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Remove button */
.wishlist_table td.product-remove a.remove_from_wishlist {
    color: #e53e3e !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    transition: transform 0.2s ease !important;
    display: inline-block !important;
    text-align: center !important;
}

.wishlist_table td.product-remove a.remove_from_wishlist:hover {
    transform: scale(1.2) !important;
    color: #c53030 !important;
}

/* Empty Wishlist styling */
.yith-wcwl-wishlist-empty,
.yith-wcwl-no-wishlist {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 40px 20px !important;
    text-align: center !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 30px !important;
}

.yith-wcwl-wishlist-empty::before {
    content: '\f004'; /* Heart icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    font-size: 4rem !important;
    color: var(--border-color) !important;
    display: block !important;
    margin-bottom: 20px !important;
}

/* Share Section */
.yith-wcwl-share {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 20px 25px !important;
    box-shadow: var(--card-shadow) !important;
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.yith-wcwl-share-title {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    margin: 0 !important;
    font-size: 1rem !important;
}

.yith-wcwl-share ul {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 10px !important;
}

.yith-wcwl-share ul li a {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-light) !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.yith-wcwl-share ul li a:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: scale(1.15) !important;
}


/* ==========================================================================
   WooCommerce Login / Registration Form Premium Styling
   ========================================================================== */

/* Layout set containing both columns */
#customer_login.col2-set {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 991px) {
    #customer_login.col2-set {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Style each form column as a distinct premium card */
.woocommerce-form-login.login,
.woocommerce-form-register.register {
    background: #ffffff !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-color) !important;
    padding: 35px 30px !important;
    box-shadow: var(--card-shadow-hover) !important;
    display: block !important;
    height: 100% !important;
}

/* Ensure First Name and Last Name inputs are floated side-by-side in registration */
.woocommerce-form-register.register .form-row-first,
.woocommerce-form-login.login .form-row-first {
    width: 48% !important;
    float: right !important; /* RTL */
    clear: none !important;
    display: inline-block !important;
}

.woocommerce-form-register.register .form-row-last,
.woocommerce-form-login.login .form-row-last {
    width: 48% !important;
    float: left !important; /* RTL */
    clear: none !important;
    display: inline-block !important;
}

.woocommerce-form-register.register .clear,
.woocommerce-form-login.login .clear {
    clear: both !important;
    display: block !important;
    height: 0 !important;
}

.woocommerce-form-register.register .form-row-wide,
.woocommerce-form-login.login .form-row-wide {
    width: 100% !important;
    clear: both !important;
}

/* Titles */
.woocommerce-form-login.login h3,
.woocommerce-form-register.register h3 {
    font-size: 1.55rem !important;
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 12px !important;
    margin-bottom: 25px !important;
}

/* Form rows */
.woocommerce-form-login.login .form-row,
.woocommerce-form-register.register .form-row {
    margin-bottom: 18px !important;
}

/* Labels */
.woocommerce-form-login.login label,
.woocommerce-form-register.register label {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Input Fields */
.woocommerce-form-login.login input[type="text"],
.woocommerce-form-login.login input[type="password"],
.woocommerce-form-register.register input[type="text"],
.woocommerce-form-register.register input[type="email"],
.woocommerce-form-register.register input[type="password"] {
    width: 100% !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 16px !important;
    background: var(--bg-light) !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}

.woocommerce-form-login.login input:focus,
.woocommerce-form-login.login input:focus,
.woocommerce-form-register.register input:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(0, 92, 62, 0.12) !important;
    outline: none !important;
}

/* Privacy policy text in Register card */
.woocommerce-form-register.register .woocommerce-privacy-policy-text p {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
    color: #718096 !important;
    margin-bottom: 20px !important;
    text-align: right !important; /* RTL align */
}

.woocommerce-form-register.register .woocommerce-privacy-policy-text p a.woocommerce-privacy-policy-link {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
}

/* Remember me and Forgot password wrapper */
.woocommerce-LostPassword.lost_password {
    margin-bottom: 25px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    clear: both !important;
}

.woocommerce-LostPassword.lost_password a {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    transition: color 0.2s ease !important;
    white-space: nowrap !important;
}

.woocommerce-LostPassword.lost_password a:hover {
    color: var(--accent-color) !important;
    text-decoration: underline !important;
}

/* Clean up Porto Checkbox rendering in login */
.woocommerce-LostPassword.lost_password .porto-checkbox {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
}

.woocommerce-LostPassword.lost_password .porto-checkbox input[type="checkbox"] {
    position: static !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: var(--primary-color) !important;
}

.woocommerce-LostPassword.lost_password .porto-checkbox label {
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    cursor: pointer !important;
}

/* Submit Buttons */
.woocommerce-form-login.login button[type="submit"],
.woocommerce-form-register.register button[type="submit"] {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 13px 30px !important;
    font-size: 1rem !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
}

.woocommerce-form-login.login button[type="submit"]:hover,
.woocommerce-form-register.register button[type="submit"]:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Sticky Footer at the Bottom for short pages
   ========================================================================== */
/*
.page-wrapper {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}
*/

#main {
    flex: 1 0 auto !important; /* Pushes footer down to fill viewport */
}

#footer {
    flex-shrink: 0 !important; /* Prevents footer from squishing */
}

/* Hide global page sharing on WooCommerce utility pages where it overlaps layout */
.woocommerce-cart .share-links,
.woocommerce-checkout .share-links,
.woocommerce-account .share-links,
.yith-wcwl-page .share-links {
    display: none !important;
}

/* ==========================================================================
   WooCommerce Cart/Checkout Steps Breadcrumb Timeline Styling
   ========================================================================== */
.woo-page-header {
    background-color: var(--bg-light) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 20px 0 !important;
    margin-bottom: 40px !important;
}

.woo-page-header .breadcrumb {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woo-page-header .breadcrumb li {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    font-family: var(--font-family-arabic) !important;
}

.woo-page-header .breadcrumb li a {
    color: #a0aec0 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

/* Current step */
.woo-page-header .breadcrumb li.current a {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--accent-color) !important;
    padding-bottom: 4px !important;
}

/* Completed/Active links */
.woo-page-header .breadcrumb li:not(.current):not(.disable) a {
    color: var(--text-dark) !important;
}

.woo-page-header .breadcrumb li:not(.current):not(.disable) a:hover {
    color: var(--primary-color) !important;
}

/* Delimiters (icons between steps) in RTL */
.woo-page-header .breadcrumb li i.delimiter {
    font-size: 0.8rem !important;
    color: #cbd5e0 !important;
}

.woo-page-header .breadcrumb li i.delimiter::before {
    content: "\f053" !important; /* Left angle bracket for RTL direction */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

/* ==========================================================================
   WooCommerce Cart Page Premium Styling
   ========================================================================== */

/* Cart page container */
.woocommerce-cart-form {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 40px !important;
}

/* Cart Table */
.woocommerce-cart-form table.shop_table.cart {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    width: 100% !important;
    border: none !important;
}

.woocommerce-cart-form table.shop_table.cart th {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    border: none !important;
    text-align: right !important; /* RTL */
}

.woocommerce-cart-form table.shop_table.cart td {
    padding: 18px 18px !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
    text-align: right !important;
    font-size: 0.95rem !important;
}

/* Product thumbnail */
.woocommerce-cart-form table.shop_table.cart td.product-thumbnail img {
    border-radius: var(--radius-sm) !important;
    border: 1px solid var(--border-color) !important;
    max-width: 60px !important;
    height: auto !important;
}

/* Product link */
.woocommerce-cart-form table.shop_table.cart td.product-name a {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.woocommerce-cart-form table.shop_table.cart td.product-name a:hover {
    color: var(--accent-color) !important;
}

/* Remove button */
.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove {
    color: #e53e3e !important;
    font-size: 1.25rem !important;
    text-decoration: none !important;
    transition: transform 0.2s ease !important;
    display: inline-block !important;
}

.woocommerce-cart-form table.shop_table.cart td.product-remove a.remove:hover {
    transform: scale(1.2) !important;
    color: #c53030 !important;
}

/* Quantity input box */
.woocommerce-cart-form .quantity {
    display: inline-flex !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    overflow: hidden !important;
    background: var(--bg-light) !important;
}

.woocommerce-cart-form .quantity input.qty {
    width: 45px !important;
    height: 38px !important;
    border: none !important;
    background: transparent !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}

.woocommerce-cart-form .quantity input:focus {
    outline: none !important;
}

/* Coupon section */
.woocommerce-cart-form td.actions {
    padding-top: 25px !important;
    border-top: 1px solid var(--border-color) !important;
}

.woocommerce-cart-form .coupon {
    display: inline-flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.woocommerce-cart-form .coupon input[type="text"] {
    max-width: 180px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 14px !important;
    background: var(--bg-light) !important;
    font-size: 0.9rem !important;
    height: 42px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-cart-form .coupon input[type="text"]:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(0, 92, 62, 0.1) !important;
    outline: none !important;
}

.woocommerce-cart-form .coupon button.button,
.woocommerce-cart-form button.button[name="update_cart"] {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 10px 22px !important;
    font-size: 0.9rem !important;
    height: 42px !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}

.woocommerce-cart-form .coupon button.button:hover,
.woocommerce-cart-form button.button[name="update_cart"]:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Empty Cart custom panel */
.cart-empty-panel {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 50px 30px !important;
    text-align: center !important;
    box-shadow: var(--card-shadow-hover) !important;
    max-width: 600px;
    margin: 40px auto !important;
}

.cart-empty-icon {
    width: 90px;
    height: 90px;
    background: rgba(0, 92, 62, 0.05);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.cart-empty-panel h2 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    margin-bottom: 12px !important;
}

.cart-empty-panel p {
    font-size: 1rem !important;
    color: #718096 !important;
    margin-bottom: 30px !important;
}

.cart-empty-panel .btn-return-shop {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 35px !important;
    font-size: 1rem !important;
    box-shadow: var(--btn-shadow) !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.25s ease !important;
}

.cart-empty-panel .btn-return-shop:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* Cart Collaterals / Totals area */
.cart-collaterals {
    margin-top: 40px !important;
    display: block !important;
}

.cart-collaterals .cart_totals {
    background: var(--bg-light) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
    box-shadow: var(--card-shadow) !important;
    width: 100% !important;
    float: none !important; /* Reset float */
}

.cart-collaterals .cart_totals h2 {
    font-size: 1.3rem !important;
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 10px !important;
    margin-bottom: 20px !important;
}

.cart-collaterals .cart_totals table {
    width: 100% !important;
    margin-bottom: 25px !important;
}

.cart-collaterals .cart_totals table tr td,
.cart-collaterals .cart_totals table tr th {
    padding: 12px 0 !important;
    border-top: none !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.95rem !important;
    text-align: right !important;
}

.cart-collaterals .cart_totals table tr.order-total td,
.cart-collaterals .cart_totals table tr.order-total th {
    border-bottom: none !important;
    padding-top: 15px !important;
}

.cart-collaterals .cart_totals table tr.order-total .amount {
    font-size: 1.3rem !important;
    color: var(--accent-dark) !important;
    font-weight: 800 !important;
}

.cart-collaterals .checkout-button {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 30px !important;
    font-size: 1.05rem !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.cart-collaterals .checkout-button:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   WooCommerce Checkout Page Premium Styling
   ========================================================================== */

/* Main Checkout Container Layout */
.woocommerce-checkout {
    display: block !important;
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 35px !important;
    box-shadow: var(--card-shadow) !important;
    margin-bottom: 40px !important;
}

/* Headings on Checkout page */
.woocommerce-checkout h3 {
    font-size: 1.4rem !important;
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    border-bottom: 2px solid var(--border-color) !important;
    padding-bottom: 10px !important;
    margin-bottom: 25px !important;
}

/* Billing & Shipping Forms */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Full width fields in grid */
.woocommerce-checkout .form-row-wide,
.woocommerce-checkout #billing_address_1_field,
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_country_field,
.woocommerce-checkout #billing_state_field,
.woocommerce-checkout #billing_email_field,
.woocommerce-checkout #billing_phone_field,
.woocommerce-checkout #order_comments_field {
    grid-column: span 2 !important;
}

.woocommerce-checkout .form-row {
    margin-bottom: 15px !important;
    width: 100% !important;
}

.woocommerce-checkout label {
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--text-dark) !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    width: 100% !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 11px 15px !important;
    background: var(--bg-light) !important;
    transition: all 0.3s ease !important;
    font-size: 0.95rem !important;
    color: var(--text-dark) !important;
}

.woocommerce-checkout input.input-text:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
    border-color: var(--primary-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(0, 92, 62, 0.1) !important;
    outline: none !important;
}

/* Your Order & Payment Container (Left column) */
.woocommerce-checkout-review-order {
    background: var(--bg-light) !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
    box-shadow: var(--card-shadow) !important;
    height: fit-content;
}

/* Order Review Table */
.woocommerce-checkout-review-order-table {
    width: 100% !important;
    margin-bottom: 25px !important;
    border-collapse: separate !important;
}

.woocommerce-checkout-review-order-table tr th,
.woocommerce-checkout-review-order-table tr td {
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.95rem !important;
    text-align: right !important;
    background: transparent !important;
}

.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout-review-order-table tr.order-total td {
    border-bottom: none !important;
    padding-top: 15px !important;
}

.woocommerce-checkout-review-order-table tr.order-total .amount {
    font-size: 1.3rem !important;
    color: var(--accent-dark) !important;
    font-weight: 800 !important;
}

/* Payments Container */
#payment {
    background: #ffffff !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    padding: 20px !important;
    box-shadow: var(--card-shadow) !important;
}

#payment ul.payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

#payment ul.payment_methods li {
    margin-bottom: 15px !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding-bottom: 15px !important;
}

#payment ul.payment_methods li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#payment ul.payment_methods li label {
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

#payment ul.payment_methods li input[type="radio"] {
    accent-color: var(--primary-color) !important; /* Custom color for radios */
}

#payment div.payment_box {
    background: var(--bg-light) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    padding: 12px 15px !important;
    margin-top: 10px !important;
    font-size: 0.85rem !important;
    line-height: 1.6 !important;
    color: #718096 !important;
}

/* Checkout Place Order button */
.woocommerce-checkout #place_order {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    border-radius: var(--radius-sm) !important;
    padding: 14px 30px !important;
    font-size: 1.05rem !important;
    box-shadow: var(--btn-shadow) !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    margin-top: 15px !important;
    border: none !important;
    cursor: pointer !important;
}

.woocommerce-checkout #place_order:hover {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: var(--btn-shadow-hover) !important;
    transform: translateY(-2px) !important;
}

/* ==========================================================================
   Final Touches: Homepage, Checkout, Cart, Login, and Footer CSS Overrides
   ========================================================================== */

/* Enforce scroll lock bypass */
/*
html, body {
    min-height: 100% !important;
    height: auto !important;
    overflow-y: auto !important;
}
*/

/* Homepage Sidebar Width & TikTok Card Layout */
@media (min-width: 992px) {
    body.home.column2 .main-content.col-lg-9 {
        flex: 0 0 71% !important;
        max-width: 71% !important;
    }
    body.home.column2 .sidebar.col-lg-3 {
        flex: 0 0 29% !important;
        max-width: 29% !important;
        width: 29% !important;
    }
}
.tiktok-card-wrapper h4 {
    white-space: nowrap !important;
}
@media (min-width: 992px) and (max-width: 1200px) {
    .tiktok-card-wrapper h4 {
        font-size: 1rem !important;
    }
}

/* Laptop Menu Spacing Optimization */
@media (min-width: 992px) and (max-width: 1250px) {
    .custom-home-top-bar {
        padding: 8px 12px !important;
        gap: 6px !important;
    }
    .custom-home-top-bar a {
        font-size: 0.82rem !important;
        padding: 5px 8px !important;
        gap: 4px !important;
    }
    .top-bar-divider {
        margin: 0 2px !important;
    }
}

/* WooCommerce col-1/col-2 Grid Override to prevent conflicts with Bootstrap col-1/col-2 */
.woocommerce .col2-set,
.woocommerce-page .col2-set {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
}
.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1 {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    width: 48% !important;
}
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    flex: 0 0 48% !important;
    max-width: 48% !important;
    width: 48% !important;
}
#customer_login .col-1,
#customer_login .col-2 {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    width: 45% !important;
}
@media (max-width: 991px) {
    .woocommerce .col2-set .col-1,
    .woocommerce .col2-set .col-2,
    .woocommerce-page .col2-set .col-1,
    .woocommerce-page .col2-set .col-2,
    #customer_login .col-1,
    #customer_login .col-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Checkout Layout Overrides (Support Native RTL Grid) */
.woocommerce-checkout #customer_details {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    margin-right: -10px !important;
    margin-left: -10px !important;
    width: 100% !important;
}
.woocommerce-checkout #customer_details .col-lg-7,
.woocommerce-checkout #customer_details .col-lg-5 {
    width: 100% !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
}
@media (min-width: 992px) {
    .woocommerce-checkout #customer_details .col-lg-7 {
        flex: 0 0 58.333333% !important;
        max-width: 58.333333% !important;
    }
    .woocommerce-checkout #customer_details .col-lg-5 {
        flex: 0 0 41.666667% !important;
        max-width: 41.666667% !important;
    }
}
.woocommerce-checkout .form-row-first {
    width: 48% !important;
    float: right !important;
    clear: none !important;
}
.woocommerce-checkout .form-row-last {
    width: 48% !important;
    float: left !important;
    clear: none !important;
}
.woocommerce-checkout .form-row-wide {
    width: 100% !important;
    clear: both !important;
}

/* Cart Layout Overrides (Support Native RTL Grid & Prevent Squishing) */
.woocommerce-cart .cart-v2 .row {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
}
.woocommerce-cart .cart-v2 .col-lg-8,
.woocommerce-cart .cart-v2 .col-lg-4 {
    width: 100% !important;
    padding-right: 10px !important;
    padding-left: 10px !important;
}
@media (min-width: 992px) {
    /* Cart v2 */
    .woocommerce-cart .cart-v2 .col-lg-8 {
        flex: 0 0 66.666667% !important;
        max-width: 66.666667% !important;
    }
    .woocommerce-cart .cart-v2 .col-lg-4 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    /* Cart v1 */
    .woocommerce-cart .featured-box.align-left {
        width: 66.666667% !important;
        float: right !important;
        margin-bottom: 0 !important;
    }
    .woocommerce-cart .cart-collaterals {
        width: 33.333333% !important;
        float: left !important;
        margin-top: 0 !important;
        padding-left: 20px !important;
    }
}
.woocommerce-cart .woocommerce-cart-form {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}
.woocommerce-cart .cart-collaterals {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
}

/* Footer Payment Icons 2-column Grid & InstaPay Badge */
.wallet-badge.instapay {
    background-color: #e11a60 !important;
    color: #ffffff !important;
    border-color: #c0124f !important;
}
.wallet-badge.instapay i {
    color: #ffffff !important;
}
.copyright-text,
.copyright-text span,
.copyright-text .design-by,
.copyright-text .design-by a,
.copyright-text .designer-link {
    color: #ffffff !important;
    opacity: 1 !important;
}
.copyright-text {
    font-size: 1.05rem !important;
    line-height: 1.8 !important;
    text-align: right !important;
}
.copyright-text .design-by {
    font-size: 0.95rem !important;
    display: inline-block !important;
    margin-top: 6px !important;
}
.copyright-text .designer-link {
    font-weight: 700 !important;
    text-decoration: underline !important;
}
.copyright-text .designer-link:hover {
    color: var(--accent-color) !important;
}
@media (max-width: 767px) {
    .copyright-text {
        text-align: center !important;
    }
}
