/* ========================================
   1. Global & Setup Styles
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&display=swap');
@font-face {
    font-family: 'Azkadiya'; /* الاسم الذي سنستخدمه في الـ CSS */
    src: url('assets/fonts/Azkadiya.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

body { font-family: 'Cairo', sans-serif; margin: 0; direction: rtl; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* ========================================
   2. Header & Navigation (FINAL GRID VERSION)
   ======================================== */
.site-header { box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* --- Top Bar --- */
.header-top-bar { background: #555; padding: 10px 0; }
.header-top-bar .container {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Right | Center (flexible) | Left */
    align-items: center;
    gap: 25px;
}
.top-bar-contact { display: flex; gap: 20px; }
.top-bar-contact a { color: #fff; text-decoration: none; font-size: 15px; font-weight: bold; }
.top-bar-social { display: flex; gap: 15px; justify-content: flex-end; }
.top-bar-social img { width: 30px; height: 30px; }

/* Top Bar Search */
.top-bar-search { max-width: 450px; margin: 0 auto; }
.top-bar-search .search-form { position: relative; }
.top-bar-search .search-field { width: 100%; padding: 8px 40px 8px 15px; border: 1px solid #777; border-radius: 50px; font-size: 14px; background-color: #f0f0f0; }
.top-bar-search .search-submit { position: absolute; top: 0; right: 0; height: 100%; width: 40px; background: transparent; border: none; cursor: pointer; padding: 0; }
.search-icon-svg { display: inline-block; width: 18px; height: 18px; background-color: #555; -webkit-mask: url('assets/icons/search.svg') no-repeat center; mask: url('assets/icons/search.svg') no-repeat center; }

/* --- Main Header --- */
main-header { background: #fff; border-top: 1px solid #777; } /* Added border */
.main-header .container {
    display: grid;
    grid-template-columns: auto 1fr; /* Logo | Navigation */
    align-items: center;
    height: 80px;
    gap: 30px;
}
.logo-container .custom-logo { max-height: 55px; width: auto; }
.main-navigation { display: flex; justify-content: center; }
.main-navigation .main-menu-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.main-navigation a { text-decoration: none; color: #000; font-weight: 900; font-size: 18px; }
.main-navigation .menu-item.highlight-link > a { color: #D32F2F !important; }

/* Dropdown Menu & Icons... (Keep the rest of the header code as is) */
/* The rest of section 2 remains the same */


  /*========================================
   3. Responsive Styles
   ========================================  */
@media (max-width: 992px) {
    .header-top-bar { display: none; }
    .main-navigation, .header-contact-link { display: none; }
    .mobile-menu-toggle {
        display: flex; flex-direction: column; justify-content: space-around;
        width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0;
    }
    .mobile-menu-toggle span { width: 30px; height: 3px; background-color: #333; border-radius: 5px; }
    
    .main-header .container {
        justify-content: space-between;
    }
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-navigation.is-open {
        display: flex; position: absolute; top: 80px; left: 0; right: 0; background: #fff;
        z-index: 1000; flex-direction: column; align-items: center; padding: 20px;
        border-top: 1px solid #eee; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-navigation.is-open .main-menu-list { flex-direction: column; gap: 25px; width: 100%; text-align: center; }
}

/* ========================================
   4. Footer Styles
   ======================================== */
.site-footer {
    background-color: #4A4A4A; /* Dark grey background */
    color: #f0f0f0; /* Light grey text color */
    padding: 60px 0 0;
    font-size: 16px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-widget {
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    margin-top: 0;
    margin-bottom: 25px;
}

/* -- Widget 1: About -- */
.footer-about .custom-logo {
    max-width: 150px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1); /* Makes the logo white */
}
.footer-about p {
    line-height: 1.7;
    color: #ccc;
}

/* -- Widget 2: Links -- */
.footer-links .widget-title,
.footer-links .highlight-link a { /* Styling for the special red link */
    color: #D32F2F !important;
}
.footer-links .footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-links a {
    color: #f0f0f0;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #fff;
}

/* -- Widget 3: Contact -- */
.footer-contact .address {
    line-height: 1.7;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #666;
}
.footer-contact a {
    display: block;
    color: #f0f0f0;
    text-decoration: none;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #666;
}
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: auto; /* Pushes social icons to the bottom */
}
.footer-social img {
    width: 35px;
    height: 35px;
}

/* -- Copyright Bar -- */
.copyright-bar {
    background-color: #333;
    text-align: center;
    padding: 15px 0;
    font-size: 14px;
    color: #aaa;
}
.copyright-bar p {
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        text-align: center;
    }
    .footer-widget {
        align-items: center; /* Center content on mobile */
    }
    .footer-social {
        margin-top: 20px;
        justify-content: center;
    }
}

/* Copyright Bar - Designed by text */
.copyright-bar .designed-by {
    margin-right: 20px; /* لإضافة مسافة بين الجملتين */
    opacity: 0.8; /* لجعلها أقل بروزاً من حقوق النشر */
}

.copyright-bar .designed-by a {
    color: #fff; /* لجعل الرابط باللون الأبيض */
    text-decoration: none;
}

.copyright-bar .designed-by a:hover {
    text-decoration: underline;
}

/* ========================================
   Footer Logo Styling
   ======================================== */
.footer-about .custom-logo {
    max-width: 150px; /* للتحكم في عرض الشعار */
    margin-bottom: 20px; /* لإضافة مسافة بين الشعار والنص */
    filter: brightness(0) invert(1); /* هذا السطر السحري يقوم بتحويل لون شعارك الأسود أو الملون إلى اللون الأبيض ليتناسب مع الخلفية الداكنة */
}

/* ========================================
   5. Hero Section Styles
   ======================================== */
.hero-section {
    position: relative;
    background-image: url('assets/images/hero-bg.jpg'); /* تأكد من وجود الصورة بهذا المسار */
    background-size: cover;
    background-position: center center;
    padding: 120px 0;
    text-align: right;
    color: #fff;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* طبقة سوداء شفافة بنسبة 40% */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 60%; /* اجعل المحتوى يأخذ 60% من عرض الصفحة فقط */
}

.hero-title {
    font-family: 'Cairo', sans-serif; /* استخدام نفس خط الهيدر /
    font-size: 72px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #0089A7; /* اللون الأزرق */
    -webkit-text-stroke: 1px #fff; /* حدود بيضاء للنص */
    text-stroke: 1px #fff;
}

.hero-title {
    /* سنستخدم خط "Changa" فهو أنسب للعناوين الكبيرة والسميكة */
    font-family: 'Changa', sans-serif;
    font-weight: 700; /* وزن مناسب للخط */
    font-size: 80px;  /* زيادة حجم الخط قليلاً */
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #fff; /* تغيير اللون إلى الأبيض */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6); /* ظل أغمق وأوضح للنص */
}

/* هذا الجزء لم يعد ضرورياً لأن العنوان كله أصبح بنفس اللون */
.hero-title span {
   /* يمكنك حذف هذا الجزء بالكامل أو تركه فارغاً */
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    max-width: 500px;
    margin-bottom: 30px;
}

.btn-hero {
    background-color: #1ABC9C; /* اللون الأخضر المائل للأزرق */
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-hero:hover {
    background-color: #16A085;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive for Hero Section */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%; /* اجعل المحتوى يأخذ العرض كاملاً على الموبايل */
        text-align: center;
    }
    .hero-title {
        font-size: 48px;
    }
}

/* ========================================
   6. Categories Section Styles (FINAL STABLE VERSION)
   ======================================== */
.categories-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title-image { /* For the "الأقسام" image */
    display: block;
    max-width: 300px;
    margin: 0 auto 50px auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.category-card {
    text-decoration: none;
    display: block;
    position: relative; /* The card is the main container */
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.category-card:hover .category-image-wrapper img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* This wrapper ensures the image fills the card */
.category-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

/* This is the new magic wrapper for centering the title */
.category-title-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.3); /* Dark overlay */
    z-index: 1;
}

/* The title itself */
.category-title {
    font-family: 'Changa', sans-serif;
    font-size: 60px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin: 0; /* Remove default margins from h3 */
}

/* Responsive for Categories Section */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    .category-title {
        font-size: 48px;
    }
}

/* ========================================
   7. ULTIMATE TEST FOR SALE BADGE & PRODUCTS
   ======================================== */

/* The "Nuclear Option" to hide the sale badge */
.onsale {
    display: none !important;
}

/* --- We will keep the rest of the styles simple for now --- */
.sale-products-section { padding: 80px 0; }
.sale-products-section .container { position: relative; }
.sale-products-section ul.products li.product { text-align: center; border-radius: 15px; border: 1px solid #eee; overflow: hidden; }
.sale-products-section .woocommerce-loop-product__title { font-size: 18px; color: #333; padding: 10px 15px 0; }
.sale-products-section .price { font-size: 20px; font-weight: bold; color: #333; padding: 10px 15px; }
.sale-products-section .price del { opacity: 0.6; margin-left: 10px; }
.sale-products-section a.button.whatsapp_button { background-color: #25D366 !important; color: #fff !important; border-radius: 50px !important; padding: 10px 25px !important; font-weight: bold; font-size: 16px; margin: 0 auto 20px auto; display: table !important; width: auto; }
.sale-products-section a.button.whatsapp_button:hover { background-color: #128C7E !important; }
.swiper-button-next, .swiper-button-prev { color: #00A9C5 !important; }
.show-all-btn-container { text-align: center; margin-top: 40px; }
.btn-show-all { background-color: #00A9C5; color: #fff; padding: 12px 35px; border-radius: 50px; text-decoration: none; font-weight: bold; font-size: 18px; transition: background-color 0.3s; }
.btn-show-all:hover { background-color: #0089A7; }
@media (max-width: 768px) { .swiper-button-next, .swiper-button-prev { display: none; } }

/* ========================================
   8. Main Navigation Dropdown Menu (ULTIMATE RESET VERSION)
   ======================================== */

/* Reset list styles for the dropdown to remove bullets */
.main-navigation ul.sub-menu,
.main-navigation ul.sub-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Make the parent menu item a positioning context */
.main-navigation ul li.menu-item-has-children {
    position: relative;
}

/* Style the dropdown menu container */
.main-navigation ul ul.sub-menu {
    display: none; /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1100px;
    
    background-color: #fff !important;
    border: 1px solid #eee !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    border-radius: 0 0 15px 15px !important;
    padding: 25px !important;
    z-index: 1000;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Show the dropdown on hover */
.main-navigation ul li.menu-item-has-children:hover > ul.sub-menu {
    display: grid !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Style the links inside the dropdown */
.main-navigation ul ul.sub-menu a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Align to the start (right in RTL) */
    background-color: #f5f5f5 !important;
    color: #333 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    white-space: nowrap;
    transition: all 0.3s !important;
}
.main-navigation ul ul.sub-menu a:hover {
    color: #fff !important;
    background-color: #00A9C5 !important;
}

/* The Icon Element */
.main-navigation ul ul.sub-menu a::before {
    content: '' !important;
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    margin-left: 8px !important; /* Space between icon and text */
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

/* Small arrow indicator for the parent item */
.main-navigation .menu-item-has-children > a {
    position: relative;
    padding-left: 25px !important; /* زيادة المسافة */
}
.main-navigation .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    left: 5px !important; /* إعطاء مسافة للسهم من الحافة */
    top: 50%;
    transform: translateY(-50%);
}

/* --- ICONS FOR DROPDOWN --- */
/* --- استبدل الأرقام XXX بالأرقام الحقيقية --- */
.main-navigation .sub-menu .menu-item-70 a::before { background-image: url('assets/icons/blanket.svg'); }
.main-navigation .sub-menu .menu-item-71 a::before { background-image: url('assets/icons/towel.svg'); }
.main-navigation .sub-menu .menu-item-72 a::before { background-image: url('assets/icons/kids.svg'); }
.main-navigation .sub-menu .menu-item-96 a::before { background-image: url('assets/icons/duvet.svg'); }
.main-navigation .sub-menu .menu-item-97 a::before { background-image: url('assets/icons/coverlet.svg'); }
/* ... أكمل هنا بباقي التصنيفات ... */


/* ========================================
   9. UNIFIED STYLING FOR ALL PRODUCT GRIDS (ULTIMATE OVERRIDE)
   ======================================== */

/* --- The Grid Container --- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* --- The Product Card (Most Important Fix) --- */
.woocommerce ul.products li.product {
    width: 100% !important; 
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
}

/* --- Product Image --- */
.woocommerce ul.products li.product img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* --- Content Wrapper & Title --- */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
    text-decoration: none !important;
    padding: 15px 15px 0;
    display: block;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: #000 !important;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    min-height: 40px; /* To align titles */
}

/* --- Price Styling --- */
.woocommerce ul.products li.product .price {
    color: #000 !important;
    font-size: 18px !important;
    font-weight: bold !important;
    margin: 0 0 15px 0;
    line-height: 1.2;
    padding: 0 15px;
}
.woocommerce ul.products li.product .price del { color: #777 !important; font-size: 14px; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }

/* --- WhatsApp Button --- */
.woocommerce ul.products li.product a.button.whatsapp_button {
    background-color: #25D366 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
    font-size: 14px !important;
    display: block !important;
    width: 85% !important;
    margin: 0 auto 20px auto !important;
    white-space: nowrap;
    box-sizing: border-box;
}
.woocommerce ul.products li.product a.button.whatsapp_button:hover {
    background-color: #128C7E !important;
}

/* --- Responsive Grid --- */
@media (max-width: 1200px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 480px) { .woocommerce ul.products { grid-template-columns: 1fr !important; } }


/* ========================================
   10. Top Bar Search Form Styling
   ======================================== */
.top-bar-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr; /* 3 columns: side, center, side */
    align-items: center;
    gap: 20px;
}

/* Center the search form */
.top-bar-search {
    width: 100%;
    max-width: 400px; /* Adjust width as needed */
}

.top-bar-search .search-form {
    position: relative;
}

.top-bar-search .search-field {
    width: 100%;
    padding: 8px 40px 8px 15px; /* Right padding for the icon */
    border: 1px solid #777;
    border-radius: 50px;
    font-size: 14px;
    background-color: #f0f0f0;
    font-family: 'Cairo', sans-serif;
}
.top-bar-search .search-field:focus {
    outline: none;
    background-color: #fff;
}

.top-bar-search .search-submit {
    position: absolute;
    top: 0;
    right: 0; /* Positioned on the right for RTL */
    height: 100%;
    width: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.search-icon-svg {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: #555;
    -webkit-mask: url('assets/icons/search.svg') no-repeat center;
    mask: url('assets/icons/search.svg') no-repeat center;
}
.top-bar-search .search-submit:hover .search-icon-svg {
    background-color: #000;
}

.screen-reader-text { display: none; }

/* Responsive */
@media (max-width: 992px) {
    .top-bar-search {
        display: none; /* Hide search bar on tablets and mobiles */
    }
}

/* ========================================
   11. Dropdown Menu Icons (FINAL & CORRECTED)
   ======================================== */

/* General style for icons in the dropdown */
.main-navigation ul ul.sub-menu a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* --- Assign a specific icon to each menu item --- */

/* بطانية */
.main-navigation .sub-menu .menu-item-70 a::before { background-image: url('assets/icons/blanket.svg'); }
/* فوطة */
.main-navigation .sub-menu .menu-item-71 a::before { background-image: url('assets/icons/towel.svg'); }
/* أطفال */
.main-navigation .sub-menu .menu-item-72 a::before { background-image: url('assets/icons/kids.svg'); }
/* لحاف */
.main-navigation .sub-menu .menu-item-96 a::before { background-image: url('assets/icons/duvet.svg'); }
/* كوفرتة */
.main-navigation .sub-menu .menu-item-130 a::before { background-image: url('assets/icons/coverlet.svg'); }
/* برنس */
.main-navigation .sub-menu .menu-item-186 a::before { background-image: url('assets/icons/bathrobe.svg'); }
/* ملايات */
.main-navigation .sub-menu .menu-item-97 a::before { background-image: url('assets/icons/sheets.svg'); }
/* مفارش */
.main-navigation .sub-menu .menu-item-129 a::before { background-image: url('assets/icons/bedspreads.svg'); }
/* لحاف صيفي */
.main-navigation .sub-menu .menu-item-184 a::before {
    background-image: url('assets/icons/duvet.svg');
}
/* Change color for the summer duvet icon */
.main-navigation .sub-menu .menu-item-184 a::before {
    background-color: #FFC107 !important; /* لون أصفر/ذهبي مميز */
}

.main-navigation .sub-menu .menu-item-184 a:hover::before {
    background-color: #fff !important; /* يعود أبيض عند المرور */
}
.main-navigation .sub-menu .menu-item-128 a::before { background-image: url('assets/icons/bed-linens.svg'); }
/* اكسسوار ستائر */
.main-navigation .sub-menu .menu-item-184 a::before { background-image: url('assets/icons/curtain-accessories.svg'); }
/* نظافة وغسيل */
.main-navigation .sub-menu .menu-item-22 a::before { background-image: url('assets/icons/cleaning.svg'); }
/* دفاية */
.main-navigation .sub-menu .menu-item-187 a::before { background-image: url('assets/icons/heater-blanket.svg'); }
/* سجاد */
.main-navigation .sub-menu .menu-item-127 a::before { background-image: url('assets/icons/carpet.svg'); }
/* كفرات */
.main-navigation .sub-menu .menu-item-126 a::before { background-image: url('assets/icons/covers.svg'); }
/* أخرى */
.main-navigation .sub-menu .menu-item-165 a::before { background-image: url('assets/icons/other.svg'); }

/* ========================================
   12. Custom Mufroshat Page Styling
   ======================================== */
.subcategory-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}
.subcategory-link {
    background-color: #f0f0f0;
    color: #333 !important;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}
.subcategory-link:hover {
    background-color: #00A9C5;
    color: #fff !important;
    transform: translateY(-2px);
}

/* --- Force Black Color for Product Titles on Custom Page --- */
.page-template-template-mufroshat .woocommerce-loop-product__title {
    color: #000 !important; /* فرض اللون الأسود */
}

/* --- Force WhatsApp Button Style on Custom Page --- */
.page-template-template-mufroshat a.button.whatsapp_button {
    background-color: #25D366 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 8px 15px !important;
    font-weight: bold !important;
    font-size: 14px !important;
}
.page-template-template-mufroshat a.button.whatsapp_button:hover {
    background-color: #128C7E !important;
}


/* ========================================
   13. Fixes for Custom Mufroshat Page
   ======================================== */

/* --- Fix WhatsApp Button Wrapping --- */
/* This forces the text to stay on a single line */
.page-template-template-mufroshat a.button.whatsapp_button {
    white-space: nowrap; 
}

/* --- Fix Product Prices Color --- */
/* Force black color for the current price */
.page-template-template-mufroshat .price,
.page-template-template-mufroshat .price ins .woocommerce-Price-amount.amount,
.page-template-template-mufroshat .price ins span.woocommerce-Price-currencySymbol {
    color: #000 !important; 
    text-decoration: none !important;
}

/* Make the old price a darker grey for better readability */
.page-template-template-mufroshat .price del,
.page-template-template-mufroshat .price del .woocommerce-Price-amount.amount,
.page-template-template-mufroshat .price del span.woocommerce-Price-currencySymbol {
    color: #777 !important; 
}

/* ========================================
   15. Contact Us Page Styling
   ======================================== */

/* The main container for the contact content */
.contact-page-content {
    max-width: 700px; /* Limit the width for better readability */
    margin: 40px auto; /* Center the content */
    padding: 40px;
    background-color: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Style the headings on the page */
.contact-page-content h2 {
    font-family: 'Changa', sans-serif;
    font-size: 32px;
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

/* Style the list of contact info */
.contact-page-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}
.contact-page-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.contact-page-content ul li:last-child {
    border-bottom: none;
}
.contact-page-content ul a {
    color: #00A9C5; /* Blue color for links */
    text-decoration: none;
    font-weight: bold;
}

/* Style the social icons block */
.contact-page-content .wp-block-social-links {
    justify-content: center; /* Center the icons */
    gap: 20px;
}
.contact-page-content .wp-block-social-links .wp-social-link svg {
    width: 30px; /* Make icons bigger */
    height: 30px;
}

/* ========================================
   15. Mobile Menu Dropdown Fix
   ======================================== */

/* On mobile, the main navigation is already flex column */
@media (max-width: 992px) {
    /* Hide the sub-menu by default on mobile */
    .main-navigation.is-open ul.sub-menu {
        display: none;
        padding-right: 20px; /* Indent sub-items */
        background-color: #f9f9f9;
        border-radius: 10px;
        margin-top: 10px;
    }

    /* Style for when the sub-menu is opened by JS */
    .main-navigation.is-open ul.sub-menu.is-open {
        display: grid !important; /* Use grid to show items */
    }
    
    /* Style the links inside the mobile dropdown */
    .main-navigation.is-open ul.sub-menu a {
        justify-content: flex-start !important; /* Align to the right */
        background-color: transparent !important;
        padding: 12px 15px !important;
    }
    .main-navigation.is-open ul.sub-menu a:hover {
        background-color: #eee !important;
    }
}

/* ========================================
   16. FiboSearch Style Overrides
   ======================================== */

.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp {
    max-width: 100% !important;
}

.dgwt-wcas-style-solaris .dgwt-wcas-sf-wrapp input[type="search"] {
    border-radius: 50px !important;
    height: 42px; /* Adjust height to match your design */
}

/* Style for the search results dropdown */
.dgwt-wcas-suggestions-wrapp {
    border-radius: 0 0 15px 15px !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}


/* ========================================
   17. Single Product Page Styling (Shopify-Like)
   ======================================== */

.single-product .container { max-width: 1100px; }
.single-product #primary { width: 100% !important; }
.single-product #secondary { display: none !important; }

/* --- Main 2-Column Grid Layout --- */
.product-custom-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    margin-top: 40px;
}

/* --- Product Gallery (Left Column) --- */
.product-gallery-custom .main-image-container {
    border: 1px solid #eee;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
}
.product-gallery-custom .main-image-container img {
    width: 100%;
    height: auto;
}
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 thumbnails per row */
    gap: 10px;
}
.gallery-thumbnails .thumbnail-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
}
.gallery-thumbnails .thumbnail-item:hover,
.gallery-thumbnails .thumbnail-item.is-active {
    opacity: 1;
    border-color: #000;
}

/* --- Product Summary (Right Column) --- */
.single-product .summary { text-align: right; }
.single-product .product_title { font-family: 'Changa', sans-serif; font-size: 42px; margin-bottom: 15px; }
.single-product p.price { font-size: 32px !important; font-weight: bold; color: #000 !important; margin-bottom: 25px; }
.single-product p.price del { color: #777 !important; }
.single-product p.price ins { text-decoration: none !important; }
.single-product .woocommerce-product-details__short-description { font-size: 16px; line-height: 1.7; margin-bottom: 25px; }

/* --- WhatsApp Button --- */
.single-product .whatsapp_button_single { background-color: #25D366 !important; color: #fff !important; width: 100%; text-align: center; padding: 15px !important; font-size: 18px !important; border-radius: 8px; transition: background-color 0.3s; }
.single-product .whatsapp_button_single:hover { background-color: #128C7E !important; }

.single-product .product_meta { margin-top: 30px; font-size: 14px; color: #555; }

/* Responsive */
@media (max-width: 768px) {
    .product-custom-layout { grid-template-columns: 1fr; }
}

/* ========================================
   18. Mobile Search Overlay
   ======================================== */
.mobile-search-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.mobile-search-toggle img {
    width: 24px;
    height: 24px;
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.mobile-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-search-overlay .search-form-container {
    width: 90%;
    max-width: 500px;
}

/* On mobile, show the search icon */
@media (max-width: 992px) {
    .mobile-search-toggle {
        display: block;
    }
    .main-header .container {
        grid-template-columns: auto 1fr auto auto; /* Logo | Nav | Search | Menu */
    }
}

/* ========================================
   8. Mobile Search Overlay Styling (ULTRA SPECIFIC)
   ======================================== */

body .mobile-search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0,0,0,0.9) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
body .mobile-search-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

body .mobile-search-overlay .search-form-container {
    width: 90%;
    max-width: 500px;
}

body .mobile-search-overlay .search-form {
    position: relative !important;
}

body .mobile-search-overlay .search-field {
    width: 100% !important;
    padding: 18px 25px !important;
    border: 2px solid #fff !important;
    border-radius: 50px !important;
    font-size: 18px !important;
    background-color: transparent !important;
    color: #fff !important;
    font-family: 'Cairo', sans-serif !important;
    box-sizing: border-box;
}
body .mobile-search-overlay .search-field::placeholder {
    color: #ccc !important;
}

body .mobile-search-overlay .search-submit {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    height: 100% !important;
    width: 60px !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
}
body .mobile-search-overlay .search-submit .search-icon-svg {
    background-color: #fff !important;
}

body .mobile-search-overlay .mobile-search-close {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    font-size: 40px !important;
    color: #fff !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    line-height: 1 !important;
}

/* Hide the default page title on the front page */
.home .entry-title {
    display: none;
}

/* ========================================
   17. Single Product Page Gallery Fix
   ======================================== */
.gallery-thumbnails .thumbnail-item {
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, border-color 0.3s;
}
.gallery-thumbnails .thumbnail-item:hover,
.gallery-thumbnails .thumbnail-item.is-active {
    opacity: 1;
    border-color: #000;
}
.gallery-thumbnails .thumbnail-item img {
    display: block;
}

/* ========================================
   10. Pagination Styling
   ======================================== */

.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.woocommerce-pagination ul li {
    margin: 0 5px;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: block;
    padding: 10px 15px;
    background-color: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-weight: bold;
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background-color: #00A9C5; /* Blue color */
    color: #fff;
}
/* --- أكمل هنا بباقي التصنيفات بنفس الطريقة --- */
/* --- إذا كان لديك تصنيفات أخرى، قم بفحصها وأضف الكود الخاص بها هنا ---*/