/* /assets/eshop/shop.css */
.tdm-store {
    /* Colors */
    --primary-color: #1e3c72;
    --primary-dark: #152a52;
    --primary-light: #2a5298;
    --secondary-color: #00b894;
    --accent-color: #0984e3;
    --success-color: #00b894;
    --warning-color: #fdcb6e;
    --danger-color: #d63031;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    
    /* Grays */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-xxl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}
/* /assets/eshop/shop.css */
.filters-section {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.filters-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.filter-group label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--spacing-sm);
    font-size: 0.9rem;
}

.filter-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
    cursor: pointer;
    background: white;
}

.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 60, 114, 0.1);
}

/* ========================================
   PRODUCTS GRID
======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.product-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--gray-400);
    position: relative;
    overflow: hidden;
}

.product-image i {
    transition: var(--transition-base);
}

.product-card:hover .product-image i {
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-lg);
}

.product-code {
    display: inline-block;
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
}

.product-category {
    color: var(--gray-500);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-md);
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-200);
}

.product-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success-color);
}

.product-stock {
    font-size: 0.85rem;
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.stock-high {
    background: #d4edda;
    color: #155724;
}

.stock-medium {
    background: #fff3cd;
    color: #856404;
}

.stock-low {
    background: #f8d7da;
    color: #721c24;
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    transition: var(--transition-base);
}

.add-to-cart-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.add-to-cart-btn:disabled {
    background: var(--gray-400);
    cursor: not-allowed;
}


.catalog-product-photo{width:100%;height:100%;object-fit:contain;padding:16px;background:white;} .catalog-image-note{position:absolute;bottom:6px;font-size:11px;background:#ffffffe6;padding:4px;} .product-image{position:relative;}
@media(max-width:768px){.products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}.filters-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:480px){.products-grid{grid-template-columns:1fr;}.filters-grid{grid-template-columns:1fr;}}
.tdm-store .product-card,.tdm-store .filters-section{background:var(--bg-card,#fff);}.tdm-store .product-title{color:var(--text-heading,#343a40);}.tdm-store .product-category,.tdm-store .product-brand{color:var(--text-body,#495057);}
