/* Shop Section */
.shop-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* NOTE: .shop-layout styles moved to veikals.html inline styles */

/* Sidebar Filters */
.shop-sidebar {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    align-self: start;
    height: auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.shop-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    padding: 20px 20px 15px 20px;
    border-bottom: 2px solid #ff6b35;
    flex-shrink: 0;
}

.sidebar-filters-container {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.sidebar-filter {
    margin-bottom: 15px;
}

.sidebar-filter label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a2e;
    font-size: 13px;
}

.sidebar-filter label input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
    cursor: pointer;
}

.sidebar-filter .filter-select,
.sidebar-filter .filter-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 13px;
    transition: border-color 0.3s ease;
}

.sidebar-filter .filter-select:focus,
.sidebar-filter .filter-input:focus {
    outline: none;
    border-color: #ff6b35;
}

/* Main Content Area */
.shop-main {
    min-height: 500px;
}

/* Responsive - Stack on mobile */
@media (max-width: 768px) {
    .shop-layout {
        grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
        position: static;
    }
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    animation: slideIn 0.3s ease;
}

.cart-notification.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.cart-notification.quick-hide {
    display: block;
    animation: quickSlideOut 0.2s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes quickSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Old filters - kept for compatibility but unused */
.shop-filters {
    display: none;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Products Grid */
.shop-section .products-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
}

.shop-section .product-card {
    background: white !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.shop-section .product-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
}

.shop-section .product-image {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    background: #f8f9fa !important;
    padding: 15px !important;
    display: block !important;
}

.shop-section .product-info {
    padding: 20px !important;
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background: white !important;
}

.shop-section .product-brand {
    font-size: 12px !important;
    text-transform: uppercase !important;
    color: #ff6b35 !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.shop-section .product-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
    margin-bottom: 10px !important;
    line-height: 1.4 !important;
    display: block !important;
}

.shop-section .product-details {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 15px !important;
}

.shop-section .product-tag {
    background: #f0f0f0 !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    color: #555 !important;
    display: inline-block !important;
}

.shop-section .product-tag.season {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.shop-section .product-price {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ff6b35 !important;
    margin-bottom: 15px !important;
    margin-top: auto !important;
    display: block !important;
}

.shop-section .product-stock {
    font-size: 13px !important;
    color: #28a745 !important;
    margin-bottom: 15px !important;
    display: block !important;
}

.shop-section .product-stock.low-stock {
    color: #ffc107 !important;
}

.shop-section .product-stock.out-of-stock {
    color: #dc3545 !important;
}

.shop-section .add-to-cart-btn {
    width: 100% !important;
    padding: 12px !important;
    background: #ff6b35 !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.shop-section .add-to-cart-btn:hover {
    background: #e55a2b !important;
}

.add-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.empty-state h3 {
    font-size: 24px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    font-size: 16px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 10px 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.pagination button:hover:not(:disabled) {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.pagination button.active {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-info {
    padding: 10px 16px;
    color: #666;
    font-size: 14px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #e55a2b;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.5);
}

.scroll-to-top:active {
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 768px) {
    .shop-filters {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .cart-notification {
        right: 10px;
        left: 10px;
        top: 80px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .shop-section {
        padding: 30px 0;
    }
}

/* Montāža Info Modal */
.montaza-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.montaza-modal-overlay.show {
    opacity: 1;
}

.montaza-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.montaza-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.montaza-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.montaza-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.montaza-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.montaza-modal-body {
    padding: 24px;
    text-align: center;
}

.montaza-modal-body p {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #666;
}

.montaza-link {
    display: inline-block;
    padding: 12px 24px;
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.montaza-link:hover {
    background: #e55a28;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

/* Mobile Product Card Fixes */
@media (max-width: 767px) {
    .shop-section .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .shop-section .product-image {
        height: 200px !important;
        padding: 20px !important;
    }
    
    .shop-section .product-info {
        padding: 15px !important;
    }
    
    .shop-section .product-title {
        font-size: 1rem !important;
    }
    
    .shop-section .product-details {
        font-size: 0.85rem !important;
    }
    
    .products-grid {
        padding: 0 !important;
        gap: 15px !important;
    }
}
