/**
 * E-commerce CSS - Jovilse Brand Identity
 * Professional e-commerce styling for Jovilse Distribuidora Ferretera
 */

/* ===== CSS VARIABLES - JOVILSE BRAND PALETTE ===== */
:root {
    /* Jovilse Colors */
    --jovilse-red: #D81414;
    --jovilse-blue: #1177B0;
    --jovilse-blue-dark: #015276;
    --jovilse-green: #2EA05F;
    --jovilse-green-light: #6BD110;
    
    /* Supporting Colors */
    --white: #ffffff;
    --gray-light: #F8F9FA;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --border-color: #dee2e6;
    
    /* Design System */
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --border-radius-lg: 16px;
    --transition: all 0.3s ease;
    --transition-fast: all 0.2s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    
    /* Typography */
    --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

/* ===== GLOBAL STYLES ===== */
body {
    font-family: var(--font-family);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--gray-dark);
    background-color: #f5f5f5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
    font-weight: var(--font-weight-semibold);
    color: var(--jovilse-blue-dark);
    margin-bottom: 1rem;
}

.container {
    max-width: 1200px;
}

/* ===== HEADER & NAVIGATION ===== */
.ecommerce-header {
    background: var(--jovilse-blue-dark);
    color: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    max-height: 50px;
    width: auto;
}

.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.header-search {
    position: relative;
}

.header-search input {
    border-radius: 25px;
    border: none;
    padding: 12px 45px 12px 20px;
    width: 100%;
    font-size: 14px;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.header-search input::placeholder {
    color: #adb5bd;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.search-icon:hover {
    color: var(--jovilse-blue-dark);
}

.search-icon.fa-spin {
    color: var(--jovilse-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-user {
    position: relative;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
}

.user-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--gray-light);
}

.user-dropdown-name {
    font-weight: var(--font-weight-semibold);
    color: var(--jovilse-blue-dark);
    margin: 0;
    font-size: 14px;
}

.user-dropdown-email {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

.user-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--gray-dark);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--gray-light);
    color: var(--jovilse-blue-dark);
    text-decoration: none;
}

.user-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.header-cart {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.header-cart:hover {
    transform: scale(1.1);
}

.header-cart-icon {
    font-size: 24px;
    color: var(--white);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--jovilse-red);
    color: var(--white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
}

/* ===== BREADCRUMB ===== */
.breadcrumb-custom {
    background: var(--gray-light);
    padding: 12px 0;
    margin-bottom: 20px;
    border-radius: var(--border-radius-sm);
}

.breadcrumb-custom .breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--jovilse-blue);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.breadcrumb-custom .breadcrumb-item a:hover {
    color: var(--jovilse-blue-dark);
    text-decoration: underline;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--jovilse-blue-dark);
    font-weight: var(--font-weight-semibold);
}

/* ===== FILTERS PANEL ===== */
.filters-panel {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.filters-title {
    color: var(--jovilse-blue-dark);
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.filters-title i {
    margin-right: 10px;
    color: var(--jovilse-red);
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-label {
    font-weight: var(--font-weight-medium);
    color: var(--jovilse-blue-dark);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

/* ===== CUSTOM INPUTS ===== */
.custom-input, .custom-select {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    padding: 12px 15px;
    transition: var(--transition);
    width: 100%;
    font-family: var(--font-family);
    font-size: 14px;
    background: var(--white);
}

.custom-input:focus, .custom-select:focus {
    border-color: var(--jovilse-blue);
    box-shadow: 0 0 0 3px rgba(17, 119, 176, 0.1);
    outline: none;
}

.custom-select {
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn-search-filter {
    background: var(--jovilse-red);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 20px;
    width: 100%;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-search-filter:hover {
    background: #B01010;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-add-cart {
    background: var(--jovilse-red);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    width: 100%;
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-cart:hover {
    background: #B01010;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-add-cart:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Botón WhatsApp para consultar producto */
.btn-whatsapp-product {
    background: #25D366;
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 10px 16px;
    width: 100%;
    font-weight: var(--font-weight-semibold);
    font-size: 13px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    text-decoration: none;
}

.btn-whatsapp-product:hover {
    background: #20B954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    text-decoration: none;
}

.btn-whatsapp-product:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
    color: var(--white);
    text-decoration: none;
}

.btn-whatsapp-product i {
    font-size: 16px;
}

.btn-create-order {
    background: var(--jovilse-green);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 16px 24px;
    width: 100%;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-create-order:hover {
    background: #258549;
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-remove-item {
    background: transparent;
    border: none;
    color: var(--jovilse-red);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.btn-remove-item:hover {
    background: rgba(216, 20, 20, 0.1);
    transform: scale(1.2);
    color: #B01010;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* ===== PRODUCT CARDS ===== */
.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--jovilse-blue);
}

.product-image-container {
    position: relative;
    aspect-ratio: 1/1;
    background: var(--gray-light);
    overflow: hidden;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
    padding: 15px;
}

.product-image-container:hover .product-image {
    transform: scale(1.05);
}

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-available {
    background: var(--jovilse-green);
    color: var(--white);
}

.stock-low {
    background: #FF9800;
    color: var(--white);
}

.stock-out {
    background: var(--jovilse-red);
    color: var(--white);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-ref {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 6px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--jovilse-blue-dark);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 48px;
    line-height: 1.4;
}

.product-description {
    flex: 1;
    margin-bottom: 15px;
}

.product-description p {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 0;
    line-height: 1.4;
}

/* ===== PRICING ===== */
.price-display {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--jovilse-red);
    font-family: var(--font-family);
    margin: 12px 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-display .currency {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
}

.price-original {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 16px;
    font-weight: var(--font-weight-regular);
}

.price-special-label {
    color: var(--jovilse-blue);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== STOCK INFO ===== */
.product-stock {
    font-size: 13px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-stock.text-success {
    color: var(--jovilse-green);
}

.product-stock.text-warning {
    color: #FF9800;
}

.product-stock.text-danger {
    color: var(--jovilse-red);
}

.product-stock i {
    font-size: 14px;
}

/* ===== QUANTITY CONTROLS ===== */
.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    gap: 8px;
}

.quantity-control button {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    color: var(--jovilse-blue-dark);
}

.quantity-control button:hover {
    background: var(--jovilse-blue);
    color: var(--white);
    border-color: var(--jovilse-blue);
    transform: scale(1.1);
}

.quantity-control input {
    width: 60px;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    height: 36px;
    font-weight: var(--font-weight-medium);
    color: var(--jovilse-blue-dark);
}

.quantity-control input:focus {
    border-color: var(--jovilse-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 119, 176, 0.1);
}

/* ===== CART STYLES ===== */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    margin-top: 20px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.cart-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--jovilse-blue);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--gray-light);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-item-image:hover {
    transform: scale(1.05);
}

.cart-item-details {
    flex: 1;
    padding: 0 20px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: var(--font-weight-semibold);
    color: var(--jovilse-blue-dark);
    margin-bottom: 6px;
}

.cart-item-ref {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
}

.cart-item-price {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--jovilse-red);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-item-subtotal {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--jovilse-blue-dark);
    min-width: 120px;
    text-align: right;
}

/* ===== CART SUMMARY ===== */
.cart-summary {
    background: var(--gray-light);
    border-radius: var(--border-radius);
    padding: 24px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.cart-summary-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--jovilse-blue-dark);
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--gray-dark);
}

.cart-summary-line.total {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    padding-top: 15px;
    border-top: 2px solid var(--border-color);
    margin-top: 15px;
    color: var(--jovilse-blue-dark);
}

.cart-total {
    font-size: 32px;
    font-weight: var(--font-weight-bold);
    color: var(--jovilse-red);
    margin: 20px 0;
    text-align: center;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.cart-total .currency {
    font-size: 24px;
}

/* ===== PAGINATION ===== */
.pagination-modern {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.pagination-modern .pagination {
    gap: 4px;
}

.pagination-modern .page-item .page-link {
    color: var(--jovilse-blue-dark);
    border-radius: var(--border-radius-sm);
    margin: 0;
    border: 2px solid var(--border-color);
    padding: 10px 15px;
    font-weight: var(--font-weight-medium);
    transition: var(--transition);
}

.pagination-modern .page-item.active .page-link {
    background: var(--jovilse-blue);
    border-color: var(--jovilse-blue);
    color: var(--white);
}

.pagination-modern .page-item .page-link:hover {
    background: var(--jovilse-blue);
    color: var(--white);
    border-color: var(--jovilse-blue);
    transform: translateY(-2px);
}

/* ===== MODAL STYLES ===== */
.modal-image-zoom .modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.modal-image-zoom .modal-header {
    background: var(--jovilse-blue-dark);
    color: var(--white);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    border-bottom: none;
}

.modal-image-zoom .modal-title {
    font-weight: var(--font-weight-semibold);
    font-size: 18px;
}

.modal-image-zoom .close {
    color: var(--white);
    opacity: 1;
    font-size: 24px;
    transition: var(--transition);
}

.modal-image-zoom .close:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

#modalImage {
    max-height: 70vh;
    width: auto;
    margin: 0 auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

.modal-product-info {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-price {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--jovilse-red);
    margin-bottom: 10px;
}

.modal-stock {
    margin-top: 10px;
}

/* ===== NOTIFICATIONS/TOASTS ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.custom-toast {
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    min-width: 300px;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
    font-family: var(--font-family);
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast-success {
    background: var(--jovilse-green);
    color: var(--white);
}

.toast-error {
    background: var(--jovilse-red);
    color: var(--white);
}

.toast-info {
    background: var(--jovilse-blue);
    color: var(--white);
}

.toast-warning {
    background: #FF9800;
    color: var(--white);
}

.toast-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-weight: var(--font-weight-medium);
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    margin-left: 12px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.toast-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ===== LOADING STATES ===== */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner-large {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--jovilse-blue);
    animation: spin 1s ease-in-out infinite;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    margin: 40px 0;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 24px;
    font-weight: var(--font-weight-semibold);
    color: var(--jovilse-blue-dark);
    margin-bottom: 12px;
}

.empty-state-text {
    color: var(--gray);
    margin-bottom: 24px;
    font-size: 16px;
}

.empty-state .btn {
    padding: 12px 24px;
    font-weight: var(--font-weight-semibold);
}

/* ===== UTILITY CLASSES ===== */
.text-jovilse-red {
    color: var(--jovilse-red) !important;
}

.text-jovilse-blue {
    color: var(--jovilse-blue) !important;
}

.text-jovilse-blue-dark {
    color: var(--jovilse-blue-dark) !important;
}

.text-jovilse-green {
    color: var(--jovilse-green) !important;
}

.bg-jovilse-red {
    background-color: var(--jovilse-red) !important;
}

.bg-jovilse-blue {
    background-color: var(--jovilse-blue) !important;
}

.bg-jovilse-blue-dark {
    background-color: var(--jovilse-blue-dark) !important;
}

.bg-jovilse-green {
    background-color: var(--jovilse-green) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md) !important;
}

.rounded-custom {
    border-radius: var(--border-radius) !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile Devices */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-summary {
        position: relative;
        top: 0;
        order: -1;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .cart-item-image {
        margin-bottom: 15px;
        width: 80px;
        height: 80px;
    }
    
    .cart-item-details {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .cart-item-controls {
        justify-content: center;
        width: 100%;
    }
    
    .cart-item-subtotal {
        text-align: center;
        margin-top: 10px;
        min-width: auto;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .header-search {
        margin: 0;
        max-width: none;
        width: 100%;
    }
    
    .filters-panel {
        margin-bottom: 15px;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .toast-container {
        right: 15px;
        left: 15px;
        top: 90px;
    }
    
    .custom-toast {
        min-width: auto;
        width: 100%;
    }
}

/* Tablet Devices */
@media (min-width: 768px) and (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .cart-layout {
        grid-template-columns: 1fr 350px;
        gap: 25px;
    }
    
    .header-search {
        max-width: 400px;
    }
}

/* Desktop Devices */
@media (min-width: 1025px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* ===== HIGH RESOLUTION DISPLAYS ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header-actions,
    .filters-panel,
    .btn-add-cart,
    .quantity-control,
    .toast-container {
        display: none !important;
    }
    
    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}