/* ============================
   wholesale.css
   صفحة الجملة — الروبي ستور
   تصميم احترافي للتجار
   ============================ */

/* ============================
   Hero Section
   ============================ */
.ws-hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1b35 60%, #1a3a5c 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}
.ws-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.ws-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ws-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230,57,70,0.2);
    border: 1px solid rgba(230,57,70,0.4);
    color: #ff6b7a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}
.ws-hero h1 {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 16px;
}
.ws-hero h1 span { color: #e63946; }
.ws-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 32px;
}
.ws-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-ws-primary {
    background: #e63946;
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-ws-primary:hover { background: #c1121f; transform: translateY(-2px); }
.btn-ws-secondary {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all .2s;
}
.btn-ws-secondary:hover { background: rgba(255,255,255,0.2); }

/* ============================
   Stats
   ============================ */
.ws-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ws-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.ws-stat-num {
    font-size: 32px;
    font-weight: 900;
    color: #e63946;
    display: block;
}
.ws-stat-lbl {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
    display: block;
}

/* ============================
   Features Strip
   ============================ */
.ws-features {
    background: #f8f9fa;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}
.ws-features-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ws-feature {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ws-feature-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}
.ws-feature-text h4 {
    font-size: 14px;
    font-weight: 800;
    color: #1a2a4a;
    margin: 0 0 2px;
}
.ws-feature-text p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ============================
   Section Header
   ============================ */
.ws-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}
.ws-section-head {
    text-align: center;
    margin-bottom: 40px;
}
.ws-section-head h2 {
    font-size: 28px;
    font-weight: 900;
    color: #1a2a4a;
    margin-bottom: 8px;
}
.ws-section-head p {
    font-size: 15px;
    color: #888;
}

/* ============================
   Products Grid
   ============================ */
.ws-products-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    justify-content: center;
}
.ws-filter-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Tajawal', sans-serif;
}
.ws-filter-btn.active,
.ws-filter-btn:hover {
    background: #1a2a4a;
    color: #fff;
    border-color: #1a2a4a;
}
.ws-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ============================
   Product Card — جملة
   ============================ */
.ws-product-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all .3s;
    position: relative;
}
.ws-product-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.ws-product-img {
    height: 220px;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
}
.ws-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.ws-product-card:hover .ws-product-img img {
    transform: scale(1.05);
}
.ws-product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1a2a4a;
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.ws-product-info {
    padding: 16px;
}
.ws-product-brand {
    font-size: 11px;
    color: #e63946;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ws-product-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a2a4a;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ws-product-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.ws-meta-tag {
    background: #f0f4ff;
    color: #1a2a4a;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
}
.ws-meta-tag.stock {
    background: #f0fff4;
    color: #16a34a;
}
.ws-meta-tag.min {
    background: #fff8f0;
    color: #d97706;
}
.ws-price-hidden {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}
.ws-price-label {
    font-size: 12px;
    color: #888;
}
.ws-price-value {
    font-size: 13px;
    font-weight: 700;
    color: #1a2a4a;
}
.ws-price-note {
    font-size: 11px;
    color: #e63946;
    margin-top: 4px;
    display: block;
    text-align: center;
}
.btn-ws-inquiry {
    width: 100%;
    background: #1a2a4a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: all .2s;
    text-decoration: none;
    display: block;
    text-align: center;
}
.btn-ws-inquiry:hover { background: #e63946; }

/* ============================
   How It Works
   ============================ */
.ws-how {
    background: #1a2a4a;
    color: #fff;
    padding: 60px 0;
}
.ws-how-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.ws-how h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 40px;
}
.ws-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.ws-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: rgba(255,255,255,0.15);
}
.ws-step {
    text-align: center;
    position: relative;
}
.ws-step-num {
    width: 60px;
    height: 60px;
    background: #e63946;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}
.ws-step h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}
.ws-step p {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* ============================
   Contact Form
   ============================ */
.ws-contact {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
}
.ws-contact-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eee;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.ws-contact-head {
    text-align: center;
    margin-bottom: 32px;
}
.ws-contact-head h2 {
    font-size: 24px;
    font-weight: 900;
    color: #1a2a4a;
    margin-bottom: 8px;
}
.ws-contact-head p {
    font-size: 14px;
    color: #888;
}
.ws-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ws-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.ws-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ws-form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #444;
}
.ws-form-group input,
.ws-form-group select,
.ws-form-group textarea {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color .2s;
    width: 100%;
}
.ws-form-group input:focus,
.ws-form-group select:focus,
.ws-form-group textarea:focus {
    border-color: #1a2a4a;
    background: #fff;
}
.ws-form-group textarea { resize: vertical; }
.ws-required { color: #e63946; }
.btn-ws-submit {
    width: 100%;
    background: #e63946;
    color: #fff;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 800;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    transition: all .2s;
    margin-top: 8px;
}
.btn-ws-submit:hover { background: #c1121f; }

/* ============================
   Success Message
   ============================ */
.ws-success {
    background: #f0fff4;
    border: 1px solid #16a34a;
    color: #16a34a;
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
}

/* ============================
   Empty State
   ============================ */
.ws-empty {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}
.ws-empty-icon { font-size: 48px; margin-bottom: 12px; }
.ws-empty h3 { font-size: 18px; color: #444; margin-bottom: 8px; }

/* ============================
   Responsive
   ============================ */
@media (max-width: 900px) {
    .ws-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .ws-stats { grid-template-columns: repeat(3, 1fr); }
    .ws-features-inner { grid-template-columns: repeat(2, 1fr); }
    .ws-products-grid { grid-template-columns: repeat(2, 1fr); }
    .ws-steps { grid-template-columns: repeat(2, 1fr); }
    .ws-steps::before { display: none; }
    .ws-hero h1 { font-size: 30px; }
}
@media (max-width: 600px) {
    .ws-features-inner { grid-template-columns: 1fr; }
    .ws-products-grid { grid-template-columns: 1fr; }
    .ws-form-row { grid-template-columns: 1fr; }
    .ws-stats { grid-template-columns: repeat(3, 1fr); }
    .ws-contact-card { padding: 24px; }
}