/* ==========================================================================
   site-agrizen.css
   إضافات موقع SeifGreen فوق تمبليت Agrizen:
   - مكونات مش موجودة في التمبليت أصلاً (كروت المنتجات، السلة، إتمام الطلب)
   - تظبيطات بسيطة عشان صور ومحتوى الموقع الحقيقي يتعرضوا صح
   ========================================================================== */

/* ---------- اللوجو ---------- */
.site-logo-img { max-height: 64px; width: auto; max-width: 190px; object-fit: contain; }
.offcanvas__logo .site-logo-img { max-height: 54px; }
.footer-logo-img { max-height: 70px; }

/* ---------- الهيدر: مبدّل اللغة + السلة ---------- */
.header-1 .header-right { gap: 18px; }
.header-lang-switch { gap: 4px; align-items: center; }
.header-lang-switch a {
    font-size: 13px; font-weight: 700; color: var(--header); padding: 4px 8px;
    border-radius: 30px; border: 1px solid rgba(16, 85, 31, .15); line-height: 1.2; transition: all .3s;
}
.header-lang-switch a.active, .header-lang-switch a:hover { background: var(--theme); color: var(--white); border-color: var(--theme); }
.header-cart-btn {
    position: relative; width: 48px; height: 48px; border-radius: 50%; background: var(--theme-2);
    color: var(--header); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; transition: all .3s;
}
.header-cart-btn:hover { background: var(--theme); color: var(--white); }
.cart-count-badge {
    position: absolute; top: -4px; inset-inline-end: -4px; min-width: 20px; height: 20px; padding: 0 5px;
    background: #d9342b; color: #fff; border-radius: 20px; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
.offcanvas-lang-switch { margin: 25px 0 10px; }
.offcanvas-lang-switch .info-title { display: block; font-weight: 700; margin-bottom: 10px; color: var(--white); }
.offcanvas-lang-switch .site-lang-links { display: flex; gap: 8px; flex-wrap: wrap; }
.offcanvas-lang-switch .site-lang-links a {
    color: var(--white); border: 1px solid rgba(255,255,255,.3); border-radius: 30px; padding: 4px 14px; font-size: 14px;
}
.offcanvas-lang-switch .site-lang-links a.active { background: var(--theme-2); color: var(--header); border-color: var(--theme-2); }

/* ---------- صور الموقع الحقيقية داخل مكونات التمبليت ---------- */
.site-hero-bg { position: relative; }
.site-hero-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,47,37,.88) 0%, rgba(12,47,37,.55) 100%); }
[dir="rtl"] .site-hero-bg::before { background: linear-gradient(270deg, rgba(12,47,37,.88) 0%, rgba(12,47,37,.55) 100%); }
.site-hero-bg > .container { position: relative; z-index: 2; }
.site-hero-thumb img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 30px; }
.hero-buttons .hero-btn-outline .theme-btn { background: transparent; border: 1px solid rgba(255,255,255,.6); color: var(--white); }

.site-about-thumb > img { width: 100%; height: 560px; object-fit: cover; border-radius: 20px; }
.site-about-thumb .about-sm-thumb img { width: 230px; height: 230px; object-fit: cover; border-radius: 20px; border: 8px solid var(--white); }

.site-cover-thumb img { width: 100%; height: 260px; object-fit: cover; }
.site-service-desc { margin-top: 10px; font-size: 15px; }
.site-project-card > img { width: 100%; height: 420px; object-fit: cover; }
.site-gallery-image img { width: 100%; height: 220px; object-fit: cover; }
.site-recent-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
.site-contact-thumb img { width: 100%; height: 520px; object-fit: cover; border-radius: 20px; }
.service-details-img img, .project-details-thumb img, .news-details-content .news-image img { width: 100%; max-height: 520px; object-fit: cover; }
.site-post-card .news-thumb img { height: 260px; object-fit: cover; width: 100%; }
.site-rich-text { line-height: 1.9; }
.site-lead { font-size: 18px; font-weight: 500; color: var(--header); }
.site-sidebar-cta p a { color: var(--header); font-weight: 700; }
.site-map iframe { width: 100%; min-height: 380px; border: 0; border-radius: 20px; }

/* ---------- كارت المنتج ---------- */
.site-product-card {
    position: relative; background: var(--white); border-radius: 20px; overflow: hidden; height: 100%;
    box-shadow: 0 10px 35px rgba(12, 47, 37, .08); display: flex; flex-direction: column; transition: all .4s;
}
.site-product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(12, 47, 37, .14); }
.site-product-card__image { display: block; height: 240px; overflow: hidden; background: #f3f6ef; }
.site-product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.site-product-card:hover .site-product-card__image img { transform: scale(1.06); }
.site-product-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.site-product-card__title { font-size: 20px; margin: 0; line-height: 1.4; }
.site-product-card__title a { color: var(--header); }
.site-product-card__title a:hover { color: var(--theme); }
.site-product-card__price { font-weight: 700; font-size: 18px; color: var(--theme); }
.site-product-card__price .old-price, .site-product-info__price .old-price {
    text-decoration: line-through; color: #9aa5a1; font-weight: 400; font-size: 14px; margin-inline-start: 8px;
}
.site-product-card__btn { margin-top: auto; font-weight: 700; color: var(--header); display: inline-flex; align-items: center; gap: 8px; }
.site-product-card__btn:hover { color: var(--theme); }
.badge-featured {
    position: absolute; top: 15px; inset-inline-start: 15px; z-index: 2; background: var(--theme-2); color: var(--header);
    font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 30px;
}

/* ---------- صفحة المتجر ---------- */
.site-shop-categories li.active a { color: var(--theme); font-weight: 700; }
.page-nav-wrap { margin-top: 50px; }

/* ---------- صفحة المنتج ---------- */
.site-product-gallery__main { border-radius: 20px; overflow: hidden; background: #f3f6ef; }
.site-product-gallery__main img { width: 100%; height: 480px; object-fit: cover; display: block; }
.site-product-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.gallery-thumb { width: 84px; height: 84px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; transition: border-color .3s; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--theme); }
.site-product-info__title { font-size: 36px; margin-bottom: 10px; }
.site-product-info__sku { color: #7b8a85; font-size: 14px; margin-bottom: 15px; }
.site-product-info__price { font-size: 30px; font-weight: 700; color: var(--theme); margin-bottom: 20px; }
.site-product-info__short { margin-bottom: 25px; }
.site-add-to-cart { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 30px; }
.site-qty-input {
    width: 90px; height: 56px; text-align: center; border: 1px solid #dfe6e2; border-radius: 30px; font-weight: 700; color: var(--header); outline: none;
}
.site-qty-input:focus { border-color: var(--theme); }
.site-product-info__desc { border-top: 1px solid #e6ece9; padding-top: 25px; }
.site-product-info__desc h3 { font-size: 22px; margin-bottom: 12px; }

/* ---------- السلة وإتمام الطلب ---------- */
.site-cart-table-wrap { background: var(--white); border-radius: 20px; box-shadow: 0 10px 35px rgba(12, 47, 37, .08); padding: 10px 20px; }
.site-cart-table th { color: var(--header); font-weight: 700; border-bottom-width: 1px; padding: 18px 10px; white-space: nowrap; }
.site-cart-table td { padding: 18px 10px; }
.site-cart-table img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; }
.site-cart-name { color: var(--header); font-weight: 700; }
.site-remove-btn { background: #fdecea; color: #d9342b; border: 0; width: 40px; height: 40px; border-radius: 50%; transition: all .3s; }
.site-remove-btn:hover { background: #d9342b; color: #fff; }
.site-btn-outline { background: transparent !important; color: var(--header) !important; border: 1px solid var(--header); }
.site-btn-outline:hover { background: var(--header) !important; color: var(--white) !important; }
.site-summary-box { background: var(--white); border-radius: 20px; padding: 30px; box-shadow: 0 10px 35px rgba(12, 47, 37, .08); }
.site-summary-box .row-line { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-bottom: 1px dashed #dfe6e2; }
.site-summary-box .row-line.total { font-weight: 700; font-size: 20px; color: var(--header); border-bottom: 0; }
.site-form-heading { font-size: 24px; margin-bottom: 20px; }
.site-label { display: block; font-weight: 600; color: var(--header); margin-bottom: 8px; font-size: 15px; }
.site-form .form-clt input, .site-form .form-clt textarea { width: 100%; }
.site-payment-methods { display: flex; flex-direction: column; gap: 12px; }
.site-payment-option {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid #dfe6e2; border-radius: 14px; cursor: pointer; font-weight: 600; color: var(--header);
}
.site-payment-option input { accent-color: var(--theme); width: 18px; height: 18px; }
.site-alert { border-radius: 14px; }
.site-empty-icon { font-size: 64px; color: var(--theme); opacity: .5; }
.site-success-icon { font-size: 80px; color: var(--theme); margin-bottom: 20px; }

/* ---------- الفوتر ---------- */
.footer-content .newsletter-ok { color: var(--theme-2); }
.footer-content .newsletter-err { color: #ffb4ab; }

@media (max-width: 991px) {
    .site-about-thumb > img, .site-contact-thumb img { height: 380px; }
    .site-project-card > img { height: 320px; }
    .site-product-gallery__main img { height: 360px; }
    .site-product-info__title { font-size: 28px; }
}
@media (max-width: 575px) {
    .site-cover-thumb img, .site-product-card__image { height: 210px; }
    .site-about-thumb .about-sm-thumb img { width: 150px; height: 150px; }
    .header-cart-btn { width: 42px; height: 42px; font-size: 16px; }
}

/* ---------- تظبيطات بعد المعاينة ---------- */
/* عنوان الهيرو أصغر شوية عشان ما يدخلش على الصورة */
.hero-1 .hero-content h1 { font-size: 60px; line-height: 1.15; padding-inline-end: 20px; }
@media (max-width: 1199px) { .hero-1 .hero-content h1 { font-size: 48px; } }
@media (max-width: 575px) { .hero-1 .hero-content h1 { font-size: 36px; } }

/* الزرار التاني في الهيرو: شفاف ببرواز أبيض */
.theme-btn-main.style-2.hero-btn-outline { background: transparent; border: 1px solid rgba(255,255,255,.6); }
.theme-btn-main.style-2.hero-btn-outline .theme-btn { color: var(--white); background: transparent; border: 0; }

/* زرار غامق للأقسام اللي خلفيتها فاتحة/ليمونى */
.theme-btn-main.style-2.site-btn-dark { background: var(--header); }
.theme-btn-main.style-2.site-btn-dark .theme-btn { color: var(--white); }
.theme-btn-main.style-2.site-btn-dark .theme-btn-arrow-left,
.theme-btn-main.style-2.site-btn-dark .theme-btn-arrow-right { background: var(--theme-2); }
/* صورة الهيرو ما تدخلش على عمود الكلام */
.hero-1 .hero-thumb.site-hero-thumb { margin-left: 0 !important; margin-right: 0 !important; }
@media (min-width: 1200px) { .hero-1 .hero-content h1 { font-size: 56px; } }
/* على الموبايل مفيش hover - اسم المشروع يفضل ظاهر */
@media (hover: none), (max-width: 991px) {
    .project-thumb-box-3 .project-content-area { opacity: 1; visibility: visible; bottom: 20px; }
}
.project-thumb-box-3 .project-content-area .icon img { width: auto; height: auto; }
/* زرار البحث جوه خانة البحث في السايدبار */
.main-sideber .single-sideber-widget .search-widget form { position: relative; }
.main-sideber .single-sideber-widget .search-widget form input { padding-inline-end: 64px; }
.main-sideber .single-sideber-widget .search-widget form button {
    top: 0; bottom: 0; right: auto; left: auto; inset-inline-end: 0; height: 100%; width: 56px; border-radius: 6px;
}
.main-sideber .service-categories li a i { margin-inline-end: 10px; }
/* أزرار الفورمز (إضافة للسلة، تحديث السلة، إتمام الطلب، إرسال) */
a.theme-btn, button.theme-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--theme); color: var(--white); border: 0; border-radius: 10px;
    padding: 15px 32px; font-weight: 600; font-size: 16px; line-height: 1.2; transition: all .3s;
}
a.theme-btn:hover, button.theme-btn:hover { background: var(--header); color: var(--white); }
a.theme-btn.site-btn-outline { background: transparent; color: var(--header); border: 1px solid var(--header); }
a.theme-btn.site-btn-outline:hover { background: var(--header); color: var(--white); }
/* شاشة التحميل: لوجو الموقع بدل كلمة Agrizen */
.preloader { background: var(--white); }
.site-preloader-logo { width: 90px; height: auto; animation: sitePulse 1.2s ease-in-out infinite; }
@keyframes sitePulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.88); opacity: .6; } }

/* ---------- لوجوهات الشركاء ---------- */
.brand-section { padding: 70px 0; }
.brand-section .brand-text, .site-partners .brand-text { font-size: 26px; font-weight: 600; color: var(--header); }
.site-partner-logo {
    background: var(--white); border-radius: 16px; height: 120px; padding: 18px 24px; margin-top: 30px;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 25px rgba(12,47,37,.06);
}
.site-partner-logo a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.site-partner-logo img { max-width: 100%; max-height: 84px; width: auto !important; height: auto !important; object-fit: contain; filter: grayscale(.2); transition: filter .3s, transform .3s; }
.site-partner-logo:hover img { filter: none; transform: scale(1.05); }
.site-partners-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.site-partner-item { width: 220px; max-width: calc(50% - 12px); }
.site-partner-item .site-partner-logo { margin-top: 24px; }
@media (max-width: 575px) { .site-partner-logo { height: 96px; } .site-partner-logo img { max-height: 64px; } }
.site-partners { padding-top: 70px !important; }
