/* ==========================================================================
   Local Fonts (Cairo)
   ========================================================================== */
@font-face {
    font-family: 'Cairo';
    src: url('../../fonts/Cairo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../../fonts/Cairo-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../../fonts/Cairo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #8c662f;
    --bg-color: #faf8f5;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul { 
    list-style: none; 
}

.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.btn {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    background-color: var(--primary-color); 
    color: var(--white);
    padding: 10px 25px; 
    border: none; 
    cursor: pointer;
    font-family: 'Cairo', sans-serif; 
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn:hover { 
    opacity: 0.9; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
}

.section-title h2 { 
    font-size: 1.8rem; 
    color: var(--text-dark); 
    display: inline-block; 
    position: relative; 
    padding: 0 20px; 
}

.section-title p { 
    color: var(--primary-color); 
    font-size: 0.9rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

/* ==========================================================================
   Scroll Animation Classes
   ========================================================================== */
.reveal {
    opacity: 0; 
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar { 
    background-color: var(--primary-color); 
    color: var(--white); 
    font-size: 0.85rem; 
    padding: 8px 0; 
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header { 
    background-color: var(--white); 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-color); 
}
.header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo img, .footer-logo-col img { 
    height: auto; 
    width: 200px;
    max-width: 100%;
    object-fit: contain;
}
.nav-links { 
    display: flex; 
    gap: 25px; 
}
.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    padding-bottom: 5px; 
}
.nav-links a.active { 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--primary-color); 
}
.header-icons { 
    display: flex; 
    gap: 20px; 
    font-size: 1.2rem; 
    color: var(--text-dark); 
    cursor: pointer; 
}

/* Header Search Form */
.search-wrapper { position: relative; display: flex; align-items: center; }
.header-search-form {
    position: absolute;
    top: 200%;
    left: -10px; /* للظهور تحت الأيقونة على اليسار */
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 5px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    min-width: 280px;
    border-radius: 5px;
}
.header-search-form.active { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search-form input[type="search"] { border: none; outline: none; padding: 10px 15px; width: 100%; font-family: 'Cairo', sans-serif; font-size: 0.95rem; }
.header-search-form button { background: var(--primary-color); color: var(--white); border: none; padding: 10px 15px; cursor: pointer; transition: opacity 0.3s; border-radius: 3px; font-size: 1rem; }
.header-search-form button:hover { opacity: 0.9; }
.search-toggle.active { color: var(--primary-color); }

/* Pagination */
/* Note: WooCommerce/WP pagination markup reuses the "nav-links" class that the
   mobile header menu (.nav-links) also uses; these overrides stop that menu's
   position/width/background/flex-direction rules from leaking into pagination
   on mobile. */
.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    font-weight: 600;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    z-index: auto;
}
.pagination-wrapper .page-numbers { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 5px; transition: all 0.3s ease; }
.pagination-wrapper .page-numbers.current, .pagination-wrapper .page-numbers:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
@media (max-width: 480px) {
    .pagination-wrapper .nav-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
    }
    .pagination-wrapper .page-numbers { padding: 6px 12px; font-size: 0.9rem; flex: 0 0 auto; white-space: nowrap; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { 
    position: relative; 
    background-color: var(--bg-color); /* Fallback */
    display: flex; 
    align-items: stretch; 
}
.hero-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    gap: 0;
}
.hero-image {
    flex: 0 0 60%;
    background-size: cover;
    background-position: center;
}
.hero-content { 
    background: transparent; 
    padding: 60px 5%; 
    flex: 0 0 40%;
    text-align: center; 
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-content h1 { 
    font-size: 3.5rem; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
    line-height: 1.3;
}
.hero-content h3 { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    letter-spacing: 1px; 
    margin-bottom: 20px; 
}
.hero-content p { 
    margin-bottom: 25px; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   Features Banners
   ========================================================================== */
.features-banner { 
    background-color: var(--white); 
    padding: 30px 0; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 50px; 
}
.features-grid { 
    display: flex; 
    justify-content: space-between; 
    text-align: center; 
}
.feature-item i { 
    font-size: 2rem; 
    color: var(--primary-color); 
    margin-bottom: 10px; 
}
.feature-item h4 { 
    font-size: 1rem; 
    margin-bottom: 5px; 
}
.feature-item p { 
    font-size: 0.85rem; 
    color: var(--text-light); 
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.categories-section { 
    padding: 40px 0; 
}
.category-slider { 
    display: flex; 
    gap: 20px; 
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}
.category-slider::-webkit-scrollbar {
    display: none;
}
.category-card { 
    flex: 0 0 calc(20% - 16px);
    scroll-snap-align: start;
    background: var(--white); 
    text-align: center; 
    padding-bottom: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease; 
    border-radius: 8px;
    overflow: hidden;
}
.category-card:hover { 
    transform: translateY(-5px); 
}
.category-card img { 
    width: 100%; 
    height: auto; 
    display: block; 
    margin-bottom: 15px; 
}
.category-card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 5px; 
}
.category-card .shop-btn { 
    color: var(--primary-color); 
    font-size: 0.9rem; 
    font-weight: 600; 
}

/* ==========================================================================
   Products Section (Best Sellers)
   ========================================================================== */
.products-section { 
    padding: 60px 0; 
    background-color: var(--white); 
}
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}
.product-card { 
    text-align: center; 
    transition: transform 0.3s ease; 
}
.product-card:hover { 
    transform: translateY(-5px); 
}
.product-image { 
    position: relative; 
    overflow: hidden; 
    margin-bottom: 15px; 
}
.product-image img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease; 
}
.product-card:hover .product-image img { 
    transform: scale(1.05); 
}
.product-overlay { 
    position: absolute; 
    bottom: -60px; 
    left: 0; 
    right: 0; 
    background: rgba(255, 255, 255, 0.95); 
    padding: 15px; 
    transition: bottom 0.3s ease; 
    display: flex; 
    justify-content: center; 
}
.product-card:hover .product-overlay { 
    bottom: 0; 
}
.sale-badge { position: absolute; top: 15px; right: 15px; background: #e74c3c; color: var(--white); padding: 5px 12px; font-size: 0.8rem; font-weight: bold; border-radius: 3px; z-index: 2; }
.product-overlay .add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 3px; font-size: 1rem; }
.product-overlay .add_to_cart_button.loading { opacity: 0.5; cursor: wait; }
.product-overlay .add_to_cart_button.added { display: none; }
.product-overlay .added_to_cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #8c662f; color: white; padding: 10px 25px; border-radius: 3px; font-weight: 600; width: 100%; }

.product-info h3 { 
    font-size: 1.1rem; 
    color: var(--text-dark); 
    margin-bottom: 5px; 
    font-weight: 600; 
}
.product-info .price { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   Shop Layout (Sidebar + Content)
   ========================================================================== */
.shop-layout { display: flex; gap: 40px; margin-top: 30px; align-items: flex-start; }
.shop-sidebar { flex: 0 0 260px; background: var(--white); padding: 25px; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.shop-content { flex: 1; min-width: 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; background: var(--white); padding: 15px 20px; border: 1px solid var(--border-color); border-radius: 8px; }
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--text-light); font-size: 0.95rem; }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar .woocommerce-ordering select { 
    padding: 8px 15px 8px 40px; 
    border: 1px solid var(--border-color); 
    outline: none; 
    font-family: 'Cairo', sans-serif; 
    border-radius: 5px; 
    cursor: pointer; 
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--white);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center;
}
.sidebar-widget { margin-bottom: 30px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.sidebar-widget h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-dark); position: relative; padding-bottom: 10px; border-bottom: 2px solid var(--bg-color); }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li { margin-bottom: 10px; font-size: 0.95rem; }
.sidebar-widget ul li a { color: var(--text-light); transition: color 0.3s ease; }
.sidebar-widget ul li a:hover { color: var(--primary-color); }
.sidebar-widget .count { float: left; color: var(--text-light); font-size: 0.85rem; }

/* WooCommerce Price Filter UI */
.widget_price_filter .price_slider { margin-bottom: 1.5em; background: var(--border-color); border-radius: 5px; height: 5px; position: relative; }
.widget_price_filter .ui-slider-range { position: absolute; height: 100%; background: var(--primary-color); border-radius: 5px; }
.widget_price_filter .ui-slider-handle { position: absolute; top: -5px; width: 15px; height: 15px; background: var(--white); border: 2px solid var(--primary-color); border-radius: 50%; cursor: ew-resize; outline: none; z-index: 2; margin-right: -7.5px; }
.widget_price_filter .price_slider_amount { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.widget_price_filter .price_slider_amount .button { background: var(--primary-color); color: var(--white); border: none; padding: 5px 15px; border-radius: 3px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.9rem; }
.widget_price_filter .price_slider_amount .price_label { color: var(--text-light); }

/* ==========================================================================
   WooCommerce Single Product Layout
   ========================================================================== */
.single-product-container { display: flex; flex-direction: column; gap: 60px; }
.single-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Product Gallery */
.single-product-image .woocommerce-product-gallery__wrapper { margin: 0; padding: 0; }
.single-product-image .woocommerce-product-gallery__image { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-color); }
.single-product-image .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; cursor: zoom-in; }
.single-product-image .woocommerce-product-gallery__image:hover img { transform: scale(1.08); }
.single-product-image .flex-control-thumbs { display: flex; gap: 12px; margin-top: 15px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.single-product-image .flex-control-thumbs::-webkit-scrollbar { display: none; }
.single-product-image .flex-control-thumbs li { flex: 0 0 85px; cursor: pointer; }
.single-product-image .flex-control-thumbs li img { width: 100%; height: auto; border-radius: 8px; opacity: 0.5; transition: all 0.3s ease; border: 2px solid transparent; }
.single-product-image .flex-control-thumbs li img:hover, .single-product-image .flex-control-thumbs li img.flex-active { opacity: 1; border-color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.single-product-image .woocommerce-product-gallery__trigger { display: none; }

/* Product Summary */
.single-product-summary h1.product_title { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 700; line-height: 1.3; }
.single-product-summary .price { font-size: 2rem; color: var(--primary-color); font-weight: 800; margin-bottom: 25px; display: block; }
.single-product-summary .price del { color: var(--text-light); font-size: 1.2rem; font-weight: 400; margin-left: 10px; }
.single-product-summary .price ins { text-decoration: none; }
.single-product-summary .woocommerce-product-details__short-description { font-size: 1.1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }

/* Add to Cart Form */
.single-product-summary form.cart { display: flex; gap: 20px; align-items: stretch; margin-bottom: 35px; flex-wrap: wrap; }
.single-product-summary form.cart .quantity { display: inline-flex; align-items: center; }
.single-product-summary form.cart .quantity input.qty { width: 80px; padding: 0 15px; height: 55px; border: 1px solid var(--border-color); border-radius: 8px; text-align: center; font-family: 'Cairo', sans-serif; font-size: 1.2rem; font-weight: bold; color: var(--text-dark); outline: none; transition: border-color 0.3s ease; }
.single-product-summary form.cart .quantity input.qty:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.single-product-summary form.cart button.single_add_to_cart_button { height: 55px; padding: 0 40px; font-size: 1.1rem; border-radius: 8px; flex: 1; justify-content: center; background-color: var(--primary-color); border: none; color: var(--white); font-weight: bold; transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.single-product-summary form.cart button.single_add_to_cart_button:hover { background-color: #7a5827; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(140, 102, 47, 0.2); }
.single-product-summary form.cart button.single_add_to_cart_button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Meta Information */
.single-product-summary .product_meta { font-size: 0.95rem; color: var(--text-light); background: var(--bg-color); padding: 20px; border-radius: 8px; }
.single-product-summary .product_meta span { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.single-product-summary .product_meta span:last-child { margin-bottom: 0; }
.single-product-summary .product_meta a { background: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-dark); transition: all 0.3s ease; }
.single-product-summary .product_meta a:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

/* Tabs */
.woocommerce-tabs.wc-tabs-wrapper { background: #ffffff; padding: 40px; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: none; }
.woocommerce-tabs ul.tabs { display: flex; gap: 20px; margin: 0 0 35px 0; padding: 0; list-style: none; border-bottom: 2px solid var(--bg-color); overflow-x: auto; scrollbar-width: none; }
.woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: none !important; border-bottom: 2px solid transparent !important; margin-bottom: -2px; background: transparent !important; transition: border-color 0.3s ease; }
.woocommerce-tabs ul.tabs li.active, .woocommerce-tabs ul.tabs li:hover { border-bottom-color: var(--primary-color) !important; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: 15px 30px; font-size: 1.15rem; font-weight: 700; color: var(--text-light); text-decoration: none; transition: all 0.3s ease; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li:hover a { color: var(--primary-color); }
.woocommerce-tabs .panel { font-size: 1.05rem; color: var(--text-dark); line-height: 1.9; animation: fadeIn 0.5s ease; }
.woocommerce-tabs .panel h2 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 20px; font-weight: 700; }
.woocommerce-tabs .panel p { margin-bottom: 15px; }
.woocommerce-tabs .panel ul { padding-right: 20px; margin-bottom: 20px; list-style: disc; }
.woocommerce-tabs .panel ul li { margin-bottom: 10px; }

/* Related Products Section */
.related.products, .up-sells { margin-top: 80px; padding-top: 50px; border-top: 1px solid var(--border-color); }
.related.products > h2, .up-sells > h2 { font-size: 2rem; margin-bottom: 40px; position: relative; padding-bottom: 15px; display: inline-block; color: var(--text-dark); font-weight: 700; }
.related.products > h2::after, .up-sells > h2::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60px; height: 3px; background: var(--primary-color); border-radius: 2px; }
.related.products .products, .up-sells .products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.related.products .products::before, .related.products .products::after, .up-sells .products::before, .up-sells .products::after { display: none; }
.related.products .products .product-card, .up-sells .products .product-card { width: 100% !important; margin: 0 !important; float: none; }

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */
.woocommerce-notices-wrapper { width: 100%; margin-bottom: 30px; animation: fadeIn 0.5s ease; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { background: var(--white); padding: 15px 25px; margin: 0 0 20px !important; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); align-items: center; flex-wrap: wrap; gap: 15px; border: 1px solid var(--border-color); list-style: none; font-weight: 600; font-size: 1.05rem; }
.woocommerce-message { border-right: 4px solid #8c662f; color: #8c662f; }
.woocommerce-error { border-right: 4px solid #e74c3c; color: #c0392b; }
.woocommerce-info { border-right: 4px solid var(--primary-color); color: var(--text-dark); }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { display: none !important; }
.woocommerce-message .button, .woocommerce-error .button, .woocommerce-info .button { margin-right: auto; background: var(--bg-color); color: var(--text-dark); padding: 8px 20px; border-radius: 5px; font-size: 0.95rem; font-weight: 700; border: 1px solid var(--border-color); transition: all 0.3s ease; text-decoration: none; }
.woocommerce-message .button:hover, .woocommerce-error .button:hover, .woocommerce-info .button:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.woocommerce-error li { margin: 0; list-style: none; }
.woocommerce-error li i { display: none; }
.woocommerce-message .button.wc-forward { background-color: var(--primary-color); color: var(--white);}

/* ==========================================================================
   WooCommerce Cart Page
   ========================================================================== */
.woocommerce-cart .woocommerce { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; align-items: flex-start; }
.woocommerce-cart .woocommerce-notices-wrapper { flex: 0 0 100%; }
.woocommerce-cart .woocommerce-cart-form { flex: 1; min-width: 0; background: var(--white); border-radius: 12px; padding: 35px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); overflow-x: auto; }
.woocommerce-cart .cart-collaterals { flex: 0 0 400px; width: 100%; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color); margin: 0; position: sticky; top: 30px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{  width:100%;}
/* Lock background and text color for normal and hover states */
.woocommerce .checkout-button.button.alt.wc-forward,
.woocommerce .return-to-shop .button.wc-backward,
.woocommerce .checkout-button.button.alt.wc-forward:hover,
.woocommerce .return-to-shop .button.wc-backward:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* ==========================================================================
   WooCommerce Empty Cart Page Styles
   ========================================================================== */

/* Center the entire empty cart container */
.woocommerce .wc-empty-cart-message,
.woocommerce .return-to-shop {
    text-align: right;
    width: 100%;
    clear: both;
    display: block; /* Forces them to stack vertically */
}

/* Style the Empty Cart Message Box */
.woocommerce .cart-empty.woocommerce-info {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    padding: 20px 30px;
    margin: 0 auto 30px auto; /* Centers the box and adds space below */
    max-width: 600px; /* Prevents it from stretching too wide */
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color); /* Adds a clean brand-colored accent line */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Remove WooCommerce's default float behaviors & icons that break RTL */
.woocommerce .cart-empty.woocommerce-info::before {
    display: none;
}

/* Style the "Return to Shop" Button */
.woocommerce .return-to-shop .button.wc-backward {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 35px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Hover Effect */
.woocommerce .return-to-shop .button.wc-backward:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 102, 47, 0.3); /* Subtle glow matching your brand color */
}

/* Cart Table */
.shop_table.cart { width: 100%; border-collapse: collapse; text-align: right; }
.shop_table.cart th { padding: 15px; font-size: 1.1rem; color: var(--text-dark); border-bottom: 2px solid var(--bg-color); font-weight: 700; }
.shop_table.cart td { padding: 20px 15px; vertical-align: middle; border-bottom: 1px solid var(--border-color); }
.shop_table.cart tr:last-child td { border-bottom: none; padding: 40px 20px 20px 20px; }
.shop_table.cart .product-thumbnail img { width: 80px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: block; }
.shop_table.cart .product-name a { font-weight: 700; color: var(--text-dark); font-size: 1.05rem; transition: color 0.3s; }
.shop_table.cart .product-name a:hover { color: var(--primary-color); }
.shop_table.cart .product-price, .shop_table.cart .product-subtotal { color: var(--primary-color); font-weight: bold; font-size: 1.1rem; }
.shop_table.cart th.product-remove, .shop_table.cart td.product-remove { width: 60px; text-align: center; padding-left: 0; padding-right: 0; }
.shop_table.cart .product-remove .remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #ffebee; color: #e74c3c; border-radius: 50%; font-size: 1.4rem; line-height: 1; transition: all 0.3s; }
.shop_table.cart .product-remove .remove:hover { background: #e74c3c; color: var(--white); transform: scale(1.1); }
.shop_table.cart .quantity input.qty { width: 70px; height: 45px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; text-align: center; font-family: 'Cairo', sans-serif; font-size: 1.1rem; font-weight: bold; outline: none; transition: border-color 0.3s; }
.shop_table.cart .quantity input.qty:focus { border-color: var(--primary-color); }

/* Cart Actions (Coupon & Update) */
.shop_table.cart .actions { padding: 30px 0 0 0; }
.woocommerce-cart-form__contents .actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.woocommerce-cart-form__contents .actions .coupon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shop_table.cart .actions { padding: 30px 0 0 0; display: table-cell; border-bottom: none; }
.woocommerce-cart-form__contents .actions .coupon { float: right; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce-cart-form__contents .actions .coupon input.input-text { width: 200px; height: 48px; padding: 0 15px; border: 1px solid var(--border-color); border-radius: 8px; outline: none; font-family: 'Cairo', sans-serif; }
.woocommerce-cart-form__contents .actions .button { height: 48px; padding: 0 25px; border: none; border-radius: 8px; background: var(--bg-color); color: var(--text-dark); font-weight: 700; font-family: 'Cairo', sans-serif; cursor: pointer; transition: all 0.3s ease; border: 1px solid var(--border-color); }
.woocommerce-cart-form__contents .actions .button:hover { background: var(--primary-color); color: var(--white) !important; border-color: var(--primary-color); }
.woocommerce-cart-form__contents .actions > .button { float: left; }

/* Cart Totals */
.cart_totals h2 { font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 20px; font-weight: 800; text-align: center; }
.cart_totals .shop_table { width: 100%; margin-bottom: 35px; border-collapse: collapse; }
.cart_totals .shop_table th { padding: 20px 0; font-weight: 600; color: var(--text-light); text-align: right; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; }
.cart_totals .shop_table td { padding: 20px 0; text-align: left; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid var(--border-color); font-size: 1.15rem; }
.cart_totals .shop_table .order-total th { color: var(--text-dark); font-size: 1.3rem; border-bottom: none; padding-top: 25px; }
.cart_totals .shop_table .order-total td { color: var(--primary-color); font-size: 1.8rem; border-bottom: none; padding-top: 25px; font-weight: 800; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; height: 60px; align-items: center; justify-content: center; background: var(--primary-color); color: var(--white); border-radius: 10px; font-size: 1.2rem; font-weight: 800; transition: all 0.3s ease; border: none; box-shadow: 0 8px 25px rgba(140, 102, 47, 0.25); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; }
.wc-proceed-to-checkout .checkout-button:hover { background: #7a5827; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(140, 102, 47, 0.35); }

/* ==========================================================================
   WooCommerce Checkout Page
   ========================================================================== */
.woocommerce-checkout form.checkout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 30px; }
.woocommerce-checkout .col2-set { flex: 1; min-width: 0; width: 100%; margin: 0; display: flex; flex-direction: column; gap: 30px; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; max-width: 100%; float: none; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); }
.woocommerce-checkout .col2-set h3 { font-size: 1.5rem; margin-bottom: 25px; color: var(--text-dark); border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; font-weight: 800; }

/* Order Review Section */
.woocommerce-checkout #order_review_heading { display: none; }
.woocommerce-checkout #order_review { flex: 0 0 450px; width: 100%; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color); margin: 0; position: sticky; top: 30px; }
.woocommerce-checkout #order_review::before { content: "إجمالي الطلب"; display: block; font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 20px; font-weight: 800; text-align: center; }

/* Checkout Tables */
.woocommerce-checkout-review-order-table { width: 100%; margin-bottom: 35px; border-collapse: collapse; }
.woocommerce-checkout-review-order-table th { padding: 20px 0; font-weight: 600; color: var(--text-light); text-align: right; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; }
.woocommerce-checkout-review-order-table td { padding: 20px 0; text-align: left; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid var(--border-color); font-size: 1.15rem; }
.woocommerce-checkout-review-order-table .product-name { text-align: right; font-weight: 600; color: var(--text-dark); }
.woocommerce-checkout-review-order-table .product-total { text-align: left; }
.woocommerce-checkout-review-order-table .order-total th { color: var(--text-dark); font-size: 1.3rem; border-bottom: none; padding-top: 25px; }
.woocommerce-checkout-review-order-table .order-total td { color: var(--primary-color); font-size: 1.8rem; border-bottom: none; padding-top: 25px; font-weight: 800; text-align: left; }

/* Payment Box & Place Order Button */
#payment { background: var(--bg-color); border-radius: 12px; padding: 25px; margin-top: 20px; border: 1px solid var(--border-color); }
#payment ul.payment_methods { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
#payment ul.payment_methods li { margin-bottom: 15px; }
#payment ul.payment_methods li:last-child { margin-bottom: 0; }
#payment ul.payment_methods li input { margin-left: 10px; }
#payment ul.payment_methods li label { font-weight: 700; color: var(--text-dark); font-size: 1.05rem; cursor: pointer; }
#payment .payment_box { background: var(--white); padding: 15px 20px; border-radius: 8px; margin-top: 15px; font-size: 0.95rem; color: var(--text-light); border: 1px solid var(--border-color); position: relative; }
#payment .place-order { margin: 0; padding: 0; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 25px; font-size: 0.95rem; color: var(--text-light); line-height: 1.8; }
.woocommerce-privacy-policy-link { color: var(--primary-color); font-weight: 700; text-decoration: underline; }
button#place_order { display: flex; width: 100%; height: 60px; align-items: center; justify-content: center; background: var(--primary-color); color: var(--white); border-radius: 10px; font-size: 1.2rem; font-weight: 800; transition: all 0.3s ease; border: none; box-shadow: 0 8px 25px rgba(140, 102, 47, 0.25); text-transform: uppercase; letter-spacing: 0.5px; }
button#place_order:hover { background: #7a5827; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(140, 102, 47, 0.35); color: var(--white); }

/* Checkout Form Fields */
.woocommerce-checkout .form-row { margin-bottom: 20px; }
.woocommerce-checkout .form-row label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea { width: 100%; padding: 15px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease; background: var(--bg-color); color: var(--text-dark); }
.woocommerce-checkout .form-row textarea { height: 120px; resize: vertical; }
.woocommerce-checkout .form-row input.input-text:focus, .woocommerce-checkout .form-row textarea:focus { border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.woocommerce-checkout .select2-container .select2-selection--single { height: 50px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-color); display: flex; align-items: center; outline: none; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text-dark); font-family: 'Cairo', sans-serif; font-size: 1rem; padding-right: 15px; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; left: 10px; right: auto; }

/* Coupon Form Toggle */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { border-right: 4px solid var(--primary-color); background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 25px; padding: 20px 30px; border-radius: 8px; font-size: 1.05rem; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon { color: var(--primary-color); font-weight: 700; margin-right: 5px; text-decoration: underline; }
.woocommerce-checkout .checkout_coupon { background: var(--white); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 40px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.woocommerce-checkout .checkout_coupon .form-row { margin: 0; padding: 0; flex: 1; min-width: 250px; }
.woocommerce-checkout .checkout_coupon .form-row-last { flex: 0 0 auto; }
.woocommerce-checkout .checkout_coupon .button { height: 50px; padding: 0 35px; border-radius: 8px; font-weight: 800; background: var(--primary-color); color: var(--white); border: none; transition: all 0.3s; font-family: 'Cairo', sans-serif; font-size: 1.05rem; }
.woocommerce-checkout .checkout_coupon .button:hover { background: #7a5827; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.2); color: var(--white) !important; }

/* ==========================================================================
   WooCommerce My Account Dashboard
   ========================================================================== */
.woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; align-items: flex-start; }

/* My Account Navigation Sidebar */
.woocommerce-MyAccount-navigation { flex: 0 0 280px; width: 100%; background: var(--white); border-radius: 12px; padding: 15px 0; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); position: sticky; top: 30px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid var(--border-color); margin: 0; }
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a { display: flex; align-items: center; padding: 18px 25px; color: var(--text-dark); font-weight: 700; font-size: 1.05rem; transition: all 0.3s ease; position: relative; border-right: 4px solid transparent; text-decoration: none; }
.woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-MyAccount-navigation ul li a:hover { color: var(--primary-color); background: var(--bg-color); border-right-color: var(--primary-color); }

/* Navigation Sidebar Icons */
.woocommerce-MyAccount-navigation ul li a::before { font-family: 'Font Awesome 7 Free', 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; margin-left: 12px; font-size: 1.2rem; width: 25px; text-align: center; display: inline-block; color: var(--text-light); transition: color 0.3s ease; }
.woocommerce-MyAccount-navigation ul li.is-active a::before, .woocommerce-MyAccount-navigation ul li a:hover::before { color: var(--primary-color); }
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '\f0e4'; } /* Dashboard Icon */
.woocommerce-MyAccount-navigation-link--orders a::before { content: '\f290'; } /* Bag Icon */
.woocommerce-MyAccount-navigation-link--downloads a::before { content: '\f019'; } /* Download Icon */
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '\f3c5'; } /* Address Pin Icon */
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '\f007'; } /* User Account Icon */
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '\f2f5'; } /* Logout Icon */

/* My Account Content Area */
.woocommerce-MyAccount-content { flex: 1; min-width: 0; background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); }
.woocommerce-MyAccount-content p { font-size: 1.05rem; color: var(--text-dark); line-height: 1.9; margin-bottom: 20px; }
.woocommerce-MyAccount-content a { color: var(--primary-color); font-weight: 700; text-decoration: underline; transition: color 0.3s; }
.woocommerce-MyAccount-content a:hover { color: #7a5827; }
.woocommerce-MyAccount-content strong { color: var(--primary-color); font-weight: 800; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { color: var(--text-dark); margin-bottom: 25px; font-weight: 800; border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; font-size: 1.5rem; }
.woocommerce-MyAccount-content mark { background: var(--bg-color); color: var(--primary-color); padding: 2px 10px; border-radius: 4px; font-weight: bold; }

/* Remove default WooCommerce floats on account titles */
.woocommerce-account .addresses .title::after, 
.woocommerce-account .addresses .title::before {
    display: none !important;
}

/* My Account Forms (Edit Account & Address) */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields { margin-top: 30px; }
.woocommerce-MyAccount-content .form-row { margin-bottom: 25px; }
.woocommerce-MyAccount-content .form-row label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.woocommerce-MyAccount-content .form-row input.input-text, 
.woocommerce-MyAccount-content .form-row textarea, 
.woocommerce-MyAccount-content .form-row select { width: 100%; padding: 15px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease; background: var(--bg-color); color: var(--text-dark); }
.woocommerce-MyAccount-content .form-row textarea { height: 120px; resize: vertical; }
.woocommerce-MyAccount-content .form-row input.input-text:focus, 
.woocommerce-MyAccount-content .form-row textarea:focus, 
.woocommerce-MyAccount-content .form-row select:focus { border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; margin-top: 40px; margin-bottom: 30px; background-color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.woocommerce-MyAccount-content fieldset legend { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); padding: 0 15px; }
.woocommerce-MyAccount-content button.button { display: inline-flex; height: 50px; align-items: center; justify-content: center; padding: 0 35px; background: var(--primary-color); color: var(--white) !important; border-radius: 8px; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; }
.woocommerce-MyAccount-content button.button:hover { background: #7a5827; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.2); }

/* ==========================================================================
   About Us Section (من نحن)
   ========================================================================== */
.about-section { 
    padding: 80px 0; 
}
.about-wrapper {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 400px;
}
.about-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-content .section-title {
    text-align: right;
    margin-bottom: 20px;
}
.about-content .section-title h2 {
    padding: 0;
}
.about-content p {
    font-size: 1.1rem;
    color: var(--text-dark); 
    line-height: 1.9;
}
.about-image-bg {
    flex: 1;
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   About & Contact Inner Pages
   ========================================================================== */
.about-intro { text-align: center; max-width: 800px; margin: 0 auto 40px; font-size: 1.1rem; color: var(--text-dark); line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.about-box { background-color: var(--white); padding: 40px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 8px; }
.about-box i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.about-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-dark); }
.about-box p { color: var(--text-light); line-height: 1.8; font-size: 0.95rem; }

.about-goals { background-color: var(--white); padding: 40px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 8px; }
.about-goals h3 { text-align: center; font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); }
.about-goals ul { display: grid; grid-template-columns: 1fr; gap: 15px; }
.about-goals li { display: flex; align-items: flex-start; gap: 15px; font-size: 1rem; color: var(--text-dark); line-height: 1.7; }
.about-goals li i { color: var(--primary-color); font-size: 1.2rem; margin-top: 4px; }
.about-goals li strong { color: var(--primary-color); margin-left: 5px; }

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form-wrapper { max-width: 800px; margin: 0 auto; background: var(--white); padding: 40px; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.contact-form-wrapper h3 { text-align: center; font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); }
.contact-form .form-group { margin-bottom: 20px; text-align: right; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 5px; font-family: 'Cairo', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; font-weight: 600; }
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==========================================================================
   New Collection Banner
   ========================================================================== */
.new-collection { 
    display: flex; 
    background-color: #f4f1ea; 
    margin: 60px auto; 
    max-width: 1300px; 
    height: 400px; 
}
.nc-text { 
    flex: 0 0 30%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 40px; 
}
.nc-text h2 { 
    font-size: 3rem; 
    color: var(--primary-color); 
}
.nc-text h4 { 
    font-size: 1rem; 
    color: var(--text-light); 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
}
.nc-image { 
    flex: 0 0 70%; 
    background-size: cover; 
    background-position: center; 
}

/* ==========================================================================
   Gallery & Reviews & Footer
   ========================================================================== */
.gallery-section { 
    padding: 40px 0; 
    text-align: center; 
}
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 10px; 
    margin-bottom: 30px; 
}
.gallery-grid img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    aspect-ratio: 1/1; 
    transition: transform 0.3s ease; 
}
.gallery-grid img:hover { 
    transform: scale(1.03); 
    z-index: 1; 
    position: relative; 
}
.btn-outline { 
    background: transparent; 
    border: 1px solid var(--primary-color); 
    color: var(--primary-color); 
}

.reviews-section { 
    background-color: var(--white); 
    padding: 60px 0; 
}
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    align-items: center; 
}
.review-card { 
    background-color: var(--bg-color); 
    padding: 30px; 
    text-align: center; 
    border: 1px solid var(--border-color); 
}
.stars { 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}

.newsletter-section { 
    padding: 60px 0; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
}
.newsletter-form { 
    display: flex; 
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; 
    max-width: 700px;
    width: 100%;
    margin: 20px auto 0; 
}
.newsletter-form input { 
    padding: 20px 15px; 
    border: 1px solid var(--border-color); 
    flex: 1;
    min-width: 250px;
    font-family: inherit; 
    outline: none; 
}
.newsletter-form button {
    flex-shrink: 0;
    justify-content: center;
}

.footer { 
    background-color: var(--bg-color); 
    padding: 60px 0 20px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 40px; 
}
.footer-logo-col .custom-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}
.footer-col h4 { 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
    color: var(--text-dark); 
}
.footer-col ul li { 
    margin-bottom: 10px; 
}
.footer-col ul li a { 
    color: var(--text-light); 
    font-size: 0.9rem; 
    transition: color 0.3s; 
}
.footer-col ul li a:hover { 
    color: var(--primary-color); 
}
.footer-social { 
    display: flex; 
    gap: 15px; 
}
.footer-social a { 
    color: var(--text-dark); 
    font-size: 1.2rem; 
    transition: color 0.3s; 
}
.footer-social a:hover { 
    color: var(--primary-color); 
}
.copyright { 
    text-align: center; 
    color: var(--text-light); 
    font-size: 0.85rem; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color); 
}

/* ==========================================================================
   Responsive Styles & Mobile Menu
   ========================================================================== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 992px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-slider .category-card { flex: 0 0 calc(33.333% - 14px); }
    .products-grid, .related.products .products, .up-sells .products { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 40px 20px; }
    .new-collection { flex-direction: column; height: auto; }
    .nc-text { flex: none; width: 100%; }
    .nc-image { flex: none; height: 300px; width: 100%; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    
    .single-product-top { grid-template-columns: 1fr; gap: 30px; }
    
    .about-wrapper { flex-direction: column; }
    .about-image-bg { min-height: 300px; width: 100%; }
    .about-content { padding: 40px 20px; text-align: center; }
    .about-content .section-title { text-align: center; }
    
    .shop-layout { flex-direction: column; align-items: stretch; }
    .shop-sidebar, .shop-content { flex: none; width: 100%; }
    
    /* Cart Page Tablet */
    .woocommerce-cart .woocommerce { flex-direction: column; gap: 30px; }
    .woocommerce-cart .woocommerce-cart-form, .woocommerce-cart .cart-collaterals { flex: none; width: 100%; }
    .woocommerce-cart-form__contents .actions { justify-content: center; }
    .woocommerce-cart-form__contents .actions .coupon { float: none; justify-content: center; margin-bottom: 20px; }
    .woocommerce-cart-form__contents .actions > .button { float: none; display: block; margin: 0 auto; }
    
    /* Checkout Tablet */
    .woocommerce-checkout form.checkout { flex-direction: column; gap: 30px; }
    .woocommerce-checkout #order_review { flex: none; width: 100%; position: static; }

    /* My Account Tablet */
    .woocommerce-account .woocommerce { flex-direction: column; gap: 30px; }
    .woocommerce-MyAccount-navigation { flex: none; width: 100%; position: static; }
}

@media (max-width: 768px) {
    /* Unset the global overflow-x rule on mobile */
    body { overflow-x: visible; }

    /* Header & Nav */
    .menu-toggle { display: block; }
    .header { position: relative; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 1000;
    }
    .nav-links.active { display: flex; }
    .header-icons { align-items: center; }

    /* Top bar */
    .top-bar .container { flex-direction: column; text-align: center; gap: 5px; }

    /* Hero */
    .hero { height: auto; min-height: auto; padding: 0; }
    .hero-inner { flex-direction: column; }
    .hero-image { flex: none; width: 100%; height: 400px; margin-bottom: 0; }
    .hero-content { flex: none; width: 100%; padding: 50px 20px; }

    /* Grids */
    .features-grid { flex-direction: column; gap: 30px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-slider .category-card { flex: 0 0 calc(50% - 10px); }
    .products-grid, .related.products .products, .up-sells .products { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Mobile Cart Actions */
    .woocommerce-cart-form__contents .actions .coupon { flex-direction: column; width: 100%; }
    .woocommerce-cart-form__contents .actions .coupon input.input-text, .woocommerce-cart-form__contents .actions .coupon button, .woocommerce-cart-form__contents .actions > .button { width: 100%; }
    .shop_table.cart td.product-remove, .shop_table.cart td.product-thumbnail { text-align: center; border-bottom: none; padding-bottom: 0; }
    .shop_table.cart td.product-thumbnail { padding-top: 0; }
    .shop_table.cart td.product-thumbnail img { margin: 0 auto; width: 100px; }
    
    /* Mobile Checkout */
    .woocommerce-checkout .checkout_coupon { flex-direction: column; align-items: stretch; gap: 15px; }
    .woocommerce-checkout .checkout_coupon .form-row-last, .woocommerce-checkout .checkout_coupon .button { width: 100%; }
    .woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { padding: 25px 20px; }
    .woocommerce-checkout #order_review { padding: 25px 20px; }
    
    /* Smaller Fonts for Mobile Cart & Checkout */
    .shop_table.cart td.product-name a { font-size: 0.9rem; }
    .shop_table.cart .product-price, .shop_table.cart .product-subtotal { font-size: 0.95rem; }
    .shop_table.cart .quantity input.qty { font-size: 0.95rem; height: 40px; }
    .cart_totals h2, .woocommerce-checkout .col2-set h3, .woocommerce-checkout #order_review::before { font-size: 1.25rem; }
    .cart_totals .shop_table th, .woocommerce-checkout-review-order-table th { font-size: 0.9rem; }
    .cart_totals .shop_table td, .woocommerce-checkout-review-order-table td { font-size: 0.95rem; }
    .cart_totals .shop_table .order-total th, .woocommerce-checkout-review-order-table .order-total th { font-size: 1.05rem; padding-top: 15px; }
    .cart_totals .shop_table .order-total td, .woocommerce-checkout-review-order-table .order-total td { font-size: 1.3rem; padding-top: 15px; }
    #payment ul.payment_methods li label { font-size: 0.9rem; }
    .woocommerce-checkout .form-row label, .woocommerce-MyAccount-content .form-row label { font-size: 0.85rem; }
    .woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { font-size: 0.9rem; }
    .wc-proceed-to-checkout .checkout-button, button#place_order { font-size: 1.05rem; height: 50px; }

    /* Mobile My Account */
    .woocommerce-MyAccount-content { padding: 25px 20px; }

    /* Typography */
    .section-title h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .nc-text h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .category-slider .category-card { flex: 0 0 75%; }
    .header-icons { gap: 12px; font-size: 1.1rem; }
    .logo img, .footer-logo-col img { max-height: 60px; }
}=========================================================================
   Local Fonts (Cairo)
   ========================================================================== */
@font-face {
    font-family: 'Cairo';
    src: url('../../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../../fonts/Cairo-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../../fonts/Cairo-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary-color: #8c662f;
    --bg-color: #faf8f5;
    --text-dark: #333;
    --text-light: #777;
    --white: #ffffff;
    --border-color: #e5e5e5;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul { 
    list-style: none; 
}

.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.btn {
    display: inline-flex; 
    align-items: center; 
    gap: 10px;
    background-color: var(--primary-color); 
    color: var(--white);
    padding: 10px 25px; 
    border: none; 
    cursor: pointer;
    font-family: 'Cairo', sans-serif; 
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.btn:hover { 
    opacity: 0.9; 
}

.section-title { 
    text-align: center; 
    margin-bottom: 40px; 
}

.section-title h1,
.section-title h2 { 
    font-size: 1.8rem; 
    color: var(--text-dark); 
    display: inline-block; 
    position: relative; 
    padding: 0 20px; 
}

.section-title p { 
    color: var(--primary-color); 
    font-size: 0.9rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
}

/* ==========================================================================
   Scroll Animation Classes
   ========================================================================== */
.reveal {
    opacity: 0; 
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
    will-change: opacity, transform;
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* ==========================================================================
   Top Bar & Header
   ========================================================================== */
.top-bar { 
    background-color: var(--primary-color); 
    color: var(--white); 
    font-size: 0.85rem; 
    padding: 8px 0; 
}
.top-bar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.header { 
    background-color: var(--white); 
    padding: 20px 0; 
    border-bottom: 1px solid var(--border-color); 
}
.header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.logo img, .footer-logo-col img { 
    height: auto; 
    width: 200px;
    max-width: 100%;
    object-fit: contain;
}
.nav-links { 
    display: flex; 
    gap: 25px; 
}
.nav-links a { 
    font-weight: 600; 
    font-size: 0.95rem; 
    padding-bottom: 5px; 
}
.nav-links a.active { 
    color: var(--primary-color); 
    border-bottom: 2px solid var(--primary-color); 
}

/* Navigation Dropdown */
.nav-links > li { position: relative; }
.nav-links .dropdown-menu { position: absolute; top: 100%; right: 0; background: var(--white); min-width: 200px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); border: 1px solid var(--border-color); border-radius: 5px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 1000; padding: 0; margin-top: 15px; display: flex; flex-direction: column; overflow: hidden; }
.nav-links > li:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-links .dropdown-menu li { width: 100%; }
.nav-links .dropdown-menu a { padding: 12px 20px; font-size: 0.95rem; color: var(--text-dark); border-bottom: 1px solid var(--border-color); transition: background 0.3s, color 0.3s; display: block; font-weight: 600; }
.nav-links .dropdown-menu li:last-child a { border-bottom: none; }
.nav-links .dropdown-menu a:hover { background: var(--bg-color); color: var(--primary-color); border-bottom: 1px solid var(--border-color); }
.nav-links .dropdown-menu li:last-child a:hover { border-bottom: none; }

.header-icons { 
    display: flex; 
    gap: 20px; 
    font-size: 1.2rem; 
    color: var(--text-dark); 
    cursor: pointer; 
}

/* Header Search Form */
.search-wrapper { position: relative; display: flex; align-items: center; }
.header-search-form {
    position: absolute;
    top: 200%;
    left: -10px; /* للظهور تحت الأيقونة على اليسار */
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 5px;
    display: flex;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    z-index: 1000;
    min-width: 280px;
    border-radius: 5px;
}
.header-search-form.active { opacity: 1; visibility: visible; transform: translateY(0); }
.header-search-form input[type="search"] { border: none; outline: none; padding: 10px 15px; width: 100%; font-family: 'Cairo', sans-serif; font-size: 0.95rem; }
.header-search-form button { background: var(--primary-color); color: var(--white); border: none; padding: 10px 15px; cursor: pointer; transition: opacity 0.3s; border-radius: 3px; font-size: 1rem; }
.header-search-form button:hover { opacity: 0.9; }
.search-toggle.active { color: var(--primary-color); }

/* Header Account Dropdown */
.header-account-wrapper { position: relative; display: flex; align-items: center; }
.account-customlocation { display: flex; align-items: center; color: var(--text-dark); transition: color 0.3s; text-decoration: none; }
.account-customlocation:hover { color: var(--primary-color); }
.header-account-dropdown { position: absolute; top: 100%; left: 50%; right: auto; width: 150px; background: var(--white); border: 1px solid var(--border-color); border-radius: 5px; opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(15px); transition: all 0.3s ease; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; overflow: hidden; padding: 0; margin-top: 15px; }
.header-account-wrapper:hover .header-account-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.header-account-dropdown a { padding: 12px 15px; font-size: 0.95rem; color: var(--text-dark); border-bottom: 1px solid var(--border-color); transition: background 0.3s, color 0.3s; text-align: center; font-weight: 600; text-decoration: none; display: block; }
.header-account-dropdown a:last-child { border-bottom: none; }
.header-account-dropdown a:hover { background: var(--bg-color); color: var(--primary-color); }

/* Header Wishlist Dropdown & Product Icon */
.header-wishlist-wrapper { position: relative; display: flex; align-items: center; }
.wishlist-customlocation { position: relative; display: flex; align-items: center; color: var(--text-dark); transition: color 0.3s; text-decoration: none; }
.wishlist-customlocation:hover { color: var(--primary-color); }
.wishlist-count { position: absolute; top: -8px; right: -10px; background: var(--primary-color); color: var(--white); font-size: 0.75rem; font-weight: 700; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: sans-serif; line-height: 1; }
.header-wishlist-dropdown { position: absolute; top: 100%; left: -10px; right: auto; width: 350px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 1000; cursor: default; padding-top: 15px; }
.header-wishlist-wrapper:hover .header-wishlist-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.widget_wishlist_content { background: var(--white); padding: 25px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid var(--border-color); text-align: right; max-height: 400px; overflow-y: auto; scrollbar-width: thin; }
.wishlist-btn { position: absolute; top: 15px; left: 15px; background: var(--white); border: none; width: 35px; height: 35px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.05); z-index: 3; }
.wishlist-btn:hover { color: var(--primary-color); transform: scale(1.1); }
.wishlist-btn.active { color: #e74c3c; }

/* Header Cart & Mini Cart */
.header-cart-wrapper { position: relative; display: flex; align-items: center; }
.cart-customlocation { position: relative; display: flex; align-items: center; color: var(--text-dark); transition: color 0.3s; text-decoration: none; }
.cart-customlocation:hover { color: var(--primary-color); }
.cart-count { position: absolute; top: -8px; right: -10px; background: var(--primary-color); color: var(--white); font-size: 0.75rem; font-weight: 700; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: sans-serif; line-height: 1; }
.header-mini-cart { position: absolute; top: 100%; left: -10px; right: auto; width: 350px; opacity: 0; visibility: hidden; transform: translateY(15px); transition: all 0.3s ease; z-index: 1000; cursor: default; padding-top: 15px; }
.header-cart-wrapper:hover .header-mini-cart { opacity: 1; visibility: visible; transform: translateY(0); }

/* Pagination */
/* Note: WooCommerce/WP pagination markup reuses the "nav-links" class that the
   mobile header menu (.nav-links) also uses; these overrides stop that menu's
   position/width/background/flex-direction rules from leaking into pagination
   on mobile. */
.pagination-wrapper .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
    font-weight: 600;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    background: transparent;
    padding: 0;
    box-shadow: none;
    z-index: auto;
}
.pagination-wrapper .page-numbers { padding: 8px 15px; border: 1px solid var(--border-color); border-radius: 5px; transition: all 0.3s ease; }
.pagination-wrapper .page-numbers.current, .pagination-wrapper .page-numbers:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
@media (max-width: 480px) {
    .pagination-wrapper .nav-links {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
    }
    .pagination-wrapper .page-numbers { padding: 6px 12px; font-size: 0.9rem; flex: 0 0 auto; white-space: nowrap; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero { 
    position: relative; 
    background-color: var(--bg-color); /* Fallback */
    display: flex; 
    align-items: stretch; 
}
.hero-inner {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    width: 100%;
    gap: 0;
}
.hero-image {
    flex: 0 0 60%;
    background-size: cover;
    background-position: center;
}
.hero-content { 
    background: transparent; 
    padding: 60px 5%; 
    flex: 0 0 40%;
    text-align: center; 
    transform: translateY(0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.hero-content h1 { 
    font-size: 3.5rem; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
    line-height: 1.3;
}
.hero-content h3 { 
    font-size: 1.2rem; 
    color: var(--text-light); 
    letter-spacing: 1px; 
    margin-bottom: 20px; 
}
.hero-content p { 
    margin-bottom: 25px; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   Features Banners
   ========================================================================== */
.features-banner { 
    background-color: var(--white); 
    padding: 30px 0; 
    border-bottom: 1px solid var(--border-color); 
    margin-bottom: 50px; 
}
.features-grid { 
    display: flex; 
    justify-content: space-between; 
    text-align: center; 
}
.feature-item i { 
    font-size: 2rem; 
    color: var(--primary-color); 
    margin-bottom: 10px; 
}
.feature-item h4 { 
    font-size: 1rem; 
    margin-bottom: 5px; 
}
.feature-item p { 
    font-size: 0.85rem; 
    color: var(--text-light); 
}

/* ==========================================================================
   Categories Section
   ========================================================================== */
.categories-section { 
    padding: 40px 0; 
}
.category-grid { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
}
.category-card { 
    background: var(--white); 
    text-align: center; 
    padding-bottom: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease; 
}
.category-card:hover { 
    transform: translateY(-5px); 
}
.category-card img { 
    width: 100%; 
    height: auto; 
    display: block; 
    margin-bottom: 15px; 
}
.category-card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 5px; 
}
.category-card p { 
    font-size: 0.8rem; 
    color: var(--text-light); 
    text-transform: uppercase; 
    margin-bottom: 10px; 
}
.category-card a { 
    color: var(--primary-color); 
    font-size: 0.9rem; 
    font-weight: 600; 
}

/* ==========================================================================
   Products Section (Best Sellers)
   ========================================================================== */
.products-section { 
    padding: 60px 0; 
    background-color: var(--white); 
}
.products-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}
.product-card { 
    text-align: center; 
    transition: transform 0.3s ease; 
}
.product-card:hover { 
    transform: translateY(-5px); 
}
.product-image { 
    position: relative; 
    overflow: hidden; 
    margin-bottom: 15px; 
}
.product-image img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    display: block; 
    transition: transform 0.5s ease; 
}
.product-card:hover .product-image img { 
    transform: scale(1.05); 
}
.product-overlay { 
    position: absolute; 
    bottom: -60px; 
    left: 0; 
    right: 0; 
    background: rgba(255, 255, 255, 0.95); 
    padding: 15px; 
    transition: bottom 0.3s ease; 
    display: flex; 
    justify-content: center; 
}
.product-card:hover .product-overlay { 
    bottom: 0; 
}
.sale-badge { position: absolute; top: 15px; right: 15px; background: #e74c3c; color: var(--white); padding: 5px 12px; font-size: 0.8rem; font-weight: bold; border-radius: 3px; z-index: 2; }
.product-overlay .add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border-radius: 3px; font-size: 1rem; }
.product-overlay .add_to_cart_button.loading { opacity: 0.5; cursor: wait; }
.product-overlay .add_to_cart_button.added { display: none; }
.product-overlay .added_to_cart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #8c662f; color: white; padding: 10px 25px; border-radius: 3px; font-weight: 600; width: 100%; }

.product-info h3 { 
    font-size: 1.1rem; 
    color: var(--text-dark); 
    margin-bottom: 5px; 
    font-weight: 600; 
}
.product-info .price { 
    color: var(--primary-color); 
    font-weight: 700; 
    font-size: 1.2rem; 
}

/* ==========================================================================
   WooCommerce Breadcrumbs
   ========================================================================== */
.woocommerce-breadcrumb { font-size: 0.95rem; color: var(--text-light); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.product-breadcrumbs .woocommerce-breadcrumb { justify-content: flex-start; }
.woocommerce-breadcrumb a { color: var(--text-dark); font-weight: 700; transition: color 0.3s; }
.woocommerce-breadcrumb a:hover { color: var(--primary-color); }

/* ==========================================================================
   Shop Layout (Sidebar + Content)
   ========================================================================== */
.shop-layout { display: flex; gap: 40px; margin-top: 30px; align-items: flex-start; }
.shop-sidebar { flex: 0 0 260px; background: var(--white); padding: 25px; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.shop-content { flex: 1; min-width: 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 25px; background: var(--white); padding: 15px 20px; border: 1px solid var(--border-color); border-radius: 8px; }
.shop-toolbar .woocommerce-notices-wrapper { width: 100%; flex: 0 0 100%; margin-bottom: 10px; }
.shop-toolbar .woocommerce-notices-wrapper:empty { display: none; margin: 0; }
.shop-toolbar .woocommerce-result-count { margin: 0; color: var(--text-light); font-size: 0.95rem; }
.shop-toolbar .woocommerce-ordering { margin: 0; }
.shop-toolbar .woocommerce-ordering select { 
    padding: 8px 15px 8px 40px; 
    border: 1px solid var(--border-color); 
    outline: none; 
    font-family: 'Cairo', sans-serif; 
    border-radius: 5px; 
    cursor: pointer; 
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--white);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: left 15px center;
}
.sidebar-widget { margin-bottom: 30px; }
.sidebar-widget:last-child { margin-bottom: 0; }
.sidebar-widget h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--text-dark); position: relative; padding-bottom: 10px; border-bottom: 2px solid var(--bg-color); }
.sidebar-widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar-widget ul li { margin-bottom: 10px; font-size: 0.95rem; }
.sidebar-widget ul li a { color: var(--text-light); transition: color 0.3s ease; }
.sidebar-widget ul li a:hover { color: var(--primary-color); }
.sidebar-widget .count { float: left; color: var(--text-light); font-size: 0.85rem; }

/* WooCommerce Price Filter UI */
.widget_price_filter .price_slider { margin-bottom: 1.5em; background: var(--border-color); border-radius: 5px; height: 5px; position: relative; }
.widget_price_filter .ui-slider-range { position: absolute; height: 100%; background: var(--primary-color); border-radius: 5px; }
.widget_price_filter .ui-slider-handle { position: absolute; top: -5px; width: 15px; height: 15px; background: var(--white); border: 2px solid var(--primary-color); border-radius: 50%; cursor: ew-resize; outline: none; z-index: 2; margin-right: -7.5px; }
.widget_price_filter .price_slider_amount { display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.widget_price_filter .price_slider_amount .button { background: var(--primary-color); color: var(--white); border: none; padding: 5px 15px; border-radius: 3px; cursor: pointer; font-family: 'Cairo', sans-serif; font-size: 0.9rem; }
.widget_price_filter .price_slider_amount .price_label { color: var(--text-light); }

/* ==========================================================================
   WooCommerce Single Product Layout
   ========================================================================== */
.single-product-container { display: flex; flex-direction: column; gap: 60px; }
.single-product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

/* Product Gallery */
.single-product-image .woocommerce-product-gallery__wrapper { margin: 0; padding: 0; }
.single-product-image .woocommerce-product-gallery__image { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--border-color); }
.single-product-image .woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; cursor: zoom-in; }
.single-product-image .woocommerce-product-gallery__image:hover img { transform: scale(1.08); }
.single-product-image .flex-control-thumbs { display: flex; gap: 12px; margin-top: 15px; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.single-product-image .flex-control-thumbs::-webkit-scrollbar { display: none; }
.single-product-image .flex-control-thumbs li { flex: 0 0 85px; cursor: pointer; }
.single-product-image .flex-control-thumbs li img { width: 100%; height: auto; border-radius: 8px; opacity: 0.5; transition: all 0.3s ease; border: 2px solid transparent; }
.single-product-image .flex-control-thumbs li img:hover, .single-product-image .flex-control-thumbs li img.flex-active { opacity: 1; border-color: var(--primary-color); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.single-product-image .woocommerce-product-gallery__trigger { display: none; }

/* Product Summary */
.single-product-summary h1.product_title { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 15px; font-weight: 700; line-height: 1.3; }
.single-product-summary .price { font-size: 2rem; color: var(--primary-color); font-weight: 800; margin-bottom: 25px; display: block; }
.single-product-summary .price del { color: var(--text-light); font-size: 1.2rem; font-weight: 400; margin-left: 10px; }
.single-product-summary .price ins { text-decoration: none; }
.single-product-summary .woocommerce-product-details__short-description { font-size: 1.1rem; color: var(--text-light); line-height: 1.8; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--border-color); }

/* Add to Cart Form */
.single-product-summary form.cart { display: flex; gap: 20px; align-items: stretch; margin-bottom: 35px; flex-wrap: wrap; }
.single-product-summary form.cart .quantity { display: inline-flex; align-items: center; }
.single-product-summary form.cart .quantity input.qty { width: 80px; padding: 0 15px; height: 55px; border: 1px solid var(--border-color); border-radius: 8px; text-align: center; font-family: 'Cairo', sans-serif; font-size: 1.2rem; font-weight: bold; color: var(--text-dark); outline: none; transition: border-color 0.3s ease; }
.single-product-summary form.cart .quantity input.qty:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.single-product-summary form.cart button.single_add_to_cart_button { height: 55px; padding: 0 40px; font-size: 1.1rem; border-radius: 8px; flex: 1; justify-content: center; background-color: var(--primary-color); border: none; color: var(--white); font-weight: bold; transition: all 0.3s ease; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.single-product-summary form.cart button.single_add_to_cart_button:hover { background-color: #7a5827; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(140, 102, 47, 0.2); }
.single-product-summary form.cart button.single_add_to_cart_button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Meta Information */
.single-product-summary .product_meta { font-size: 0.95rem; color: var(--text-light); background: var(--bg-color); padding: 20px; border-radius: 8px; }
.single-product-summary .product_meta span { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.single-product-summary .product_meta span:last-child { margin-bottom: 0; }
.single-product-summary .product_meta a { background: var(--white); padding: 5px 15px; border-radius: 20px; font-size: 0.85rem; border: 1px solid var(--border-color); text-decoration: none; color: var(--text-dark); transition: all 0.3s ease; }
.single-product-summary .product_meta a:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

/* Tabs */
.woocommerce-tabs.wc-tabs-wrapper { background: #ffffff; padding: 40px; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: none; }
.woocommerce-tabs ul.tabs { display: flex; gap: 20px; margin: 0 0 35px 0; padding: 0; list-style: none; border-bottom: 2px solid var(--bg-color); overflow-x: auto; scrollbar-width: none; }
.woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: none !important; border-bottom: 2px solid transparent !important; margin-bottom: -2px; background: transparent !important; transition: border-color 0.3s ease; }
.woocommerce-tabs ul.tabs li.active, .woocommerce-tabs ul.tabs li:hover { border-bottom-color: var(--primary-color) !important; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after { display: none !important; }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: 15px 30px; font-size: 1.15rem; font-weight: 700; color: var(--text-light); text-decoration: none; transition: all 0.3s ease; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a, .woocommerce-tabs ul.tabs li:hover a { color: var(--primary-color); }
.woocommerce-tabs .panel { font-size: 1.05rem; color: var(--text-dark); line-height: 1.9; animation: fadeIn 0.5s ease; }
.woocommerce-tabs .panel h2 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 20px; font-weight: 700; }
.woocommerce-tabs .panel p { margin-bottom: 15px; }
.woocommerce-tabs .panel ul { padding-right: 20px; margin-bottom: 20px; list-style: disc; }
.woocommerce-tabs .panel ul li { margin-bottom: 10px; }

/* Related Products Section */
.related.products, .up-sells { margin-top: 80px; padding-top: 50px; border-top: 1px solid var(--border-color); }
.related.products > h2, .up-sells > h2 { font-size: 2rem; margin-bottom: 40px; position: relative; padding-bottom: 15px; display: inline-block; color: var(--text-dark); font-weight: 700; }
.related.products > h2::after, .up-sells > h2::after { content: ''; position: absolute; bottom: 0; right: 0; width: 60px; height: 3px; background: var(--primary-color); border-radius: 2px; }
.related.products .products, .up-sells .products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.related.products .products::before, .related.products .products::after, .up-sells .products::before, .up-sells .products::after { display: none; }
.related.products .products .product-card, .up-sells .products .product-card { width: 100% !important; margin: 0 !important; float: none; }

/* ==========================================================================
   WooCommerce Notices
   ========================================================================== */
.woocommerce-checkout form.checkout .woocommerce-NoticeGroup { width: 100% !important; flex: 0 0 100% !important; max-width: 100% !important; order: -1; margin-bottom: 0; }
.woocommerce-notices-wrapper { width: 100%; margin-bottom: 30px; animation: fadeIn 0.5s ease; }
.woocommerce-notices-wrapper, .woocommerce-NoticeGroup { width: 100%; flex: 0 0 100%; margin-bottom: 30px; animation: fadeIn 0.5s ease; }
.woocommerce-message, .woocommerce-error, .woocommerce-info { display: flex; background: var(--white); padding: 15px 25px; margin: 0 0 20px !important; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); align-items: center; flex-wrap: wrap; gap: 15px; border: 1px solid var(--border-color); list-style: none; font-weight: 600; font-size: 1.05rem; }
.woocommerce-message { border-right: 4px solid #8c662f; color: #8c662f; }
.woocommerce-error { border-right: 4px solid #e74c3c; color: #c0392b; }
.woocommerce-info { border-right: 4px solid var(--primary-color); color: var(--text-dark); }
.woocommerce-message::before, .woocommerce-error::before, .woocommerce-info::before { display: none !important; }
.woocommerce-message .button, .woocommerce-error .button, .woocommerce-info .button { margin-right: auto; background: var(--bg-color); color: var(--text-dark); padding: 8px 20px; border-radius: 5px; font-size: 0.95rem; font-weight: 700; border: 1px solid var(--border-color); transition: all 0.3s ease; text-decoration: none; }
.woocommerce-message .button:hover, .woocommerce-error .button:hover, .woocommerce-info .button:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }
.woocommerce-error li { margin: 0; list-style: none; }
.woocommerce-error li i { display: none; }
.woocommerce-message .button.wc-forward { background-color: var(--primary-color); color: var(--white);}

/* ==========================================================================
   WooCommerce Cart Page
   ========================================================================== */
.woocommerce-cart .woocommerce { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 40px; align-items: flex-start; }
.woocommerce-cart .woocommerce-notices-wrapper { flex: 0 0 100%; }
.woocommerce-cart .woocommerce-cart-form { flex: 1; min-width: 0; background: var(--white); border-radius: 12px; padding: 35px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); overflow-x: auto; }
.woocommerce-cart .cart-collaterals { flex: 0 0 400px; width: 100%; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color); margin: 0; position: sticky; top: 30px; }
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals{  width:100%;}
/* Lock background and text color for normal and hover states */
.woocommerce .checkout-button.button.alt.wc-forward,
.woocommerce .return-to-shop .button.wc-backward,
.woocommerce .checkout-button.button.alt.wc-forward:hover,
.woocommerce .return-to-shop .button.wc-backward:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* ==========================================================================
   WooCommerce Empty Cart Page Styles
   ========================================================================== */

/* Center the entire empty cart container */
.woocommerce .wc-empty-cart-message,
.woocommerce .return-to-shop {
    text-align: right;
    width: 100%;
    clear: both;
    display: block; /* Forces them to stack vertically */
}

/* Style the Empty Cart Message Box */
.woocommerce .cart-empty.woocommerce-info {
    background-color: var(--white);
    color: var(--text-dark);
    font-family: 'Cairo', sans-serif;
    font-size: 1.1rem;
    padding: 20px 30px;
    margin: 0 auto 30px auto; /* Centers the box and adds space below */
    max-width: 600px; /* Prevents it from stretching too wide */
    border: 1px solid var(--border-color);
    border-right: 4px solid var(--primary-color); /* Adds a clean brand-colored accent line */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* Remove WooCommerce's default float behaviors & icons that break RTL */
.woocommerce .cart-empty.woocommerce-info::before {
    display: none;
}

/* Style the "Return to Shop" Button */
.woocommerce .return-to-shop .button.wc-backward {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 12px 35px;
    border-radius: 5px;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Button Hover Effect */
.woocommerce .return-to-shop .button.wc-backward:hover {
    background-color: var(--primary-color);
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(140, 102, 47, 0.3); /* Subtle glow matching your brand color */
}

/* Cart Table */
.shop_table.cart { width: 100%; border-collapse: collapse; text-align: right; }
.shop_table.cart th { padding: 15px; font-size: 1.1rem; color: var(--text-dark); border-bottom: 2px solid var(--bg-color); font-weight: 700; }
.shop_table.cart td { padding: 20px 15px; vertical-align: middle; border-bottom: 1px solid var(--border-color); }
.shop_table.cart tr:last-child td { border-bottom: none; padding: 40px 20px 20px 20px; }
.shop_table.cart .product-thumbnail img { width: 80px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); display: block; }
.shop_table.cart .product-name a { font-weight: 700; color: var(--text-dark); font-size: 1.05rem; transition: color 0.3s; }
.shop_table.cart .product-name a:hover { color: var(--primary-color); }
.shop_table.cart .product-price, .shop_table.cart .product-subtotal { color: var(--primary-color); font-weight: bold; font-size: 1.1rem; }
.shop_table.cart th.product-remove, .shop_table.cart td.product-remove { width: 60px; text-align: center; padding-left: 0; padding-right: 0; }
.shop_table.cart .product-remove .remove { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #ffebee; color: #e74c3c; border-radius: 50%; font-size: 1.4rem; line-height: 1; transition: all 0.3s; }
.shop_table.cart .product-remove .remove:hover { background: #e74c3c; color: var(--white); transform: scale(1.1); }
.shop_table.cart .quantity input.qty { width: 70px; height: 45px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; text-align: center; font-family: 'Cairo', sans-serif; font-size: 1.1rem; font-weight: bold; outline: none; transition: border-color 0.3s; }
.shop_table.cart .quantity input.qty:focus { border-color: var(--primary-color); }

/* Cart Actions (Coupon & Update) */
.shop_table.cart .actions { padding: 30px 0 0 0; }
.woocommerce-cart-form__contents .actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.woocommerce-cart-form__contents .actions .coupon { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shop_table.cart .actions { padding: 30px 0 0 0; display: table-cell; border-bottom: none; }
.woocommerce-cart-form__contents .actions .coupon { float: right; display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce-cart-form__contents .actions .coupon input.input-text { width: 200px; height: 48px; padding: 0 15px; border: 1px solid var(--border-color); border-radius: 8px; outline: none; font-family: 'Cairo', sans-serif; }
.woocommerce-cart-form__contents .actions .button { height: 48px; padding: 0 25px; border: none; border-radius: 8px; background: var(--bg-color); color: var(--text-dark); font-weight: 700; font-family: 'Cairo', sans-serif; cursor: pointer; transition: all 0.3s ease; border: 1px solid var(--border-color); }
.woocommerce-cart-form__contents .actions .button:hover { background: var(--primary-color); color: var(--white) !important; border-color: var(--primary-color); }
.woocommerce-cart-form__contents .actions > .button { float: left; }

/* Cart Totals */
.cart_totals h2 { font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 20px; font-weight: 800; text-align: center; }
.cart_totals .shop_table { width: 100%; margin-bottom: 35px; border-collapse: collapse; }
.cart_totals .shop_table th { padding: 20px 0; font-weight: 600; color: var(--text-light); text-align: right; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; }
.cart_totals .shop_table td { padding: 20px 0; text-align: left; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid var(--border-color); font-size: 1.15rem; }
.cart_totals .shop_table .order-total th { color: var(--text-dark); font-size: 1.3rem; border-bottom: none; padding-top: 25px; }
.cart_totals .shop_table .order-total td { color: var(--primary-color); font-size: 1.8rem; border-bottom: none; padding-top: 25px; font-weight: 800; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; height: 60px; align-items: center; justify-content: center; background: var(--primary-color); color: var(--white); border-radius: 10px; font-size: 1.2rem; font-weight: 800; transition: all 0.3s ease; border: none; box-shadow: 0 8px 25px rgba(140, 102, 47, 0.25); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 10px; }
.wc-proceed-to-checkout .checkout-button:hover { background: #7a5827; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(140, 102, 47, 0.35); }

/* ==========================================================================
   WooCommerce Checkout Page
   ========================================================================== */
.woocommerce-checkout form.checkout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 30px; }
.woocommerce-checkout .col2-set { flex: 1; min-width: 0; width: 100%; margin: 0; display: flex; flex-direction: column; gap: 30px; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { width: 100%; max-width: 100%; float: none; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); }
.woocommerce-checkout .col2-set h3 { font-size: 1.5rem; margin-bottom: 25px; color: var(--text-dark); border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; font-weight: 800; }

/* Order Review Section */
.woocommerce-checkout #order_review_heading { display: none; }
.woocommerce-checkout #order_review { flex: 0 0 450px; width: 100%; background: #ffffff; border-radius: 16px; padding: 40px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border: 1px solid var(--border-color); border-top: 4px solid var(--primary-color); margin: 0; position: sticky; top: 30px; }
.woocommerce-checkout #order_review::before { content: "إجمالي الطلب"; display: block; font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); border-bottom: 1px solid var(--border-color); padding-bottom: 20px; font-weight: 800; text-align: center; }

/* Checkout Tables */
.woocommerce-checkout-review-order-table { width: 100%; margin-bottom: 35px; border-collapse: collapse; }
.woocommerce-checkout-review-order-table th { padding: 20px 0; font-weight: 600; color: var(--text-light); text-align: right; border-bottom: 1px solid var(--border-color); font-size: 1.05rem; }
.woocommerce-checkout-review-order-table td { padding: 20px 0; text-align: left; font-weight: 700; color: var(--text-dark); border-bottom: 1px solid var(--border-color); font-size: 1.15rem; }
.woocommerce-checkout-review-order-table .product-name { text-align: right; font-weight: 600; color: var(--text-dark); }
.woocommerce-checkout-review-order-table .product-total { text-align: left; }
.woocommerce-checkout-review-order-table .order-total th { color: var(--text-dark); font-size: 1.3rem; border-bottom: none; padding-top: 25px; }
.woocommerce-checkout-review-order-table .order-total td { color: var(--primary-color); font-size: 1.8rem; border-bottom: none; padding-top: 25px; font-weight: 800; text-align: left; }

/* Payment Box & Place Order Button */
#payment { background: var(--bg-color); border-radius: 12px; padding: 25px; margin-top: 20px; border: 1px solid var(--border-color); }
#payment ul.payment_methods { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--border-color); padding-bottom: 20px; margin-bottom: 20px; }
#payment ul.payment_methods li { margin-bottom: 15px; }
#payment ul.payment_methods li:last-child { margin-bottom: 0; }
#payment ul.payment_methods li input { margin-left: 10px; }
#payment ul.payment_methods li label { font-weight: 700; color: var(--text-dark); font-size: 1.05rem; cursor: pointer; }
#payment .payment_box { background: var(--white); padding: 15px 20px; border-radius: 8px; margin-top: 15px; font-size: 0.95rem; color: var(--text-light); border: 1px solid var(--border-color); position: relative; }
#payment .place-order { margin: 0; padding: 0; }
.woocommerce-terms-and-conditions-wrapper { margin-bottom: 25px; font-size: 0.95rem; color: var(--text-light); line-height: 1.8; }
.woocommerce-privacy-policy-link { color: var(--primary-color); font-weight: 700; text-decoration: underline; }
button#place_order { display: flex; width: 100%; height: 60px; align-items: center; justify-content: center; background: var(--primary-color); color: var(--white); border-radius: 10px; font-size: 1.2rem; font-weight: 800; transition: all 0.3s ease; border: none; box-shadow: 0 8px 25px rgba(140, 102, 47, 0.25); text-transform: uppercase; letter-spacing: 0.5px; }
button#place_order:hover { background: #7a5827; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(140, 102, 47, 0.35); color: var(--white); }

/* Checkout Form Fields */
.woocommerce-checkout .form-row { margin-bottom: 20px; }
.woocommerce-checkout .form-row label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row textarea { width: 100%; padding: 15px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease; background: var(--bg-color); color: var(--text-dark); }
.woocommerce-checkout .form-row textarea { height: 120px; resize: vertical; }
.woocommerce-checkout .form-row input.input-text:focus, .woocommerce-checkout .form-row textarea:focus { border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.woocommerce-checkout .select2-container .select2-selection--single { height: 50px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-color); display: flex; align-items: center; outline: none; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text-dark); font-family: 'Cairo', sans-serif; font-size: 1rem; padding-right: 15px; }
.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; left: 10px; right: auto; }

/* Coupon Form Toggle */
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info { border-right: 4px solid var(--primary-color); background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 25px; padding: 20px 30px; border-radius: 8px; font-size: 1.05rem; }
.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info a.showcoupon { color: var(--primary-color); font-weight: 700; margin-right: 5px; text-decoration: underline; }
.woocommerce-checkout .checkout_coupon { background: var(--white); padding: 30px; border-radius: 12px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 40px; display: flex; gap: 15px; align-items: center; flex-wrap: wrap; }
.woocommerce-checkout .checkout_coupon .form-row { margin: 0; padding: 0; flex: 1; min-width: 250px; }
.woocommerce-checkout .checkout_coupon .form-row-last { flex: 0 0 auto; }
.woocommerce-checkout .checkout_coupon .button { height: 50px; padding: 0 35px; border-radius: 8px; font-weight: 800; background: var(--primary-color); color: var(--white); border: none; transition: all 0.3s; font-family: 'Cairo', sans-serif; font-size: 1.05rem; }
.woocommerce-checkout .checkout_coupon .button:hover { background: #7a5827; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.2); color: var(--white) !important; }

/* ==========================================================================
   WooCommerce My Account Dashboard
   ========================================================================== */
.woocommerce-account .woocommerce { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 30px; align-items: flex-start; }

/* My Account Navigation Sidebar */
.woocommerce-MyAccount-navigation { flex: 0 0 280px; width: 100%; background: var(--white); border-radius: 12px; padding: 15px 0; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); position: sticky; top: 30px; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation ul li { border-bottom: 1px solid var(--border-color); margin: 0; }
.woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-MyAccount-navigation ul li a { display: flex; align-items: center; padding: 18px 25px; color: var(--text-dark); font-weight: 700; font-size: 1.05rem; transition: all 0.3s ease; position: relative; border-right: 4px solid transparent; text-decoration: none; }
.woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-MyAccount-navigation ul li a:hover { color: var(--primary-color); background: var(--bg-color); border-right-color: var(--primary-color); }

/* Navigation Sidebar Icons */
.woocommerce-MyAccount-navigation ul li a::before { font-family: 'Font Awesome 7 Free', 'Font Awesome 6 Free', 'Font Awesome 5 Free'; font-weight: 900; margin-left: 12px; font-size: 1.2rem; width: 25px; text-align: center; display: inline-block; color: var(--text-light); transition: color 0.3s ease; }
.woocommerce-MyAccount-navigation ul li.is-active a::before, .woocommerce-MyAccount-navigation ul li a:hover::before { color: var(--primary-color); }
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: '\f0e4'; } /* Dashboard Icon */
.woocommerce-MyAccount-navigation-link--orders a::before { content: '\f290'; } /* Bag Icon */
.woocommerce-MyAccount-navigation-link--downloads a::before { content: '\f019'; } /* Download Icon */
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: '\f3c5'; } /* Address Pin Icon */
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: '\f007'; } /* User Account Icon */
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: '\f2f5'; } /* Logout Icon */

/* My Account Content Area */
.woocommerce-MyAccount-content { flex: 1; min-width: 0; background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); }
.woocommerce-MyAccount-content p { font-size: 1.05rem; color: var(--text-dark); line-height: 1.9; margin-bottom: 20px; }
.woocommerce-MyAccount-content a { color: var(--primary-color); font-weight: 700; text-decoration: underline; transition: color 0.3s; }
.woocommerce-MyAccount-content a:hover { color: #7a5827; }
.woocommerce-MyAccount-content strong { color: var(--primary-color); font-weight: 800; }
.woocommerce-MyAccount-content h2, .woocommerce-MyAccount-content h3 { color: var(--text-dark); margin-bottom: 25px; font-weight: 800; border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; font-size: 1.5rem; }
.woocommerce-MyAccount-content mark { background: var(--bg-color); color: var(--primary-color); padding: 2px 10px; border-radius: 4px; font-weight: bold; }

/* Remove default WooCommerce floats on account titles */
.woocommerce-account .addresses .title::after, 
.woocommerce-account .addresses .title::before {
    display: none !important;
}

/* My Account Forms (Edit Account & Address) */
.woocommerce-MyAccount-content .woocommerce-EditAccountForm,
.woocommerce-MyAccount-content .woocommerce-address-fields { margin-top: 30px; }
.woocommerce-MyAccount-content .form-row { margin-bottom: 25px; }
.woocommerce-MyAccount-content .form-row label { display: block; margin-bottom: 10px; font-weight: 700; color: var(--text-dark); font-size: 0.95rem; }
.woocommerce-MyAccount-content .form-row input.input-text, 
.woocommerce-MyAccount-content .form-row textarea, 
.woocommerce-MyAccount-content .form-row select { width: 100%; padding: 15px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease; background: var(--bg-color); color: var(--text-dark); }
.woocommerce-MyAccount-content .form-row textarea { height: 120px; resize: vertical; }
.woocommerce-MyAccount-content .form-row input.input-text:focus, 
.woocommerce-MyAccount-content .form-row textarea:focus, 
.woocommerce-MyAccount-content .form-row select:focus { border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.woocommerce-MyAccount-content fieldset { border: 1px solid var(--border-color); padding: 30px; border-radius: 12px; margin-top: 40px; margin-bottom: 30px; background-color: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.02); }
.woocommerce-MyAccount-content fieldset legend { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); padding: 0 15px; }
.woocommerce-MyAccount-content button.button { display: inline-flex; height: 50px; align-items: center; justify-content: center; padding: 0 35px; background: var(--primary-color); color: var(--white) !important; border-radius: 8px; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; }
.woocommerce-MyAccount-content button.button:hover { background: #7a5827; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.2); }

/* Extra Account Form Tweaks (Password Toggles & Hints) */
.woocommerce-MyAccount-content .form-row label .required { color: #e74c3c; font-weight: bold; text-decoration: none; }
.woocommerce-MyAccount-content span.password-input { position: relative; display: block; width: 100%; }
.woocommerce-MyAccount-content .show-password-input { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); background: transparent; border: none; color: var(--text-light); cursor: pointer; font-size: 1.1rem; outline: none; padding: 0; }
.woocommerce-MyAccount-content .show-password-input:hover { color: var(--primary-color); }
.woocommerce-MyAccount-content .show-password-input::after { content: '\f06e'; font-family: 'Font Awesome 7 Free', 'Font Awesome 5 Free'; font-weight: 900; }
.woocommerce-MyAccount-content .show-password-input.display-password::after { content: '\f070'; }
.woocommerce-MyAccount-content em { font-size: 0.85rem; color: var(--text-light); font-style: normal; display: block; margin-top: 8px; line-height: 1.6; }

/* ==========================================================================
   WooCommerce Login & Register
   ========================================================================== */
.woocommerce .u-columns.col2-set { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 30px; }
.woocommerce .u-columns.col2-set .u-column1, .woocommerce .u-columns.col2-set .u-column2 { flex: 1; min-width: 300px; background: var(--white); padding: 40px; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); }
.woocommerce .u-columns.col2-set h2 { font-size: 1.5rem; margin-bottom: 25px; color: var(--text-dark); border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; font-weight: 800; }
.woocommerce form.login, .woocommerce form.register { border: none; padding: 0; margin: 0; }
.woocommerce form.login .form-row, .woocommerce form.register .form-row { margin-bottom: 20px; }
.woocommerce form.login input.input-text, .woocommerce form.register input.input-text { width: 100%; padding: 15px; height: 50px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease; background: var(--bg-color); color: var(--text-dark); }
.woocommerce form.login input.input-text:focus, .woocommerce form.register input.input-text:focus { border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
.woocommerce form.login button[type="submit"], .woocommerce form.register button[type="submit"] { display: inline-flex; height: 50px; align-items: center; justify-content: center; padding: 0 35px; background: var(--primary-color); color: var(--white) !important; border-radius: 8px; font-size: 1.1rem; font-weight: 700; transition: all 0.3s ease; border: none; cursor: pointer; width: 100%; margin-top: 10px; }
.woocommerce form.login button[type="submit"]:hover, .woocommerce form.register button[type="submit"]:hover { background: #7a5827; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.2); }

/* ==========================================================================
   WooCommerce Order Received (Thank You)
   ========================================================================== */
.woocommerce-order { background: var(--white); padding: 50px; border-radius: 12px; box-shadow: 0 5px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-color); margin-top: 30px; }
.woocommerce-thankyou-order-received { background: #d4edda; color: #155724; padding: 15px 25px; border-radius: 8px; border: 1px solid #c3e6cb; margin-bottom: 40px; font-weight: 700; font-size: 1.15rem; text-align: center; }
.woocommerce-order ul.order_details { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0 0 40px 0; padding: 0; background: var(--bg-color); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.woocommerce-order ul.order_details li { flex: 1; min-width: 150px; border-left: 1px dashed var(--border-color); padding-left: 20px; font-size: 0.95rem; color: var(--text-light); }
.woocommerce-order ul.order_details li:last-child { border-left: none; padding-left: 0; }
.woocommerce-order ul.order_details li strong { display: block; font-size: 1.2rem; color: var(--text-dark); margin-top: 5px; font-weight: 800; }
.woocommerce-order-details h2, .woocommerce-customer-details h2 { font-size: 1.5rem; color: var(--text-dark); border-bottom: 2px solid var(--bg-color); padding-bottom: 15px; margin-bottom: 25px; font-weight: 800; margin-top: 40px; }

/* ==========================================================================
   WooCommerce Product Reviews
   ========================================================================== */
#reviews #comments h2 { font-size: 1.5rem; margin-bottom: 25px; font-weight: 800; color: var(--text-dark); }
#reviews .commentlist { padding: 0; margin: 0; list-style: none; }
#reviews .commentlist li.comment { display: flex; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 30px; }
#reviews .commentlist li.comment img.avatar { border-radius: 50%; width: 60px; height: 60px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
#reviews .commentlist .comment-text { flex: 1; background: var(--bg-color); padding: 20px 25px; border-radius: 8px; border: 1px solid var(--border-color); position: relative; }
#reviews .star-rating { color: var(--primary-color); float: left; font-size: 0.9rem; }
#reviews .meta { font-size: 0.9rem; color: var(--text-light); margin-bottom: 10px; }
#reviews .meta strong { color: var(--text-dark); font-weight: 700; font-size: 1.05rem; }
#review_form_wrapper { background: var(--white); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); margin-top: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.02); }
#review_form_wrapper .comment-form-rating { margin-bottom: 20px; }
#review_form_wrapper .stars a { color: var(--primary-color); }

#review_form_wrapper .comment-form { display: flex; flex-direction: column; gap: 20px; }
#review_form_wrapper .comment-notes { font-size: 0.95rem; color: var(--text-light); margin-bottom: 0; line-height: 1.6; }
#review_form_wrapper .comment-form p { margin-bottom: 0; }
#review_form_wrapper .comment-form label { display: block; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; font-size: 0.95rem; }
#review_form_wrapper .comment-form label .required { color: #e74c3c; text-decoration: none; }
#review_form_wrapper .comment-form input[type="text"],
#review_form_wrapper .comment-form input[type="email"],
#review_form_wrapper .comment-form textarea { width: 100%; padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; font-family: 'Cairo', sans-serif; font-size: 1rem; outline: none; transition: all 0.3s ease; background: var(--bg-color); color: var(--text-dark); }
#review_form_wrapper .comment-form textarea { resize: vertical; min-height: 150px; }
#review_form_wrapper .comment-form input[type="text"]:focus,
#review_form_wrapper .comment-form input[type="email"]:focus,
#review_form_wrapper .comment-form textarea:focus { border-color: var(--primary-color); background: var(--white); box-shadow: 0 0 0 3px rgba(140, 102, 47, 0.1); }
#review_form_wrapper .comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--text-light); margin-top: -5px; }
#review_form_wrapper .comment-form-cookies-consent input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; margin-top: 3px; }
#review_form_wrapper .comment-form-cookies-consent label { display: inline; font-weight: normal; color: var(--text-light); margin: 0; cursor: pointer; line-height: 1.6; }
#review_form_wrapper .form-submit { margin-top: 10px; }
#review_form_wrapper input[type="submit"]#submit.submit,
#review_form_wrapper .submit { background-color: var(--primary-color) !important; color: var(--white) !important; border: none; padding: 15px 40px; border-radius: 8px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-family: 'Cairo', sans-serif; width: 100%; max-width: 250px; display: inline-block; text-align: center; -webkit-appearance: none; appearance: none; }
#review_form_wrapper input[type="submit"]#submit.submit:hover,
#review_form_wrapper .submit:hover { background-color: #7a5827 !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.2); color: var(--white) !important; }

/* WooCommerce Star Rating UI */
#review_form_wrapper .stars { display: inline-block; margin: 10px 0 0; }
#review_form_wrapper .stars a { display: inline-block; position: relative; text-decoration: none; text-indent: -9999px; width: 22px; }
#review_form_wrapper .stars a::before { display: block; position: absolute; top: 0; left: 0; width: 22px; height: 22px; line-height: 1; font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', 'Font Awesome 5 Brands'; content: "\f005"; font-weight: 400; text-indent: 0; color: var(--primary-color); font-size: 1.2rem; }
#review_form_wrapper .stars a:hover ~ a::before { content: "\f005"; font-weight: 400; }
#review_form_wrapper .stars:hover a::before { content: "\f005"; font-weight: 900; }
#review_form_wrapper .stars.selected a.active ~ a::before { content: "\f005"; font-weight: 400; }
#review_form_wrapper .stars.selected a:not(.active)::before { content: "\f005"; font-weight: 900; }
#review_form_wrapper .stars.selected a.active::before { content: "\f005"; font-weight: 900; }

/* ==========================================================================
   WooCommerce Mini Cart (Header Dropdown)
   ========================================================================== */
.widget_shopping_cart_content { background: var(--white); padding: 25px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); border: 1px solid var(--border-color); text-align: right; }
.woocommerce-mini-cart { list-style: none; padding: 0; margin: 0 0 20px 0; max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.woocommerce-mini-cart-item { display: flex; align-items: center; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed var(--border-color); position: relative; }
.woocommerce-mini-cart-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.woocommerce-mini-cart-item img { width: 65px; height: 65px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.woocommerce-mini-cart-item a:not(.remove) { font-weight: 700; color: var(--text-dark); font-size: 1rem; transition: color 0.3s; display: block; margin-bottom: 5px; }
.woocommerce-mini-cart-item a:not(.remove):hover { color: var(--primary-color); }
.woocommerce-mini-cart-item .quantity { color: var(--text-light); font-size: 0.95rem; }
.woocommerce-mini-cart-item .remove { position: absolute; top: 0; left: 0; color: #e74c3c; font-size: 1.2rem; font-weight: bold; background: #ffebee; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; line-height: 1; }
.woocommerce-mini-cart-item .remove { position: relative; margin-right: auto; order: 3; color: #e74c3c; font-size: 1.2rem; font-weight: bold; background: #ffebee; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.3s; line-height: 1; }
.woocommerce-mini-cart-item .remove:hover { background: #e74c3c; color: var(--white); transform: scale(1.1); }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; color: var(--text-dark); border-top: 2px solid var(--bg-color); padding-top: 15px; margin-bottom: 20px; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; color: var(--text-dark); border-top: 2px solid var(--bg-color); padding-top: 15px; margin-top: 20px; margin-bottom: 20px; }
.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; text-align: center;}
.woocommerce-mini-cart__buttons .button { display: flex; justify-content: center; align-items: center; height: 50px; border-radius: 8px; font-weight: 800; transition: all 0.3s ease; font-size: 1.05rem; }
.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout) { background: var(--bg-color); color: var(--text-dark) !important; border: 1px solid var(--border-color); }
.woocommerce-mini-cart__buttons .button.wc-forward:not(.checkout):hover { background: var(--border-color); }
.woocommerce-mini-cart__buttons .button.checkout { background: var(--primary-color); color: var(--white) !important; box-shadow: 0 5px 15px rgba(140, 102, 47, 0.2); }
.woocommerce-mini-cart__buttons .button.checkout:hover { background: #7a5827; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(140, 102, 47, 0.3); }
.woocommerce .widget_shopping_cart .cart_list li, .woocommerce.widget_shopping_cart .cart_list li{ padding: 0px 0px 0px 20px;}
.woocommerce-mini-cart__buttons.buttons .button.wc-forward:hover{ background-color: var(--primary-color); color: var(--white) !important;}

/* ==========================================================================
   WooCommerce Password Strength Meter
   ========================================================================== */
.woocommerce-password-strength { padding: 12px; text-align: center; border-radius: 8px; margin-top: 10px; font-weight: bold; font-size: 0.95rem; }
.woocommerce-password-strength.short { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.woocommerce-password-strength.bad { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.woocommerce-password-strength.good { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.woocommerce-password-strength.strong { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.woocommerce-password-hint { display: block; font-size: 0.9rem; color: var(--text-light); margin-top: 8px; line-height: 1.6; }

/* ==========================================================================
   WooCommerce Store Notice
   ========================================================================== */
p.woocommerce-store-notice { background: var(--primary-color); color: var(--white); padding: 12px 20px; text-align: center; margin: 0; font-weight: 700; font-size: 1rem; position: relative; z-index: 99999; }
p.woocommerce-store-notice a.woocommerce-store-notice__dismiss-link { background: rgba(0,0,0,0.2); color: var(--white); padding: 4px 12px; border-radius: 5px; margin-right: 20px; text-decoration: none; transition: background 0.3s; font-size: 0.9rem; }
p.woocommerce-store-notice a.woocommerce-store-notice__dismiss-link:hover { background: rgba(0,0,0,0.4); }

/* ==========================================================================
   About Us Section (من نحن)
   ========================================================================== */
.about-section { 
    padding: 80px 0; 
}
.about-wrapper {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    min-height: 400px;
}
.about-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.about-content .section-title {
    text-align: right;
    margin-bottom: 20px;
}
.about-content .section-title h2 {
    padding: 0;
}
.about-content p {
    font-size: 1.1rem;
    color: var(--text-dark); 
    line-height: 1.9;
}
.about-image-bg {
    flex: 1;
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   About & Contact Inner Pages
   ========================================================================== */
.about-intro { text-align: center; max-width: 800px; margin: 0 auto 40px; font-size: 1.1rem; color: var(--text-dark); line-height: 1.8; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 40px; }
.about-box { background-color: var(--white); padding: 40px; text-align: center; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 8px; }
.about-box i { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.about-box h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-dark); }
.about-box p { color: var(--text-light); line-height: 1.8; font-size: 0.95rem; }

.about-goals { background-color: var(--white); padding: 40px; border: 1px solid var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 8px; }
.about-goals h3 { text-align: center; font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); }
.about-goals ul { display: grid; grid-template-columns: 1fr; gap: 15px; }
.about-goals li { display: flex; align-items: flex-start; gap: 15px; font-size: 1rem; color: var(--text-dark); line-height: 1.7; }
.about-goals li i { color: var(--primary-color); font-size: 1.2rem; margin-top: 4px; }
.about-goals li strong { color: var(--primary-color); margin-left: 5px; }

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-form-wrapper { max-width: 800px; margin: 0 auto; background: var(--white); padding: 40px; border: 1px solid var(--border-color); border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.contact-form-wrapper h3 { text-align: center; font-size: 1.5rem; margin-bottom: 30px; color: var(--text-dark); }
.contact-form .form-group { margin-bottom: 20px; text-align: right; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 5px; font-family: 'Cairo', sans-serif; font-size: 0.95rem; outline: none; transition: border-color 0.3s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-color); }
.contact-form textarea { resize: vertical; min-height: 150px; }
.alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; text-align: center; font-weight: 600; }
.alert.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ==========================================================================
   New Collection Banner
   ========================================================================== */
.new-collection { 
    display: flex; 
    background-color: #f4f1ea; 
    margin: 60px auto; 
    max-width: 1300px; 
    height: 400px; 
}
.nc-text { 
    flex: 0 0 30%; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    padding: 40px; 
}
.nc-text h2 { 
    font-size: 3rem; 
    color: var(--primary-color); 
}
.nc-text h4 { 
    font-size: 1rem; 
    color: var(--text-light); 
    letter-spacing: 2px; 
    margin-bottom: 15px; 
}
.nc-image { 
    flex: 0 0 70%; 
    background-size: cover; 
    background-position: center; 
}

/* ==========================================================================
   Gallery & Reviews & Footer
   ========================================================================== */
.gallery-section { 
    padding: 40px 0; 
    text-align: center; 
}
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    gap: 10px; 
    margin-bottom: 30px; 
}
.gallery-grid img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    aspect-ratio: 1/1; 
    transition: transform 0.3s ease; 
}
.gallery-grid img:hover { 
    transform: scale(1.03); 
    z-index: 1; 
    position: relative; 
}
.btn-outline { 
    background: transparent; 
    border: 1px solid var(--primary-color); 
    color: var(--primary-color); 
}

.reviews-section { 
    background-color: var(--white); 
    padding: 60px 0; 
}
.reviews-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    align-items: center; 
}
.review-card { 
    background-color: var(--bg-color); 
    padding: 30px; 
    text-align: center; 
    border: 1px solid var(--border-color); 
}
.stars { 
    color: var(--primary-color); 
    margin-bottom: 15px; 
}

.newsletter-section { 
    padding: 60px 0; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
}
.newsletter-form { 
    display: flex; 
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; 
    max-width: 700px;
    width: 100%;
    margin: 20px auto 0; 
}
.newsletter-form input { 
    padding: 20px 15px; 
    border: 1px solid var(--border-color); 
    flex: 1;
    min-width: 250px;
    font-family: inherit; 
    outline: none; 
}
.newsletter-form button {
    flex-shrink: 0;
    justify-content: center;
}

.footer { 
    background-color: var(--bg-color); 
    padding: 60px 0 20px; 
}
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr; 
    gap: 30px; 
    margin-bottom: 40px; 
}
.footer-logo-col .custom-logo-link {
    display: inline-block;
    margin-bottom: 15px;
}
.footer-col h4 { 
    font-size: 1.1rem; 
    margin-bottom: 20px; 
    color: var(--text-dark); 
}
.footer-col ul li { 
    margin-bottom: 10px; 
}
.footer-col ul li a { 
    color: var(--text-light); 
    font-size: 0.9rem; 
    transition: color 0.3s; 
}
.footer-col ul li a:hover { 
    color: var(--primary-color); 
}
.footer-social { 
    display: flex; 
    gap: 15px; 
}
.footer-social a { 
    color: var(--text-dark); 
    font-size: 1.2rem; 
    transition: color 0.3s; 
}
.footer-social a:hover { 
    color: var(--primary-color); 
}
.copyright { 
    text-align: center; 
    color: var(--text-light); 
    font-size: 0.85rem; 
    padding-top: 20px; 
    border-top: 1px solid var(--border-color); 
}

/* ==========================================================================
   New About Us Page Styles
   ========================================================================== */
.main-content {  margin: 0 auto; padding: 60px 20px; }
.about-page-main { background: linear-gradient(to bottom, #faf8f500 20%, var(--bg-color) 50%, var(--bg-color) 100%), linear-gradient(90deg, #f8f6f3 0%, #f7f4f0 50%, #f4ede5 100%); padding-bottom: 60px; }
.intro-section { text-align: center; width: 100%; margin: 0 auto 60px auto; padding: 60px 0; }
.intro-section h1 { font-size: 2rem; color: var(--text-dark); margin-bottom: 20px; font-weight: 700; }
.intro-section p { font-size: 1.1rem; color: var(--text-light); max-width: 800px; margin: 0 auto; }
.vision-mission-container { display: flex; gap: 40px; margin-bottom: 80px; align-items: stretch; }
.vision-box, .mission-box { flex: 1; padding: 50px 40px; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.vision-box { background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://boutiquebsmah.ae/wp-content/uploads/2026/05/Heritage.webp'); background-size: cover; background-position: center; color: var(--white); border-radius: 0 150px 150px 0; }
.mission-box { background-color: transparent; }
.icon-circle { width: 60px; height: 60px; border: 2px solid var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; }
.vision-box .icon-circle { border-color: var(--white); color: var(--white); }
.box-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 15px; color: var(--primary-color); }
.vision-box .box-title { color: var(--white); }
.vision-box p { color: #f0f0f0; }
.goals-section { text-align: center; }
.goals-section h2 { font-size: 2rem; margin-bottom: 40px; color: var(--text-dark); }
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.goal-card { background-color: var(--white); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px 20px; text-align: right; transition: transform 0.3s ease; }
.goal-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.goal-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.goal-icon { font-size: 1.8rem; color: var(--primary-color); }
.goal-title { font-size: 1.2rem; color: var(--primary-color); font-weight: 700; }
.goal-card p { font-size: 0.95rem; color: var(--text-light); }

/* ==========================================================================
   Responsive Styles & Mobile Menu
   ========================================================================== */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

@media (max-width: 992px) {
    .vision-mission-container { flex-direction: column; gap: 30px; margin-bottom: 40px; }
    .vision-box, .mission-box { border-radius: 20px; padding: 30px 20px; }
    .intro-section { margin-bottom: 30px; padding: 40px 0 10px; }
    .about-page-main { padding-bottom: 40px; }
    .goals-grid { grid-template-columns: repeat(2, 1fr); }
    
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .products-grid, .related.products .products, .up-sells .products { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content { padding: 40px 20px; }
    .new-collection { flex-direction: column; height: auto; }
    .nc-text { flex: none; width: 100%; }
    .nc-image { flex: none; height: 300px; width: 100%; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    
    .single-product-top { grid-template-columns: 1fr; gap: 30px; }
    
    .about-wrapper { flex-direction: column; }
    .about-image-bg { min-height: 300px; width: 100%; }
    .about-content { padding: 40px 20px; text-align: center; }
    .about-content .section-title { text-align: center; }
    
    .shop-layout { flex-direction: column; align-items: stretch; }
    .shop-sidebar, .shop-content { flex: none; width: 100%; }
    
    /* Cart Page Tablet */
    .woocommerce-cart .woocommerce { flex-direction: column; gap: 30px; }
    .woocommerce-cart .woocommerce-cart-form, .woocommerce-cart .cart-collaterals { flex: none; width: 100%; }
    .woocommerce-cart-form__contents .actions { justify-content: center; }
    .woocommerce-cart-form__contents .actions .coupon { float: none; justify-content: center; margin-bottom: 20px; }
    .woocommerce-cart-form__contents .actions > .button { float: none; display: block; margin: 0 auto; }
    
    /* Checkout Tablet */
    .woocommerce-checkout form.checkout { flex-direction: column; gap: 30px; }
    .woocommerce-checkout #order_review { flex: none; width: 100%; position: static; }

    /* My Account Tablet */
    .woocommerce-account .woocommerce { flex-direction: column; gap: 30px; }
    .woocommerce-MyAccount-navigation { flex: none; width: 100%; position: static; }
    
    /* Login / Register Tablet */
    .woocommerce .u-columns.col2-set { flex-direction: column; gap: 30px; }
    .woocommerce .u-columns.col2-set .u-column1, .woocommerce .u-columns.col2-set .u-column2 { width: 100%; }
}

@media (max-width: 768px) {
    .about-page-main { padding-bottom: 30px; }
    .vision-mission-container { gap: 20px; margin-bottom: 30px; }
    .intro-section { padding: 30px 0 0; margin-bottom: 20px; }
    .goals-grid { grid-template-columns: 1fr; }
    
    /* Unset the global overflow-x rule on mobile */
    body { overflow-x: visible; }

    /* Header & Nav */
    .menu-toggle { display: block; }
    .header { position: relative; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        z-index: 1000;
    }
    .nav-links.active { display: flex; }
    
    /* Mobile Dropdown */
    .nav-links .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; margin-top: 10px; padding-right: 15px; border-right: 2px solid var(--primary-color); border-radius: 0; display: flex; }
    .nav-links .dropdown-menu a { border-bottom: none; padding: 8px 15px; }
    .nav-links .dropdown-menu a:hover, .nav-links .dropdown-menu li:last-child a:hover { border-bottom: none; background: transparent; }
    .header-icons { align-items: center; }

    /* Top bar */
    .top-bar .container { flex-direction: column; text-align: center; gap: 5px; }

    /* Hero */
    .hero { height: auto; min-height: auto; padding: 0; }
    .hero-inner { flex-direction: column; }
    .hero-image { flex: none; width: 100%; height: 400px; margin-bottom: 0; }
    .hero-content { flex: none; width: 100%; padding: 50px 20px; }

    /* Grids */
    .features-grid { flex-direction: column; gap: 30px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid, .related.products .products, .up-sells .products { grid-template-columns: 1fr; }
    .reviews-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Mobile Cart Actions */
    .woocommerce-cart .woocommerce-cart-form { padding: 25px 15px; }
    .shop_table.cart tr:last-child td.actions { padding: 25px 0 0 0 !important; display: block !important; width: 100% !important; border: none; }
    .woocommerce-cart-form__contents .actions { display: block !important; }
    .woocommerce-cart-form__contents .actions .coupon { float: none !important; display: flex; flex-direction: column; width: 100%; gap: 10px; margin-bottom: 15px; }
    .woocommerce-cart-form__contents .actions .coupon input.input-text, .woocommerce-cart-form__contents .actions .coupon button { width: 100%; margin: 0; }
    .woocommerce-cart-form__contents .actions > .button { float: none !important; width: 100%; display: block; }
    
    /* Mobile Cart Item Layout (Thumbnail -> Name + Remove -> Price -> Qty -> Subtotal) */
    .shop_table.cart tr.cart_item { display: flex !important; flex-wrap: wrap; align-items: center; }
    .shop_table.cart tr.cart_item td { width: 100%; }
    .shop_table.cart td.product-thumbnail { order: 1; padding-top: 15px; padding-bottom: 15px; text-align: center; border-bottom: none; }
    .shop_table.cart td.product-thumbnail img { margin: 0 auto; width: 100px; }
    .shop_table.cart td.product-name { order: 2; width: calc(100% - 60px) !important; border-bottom: none; padding-bottom: 15px; padding-top: 0; }
    .shop_table.cart td.product-remove { order: 3; width: 60px !important; border-bottom: none; padding-bottom: 15px; padding-top: 0; display: flex !important; justify-content: flex-end; }
    .shop_table.cart td.product-price { order: 4; border-top: 1px solid var(--border-color); }
    .shop_table.cart td.product-quantity { order: 5; }
    .shop_table.cart td.product-subtotal { order: 6; }
    
    /* Mobile Shop Toolbar */
    .shop-toolbar { flex-direction: column; align-items: stretch; text-align: center; gap: 15px; }
    .shop-toolbar .woocommerce-ordering { width: 100%; }
    .shop-toolbar .woocommerce-ordering select { width: 100%; text-align: center; }
    
    /* Extra Mobile Padding for Shop & Single Product */
    .shop-content { padding: 0 10px; }
    .single-product-container { padding: 0 15px; }

    /* Mobile Store Notice */
    p.woocommerce-store-notice {
        font-size: 0.85rem;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    p.woocommerce-store-notice a.woocommerce-store-notice__dismiss-link { margin: 0; }

    /* Mobile Mini Cart */
    .header-mini-cart, .header-wishlist-dropdown { position: fixed; top: 130px; right: 20px; left: 20px; width: auto; max-width: none; }

    /* Mobile Checkout */
    .woocommerce-checkout .checkout_coupon { flex-direction: column; align-items: stretch; gap: 15px; }
    .woocommerce-checkout .checkout_coupon .form-row-last, .woocommerce-checkout .checkout_coupon .button { width: 100%; }
    .woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { padding: 25px 20px; }
    .woocommerce-checkout #order_review { padding: 25px 20px; }
    
    /* Mobile My Account */
    .woocommerce-MyAccount-content { padding: 25px 20px; }

    /* Mobile Order Received */
    .woocommerce-order { padding: 25px 20px; }
    .woocommerce-order ul.order_details { flex-direction: column; gap: 15px; padding: 20px; }
    .woocommerce-order ul.order_details li { border-left: none; padding-left: 0; border-bottom: 1px dashed var(--border-color); padding-bottom: 15px; }
    .woocommerce-order ul.order_details li:last-child { border-bottom: none; padding-bottom: 0; }
    
    /* Mobile Reviews */
    #reviews .commentlist li.comment { flex-direction: column; gap: 15px; }
    #review_form_wrapper { padding: 25px 20px; }
    #review_form_wrapper input[type="submit"]#submit.submit,
    #review_form_wrapper .submit { max-width: 100%; }

    /* Typography */
    .section-title h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .nc-text h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .header-icons { gap: 12px; font-size: 1.1rem; }
    .logo img, .footer-logo-col img { max-height: 60px; }
}   .section-title h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .nc-text h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .header-icons { gap: 12px; font-size: 1.1rem; }
    .logo img, .footer-logo-col img { max-height: 60px; }
}   .section-title h2 { font-size: 1.5rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .nc-text h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr; }
    .header-icons { gap: 12px; font-size: 1.1rem; }
    .logo img, .footer-logo-col img { max-height: 60px; }
}

/* ==========================================================================
   Dynamic Category Slider Fixes
   ========================================================================== */
.category-slider-wrapper { position: relative; width: 100%; }
.category-slider { 
    display: flex; 
    flex-wrap: nowrap;
    gap: 20px; 
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding-bottom: 20px;
}
.category-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.category-slider .category-card { 
    flex: 0 0 calc(20% - 16px);
    scroll-snap-align: start;
    background: var(--white); 
    text-align: center; 
    padding-bottom: 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
    transition: transform 0.3s ease; 
    border-radius: 8px;
    overflow: hidden;
}
.category-slider .category-card:hover { 
    transform: translateY(-5px); 
}
.category-slider .category-card .shop-btn { 
    color: var(--primary-color); 
    font-size: 0.9rem; 
    font-weight: 600; 
    display: inline-block;
    margin-top: 10px;
}

/* متجاوب مع جميع الشاشات */
@media (max-width: 992px) { .category-slider .category-card { flex: 0 0 calc(33.333% - 14px); } }
@media (max-width: 768px) { .category-slider .category-card { flex: 0 0 calc(50% - 10px); } }
@media (max-width: 480px) { .category-slider .category-card { flex: 0 0 75%; } }

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 5px;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--border-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    padding: 0;
}
.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ==========================================================================
   Floating WhatsApp Button
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}

/* ==========================================================================
   Default Page Content Styles (Privacy Policy, Terms, etc.)
   ========================================================================== */

/* Target Gutenberg Blocks for Static Pages */
main.site-main .wp-block-heading {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

main.site-main > p,
main.site-main .wp-block-paragraph {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 20px;
}

main.site-main > p strong,
main.site-main .wp-block-paragraph strong,
main.site-main .wp-block-list strong {
    color: var(--primary-color);
    font-weight: 800;
}

main.site-main .wp-block-list {
    margin-bottom: 30px;
    padding-right: 25px; /* RTL List formatting */
    list-style-type: disc;
}

main.site-main .wp-block-list li {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 15px;
}

main.site-main .wp-block-list .wp-block-list {
    margin-top: 15px;
    margin-bottom: 0;
    list-style-type: circle;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content,.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--primary-color);
}
    

/* ==========================================================================
   Update Cart Button States
   ========================================================================== */
button[name="update_cart"] {
    transition: all 0.3s ease;
}

/* شكل الزر عندما يكون معطلاً (الوضع الافتراضي) */
button[name="update_cart"]:disabled,
.woocommerce-cart-form__contents .actions button[name="update_cart"]:disabled:hover {
    opacity: 0.5;
    cursor: not-allowed !important;
    background-color: var(--bg-color) !important;
    color: var(--text-light) !important;
    border-color: var(--border-color) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* شكل الزر عندما يتغير الرقم ويصبح نشطاً */
button[name="update_cart"]:not(:disabled) {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(140, 102, 47, 0.2);
}

button[name="update_cart"]:not(:disabled):hover {
    background-color: #7a5827 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(140, 102, 47, 0.3);
}

/* Stock Status & View Cart Button Margin */
.stock.in-stock,
.woocommerce-message a.button.wc-forward,
a.added_to_cart.wc-forward {
    margin-bottom: 20px !important;
}

/* Style and margin for button inside woocommerce-error */
.woocommerce-error li a.button.wc-forward {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
    margin-right: 15px !important;
    display: inline-block !important;
    vertical-align: middle;
}
.woocommerce-error li a.button.wc-forward:hover {
    background-color: #7a5827 !important;
    color: var(--white) !important;
}

/* ==========================================================================
   Mobile Menu Account & Search Adjustments
   ========================================================================== */
.mobile-menu-item {
    display: none;
}

@media (max-width: 768px) {
    .mobile-menu-item {
        display: block;
    }
    .header-icons .search-wrapper,
    .header-icons .header-account-wrapper {
        display: none !important;
    }
}