/*
Theme Name: Astra Child
Theme URI: https://ney11.com/
Description: قالب فرعي مخصص لموقع ني 11 - تصميم Wave
Author: Ney11 Team
Author URI: https://ney11.com/
Template: astra
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
*/

/* ====================================
   CSS Variables - Ney11 Brand Colors
   ==================================== */
:root {
    --primary-orange: #ff6700;
    --secondary-blue: #004e98;
    --light-gray: #c0c0c0;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-light: #ffffff;
}

/* ====================================
   Hide Astra Default Elements
   ==================================== */
#masthead,
.site-header,
.ast-header-break-point .main-header-bar,
.ast-desktop .main-header-bar {
    display: none !important;
}

/* ✅ إخفاء مسار التنقل (Breadcrumbs) */
.woocommerce-breadcrumb,
.breadcrumb,
.ast-breadcrumbs-wrapper,
nav.woocommerce-breadcrumb {
    display: none !important;
}

/* Force our custom header to show */
.custom-header {
    display: block !important;
}

/* Override Astra body styles */
body.astra-child,
body {
    background: var(--dark-bg) !important;
    color: var(--text-light) !important;
}

/* Override Astra container */
.ast-container,
.site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ====================================
   Reset & Base
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    background: var(--dark-bg);
    color: var(--text-light);
    overflow-x: hidden;
}

/* ====================================
   Header - Sticky Scroll Effect
   ==================================== */
.custom-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: transparent;
    transition: all 0.4s ease;
}

.custom-header.sticky {
    position: fixed;
    background: var(--primary-orange);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    max-width: 100%;
}

/* Header Sections */
.header-right,
.header-center,
.header-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-right {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
}

.header-left {
    justify-content: flex-end;
    gap: 20px;
}

/* Menu Toggle */
.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    color: var(--primary-orange);
}

.custom-header.sticky .menu-toggle:hover {
    color: white;
}

/* Logo */
.site-logo img {
    width: 150px;
    height: auto;
    transition: all 0.3s ease;
}

/* Header Icons */
.header-icon {
    position: relative;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
}

.header-icon:hover {
    transform: translateY(-2px);
    color: var(--primary-orange);
}

.custom-header.sticky .header-icon:hover {
    color: white;
}

/* Cart Icon Wrapper */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
}

.cart-bag-icon {
    width: 28px !important;
    height: 28px !important;
    display: block;
}

.cart-count-badge {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent !important;
    color: white !important;
    font-size: 11px;
    font-weight: 700;
    min-width: auto;
    text-align: center;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

/* Old cart-count (deprecated) */
.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-header.sticky .cart-count {
    background: white;
    color: var(--primary-orange);
}

/* ====================================
   Sidebar Menu (SevenTV Style)
   ==================================== */
.customSidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a1a1a 100%);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 99999;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.8);
}

.customSidebar.sidebar-open {
    transform: translateX(0);
}

#blurBackground {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    transition: opacity 0.3s ease;
    opacity: 1;
    z-index: 99998;
}

/* Icon Buttons in Sidebar */
.icon-btn {
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
    border-radius: 8px;
    height: 45px;
    width: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: linear-gradient(135deg, var(--primary-orange), #ff8534);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 103, 0, 0.4);
}

/* Menu Items */
.customMenuItems {
    list-style: none;
    padding: 0 20px;
}

.customMenuItems li {
    margin-bottom: 5px;
}

.customMenuItems a {
    display: block;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.customMenuItems a:hover {
    background: rgba(255, 103, 0, 0.1);
    border-right-color: var(--primary-orange);
    padding-right: 30px;
}

/* Social Buttons */
.all-button-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
    color: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-button:hover {
    background: linear-gradient(135deg, var(--primary-orange), #ff8534);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255, 103, 0, 0.4);
}

.social-button i {
    font-size: 20px;
}

/* ====================================
   Search Overlay
   ==================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-container {
    max-width: 700px;
    width: 90%;
    position: relative;
}

/* ====================================
   Cart Sidebar (SevenTV Style)
   ==================================== */
.cart-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 400px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, #1a1a1a 100%);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.8);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    padding: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    direction: rtl;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-sidebar-header h3 {
    color: white;
    font-size: 20px;
    font-family: 'Cairo';
    margin: 0;
    padding: 25px;
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
    text-align: center;
}

/* Cart Items */
.cart-items {
    flex-grow: 1;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.cart-item img {
    object-fit: cover;
    width: 80px;
    height: 80px;
    border-radius: 8px;
}

.all-details-cart {
    color: white;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
    padding: 5px 10px;
    border-radius: 5px;
    gap: 10px;
    justify-content: space-between;
}

.cart-item-controls button {
    background: #2264ad;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.cart-item-controls button:hover {
    background: var(--primary-orange);
}

.cart-item-controls span.quantity {
    font-size: 16px;
    color: white;
    min-width: 25px;
    text-align: center;
    font-weight: bold;
}

i.fa-trash-can {
    color: #ff5f5f;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

i.fa-trash-can:hover {
    color: #ff0000;
    transform: scale(1.2);
}

/* Cart Summary */
.cart-summary {
    background: var(--darker-bg);
    margin-top: auto;
}

.coupon {
    padding: 20px;
    display: flex;
    gap: 0;
}

input#coupon-input {
    flex: 1;
    background: transparent;
    height: 45px;
    border: 2px solid var(--primary-orange);
    border-left: none;
    border-radius: 0px;
    padding: 0 15px;
    color: white;
    outline: none;
    font-family: 'Cairo';
}

button.apply_coupon {
    background: linear-gradient(135deg, var(--primary-orange), #ff8534);
    font-family: 'Cairo';
    font-size: 14px;
    font-weight: 600;
    border: none;
    padding: 0 20px;
    border-radius: 5px 0px 0 5px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.apply_coupon:hover {
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
}

.summary-row {
    color: var(--light-gray);
    font-family: 'Cairo';
    font-size: 15px;
    padding: 12px 25px;
    display: flex;
    justify-content: space-between;
}

.summary-row .price-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-orange);
}

.summary-row.total-row {
    background: rgba(255, 103, 0, 0.1);
    font-size: 18px;
    font-weight: bold;
}

.summary-row.total-row span {
    color: var(--primary-orange);
}

button.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-orange), #ff8534);
    font-family: 'Cairo';
    font-size: 18px;
    font-weight: 600;
    border: none;
    padding: 20px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

button.checkout-btn:hover {
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
}

/* Price Styles */
.price-before-sale {
    color: #ff5f5f;
    text-decoration: line-through;
    margin-left: 10px;
    font-size: 14px;
}

.sale-price {
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.regular-price {
    color: white;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
}

/* ====================================
   Banner
   ==================================== */
.hero-banner {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* ====================================
   Categories
   ==================================== */
.categories-section {
    padding: 40px 20px;
    background: var(--dark-bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-4px);
}

/* ====================================
   ✅ Middle Banner Slider - UPDATED WITH RADIUS & SHADOW
   ==================================== */

.middle-banner-slider {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    position: relative;
}

.middle-banners-swiper {
    width: 100%;
    height: auto;
    border-radius: 20px !important; /* ✅ Border Radius من كل الجوانب */
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(255, 103, 0, 0.6) !important; /* ✅ Shadow برتقالي قوي */
    position: relative;
}

.middle-banners-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
    transition: transform 0.3s ease;
    border-radius: 20px; /* ✅ للصورة نفسها */
}

.middle-banners-swiper .swiper-slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 20px; /* ✅ Border Radius للصورة */
}

.middle-banners-swiper .swiper-slide:hover img {
    transform: scale(1.02);
}

.middle-banners-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Navigation Buttons */
.middle-banners-swiper .swiper-button-next,
.middle-banners-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(255, 103, 0, 0.8);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.middle-banners-swiper .swiper-button-next:hover,
.middle-banners-swiper .swiper-button-prev:hover {
    background: rgba(255, 103, 0, 1);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 103, 0, 0.4);
}

.middle-banners-swiper .swiper-button-next::after,
.middle-banners-swiper .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

.middle-banners-swiper .swiper-button-next {
    right: 10px;
}

.middle-banners-swiper .swiper-button-prev {
    left: 10px;
}

/* Pagination */
.middle-banners-swiper .swiper-pagination {
    bottom: 15px;
    display: flex;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.middle-banners-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 0.6;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
}

.middle-banners-swiper .swiper-pagination-bullet-active {
    background: #ff6700;
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 2px 8px rgba(255, 103, 0, 0.5);
}

.middle-banners-swiper .swiper-pagination-bullet:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

/* Loading Animation */
.middle-banners-swiper .swiper-lazy-preloader {
    width: 40px;
    height: 40px;
    border: 3px solid #ff6700;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .middle-banner-slider {
        margin: 30px auto;
        padding: 0 15px;
    }
    
    .middle-banners-swiper {
        border-radius: 15px !important;
        box-shadow: 0 6px 25px rgba(255, 103, 0, 0.5) !important;
    }
    
    .middle-banners-swiper .swiper-slide img {
        max-height: 300px;
        border-radius: 15px;
    }
    
    .middle-banners-swiper .swiper-button-next,
    .middle-banners-swiper .swiper-button-prev {
        width: 35px;
        height: 35px;
    }
    
    .middle-banners-swiper .swiper-button-next::after,
    .middle-banners-swiper .swiper-button-prev::after {
        font-size: 16px;
    }
    
    .middle-banners-swiper .swiper-pagination {
        bottom: 10px;
    }
    
    .middle-banners-swiper .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .middle-banner-slider {
        margin: 20px auto;
        padding: 0 10px;
    }
    
    .middle-banners-swiper {
        border-radius: 12px !important;
        box-shadow: 0 5px 20px rgba(255, 103, 0, 0.4) !important;
    }
    
    .middle-banners-swiper .swiper-slide img {
        max-height: 200px;
        border-radius: 12px;
    }
    
    .middle-banners-swiper .swiper-button-next,
    .middle-banners-swiper .swiper-button-prev {
        width: 30px;
        height: 30px;
    }
    
    .middle-banners-swiper .swiper-button-next::after,
    .middle-banners-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .middle-banners-swiper .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}

/* RTL Support */
[dir="rtl"] .middle-banners-swiper .swiper-button-next {
    left: 10px;
    right: auto;
}

[dir="rtl"] .middle-banners-swiper .swiper-button-prev {
    right: 10px;
    left: auto;
}

/* Hover Effect for Links */
.middle-banners-swiper .swiper-slide a:hover {
    opacity: 0.95;
}

/* Animation for slide transition */
.middle-banners-swiper .swiper-slide-active {
    animation: slideIn 0.8s ease-in-out;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .middle-banners-swiper {
        box-shadow: 0 8px 30px rgba(255, 103, 0, 0.7) !important;
    }
    
    .middle-banners-swiper .swiper-slide {
        background: #2a2a2a;
    }
}

/* Print styles */
@media print {
    .middle-banners-swiper .swiper-button-next,
    .middle-banners-swiper .swiper-button-prev,
    .middle-banners-swiper .swiper-pagination {
        display: none;
    }
}

/* ====================================
   Footer
   ==================================== */
.custom-footer {
    background: var(--darker-bg);
    color: var(--light-gray);
    padding: 60px 20px 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    margin-bottom: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.footer-logo img {
    width: 150px;
    height: auto;
}

.footer-description {
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
    font-size: 15px;
    text-align: center;
}

.footer-links {
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-links h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 20px;
    font-family: 'Cairo', sans-serif;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--light-gray);
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-orange);
    transform: translateX(-3px);
}

.payment-methods {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 30px 0;
    width: 100%;
}

.payment-icon {
    width: 60px;
    height: 40px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.payment-icon:hover {
    transform: translateY(-5px);
}

.payment-icon i {
    font-size: 24px;
}

.payment-icon span {
    font-weight: bold;
}

.footer-copyright {
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 14px;
    margin-top: 20px;
    width: 100%;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

.footer-copyright p {
    margin: 0;
}

/* ====================================
   Responsive
   ==================================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
    }
    
    .site-logo img {
        width: 110px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .customSidebar {
        width: 300px;
    }
    
    .cart-sidebar.open {
        width: 85%;
    }
    
    /* Footer Responsive */
    .custom-footer {
        padding: 40px 15px 15px;
    }
    
    .footer-logo img {
        width: 120px;
    }
    
    .footer-description {
        font-size: 14px;
        line-height: 1.6;
        padding: 0 10px;
    }
    
    .footer-links h3 {
        font-size: 18px;
    }
    
    .footer-links a {
        font-size: 14px;
    }
    
    .payment-methods {
        gap: 10px;
        margin: 20px 0;
    }
    
    .payment-icon {
        width: 50px;
        height: 35px;
        padding: 5px;
    }
    
    .payment-icon i {
        font-size: 20px;
    }
    
    .payment-icon span {
        font-size: 10px;
    }
    
    .footer-copyright {
        font-size: 12px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .site-logo img {
        width: 90px;
    }
    
    .header-icon {
        font-size: 18px;
    }
    
    .menu-toggle {
        font-size: 20px;
    }
}

/* ====================================
   Sidebar Cart Icon
   ==================================== */
.sidebar-cart-icon {
    position: relative;
}

.sidebar-cart-count {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent !important;
    color: white !important;
    font-size: 11px;
    font-weight: 700;
    pointer-events: none;
    font-family: Arial, sans-serif;
}

/* ====================================
   Menu Item Images
   ==================================== */
.menu-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
}

.customMenuItems a {
    display: flex;
    align-items: center;
    flex-direction: row;
}

a.icon-btn:hover {
    color: #fff;
}

a:hover, a:focus {
    color: #ffffff;
}

/* ====================================
   Applied Coupons Display
   ==================================== */
.applied-coupons-container {
    padding: 10px 20px;
    background: rgba(0, 78, 152, 0.1);
    border-radius: 8px;
    margin: 10px 0;
    display: none;
}

.applied-coupons-container.has-coupons {
    display: block;
}

.applied-coupon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: linear-gradient(135deg, #004e98, #0062c4);
    border-radius: 6px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.applied-coupon:last-child {
    margin-bottom: 0;
}

.coupon-code {
    color: white;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Cairo', sans-serif;
    letter-spacing: 1px;
}

.coupon-discount {
    color: #4ade80;
    font-weight: 700;
    font-size: 14px;
    margin: 0 10px;
}

.remove-coupon {
    background: rgba(255, 95, 95, 0.2);
    border: none;
    color: #ff5f5f;
    width: 24px;
    height: 24px;
    padding: 0px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.remove-coupon:hover {
    background: #ff5f5f;
    color: white;
    transform: rotate(90deg);
}

/* Coupon Success Message */
.coupon-message {
    padding: 10px 20px;
    margin: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Cairo';
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.coupon-message.success {
    background: rgba(74, 222, 128, 0.2);
    color: #4ade80;
    border: 1px solid #4ade80;
}

.coupon-message.error {
    background: rgba(255, 95, 95, 0.2);
    color: #ff5f5f;
    border: 1px solid #ff5f5f;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ====================================
   Currency Symbol SAR - SVG Images
   ==================================== */
.currency-symbol-sar {
    height: 16px;
    width: auto;
    display: inline-block !important;
    vertical-align: middle;
    margin-right: 3px;
    transition: all 0.3s ease;
}

/* DEFAULT: White version everywhere (أبيض في كل مكان) */
.currency-symbol-sar {
    content: url("https://ney11.com/wp-content/uploads/2025/12/svgexport-2.svg");
}

/* EXCEPTION: Blue version ONLY for sale/discounted prices (أزرق فقط للأسعار المخفضة) */
.sale-price .currency-symbol-sar,
.woocommerce-Price-amount.amount ins .currency-symbol-sar,
.price ins .currency-symbol-sar,
.woocommerce-variation-price ins .currency-symbol-sar,
.product-price-sale .currency-symbol-sar {
    content: url("https://ney11.com/wp-content/uploads/2025/12/download.svg") !important;
}

/* Size adjustments for different contexts */
.woocommerce-Price-amount .currency-symbol-sar {
    height: 14px;
}

.cart-count-badge .currency-symbol-sar,
.header-icon .currency-symbol-sar {
    height: 12px;
}

h1 .currency-symbol-sar,
.total-row .currency-symbol-sar {
    height: 18px;
}

/* Make sure sale prices stand out */
.sale-price {
    color: #fff !important;
    font-weight: bold;
}

.price-before-sale {
    text-decoration: line-through;
    color: #ff5f5f !important;
}

/* ====================================
   Search Overlay - Enhanced Version
   ==================================== */
.search-container {
    max-width: 700px;
    width: 90%;
    position: relative;
}

.search-form {
    width: 100%;
    margin: 0;
    padding: 0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.2), rgba(0, 98, 196, 0.2));
    border: 2px solid var(--primary-orange);
    border-radius: 50px;
    padding: 0 20px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--secondary-blue);
    box-shadow: 0 0 20px rgba(0, 78, 152, 0.5);
    background: linear-gradient(135deg, rgba(0, 78, 152, 0.3), rgba(0, 98, 196, 0.3));
}

.search-icon-popup {
    color: var(--primary-orange);
    font-size: 20px;
    margin-left: 15px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within .search-icon-popup {
    color: var(--secondary-blue);
    transform: scale(1.1);
}

/* Override Astra default input styles */
.search-overlay .search-field,
.search-overlay input[type="search"] {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: white !important;
    font-size: 18px !important;
    padding: 18px 15px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    font-family: 'Cairo', sans-serif !important;
    transition: none !important;
}

.search-overlay .search-field::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.search-overlay .search-field:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.search-close {
    background: rgba(255, 95, 95, 0.2);
    border: none;
    color: #ff5f5f;
    width: 40px;
    height: 40px;
    padding:0px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    flex-shrink: 0;
    margin-right: 10px;
}

.search-close:hover {
    background: #ff5f5f;
    color: white;
    transform: rotate(90deg);
}

/* Search Results */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(15, 30, 51, 0.95);
    border-radius: 15px;
    margin-top: 20px;
    padding: 10px;
    direction: rtl;
    backdrop-filter: blur(10px);
}

.search-results:empty {
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: linear-gradient(135deg, rgba(255, 103, 0, 0.2), rgba(255, 133, 52, 0.2));
    border-color: var(--primary-orange);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px rgba(255, 103, 0, 0.3);
}

.search-result-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-left: 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.search-result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    font-family: 'Cairo', sans-serif;
    line-height: 1.4;
}

.search-result-price {
    font-size: 15px;
    color: var(--primary-orange);
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
}

.search-loading,
.search-no-results,
.search-message {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
}

.search-loading {
    color: var(--primary-orange);
}

.search-no-results {
    color: rgba(255, 255, 255, 0.5);
}

/* Scrollbar for search results */
.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-orange), #ff8534);
    border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        width: 95%;
    }
    
    .search-input-wrapper {
        padding: 0 15px;
    }
    
    .search-overlay .search-field {
        font-size: 16px !important;
        padding: 15px 10px !important;
    }
    
    .search-icon-popup {
        font-size: 18px;
    }
    
    .search-close {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .search-result-item img {
        width: 60px;
        height: 60px;
    }
}

/* ====================================
   ✅ Homepage Products - WITH STAR RATING ICON
   ==================================== */
.category-products-section {
    padding: 50px 20px;
    background: var(--dark-bg);
}

.category-products-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Title */
.category-title {
    color: #FF6700 !important;
    font-weight: 600 !important;
    font-size: 24px;
    margin: 0 0 35px 0 !important;
    text-align: center;
    font-family: 'Cairo', sans-serif;
}

/* Products Grid */
.products-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

/* Product Card */
.product-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    width: calc(20% - 16px);
    display: flex;
    flex-direction: column;
    transition: border-color 0.3s ease;
}

.product-card:hover {
    border-color: #ff6700;
}

/* Product Image */
.product-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    position: relative;
}

.product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Product Details */
.product-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    background: transparent;
}

/* Product Title */
.product-title {
    font-size: 17px;
    margin: 0;
    font-family: 'Cairo', sans-serif;
    line-height: 1.5;
    min-height: 50px;
}

.product-title a {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #ff6700;
}

/* ✅ Product Rating - Star Icon */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    color: #c0c0c0;
    min-height: 25px;
}

.product-rating i.fa-star {
    color: #FFD700;
    font-size: 16px;
}

.rating-text {
    color: #c0c0c0;
}

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
    min-height: 30px;
}

.old-price {
    color: #ff5f5f;
    text-decoration: line-through;
    font-size: 15px;
}

.old-price .currency-symbol-sar {
    content: url("https://ney11.com/wp-content/uploads/2025/12/svgexport-2.svg") !important;
    height: 14px;
}

.new-price {
    color: #FF6700 !important;
    font-weight: bold;
    font-size: 20px;
}

.new-price .currency-symbol-sar {
    content: url("https://ney11.com/wp-content/uploads/2025/12/download-1.svg") !important;
    height: 16px;
}

.regular-price-display {
    color: #c0c0c0;
    font-weight: bold;
    font-size: 20px;
}

.regular-price-display .currency-symbol-sar {
    content: url("https://ney11.com/wp-content/uploads/2025/12/svgexport-2.svg") !important;
    height: 16px;
}

/* Add to Cart Button */
.add-to-cart-btn {
    background-color: #FF6700 !important;
    color: #fff !important;
    border-radius: 25px;
    font-size: 16px !important;
    width: 100%;
    height: 48px;
    font-weight: 600 !important;
    border: none;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #004e98 !important;
}

.add-to-cart-btn:active {
    opacity: 0.8;
}

.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart-btn .btn-text {
    font-size: 16px;
}

.add-to-cart-btn .btn-loader {
    position: absolute;
    right: 20px;
    color: #fff;
}

.add-to-cart-btn .btn-loader i {
    font-size: 16px;
}

/* View More Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 14px 25px 14px 35px;
    background: transparent;
    border: 2px solid #ff6700;
    border-radius: 10px;
    color: #ff6700;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    background-color: #ff6700;
    color: #fff !important;
}

.view-more-text {
    order: 2;
}

.view-more-icon {
    order: 1;
    font-size: 18px;
}

/* ====================================
   ✅ WooCommerce Reviews - Name Only (No Email)
   ==================================== */

/* Hide Email Field in Review Form */
#respond #email-notes,
#respond p.comment-form-email {
    display: none !important;
}

/* Make Comment Author Field Full Width */
#respond p.comment-form-author {
    width: 100% !important;
    float: none !important;
}

/* Style the Name Input */
#respond input#author {
    width: 100% !important;
    padding: 12px 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
}

#respond input#author:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 103, 0, 0.3);
}

/* Style Comment Textarea */
#respond textarea#comment {
    width: 100%;
    padding: 15px;
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1a1a;
    color: white;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    min-height: 150px;
    transition: all 0.3s ease;
}

#respond textarea#comment:focus {
    border-color: var(--primary-orange);
    outline: none;
    box-shadow: 0 0 10px rgba(255, 103, 0, 0.3);
}

/* Style Submit Button */
#respond input#submit {
    background: linear-gradient(135deg, var(--primary-orange), #ff8534);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#respond input#submit:hover {
    background: linear-gradient(135deg, var(--secondary-blue), #0062c4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 103, 0, 0.4);
}

/* Style Rating Stars */
.comment-form-rating {
    margin-bottom: 20px;
}

.comment-form-rating label {
    color: #c0c0c0;
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.stars {
    display: flex;
    gap: 5px;
    direction: ltr;
}

.stars a {
    color: #666;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.stars a:hover,
.stars a.active {
    color: #FFD700;
}

/* ====================================
   Responsive Design
   ==================================== */

/* 1400px - 4 cards */
@media (max-width: 1400px) {
    .product-card {
        width: calc(20% - 35px);
    }
}

/* 1024px - 3 cards */
@media (max-width: 1024px) {
    .product-card {
        width: calc(33.333% - 14px);
    }
    
    .product-image {
        height: 270px;
    }
}

/* 768px - 2 cards */
@media (max-width: 768px) {
    .category-products-section {
        padding: 40px 15px;
    }
    
    .category-title {
        font-size: 22px;
        margin: 0 0 30px 0;
    }
    
    .products-grid {
        gap: 15px;
        margin-bottom: 35px;
    }
    
    .product-card {
        width: calc(50% - 7.5px);
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-details {
        padding: 18px;
        gap: 12px;
    }
    
    .product-title {
        font-size: 16px;
        min-height: 48px;
    }
    
    .product-rating {
        font-size: 13px;
    }
    
    .product-rating i.fa-star {
        font-size: 14px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .new-price,
    .regular-price-display {
        font-size: 18px;
    }
    
    .add-to-cart-btn {
        font-size: 15px !important;
        height: 44px;
    }
    
    .view-more-btn {
        font-size: 17px;
        padding: 12px 30px;
        gap: 12px;
    }
}

/* 480px - 2 cards (mobile) */
@media (max-width: 480px) {
    .category-products-section {
        padding: 30px 12px;
    }
    
    .category-title {
        font-size: 20px;
        margin: 0 0 25px 0;
    }
    
    .products-grid {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .product-card {
        width: calc(50% - 6px);
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-details {
        padding: 15px;
        gap: 10px;
    }
    
    .product-title {
        font-size: 15px;
        min-height: 45px;
    }
    
    .product-rating {
        font-size: 12px;
    }
    
    .product-rating i.fa-star {
        font-size: 13px;
    }
    
    .product-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .old-price {
        font-size: 14px;
    }
    
    .new-price,
    .regular-price-display {
        font-size: 17px;
    }
    
    .add-to-cart-btn {
        font-size: 14px !important;
        height: 40px;
    }
    
    .add-to-cart-btn .btn-text {
        font-size: 14px;
    }
    
    .view-more-btn {
        font-size: 16px;
        padding: 10px 25px;
        gap: 10px;
    }
    
    .view-more-icon {
        font-size: 16px;
    }
}

/* 360px - Extra small */
@media (max-width: 360px) {
    .product-image {
        height: 180px;
    }
    
    .product-title {
        font-size: 14px;
        min-height: 42px;
    }
    
    .product-rating {
        font-size: 11px;
    }
    
    .product-rating i.fa-star {
        font-size: 12px;
    }
    
    .add-to-cart-btn {
        font-size: 13px !important;
        height: 38px;
    }
}

        /* ✅ إخفاء الأسهم من السلايدر الأوسط */
        .middle-banner-slider .swiper-button-next,
        .middle-banner-slider .swiper-button-prev {
            display: none !important;
        }
        
        /* ✅ اختياري: تكبير النقاط (Pagination) قليلاً */
        .middle-banner-slider .swiper-pagination {
            bottom: 15px;
        }
        
        .middle-banner-slider .swiper-pagination-bullet {
            width: 10px;
            height: 10px;
            background: white;
            opacity: 0.7;
        }
        
        .middle-banner-slider .swiper-pagination-bullet-active {
            opacity: 1;
            background: #ff6700;
        }
