/* Online Selling Module Styles */

/* Product Cards */
.ab-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.ab-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.ab-product-card.pending {
    border-left: 4px solid #f59e0b;
}

.ab-product-card.approved {
    border-left: 4px solid #10b981;
}

.ab-product-card.rejected {
    border-left: 4px solid #ef4444;
}

.ab-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ab-product-placeholder {
    width: 100%;
    height: 200px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ab-product-content {
    padding: 20px;
}

.ab-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ab-product-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.ab-product-meta {
    margin-bottom: 12px;
}

.ab-product-category, .ab-product-brand, .ab-sku-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-right: 8px;
    margin-bottom: 4px;
}

.ab-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    margin-bottom: 12px;
}

.ab-bulk-price {
    font-size: 0.9rem;
    color: #6b7280;
    margin-left: 8px;
}

.ab-product-stock {
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
}

.ab-product-stock.out-of-stock {
    background: #fef2f2;
    color: #dc2626;
}

.ab-product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.ab-product-stats {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Status Indicators */
.ab-status-pending {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.ab-status-approved {
    background: #d1fae5;
    color: #065f46;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

.ab-status-rejected {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* Product Gallery */
.ab-product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.ab-gallery-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ab-gallery-item:hover {
    border-color: #3b82f6;
}

.ab-gallery-item.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.ab-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ab-gallery-placeholder {
    grid-column: 1 / -1;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: #6b7280;
}

/* Product Details */
.ab-product-specs {
    margin: 20px 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.ab-spec-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.ab-spec-item:last-child {
    border-bottom: none;
}

.ab-spec-label {
    font-weight: 600;
    color: #374151;
}

.ab-spec-value {
    color: #6b7280;
}

.ab-spec-value.out-of-stock {
    color: #dc2626;
}

.ab-product-pricing {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.ab-price-main, .ab-price-community, .ab-price-bulk {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ab-price-main:last-child, .ab-price-community:last-child, .ab-price-bulk:last-child {
    border-bottom: none;
}

.ab-price-label {
    font-weight: 600;
    color: #374151;
}

.ab-price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #059669;
}

/* Seller Information */
.ab-seller-info {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.ab-seller-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.ab-seller-contact {
    margin-bottom: 16px;
}

.ab-seller-location {
    color: #6b7280;
}

/* Purchase Form */
.ab-purchase-form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
}

.ab-purchase-options {
    margin-bottom: 20px;
}

.ab-option-group {
    margin-bottom: 16px;
}

.ab-option-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.ab-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.ab-purchase-actions {
    display: flex;
    gap: 12px;
}

/* Order Summary */
.ab-order-image {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
}

.ab-order-placeholder {
    width: 100%;
    max-width: 200px;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ab-order-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.ab-order-meta {
    margin-bottom: 12px;
    color: #6b7280;
}

.ab-order-description {
    color: #4b5563;
    line-height: 1.6;
}

.ab-price-summary {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.ab-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.ab-price-row:last-child {
    border-bottom: none;
}

.ab-price-row.total {
    font-weight: 700;
    background: #059669;
    color: white;
    margin: 0 -20px;
    padding: 16px 20px;
    border-radius: 0 0 8px 8px;
}

/* Tabs */
.ab-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}

.ab-tab {
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #6b7280;
}

.ab-tab:hover {
    color: #3b82f6;
    background: #f8fafc;
}

.ab-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #f8fafc;
}

.ab-tab-count {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.ab-tab-content {
    display: none;
}

.ab-tab-content.active {
    display: block;
}

/* Process Steps */
.ab-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.ab-process-step {
    text-align: center;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ab-step-number {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 16px;
}

.ab-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.ab-step-desc {
    color: #6b7280;
    line-height: 1.5;
}

/* Hero Section */
.ab-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 48px;
}

.ab-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.ab-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.ab-hero-sub {
    font-size: 1.1rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.ab-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Feature Cards */
.ab-feature-card {
    text-align: center;
    padding: 32px 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: 100%;
}

.ab-feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.ab-feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.ab-feature-desc {
    color: #6b7280;
    line-height: 1.5;
}

/* Stats */
.ab-stat-card {
    text-align: center;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ab-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.ab-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.ab-stat-label {
    color: #6b7280;
    font-weight: 500;
}

/* CTA Section */
.ab-cta {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 48px 24px;
    text-align: center;
}

.ab-cta-content {
    max-width: 500px;
    margin: 0 auto;
}

.ab-cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.ab-cta-sub {
    color: #6b7280;
    margin-bottom: 24px;
}

.ab-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .ab-product-gallery {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .ab-process {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ab-hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ab-cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .ab-tabs {
        flex-wrap: wrap;
    }
    
    .ab-tab {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
