/**
 * Raidet Market - Styles principaux
 * Charte graphique : #2D9B8E (vert), #6B5D3F (marron)
 */

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --raidet-primary: #2D9B8E;
    --raidet-secondary: #6B5D3F;
    --raidet-dark: #2c2c2c;
    --raidet-light: #fafafa;
    --raidet-border: #e0e0e0;
    --raidet-success: #28a745;
    --raidet-warning: #ffc107;
    --raidet-danger: #dc3545;
}

/* ============================================
   BANNIÈRE PANIER ACTIF
   ============================================ */
.raidet-cart-banner {
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.cart-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.banner-icon {
    font-size: 32px;
}

.banner-icon i {
    font-size: 32px;
}

.banner-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.banner-text strong {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-text span {
    font-size: 18px;
    font-weight: 600;
}

.banner-message {
    flex: 1;
    font-size: 14px;
    opacity: 0.9;
}

.banner-actions {
    display: flex;
    gap: 10px;
}

.banner-actions .btn {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   PAGE INSCRIPTION VENDEUR
   ============================================ */
.raidet-register-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.register-intro {
    text-align: center;
    margin-bottom: 40px;
}

.register-intro h2 {
    color: var(--raidet-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.register-intro p {
    font-size: 16px;
    color: #666;
}

.raidet-register-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--raidet-border);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--raidet-secondary);
    margin-bottom: 25px;
}

.section-title i {
    color: var(--raidet-primary);
}

.form-group label.required::after {
    content: " *";
    color: var(--raidet-danger);
}

.form-footer {
    text-align: center;
    margin-top: 30px;
}

.form-footer .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   PAGE BOUTIQUE VENDEUR
   ============================================ */
.raidet-shop-page {
    background: var(--raidet-light);
}

.shop-cover {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.shop-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.shop-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.shop-header-content {
    display: flex;
    gap: 30px;
    padding: 30px 0;
}

.shop-logo {
    flex-shrink: 0;
}

.shop-logo img {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    object-fit: cover;
}

.shop-info {
    flex: 1;
}

.shop-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--raidet-dark);
    margin-bottom: 15px;
}

.shop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.shop-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-rating i {
    color: #FFD700;
    font-size: 20px;
}

.rating-value {
    font-weight: 600;
    font-size: 18px;
}

.review-count {
    color: #666;
    font-size: 14px;
}

.shop-stats {
    display: flex;
    gap: 20px;
}

.shop-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 14px;
}

.shop-stats i {
    color: var(--raidet-primary);
    font-size: 18px;
}

.shop-description {
    color: #666;
    line-height: 1.6;
}

.cart-vendor-alert {
    margin: 20px 0;
}

.cart-vendor-alert .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-vendor-alert i {
    font-size: 24px;
}

.shop-products {
    padding: 40px 0;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.products-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--raidet-dark);
}

.products-grid {
    margin-bottom: 40px;
}

.product-miniature {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    margin-bottom: 30px;
}

.product-miniature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(45, 155, 142, 0.2);
}

.product-thumbnail {
    position: relative;
    overflow: hidden;
}

.product-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.product-locked-overlay i {
    font-size: 48px;
    margin-bottom: 10px;
}

.product-description {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title a {
    color: var(--raidet-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--raidet-primary);
}

.product-price-and-shipping {
    margin-bottom: 15px;
}

.product-price-and-shipping .price {
    font-size: 20px;
    font-weight: 700;
}

.product-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    justify-content: center;
}




/* ============================================
   DASHBOARD VENDEUR
   ============================================ */
.vendor-dashboard {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 30px 0;
}

.dashboard-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 30px 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.vendor-profile {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--raidet-border);
}

.vendor-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--raidet-primary);
}

.vendor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-profile h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.dashboard-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.dashboard-menu .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.dashboard-menu .menu-item:hover {
    background: var(--raidet-light);
    color: var(--raidet-primary);
}

.dashboard-menu .menu-item.active {
    background: linear-gradient(135deg, var(--raidet-primary) 0%, #25867b 100%);
    color: white;
}

.dashboard-menu .menu-item i {
    font-size: 20px;
}

.dashboard-main {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 40px;
}

.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--raidet-dark);
    margin-bottom: 10px;
}

.welcome-section p {
    color: #666;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    gap: 20px;
    align-items: center;
    border-left: 4px solid var(--raidet-primary);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 32px;
    color: var(--raidet-primary);
}

.stat-content {
    flex: 1;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--raidet-dark);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-note {
    font-size: 12px;
    color: var(--raidet-primary);
    font-weight: 600;
}

.dashboard-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--raidet-dark);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .vendor-dashboard {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        position: static;
    }

    .shop-header-content {
        flex-direction: column;
        text-align: center;
    }

    .shop-logo {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .cart-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .banner-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MODALE CONFLIT DE VENDEUR
   ============================================ */
.raidet-modern-modal {
    border-radius: 16px;
    overflow: hidden;
    border: none;
}

.raidet-modal-header {
    background: linear-gradient(135deg, #6B5D3F 0%, #4e3f21 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.raidet-modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.raidet-modal-icon i {
    font-size: 28px;
    color: white;
}

.raidet-modal-title-wrapper {
    flex: 1;
}

.raidet-modal-header .modal-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: white;
}

.raidet-modal-header .modal-subtitle {
    font-size: 14px;
    margin: 5px 0 0 0;
    opacity: 0.9;
    color: white;
}

.raidet-modal-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
	    top: 20px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    padding: 0;
    margin: 0;
    transition: all 0.3s;
}

.raidet-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.raidet-modal-close i {
    font-size: 24px;
    color: white;
}

.raidet-modal-body {
    padding: 30px;
    background: white;
}

.raidet-alert-box {
    background: #f8f5f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #6B5D3F;
}

.raidet-alert-text {
    font-size: 15px;
    color: #2c2c2c;
    margin-bottom: 12px;
    line-height: 1.6;
}

.raidet-alert-text:last-of-type {
    margin-bottom: 15px;
}

.raidet-alert-text strong {
    font-weight: 700;
    color: #6B5D3F;
}

.raidet-warning-emoji {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    line-height: 1.6;
}

.raidet-choose-action {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.raidet-question-divider {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    margin: 25px 0 20px 0;
    padding: 0 20px;
    position: relative;
}

.raidet-question-divider::before,
.raidet-question-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #ddd;
}

.raidet-question-divider::before {
    left: 0;
}

.raidet-question-divider::after {
    right: 0;
}

.raidet-actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.raidet-action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 5px 20px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.raidet-action-btn:hover {
    border-color: #6B5D3F;
    background: #fafafa;
    transform: translateX(5px);
}

.raidet-btn-checkout {
    background: linear-gradient(135deg, #6B5D3F 0%, #4e3f21 100%);
    border-color: #6B5D3F;
    color: white;
}

.raidet-btn-checkout:hover {
    background: linear-gradient(135deg, #4e3f21 0%, #3d3119 100%);
    border-color: #4e3f21;
    color: white;
    transform: translateX(5px);
}

.raidet-btn-checkout .raidet-btn-icon i,
.raidet-btn-checkout .raidet-btn-title,
.raidet-btn-checkout .raidet-btn-desc,
.raidet-btn-checkout .raidet-btn-arrow {
    color: white;
}

.raidet-btn-continue {
    border-color: #e0e0e0;
}

.raidet-btn-switch {
    border-color: #e0e0e0;
}

.raidet-btn-icon {
    width: 50px;
    height: 50px;
    background: rgba(107, 93, 63, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.raidet-btn-checkout .raidet-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.raidet-btn-icon i {
    font-size: 24px;
    color: #6B5D3F;
}

.raidet-btn-content {
    flex: 1;
}

.raidet-btn-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 4px;
}

.raidet-btn-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.raidet-btn-arrow {
    font-size: 24px;
    color: #999;
    flex-shrink: 0;
}

.raidet-info-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 8px;
    border-left: 3px solid #2196F3;
}

.raidet-info-message i {
    font-size: 20px;
    color: #2196F3;
    flex-shrink: 0;
    margin-top: 2px;
}

.raidet-info-message span {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Support RTL (Arabe) */
body.lang-rtl .raidet-btn-arrow {
    display: inline-block;
    transform: scaleX(-1);
}
body.lang-rtl .raidet-modal-close {
    right: auto !important;
    left: 20px !important;
	    top: 20px !important;
}
body.lang-rtl .raidet-action-btn {
    text-align: right;
}

body.lang-rtl .raidet-btn-content {
    text-align: right;
}

body.lang-rtl .raidet-action-btn:hover {
    transform: translateX(-5px);
}

body.lang-rtl .raidet-btn-checkout:hover {
    transform: translateX(-5px);
}

body.lang-rtl .raidet-alert-box {
    border-left: none;
    border-right: 4px solid #6B5D3F;
}

body.lang-rtl .raidet-info-message {
    border-left: none;
    border-right: 3px solid #2196F3;
    text-align: right;
}

body.lang-rtl .raidet-question-divider::before {
    left: auto;
    right: 0;
}

body.lang-rtl .raidet-question-divider::after {
    right: auto;
    left: 0;
}

/* Responsive */
@media (max-width: 576px) {
    .raidet-modal-header {
        padding: 20px;
    }
    
    .raidet-modal-body {
        padding: 20px;
    }
    
    .raidet-action-btn {
        padding: 15px;
    }
    
    .raidet-btn-icon {
        width: 45px;
        height: 45px;
    }
    
    .raidet-btn-title {
        font-size: 15px;
    }
    
    .raidet-btn-desc {
        font-size: 12px;
    }
}
