/* =========================================
   1. تعريف المتغيرات والأساسيات
   ========================================= */
:root {
    --omani-green: #009A44; /* Official Omani Green */
    --omani-red: #DB1620;   /* Official Omani Red */
    --omani-white: #ffffff;
    --omani-black: #000000;
    --omani-gold: #c5a47e;  /* A softer, more elegant gold */
    --font-main: 'Tajawal', sans-serif;
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }
body { font-family: var(--font-main); background-color: #fdfdfd; color: #333; line-height: 1.7; direction: rtl; font-weight: 400; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; }

/* Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.omani-red { color: var(--omani-red); }
.omani-green { color: var(--omani-green); }
.omani-gold { color: var(--omani-gold); }

/* =========================================
   2. الهيدر والشريط العلوي
   ========================================= */
.top-bar { background: linear-gradient(135deg, var(--omani-green) 0%, #006030 100%); color: #fff; padding: 10px 0; font-size: 13px; font-weight: 600; border-bottom: 2px solid var(--omani-gold); }
.top-link { color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.top-link:hover { text-decoration: underline; }
.sep { margin: 0 10px; opacity: 0.5; }

.main-header { background: #fff; border-bottom: 1px solid #eee; padding: 15px 0; position: sticky; top: 0; z-index: 800; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.logo { font-size: 26px; font-weight: 800; }
.search-box { display: flex; border: 2px solid #eee; border-radius: 50px; overflow: hidden; width: 50%; background: #f9f9f9; }
.search-box input { border: none; padding: 10px 20px; width: 100%; font-family: var(--font-main); background: transparent; }
.search-box button { background: var(--omani-black); color: #fff; border: none; padding: 0 25px; cursor: pointer; }

.header-icons .cart-icon { position: relative; cursor: pointer; font-size: 22px; display: flex; align-items: center; gap: 8px; }
.cart-icon span#cart-count { position: absolute; top: -8px; right: -8px; background: var(--omani-red); color: #fff; font-size: 11px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cart-text { font-size: 14px; font-weight: bold; }

/* زر الهامبرجر */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--omani-black);
    cursor: pointer;
    padding: 5px 10px;
}

/* =========================================
   Mobile Menu (القائمة الجانبية للموبايل)
   ========================================= */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    z-index: 1100;
    transform: translateX(100%);
    transition: 0.4s ease;
    box-shadow: -3px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    background: linear-gradient(135deg, var(--omani-green), #006030);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--omani-gold);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-mobile-menu {
    font-size: 32px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
}

.mobile-menu-content {
    padding: 20px 0;
}

/* Mobile Search */
.mobile-search-box {
    display: flex;
    margin: 0 20px 25px;
    border: 2px solid #eee;
    border-radius: 50px;
    overflow: hidden;
    background: #f9f9f9;
}

.mobile-search-box input {
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-family: var(--font-main);
    background: transparent;
    font-size: 14px;
}

.mobile-search-box button {
    background: var(--omani-black);
    color: #fff;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 16px;
}

/* Mobile Nav Links */
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 15px;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    transition: 0.3s;
}

.mobile-nav-link:hover {
    background: #f0fff4;
    color: var(--omani-green);
}

.mobile-nav-link i {
    font-size: 18px;
    width: 25px;
    color: var(--omani-green);
}

/* Mobile Contact Info */
.mobile-contact-info {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-top: 2px solid #eee;
}

.mobile-contact-info h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--omani-black);
}

.mobile-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: #555;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.mobile-contact-link:last-child {
    border-bottom: none;
}

.mobile-contact-link i {
    font-size: 18px;
    color: var(--omani-green);
}

.mobile-contact-link:hover {
    color: var(--omani-green);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 1050;
}

.mobile-menu-overlay.active {
    display: block;
}

/* =========================================
   13. بانر احترافي (Simple & Clean)
   ========================================= */
.hero-banner {
    display: block;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   3. شبكة المنتجات (Home Page)
   ========================================= */
.products-grid-header {
    text-align: center;
    margin: 40px 0 20px;
}

.products-main-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--omani-black);
}

.products-grid-header p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 0 auto;
}

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 25px; margin: 20px 0 40px; }
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); }

.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.product-image {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
    background-color: #f9f9f9;
}
.product-image-secondary {
    opacity: 0;
}
.product-card:hover .product-image-primary {
    opacity: 0;
}
.product-card:hover .product-image-secondary {
    opacity: 1;
    transform: scale(1.08);
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}
.product-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; height: 42px; overflow: hidden; }
.product-price { margin-bottom: 15px; }
.add-to-cart-btn { display: block; width: calc(100% - 30px); background: var(--omani-black); color: #fff; padding: 12px; border-radius: 8px; cursor: pointer; border: none; font-family: var(--font-main); font-weight: bold; margin: 0 15px 15px; transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.add-to-cart-btn:hover { background: var(--omani-green); transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 154, 68, 0.3); }
.add-to-cart-btn i { margin-left: 8px; }

/* زر تحميل المزيد */
.load-more-container { text-align: center; margin: 40px 0; }
.btn-load-more { background: transparent; color: #000; border: 2px solid #000; padding: 10px 30px; border-radius: 50px; cursor: pointer; font-weight: bold; font-family: var(--font-main); transition: 0.3s; }
.btn-load-more:hover { background: #000; color: #fff; }

/* =========================================
   4. صفحة المنتج الفردي (Single Product)
   ========================================= */
.breadcrumb { margin: 20px 0; font-size: 14px; color: #777; }
.single-product-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; margin: 30px 0; }

.product-gallery { display: flex; flex-direction: column; gap: 15px; }
.main-image-container { border: 1px solid #eee; border-radius: 12px; overflow: hidden; aspect-ratio: 1/1; }
.main-image-container img { width: 100%; height: 100%; object-fit: cover; }
.thumbnail-container { display: flex; gap: 10px; }
.thumbnail-image { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid #eee; cursor: pointer; transition: 0.3s; }
.thumbnail-image:hover { border-color: var(--omani-gold); }
.thumbnail-image.active { border-color: var(--omani-green); box-shadow: 0 0 8px rgba(0, 154, 68, 0.4); }

.rating-summary-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0,0,0,0.7);
    color: #ffc107;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    z-index: 5;
    display: none; /* Hidden by default */
}
.single-details h1 { font-size: 32px; font-weight: 800; margin-bottom: 15px; line-height: 1.3; }

#product-price-container { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; background: #f8f9fa; padding: 15px; border-radius: 8px; }
.price-wrapper .sale-price { font-size: 28px; }
.price-wrapper .original-price { font-size: 18px; }
.save-badge { background: var(--omani-red); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 14px; font-weight: bold; }

#product-meta {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.meta-item { display: flex; justify-content: space-between; font-size: 14px; }
.meta-item strong { color: #333; }
.meta-item span { color: #666; }
.stock-status.in-stock { color: var(--omani-green); font-weight: bold; }

#product-description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
#product-description ul {
    list-style-type: disc;
    padding-right: 20px;
    margin-top: 10px;
    display: flex; flex-direction: column; gap: 8px;
}

.product-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 25px;
}

.add-to-cart-group {
    display: flex;
    gap: 10px;
}

.quantity-selector {
    display: flex;
    border: 2px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
}

.quantity-selector input {
    width: 60px;
    text-align: center;
    border: none;
    font-size: 18px;
    font-weight: bold;
    background: transparent;
    -moz-appearance: textfield; /* Firefox */
}
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.quantity-btn { background: transparent; border: none; padding: 0 15px; font-size: 20px; cursor: pointer; color: #555; transition: 0.2s; }
.quantity-btn:hover { background: #e9ecef; color: #000; }

.add-to-cart-group .add-to-cart-btn,
.product-actions .btn-whatsapp-large,
.add-to-cart-group .add-to-cart-btn {
    width: 100%;
    margin: 0;
    padding: 15px;
    font-size: 16px;
}

.product-policies {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    border-top: 1px dashed #ddd;
    padding-top: 20px;
}
.policy-link {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 13px; font-weight: 600; color: #555;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.policy-link:hover { background: #f1f3f5; color: var(--omani-green); }
.policy-link i { color: var(--omani-green); }

.product-keywords {
    margin-top: 20px;
    font-size: 14px;
}
.product-keywords strong {
    display: block;
    margin-bottom: 10px;
}
.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.keyword-tag {
    background: #f1f3f5;
    color: #495057;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}
.keyword-tag:hover { background: #e9ecef; color: #000; }

.policy-btn-trigger { background: transparent; border: 2px dashed #ccc; color: #555; width: 100%; padding: 15px; margin-top: 20px; border-radius: 5px; cursor: pointer; font-family: var(--font-main); font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; }
.policy-btn-trigger:hover { border-color: var(--omani-green); color: var(--omani-green); background: #f9fff9; }

.btn-whatsapp-large { background: #25D366; color: #fff; padding: 15px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; font-size: 18px; font-family: var(--font-main); display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; transition: 0.3s; }
.btn-whatsapp-large:hover { background: #1ebc57; }

#related-products-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.countdown-timer {
    background: linear-gradient(135deg, var(--omani-red), #a71017);
    color: white;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(219, 22, 32, 0.3);
}
.countdown-text { font-weight: 700; font-size: 16px; }
.timer-box { text-align: center; }
.timer-box span { font-size: 24px; font-weight: 800; display: block; }
.timer-box small { font-size: 10px; text-transform: uppercase; opacity: 0.8; }
.countdown-timer.ended {
    background: #555;
    font-weight: bold;
}
/* =========================================
   5. تصميم النافذة المنبثقة (Modal Styles)
   ========================================= */
.modal-window { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px); }
.modal-content { background-color: #fff; margin: 10% auto; padding: 0; border-radius: 10px; width: 90%; max-width: 500px; box-shadow: 0 5px 30px rgba(0,0,0,0.3); animation: slideDown 0.4s; overflow: hidden; }
@keyframes slideDown { from {opacity: 0; transform: translateY(-50px);} to {opacity: 1; transform: translateY(0);} }

.modal-header { background: var(--omani-green); padding: 15px 20px; color: #fff; }
.modal-header h3 { margin: 0; font-size: 18px; }
.close-modal { color: #fff; float: left; font-size: 28px; font-weight: bold; cursor: pointer; line-height: 20px; }
.modal-body { padding: 25px; }
.policy-item { margin-bottom: 20px; }
.policy-item h4 { margin-bottom: 5px; color: var(--omani-black); font-size: 16px; }
.policy-item p { font-size: 14px; color: #666; margin: 0; }
.alert-item { background: #fff0f0; padding: 10px; border-radius: 5px; border-right: 3px solid var(--omani-red); }
.alert-item h4 { color: var(--omani-red); }
.btn-full-policy { display: block; text-align: center; background: #f9f9f9; padding: 15px; text-decoration: none; color: #333; font-weight: bold; border-top: 1px solid #eee; transition: 0.3s; }
.btn-full-policy:hover { background: #eee; }

/* =========================================
   6. السلة الجانبية (Cart Sidebar)
   ========================================= */
.cart-sidebar { position: fixed; top: 0; left: 0; width: 380px; height: 100%; background: #fff; z-index: 1100; transform: translateX(-100%); transition: transform 0.4s ease; box-shadow: 3px 0 25px rgba(0,0,0,0.15); display: flex; flex-direction: column; }
.cart-sidebar.open { transform: translateX(0); }
.cart-header { padding: 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.cart-header h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.close-cart { font-size: 28px; cursor: pointer; color: #888; line-height: 1; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.empty-cart-message { text-align: center; color: #888; margin-top: 40px; }
.cart-item { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px solid #f5f5f5; padding-bottom: 15px; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.cart-item-details { flex-grow: 1; }
.cart-item-title { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.cart-item-price { font-size: 14px; color: var(--omani-green); font-weight: bold; margin-bottom: 10px; }
.cart-item-remove { background: none; border: none; color: #aaa; font-size: 24px; cursor: pointer; align-self: flex-start; padding: 0 5px; line-height: 1; }
.cart-item-remove:hover { color: var(--omani-red); }

.cart-quantity-selector {
    display: flex;
    border: 1px solid #eee;
    border-radius: 6px;
    width: fit-content;
}
.cart-quantity-selector button {
    background: #f9f9f9;
    border: none;
    padding: 2px 10px;
    cursor: pointer;
    font-size: 16px;
}
.cart-quantity-selector input {
    width: 35px;
    text-align: center;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.cart-footer { padding: 20px; border-top: 2px solid #f0f0f0; background: #fdfdfd; }
.total-row-cart { display: flex; justify-content: space-between; font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.tax-note { font-size: 12px; color: #999; text-align: center; margin-bottom: 15px; }
.checkout-btn { width: 100%; background: var(--omani-black); color: #fff; padding: 15px; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; }
.checkout-btn:hover { background: var(--omani-green); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0, 154, 68, 0.3); }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1050; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.overlay.active { opacity: 1; visibility: visible; }
.fade-in { animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   7. الفوتر (Footer)
   ========================================= */
footer { background: #1a1a1a; color: #fff; padding: 60px 0 20px; margin-top: 60px; border-top: 5px solid var(--omani-red); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { margin-bottom: 20px; font-size: 18px; color: #fff; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #aaa; font-size: 14px; }
.footer-col ul li a:hover { color: var(--omani-green); }
.copyright { text-align: center; border-top: 1px solid #333; padding-top: 25px; font-size: 13px; color: #777; }

/* =========================================
   14. تصميم متجاوب (Responsive)
   ========================================= */

/* Tablets and Desktops */
@media (max-width: 992px) {
    .search-box {
        width: 40%;
    }
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    .footer-grid {
        gap: 30px;
    }
}

/* Smaller Tablets */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    .top-bar .container,
    .main-header .container {
        flex-direction: column;
        gap: 10px;
    }
    .top-bar .shipping-note {
        text-align: center;
    }
    .main-header .search-box {
        display: none;
    }
    .main-header .header-content-wrap {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .logo {
        font-size: 22px;
    }
    .single-product-container {
        grid-template-columns: 1fr;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
.product-actions {
    grid-template-columns: 1fr;
}
.single-details h1 {
    font-size: 26px;
}
.thumbnail-image {
    width: 60px; height: 60px;
}
.single-details h1 {
    font-size: 24px;
}
.legal-page {
    margin-top: 20px;
    padding: 20px;
}
.legal-page h1 {
    font-size: 22px;
}

    .footer-col ul {
        padding: 0;
    }
    .cart-sidebar {
        width: 85%;
    }
    .checkout-layout {
        grid-template-columns: 1fr;
    }
    .checkout-sidebar {
        order: -1;
    }
    .row-group {
        grid-template-columns: 1fr;
    }
}

/* Mobile Phones */
@media (max-width: 480px) {
    .mobile-menu-btn {
        display: block;
    }
    .top-bar {
        font-size: 11px;
    }
    .top-bar .sep {
        margin: 0 5px;
    }
    .logo {
        font-size: 18px;
    }
    .hero-banner {
        aspect-ratio: 4 / 3;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .product-title {
        font-size: 13px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        line-height: 1.4;
        max-height: 2.8em;
    }
    .btn-add {
        padding: 10px;
        font-size: 13px;
    }
    .section-title {
        font-size: 20px;
    }
    .testimonial-card {
        padding: 20px;
    }
    .cart-sidebar {
        width: 100%;
    }
    .cart-sidebar.open {
        transform: translateX(0);
    }
    .main-header .header-icons {
        gap: 15px;
    }
    .cart-text {
        display: none;
    }
    .product-actions .add-to-cart-btn,
    .product-actions .btn-whatsapp-large {
        font-size: 14px;
        padding: 12px;
    }
    .single-details h1 {
        font-size: 20px;
    }
    .thumbnail-image {
        width: 50px; height: 50px;
    }
    .mobile-menu {
        width: 90%;
    }
}

/* =========================================
   8. تنسيقات صفحة الدفع الاحترافية (New Checkout)
   ========================================= */

.checkout-page-body { background-color: #f4f6f8; }

/* الهيدر المبسط */
.checkout-header { background: #fff; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; }
.checkout-header .container { display: flex; justify-content: space-between; align-items: center; }
.secure-badge { color: var(--omani-green); font-weight: bold; font-size: 14px; background: #e8f5e9; padding: 8px 15px; border-radius: 20px; }

/* شريط الخطوات */
.checkout-steps { display: flex; justify-content: space-between; max-width: 400px; margin: 0 auto 40px; position: relative; }
.checkout-steps .line { position: absolute; top: 20px; left: 0; width: 100%; height: 2px; background: #ddd; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; background: #f4f6f8; padding: 0 10px; }
.step-icon { width: 40px; height: 40px; background: #ddd; color: #777; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; font-size: 16px; transition: 0.3s; }
.step.active .step-icon, .step.completed .step-icon { background: var(--omani-black); color: #fff; }
.step.completed .step-icon { background: var(--omani-green); }
.step span { font-size: 12px; font-weight: bold; color: #555; }

/* التخطيط العام */
.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin-bottom: 50px; }

/* كروت النموذج */
.form-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #eee; }
.form-title { font-size: 20px; margin-bottom: 25px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }

/* حقول الإدخال */
.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 14px; color: #333; }
.input-wrapper { position: relative; }
.input-wrapper i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #999; }
.input-wrapper input, .input-wrapper select { width: 100%; padding: 14px 45px 14px 15px; border: 1px solid #ddd; border-radius: 8px; font-family: var(--font-main); font-size: 15px; background: #fdfdfd; transition: 0.3s; }
.input-wrapper input:focus, .input-wrapper select:focus { border-color: var(--omani-green); background: #fff; box-shadow: 0 0 0 4px rgba(0, 115, 47, 0.1); }
.row-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* طريقة الدفع */
.payment-method-box { margin-top: 30px; border: 2px solid var(--omani-green); background: #f0fff4; border-radius: 8px; overflow: hidden; }
.radio-container { display: flex; align-items: center; padding: 20px; cursor: pointer; position: relative; }
.radio-container input { display: none; }
.radio-checkmark { width: 20px; height: 20px; border: 2px solid var(--omani-green); border-radius: 50%; margin-left: 15px; position: relative; display: flex; align-items: center; justify-content: center; }
.radio-checkmark::after { content: ''; width: 10px; height: 10px; background: var(--omani-green); border-radius: 50%; }
.payment-details { flex: 1; }
.pay-title { display: block; font-weight: bold; color: #000; font-size: 15px; }
.pay-desc { font-size: 12px; color: #555; }
.payment-icon { font-size: 24px; color: var(--omani-green); opacity: 0.8; }

/* زر التأكيد */
.btn-checkout-submit { background: var(--omani-black); color: #fff; width: 100%; padding: 18px; border: none; border-radius: 8px; font-size: 18px; font-weight: bold; cursor: pointer; margin-top: 25px; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.btn-checkout-submit:hover { background: var(--omani-green); transform: translateY(-2px); }

/* أيقونات الثقة */
.trust-icons { display: flex; justify-content: center; gap: 20px; margin-top: 20px; color: #777; font-size: 13px; }
.trust-icons i { color: var(--omani-green); margin-left: 5px; }

/* الشريط الجانبي (الملخص) */
.summary-card { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); border: 1px solid #eee; position: sticky; top: 20px; }
.summary-card h3 { margin-bottom: 20px; font-size: 18px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.summary-items-list { max-height: 300px; overflow-y: auto; margin-bottom: 20px; }
.summary-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; border-bottom: 1px solid #f9f9f9; padding-bottom: 15px; }
.summary-item img { width: 60px; height: 60px; border-radius: 6px; border: 1px solid #eee; object-fit: cover; }
.summary-item h4 { font-size: 14px; margin: 0 0 5px; color: #333; }
.summary-item span { font-size: 12px; color: #777; }

.summary-totals .total-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: #555; }
.summary-totals .final { font-size: 20px; font-weight: 800; color: #000; margin-top: 15px; }

/* موبايل */
@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .checkout-sidebar { order: -1; }
    .row-group { grid-template-columns: 1fr; }
}

/* =========================================
   9. تحسينات الكود (Refactoring Classes)
   ========================================= */
.original-price, .text-through { text-decoration: line-through; color: #999; font-size: 0.9em; margin-right: 8px; }
.sale-price { color: var(--omani-red); font-weight: 700; font-size: 1.2em; }
.price-normal { color: var(--omani-green); font-weight: 700; font-size: 1.2em; }
.discount-badge { position: absolute; top: 12px; left: 12px; background: var(--omani-red); color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: bold; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.product-link { display: block; color: inherit; text-decoration: none; }
.product-link:hover .product-title { color: var(--omani-green); }

.product-img { width: 100%; height: 100%; object-fit: contain; }
.no-products { text-align: center; margin-bottom: 50px; color: #999; }
.loading-text { padding: 50px; text-align: center; }

/* =========================================
   10. اقتراحات البحث (Autocomplete)
   ========================================= */
.search-wrapper { position: relative; flex: 1; }
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: none;
    border-radius: 0 0 15px 15px;
}
.search-suggestions.active { display: block; }
.suggestion-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #f9f9f9; }
.suggestion-item img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.suggestion-info h5 { margin: 0; font-size: 14px; color: #333; }
.suggestion-info span { font-size: 12px; color: var(--omani-green); font-weight: bold; }

/* =========================================
   11. آراء العملاء (Testimonials)
   ========================================= */
.testimonials-section { margin-top: 60px; padding: 40px 0; background: #fcfcfc; border-top: 1px solid #eee; }
.section-title { text-align: center; font-size: 24px; margin-bottom: 30px; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--omani-green); margin: 10px auto 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.testimonial-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eee;
    text-align: center;
}
.stars { color: #f4c150; margin-bottom: 15px; font-size: 14px; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; font-size: 14px; line-height: 1.6; }
.client-name { font-weight: bold; color: var(--omani-black); font-size: 16px; }
.client-city { display: block; font-size: 12px; color: #999; margin-top: 5px; }

/* =========================================
   12. Premium Category Filter Bar
   ========================================= */
.category-container {
    padding: 15px 20px;
    margin-bottom: 25px;
    background: #fff;
    position: sticky;
    top: 60px;
    z-index: 98;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04);
    border-radius: 0 0 15px 15px;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 5px 5px 15px 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    font-weight: 600;
    color: #495057;
    font-size: 15px;
    user-select: none;
    white-space: nowrap;
}

.category-pill i {
    font-size: 18px;
    color: #adb5bd;
    transition: all 0.3s;
}

.category-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
    background: #fff;
    border-color: var(--omani-gold);
}

.category-pill:hover i {
    color: var(--omani-gold);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--omani-green), #006030);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0, 115, 47, 0.25);
    transform: scale(1.05);
}

.category-pill.active i {
    color: #fff;
}

/* =========================================
   15. Product Meta Details (SKU, Condition, etc.)
   ========================================= */
.product-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.meta-tag {
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-tag.in-stock {
    background: #e6fcf5;
    color: #0ca678;
    border-color: #c3fae8;
}

.meta-tag.out-stock {
    background: #fff5f5;
    color: #fa5252;
    border-color: #ffc9c9;
}

.discount-counter-box {
    background: linear-gradient(to left, #fff0f0, #fff);
    border-right: 4px solid var(--omani-red);
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #d6336c;
    font-weight: bold;
}

.save-badge {
    background: var(--omani-red);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* =========================================
   16. Legal & Static Pages
   ========================================= */
.legal-page { background: #fff; padding: 40px; border-radius: 8px; margin: 40px 0; border: 1px solid #eee; }
.legal-page h1 { color: var(--omani-black); margin-bottom: 30px; border-bottom: 3px solid var(--omani-green); display: inline-block; padding-bottom: 10px; }
.legal-page h3 { color: var(--omani-green); margin-top: 25px; display: flex; align-items: center; gap: 10px; }
.legal-page p { margin-bottom: 15px; color: #555; line-height: 1.8; }
.legal-page ul { list-style: disc; padding-right: 20px; color: #555; margin-bottom: 20px; }
.legal-page-container {
    min-height: 60vh; /* يضمن أن المحتوى يملأ الشاشة على الأقل */
}

/* =========================================
   17. Loading Indicator
   ========================================= */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #888;
}
.loading-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--omani-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}
.loading-indicator p {
    font-weight: bold;
    color: #555;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   18. About Us & Story Pages
   ========================================= */
.about-us-page, .story-page {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
    border: 1px solid #eee;
}

.about-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.9)), url('images/og-default.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 40px;
}
.about-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 15px;
}
.about-hero p {
    font-size: 18px;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
}

.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}
.about-box {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}
.about-box i {
    font-size: 40px;
    color: var(--omani-green);
    margin-bottom: 15px;
}
.about-box h3 { font-size: 22px; margin-bottom: 10px; }

.why-us-section .section-title { margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.feature-item { text-align: center; }
.feature-item i { font-size: 36px; color: var(--omani-gold); margin-bottom: 15px; }
.feature-item h4 { font-size: 18px; margin-bottom: 8px; }

.story-intro { text-align: center; font-size: 18px; color: #666; max-width: 700px; margin: -20px auto 50px; }
.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: #eee; top: 0; bottom: 0; right: 50%; transform: translateX(50%); }
.timeline-item { padding: 10px 40px; position: relative; width: 50%; }
.timeline-item:nth-child(odd) { right: 50%; text-align: left; padding-left: 80px; }
.timeline-item:nth-child(even) { left: 50%; text-align: right; padding-right: 80px; }
.timeline-icon { position: absolute; width: 50px; height: 50px; right: -25px; background-color: white; border: 4px solid var(--omani-green); top: 15px; border-radius: 50%; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--omani-green); }
.timeline-item:nth-child(odd) .timeline-icon { right: -25px; }
.timeline-item:nth-child(even) .timeline-icon { left: -25px; }
.timeline-content { padding: 20px 30px; background-color: #f8f9fa; position: relative; border-radius: 8px; }
.timeline-content h3 { margin-top: 0; color: var(--omani-red); }

@media (max-width: 768px) {
    .about-section { grid-template-columns: 1fr; }
    .timeline::after { right: 31px; }
    .timeline-item { width: 100%; padding-right: 70px; padding-left: 25px; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { right: 0; left: auto; text-align: right; }
    .timeline-item:nth-child(odd) .timeline-icon, .timeline-item:nth-child(even) .timeline-icon { right: 6px; }
}

/* =========================================
   19. FAQ Section
   ========================================= */
.faq-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}
.faq-item[open] {
    border-color: var(--omani-green);
}
.faq-item summary {
    padding: 20px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    list-style: none; /* إخفاء السهم الافتراضي */
    position: relative;
}
.faq-item summary::after { /* إضافة أيقونة + / - */
    content: '+';
    position: absolute;
    left: 20px;
    font-size: 24px;
    color: var(--omani-green);
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-item p {
    padding: 0 20px 20px;
    color: #555;
    line-height: 1.8;
}

/* =========================================
   20. Notifications
   ========================================= */
.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--omani-green);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 2000;
    font-size: 15px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    pointer-events: none;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   21. Product Reviews Section
   ========================================= */
#product-reviews-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}
.reviews-summary {
    text-align: center;
    margin-bottom: 40px;
}
.summary-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    display: inline-block;
    border: 1px solid #eee;
}
.summary-rating-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--omani-black);
}
.summary-stars {
    color: #ffc107;
    font-size: 20px;
    margin: 5px 0;
}
.summary-count {
    font-size: 14px;
    color: #666;
}
.reviews-list {
    display: grid;
    gap: 20px;
}
.review-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
}
.review-header { font-size: 15px; margin-bottom: 5px; }
.review-header strong { color: #000; }
.review-location { color: #777; font-size: 13px; }
.review-stars { color: #ffc107; margin-bottom: 10px; }
.review-body { font-size: 15px; color: #555; font-style: italic; }