/* ==================== */
/* B2B MODERN STYLES */
/* ==================== */

/* Quote Cart Icon */
.cart-icon {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-dark);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.cart-icon.bounce {
    animation: bounce 0.5s ease;
}

/* Cart Modal */
.cart-modal .modal-content {
    max-width: 600px;
}

.cart-modal-content {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.cart-header {
    padding: 25px 30px;
    background: var(--primary-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
}

.cart-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-header h2 i {
    color: var(--primary-dark);
}

.cart-body {
    padding: 25px 30px;
    overflow-y: auto;
    flex: 1;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 16px;
}

/* Cart Items */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--primary-light);
    border-radius: 12px;
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-category {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quantity Controls */
.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-white);
    border-radius: 8px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-light);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-dark);
    color: white;
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
}

.cart-item-quantity input::-webkit-inner-spin-button,
.cart-item-quantity input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    border: none;
    background: #fee2e2;
    color: #dc2626;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #dc2626;
    color: white;
}

/* Cart Summary */
.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.cart-total strong {
    font-size: 20px;
    color: var(--primary-dark);
}

.cart-discount {
    margin-top: 15px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #c5e1a5 0%, #a5d6a7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
}

.cart-discount i {
    font-size: 16px;
}

/* Cart Footer */
.cart-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* Send Options */
.send-options {
    text-align: center;
}

.send-options p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.send-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.send-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 40px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.send-btn i {
    font-size: 36px;
}

.send-btn span {
    font-size: 16px;
    font-weight: 600;
}

.send-btn small {
    font-size: 12px;
    opacity: 0.8;
}

.send-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
}

.send-btn.whatsapp:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.send-btn.email {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e2d25 100%);
    color: white;
}

.send-btn.email:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(45, 62, 54, 0.4);
}

/* ==================== */
/* IMAGE UPLOAD STYLES */
/* ==================== */

.image-upload-component {
    margin-bottom: 30px;
}

.image-drop-zone {
    border: 2px dashed var(--border-light);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    background: var(--bg-white);
    position: relative;
}

.image-drop-zone.dragover {
    border-color: var(--primary-dark);
    background: var(--primary-light);
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.drop-zone-content i {
    font-size: 48px;
    color: var(--text-muted);
    opacity: 0.5;
}

.drop-zone-content p {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
}

.drop-zone-content span {
    color: var(--text-muted);
    font-size: 13px;
}

.drop-zone-content small {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 10px;
}

.upload-btn {
    margin-top: 10px;
}

.upload-preview {
    margin-top: 20px;
}

.upload-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 12px;
    margin: 0 auto;
}

/* Image Gallery */
.image-gallery {
    margin-top: 25px;
}

.image-gallery h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-btn.copy {
    background: var(--accent-lime);
    color: var(--text-dark);
}

.gallery-btn.delete {
    background: #fee2e2;
    color: #dc2626;
}

.gallery-btn:hover {
    transform: scale(1.1);
}

.gallery-item-name {
    display: block;
    padding: 8px;
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-images {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
}

/* Storage Info */
.storage-info {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.storage-bar {
    flex: 1;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.storage-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.storage-text {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ==================== */
/* B2B SPECIFIC FEATURES */
/* ==================== */

/* Minimum Order Notice */
.min-order-notice {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 14px;
}

.min-order-notice i {
    font-size: 20px;
    color: #d68910;
}

/* Bulk Pricing Table */
.bulk-pricing {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.bulk-pricing h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.bulk-pricing-table th,
.bulk-pricing-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.bulk-pricing-table th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--text-dark);
}

.bulk-pricing-table tr:last-child td {
    border-bottom: none;
}

.discount-badge {
    background: var(--accent-lime);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Quick Add Button */
.quick-add-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border: none;
    background: var(--primary-dark);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    z-index: 10;
}

.product-card:hover .quick-add-btn {
    opacity: 1;
    transform: scale(1);
}

.quick-add-btn:hover {
    background: #1e2d25;
    transform: scale(1.1) !important;
}

/* Product Card Enhanced */
.product-card {
    position: relative;
}

.product-card .product-image {
    position: relative;
}

/* B2B Badge */
.b2b-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e2d25 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 5;
}

/* Stock Indicator */
.stock-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    margin-top: 10px;
}

.stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.stock-dot.in-stock {
    background: #27ae60;
}

.stock-dot.low-stock {
    background: #f39c12;
}

.stock-dot.out-stock {
    background: #e74c3c;
}

/* Lead Time Badge */
.lead-time {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.lead-time i {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-item {
        flex-wrap: wrap;
    }
    
    .cart-item-info {
        flex: 1 1 calc(100% - 90px);
    }
    
    .cart-item-quantity {
        flex: 1 1 100%;
        justify-content: center;
        margin-top: 10px;
    }
    
    .cart-item-remove {
        position: absolute;
        top: 10px;
        right: 10px;
    }
    
    .send-buttons {
        flex-direction: column;
    }
    
    .send-btn {
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
