/*
Theme Name: O.T Store - القالب الرسمي للحلول الرقمية وبوابة الدفع
Theme URI: https://example.com/ot-store-theme
Author: مهندس المواقع - O.T Store Studio
Description: قالب ووردبريس وووكومرس احترافي متجاوب 100% مع الجوال والشاشات المختلفة لمتجر O.T Store الثاني (متجر الدفع والحلول الرقمية).
Version: 3.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ot-store-theme
Tags: e-commerce, rtl-language-support, custom-logo, woocommerce
*/

:root {
    --ot-bg-dark: #0f051d;
    --ot-purple-deep: #2e026d;
    --ot-purple-main: #6b21a8;
    --ot-purple-bright: #9333ea;
    --ot-magenta: #c026d3;
    --ot-body-bg: #f8f7fc;
    --ot-text-dark: #1e1b4b;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--ot-body-bg);
    color: var(--ot-text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100%;
}

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

.ot-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

/* ========================================================
   1. هيدر صفحة الدفع الخاص (Checkout Header - نظيف وموثوق)
   ======================================================== */
.ot-checkout-nav-bar {
    background: linear-gradient(90deg, #1a0633 0%, #3b0764 50%, #1a0633 100%);
    border-bottom: 2px solid #9333ea;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    width: 100%;
}

.ot-checkout-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.ot-checkout-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 900;
    font-size: 1.25rem;
}

.ot-checkout-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #c084fc;
    object-fit: cover;
    box-shadow: 0 0 14px rgba(192, 38, 211, 0.6);
}

.ot-checkout-secure-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #a7f3d0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ========================================================
   2. هيدر المتجر القياسي (Homepage & Catalog Header)
   ======================================================== */
.ot-header {
    background: linear-gradient(90deg, #1a0633 0%, #3b0764 50%, #1a0633 100%);
    border-bottom: 1px solid rgba(168, 85, 247, 0.25);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.ot-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 4px 0;
}

.ot-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
}

.ot-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #a855f7;
    object-fit: cover;
}

.ot-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ot-cart-btn {
    background: linear-gradient(135deg, #9333ea 0%, #c026d3 100%);
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ot-cart-count {
    background: #ffffff;
    color: #6b21a8;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.ot-mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1;
}

.ot-nav-container {
    width: 100%;
}

.ot-nav-list {
    display: flex;
    align-items: center;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0 0 10px 0;
    flex-wrap: wrap;
}

.ot-nav-list li a {
    color: #f3e8ff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
}

.ot-nav-list li a:hover {
    color: #ffffff;
    background: rgba(168, 85, 247, 0.25);
}

/* ========================================================
   3. بطاقة صفحة الدفع (Checkout Card Layout)
   ======================================================== */
.ot-checkout-card {
    max-width: 860px;
    margin: 10px auto 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(76, 29, 149, 0.1);
    border: 1px solid #e9d5ff;
    overflow: hidden;
}

.ot-checkout-card-header {
    background: linear-gradient(90deg, #2e026d 0%, #6b21a8 50%, #2e026d 100%);
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.ot-checkout-card-body {
    padding: 20px 16px;
}

/* صندوق الطمأنة والتوضيح */
.wppb-reassurance-box {
    background: linear-gradient(135deg, #2e026d 0%, #4c1d95 100%);
    color: #ffffff;
    border: 2px solid #c084fc;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 20px;
    direction: rtl;
    text-align: right;
    box-shadow: 0 8px 24px rgba(76, 29, 149, 0.2);
}

.wppb-reassurance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(216, 180, 254, 0.25);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.wppb-reassurance-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
}

.wppb-order-pill {
    background: linear-gradient(90deg, #a855f7, #ec4899);
    color: #ffffff;
    padding: 4px 14px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
}

.wppb-reassurance-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #f3e8ff;
    margin: 0 0 12px;
}

.wppb-steps-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(15, 5, 29, 0.5);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #e9d5ff;
}

.wppb-step-item {
    font-weight: 700;
}

/* تنسيق أزرار ووكومرس للدفع */
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
#place_order {
    background: linear-gradient(90deg, #9333ea 0%, #c026d3 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 28px !important;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    width: 100% !important;
    box-shadow: 0 4px 16px rgba(192, 38, 211, 0.35) !important;
    cursor: pointer !important;
}

/* ========================================================
   4. بنر وشبكة المتجر الرئيسي (Hero & Product Grid)
   ======================================================== */
.ot-hero {
    background: radial-gradient(circle at 25% 35%, #7e22ce 0%, #4c1d95 38%, #1e0538 78%, #0f051d 100%);
    color: #ffffff;
    padding: 42px 0;
    border-bottom: 3px solid #9333ea;
}

.ot-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 28px;
}

.ot-hero-content {
    text-align: center;
}

.ot-hero-logo {
    width: 95px;
    height: 95px;
    border-radius: 50%;
    border: 3px solid #c084fc;
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.8);
    margin-bottom: 12px;
}

.ot-hero-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 10px;
    line-height: 1.3;
}

.ot-hero-subtitle {
    font-size: 1rem;
    color: #e9d5ff;
    margin: 0 0 20px;
}

.ot-hero-cta {
    display: inline-block;
    background: linear-gradient(90deg, #7e22ce 0%, #c026d3 50%, #7e22ce 100%);
    color: #ffffff !important;
    font-size: 1.15rem;
    font-weight: 800;
    padding: 12px 42px;
    border-radius: 14px;
    border: 2px solid #e879f9;
}

.ot-hero-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.ot-showcase-card {
    background: linear-gradient(160deg, rgba(88, 28, 135, 0.9), rgba(15, 5, 29, 0.95));
    border: 2px solid #a855f7;
    border-radius: 18px;
    padding: 16px 12px;
    flex: 1;
    text-align: center;
}

.ot-showcase-card.center-vip {
    border-color: #34d399;
    background: linear-gradient(160deg, rgba(6, 78, 59, 0.92), rgba(15, 5, 29, 0.96));
    transform: scale(1.04);
}

.ot-showcase-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.ot-products-section {
    padding: 36px 0 48px;
    background: #ffffff;
}

.ot-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.ot-product-card {
    background: #ffffff;
    border: 1px solid #f1f0f7;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(88, 28, 135, 0.05);
    display: flex;
    flex-direction: column;
}

.ot-product-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #140726;
}

.ot-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ot-discount-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ec4899;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}

.ot-product-body {
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.ot-product-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1f2937;
    margin: 4px 0 8px;
    line-height: 1.35;
}

.ot-product-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #9333ea;
    margin-bottom: 10px;
}

.ot-product-btn {
    display: inline-block;
    background: linear-gradient(90deg, #a855f7 0%, #d946ef 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.84rem;
    padding: 8px 16px;
    border-radius: 6px;
    width: 100%;
}

.ot-footer {
    background: #0f051d;
    color: #d8b4fe;
    padding: 36px 0 20px;
    border-top: 3px solid #7e22ce;
}

.ot-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding-top: 16px;
}

.ot-pay-pill {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
}

/* ========================================================
   5. التجاوب الكامل مع الجوال (Mobile Optimization)
   ======================================================== */
@media (max-width: 860px) {
    .ot-checkout-nav-inner {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 6px;
    }

    .ot-mobile-toggle-btn {
        display: block;
    }

    .ot-nav-container {
        display: none;
    }

    .ot-nav-container.is-open {
        display: block;
        padding-top: 10px;
        border-top: 1px solid rgba(168, 85, 247, 0.2);
    }

    .ot-nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .ot-nav-list li a {
        display: block;
        background: rgba(255, 255, 255, 0.05);
        padding: 10px 14px;
        border-radius: 8px;
    }

    .ot-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ot-hero-title {
        font-size: 1.6rem;
    }

    .ot-hero-cards {
        gap: 8px;
    }

    .ot-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ot-product-title {
        font-size: 0.82rem;
        min-height: 36px;
    }

    .ot-checkout-card {
        margin: 6px auto;
        border-radius: 12px;
    }

    .ot-checkout-card-header {
        padding: 12px 14px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .ot-checkout-card-body {
        padding: 14px 10px;
    }

    .wppb-reassurance-box {
        padding: 12px 14px;
    }

    .wppb-reassurance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .wppb-order-pill {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .wppb-steps-bar {
        flex-direction: column;
        gap: 6px;
    }
}