/* Products Items Custom CSS */

/* General Variables */
:root {
    --primary-color: #06adeb;
    --primary-hover: #059acb;
    --card-bg: #ffffff;
    --text-color: #212529;
    --border-color: #dee2e6;
    --muted-color: #6c757d;
}

/* Dark Mode Variables */
.dark-mode {
    --card-bg: #2c3034;
    --text-color: #f8f9fa;
    --border-color: #495057;
    --muted-color: #adb5bd;
}

/* Smart Bar Styling */
.product-smart-bar {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.product-smart-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product-smart-bar .card-body {
    padding: 1rem 1.25rem;
}

/* Product Info Section */
.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-thumb-placeholder {
    width: 60px;
    height: 60px;
    background-color: #f8f9fa;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    color: var(--muted-color);
    font-size: 1.5rem;
}

.dark-mode .product-thumb-placeholder {
    background-color: #343a40;
}

.price-badge {
    background-color: rgba(6, 173, 235, 0.1) !important;
    color: var(--primary-color) !important;
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    font-weight: 600;
}

/* Variant Sections */
.variant-details-collapse {
    background-color: rgba(0, 0, 0, 0.02);
    border-top: 1px solid var(--border-color);
}

.dark-mode .variant-details-collapse {
    background-color: rgba(255, 255, 255, 0.02);
}

.variant-group-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.variant-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.variant-chip .color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

.variant-chip .stock-badge {
    margin-left: 8px;
    font-size: 0.75rem;
    padding: 0.1em 0.5em;
    border-radius: 4px;
    background-color: #e9ecef;
    color: #495057;
}

.dark-mode .variant-chip .stock-badge {
    background-color: #495057;
    color: #f8f9fa;
}

/* Modal Styling */
.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
}

.modal-footer {
    border-top: 1px solid var(--border-color);
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

.form-control, .form-select {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(6, 173, 235, 0.25);
    background-color: var(--card-bg);
    color: var(--text-color);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Variant Inputs in Modal */
.variant-section {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.dark-mode .variant-section {
    background-color: rgba(255, 255, 255, 0.02);
}

.stock-input:disabled {
    background-color: #e9ecef;
    opacity: 0.6;
}

.dark-mode .stock-input:disabled {
    background-color: #343a40;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}
