/*
Theme Name: 7Stock Pro Dropshipping
Author: 7Stock Official
Description: قالب متجر 7Stock الاحترافي المخصص للدروب شيبينغ المتوافق مع أنظمة التجارة الإلكترونية السعودية
Version: 2.0.0
Text Domain: 7stock-pro
*/

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --navy-dark: #0f172a;
    --navy-main: #1e293b;
    --gold-main: #f59e0b;
    --gold-hover: #d97706;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --radius: 14px;
    --shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

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

/* إخفاء أي بقايا من قوالب الحراج أو الإضافات السابقة */
.badge-classified, .negotiable-badge, .seller-type,
[class*="negotiable"], [class*="fixed-price"], [class*="personal-seller"] {
    display: none !important;
}

/* شريط الثقة العلوي */
.trust-topbar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.25);
}

.trust-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-items {
    display: flex;
    gap: 20px;
    font-weight: 500;
}

.trust-items span i {
    color: var(--gold-main);
    margin-left: 5px;
}

/* الهيدر الرئيسي */
.site-header {
    background-color: var(--navy-dark);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* الشعار المطور */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 30px;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.5px;
    direction: ltr;
}

.brand-logo svg {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 8px rgba(245, 158, 11, 0.35));
}

/* شريط البحث الذكي */
.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
}

.header-search form {
    display: flex;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    padding: 4px;
    border: 2px solid transparent;
    transition: 0.3s;
}

.header-search form:focus-within {
    border-color: var(--gold-main);
}

.header-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 20px;
    font-family: 'Tajawal', sans-serif;
    font-size: 15px;
    outline: none;
}

.header-search button {
    background: var(--gold-main);
    color: var(--navy-dark);
    border: none;
    padding: 10px 26px;
    border-radius: 50px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s;
}

.header-search button:hover {
    background: var(--gold-hover);
    color: var(--white);
}

/* أزرار الهيدر والسلة */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-btn {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.12);
}

.header-btn.cart-btn {
    background: var(--gold-main);
    color: var(--navy-dark);
    border-color: var(--gold-main);
}

.header-btn:hover {
    transform: translateY(-2px);
}

/* شريط الأقسام */
.nav-categories {
    background: var(--navy-main);
    border-bottom: 3px solid var(--gold-main);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 0;
}

.nav-list li a {
    color: var(--white);
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    display: block;
}

.nav-list li a:hover,
.nav-list li.active a {
    background: var(--gold-main);
    color: var(--navy-dark);
}

/* البنر الرئيسي التفاعلي (Hero Section) */
.hero-banner {
    background: radial-gradient(circle at top left, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 55px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.18);
    color: var(--gold-main);
    border: 1px solid var(--gold-main);
    padding: 5px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-title span {
    color: var(--gold-main);
}

.hero-desc {
    color: #cbd5e1;
    font-size: 17px;
    margin-bottom: 25px;
    max-width: 560px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold-main);
    color: var(--navy-dark);
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.35);
}

/* شبكة المنتجات الاحترافية */
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 35px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.section-title {
    font-size: 24px;
    font-weight: 900;
    color: var(--navy-dark);
    position: relative;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
    gap: 24px !important;
    margin: 0 0 50px 0 !important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: var(--white);
    border-radius: var(--radius);
    padding: 14px !important;
    box-shadow: var(--shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    border-color: var(--gold-main);
    box-shadow: 0 18px 35px -5px rgba(15, 23, 42, 0.14);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 240px !important;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px !important;
    background: #f8fafc;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--navy-dark);
    line-height: 1.45;
    height: 46px;
    overflow: hidden;
    margin-bottom: 10px !important;
    padding: 0 !important;
}

.woocommerce ul.products li.product .price {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: var(--navy-dark) !important;
    margin-bottom: 12px !important;
}

.woocommerce ul.products li.product .price del {
    color: var(--text-muted) !important;
    font-size: 14px !important;
    margin-left: 6px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: #d97706 !important;
}

/* زر الشراء في البطاقة */
.woocommerce ul.products li.product .button {
    width: 100%;
    text-align: center;
    background: var(--navy-dark) !important;
    color: var(--white) !important;
    font-family: 'Tajawal', sans-serif !important;
    font-weight: 800 !important;
    padding: 12px !important;
    border-radius: 10px !important;
    margin-top: auto !important;
    transition: 0.25s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--gold-main) !important;
    color: var(--navy-dark) !important;
}

/* شريط المخزون والعد التنازلي الحقيقي والنظامي */
.real-stock-bar {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.real-stock-text {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: #b45309;
    margin-bottom: 4px;
}

.real-progress {
    height: 6px;
    background: #fef3c7;
    border-radius: 10px;
    overflow: hidden;
}

.real-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    border-radius: 10px;
}

/* صندوق معلومات الشحن والضمان داخل صفحة المنتج */
.shipping-guarantee-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: 4px solid var(--gold-main);
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    font-size: 14px;
}

.shipping-guarantee-box ul {
    list-style: none;
}

.shipping-guarantee-box li {
    margin-bottom: 8px;
    font-weight: 600;
}

/* الفوتر */
.site-footer {
    background: var(--navy-dark);
    color: #94a3b8;
    padding: 50px 0 25px;
    margin-top: 60px;
    border-top: 4px solid var(--gold-main);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 14px;
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; }
    .header-search { order: 3; max-width: 100%; width: 100%; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 28px; }
    .trust-items { font-size: 11px; gap: 10px; }
}
