/* Shop Page Specific Styles */
body, html { 
    height: 100%; 
    margin: 0; 
    padding: 0; 
    background-color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

main.main-bg { 
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    background-color: #ffffff;
}

/* Modern Header with Breadcrumb */
.page-banner {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.page-banner-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.breadcrumb-link {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link li {
    color: #6c757d;
}

.breadcrumb-link li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link li a:hover {
    color: #0056b3;
}

/* Category Scroll Section */
.category-scroll-section {
    background: #ffffff;
    padding: 1.5rem 0;
    border-bottom: 1px solid #f1f3f4;
}

.category-scroll-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-scroll-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 80px;
    cursor: pointer;
    text-decoration: none;
    color: #495057;
}

.category-item:hover,
.category-item.active {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.category-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.category-item span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Product Grid Styling */
.product-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
    height: 100%;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.product-thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a5f7a 0%, #0d4b63 100%);
}

.product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-item:hover .product-thumbnail img {
    transform: scale(1.05);
}

/* Product Icons */
.product-icons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.icon-btn:hover {
    background: #ffffff;
    color: #007bff;
    transform: scale(1.1);
}

.icon-btn i {
    font-size: 0.9rem;
}

/* Product Info */
.product-info-wrap {
    padding: 1.25rem;
}

.product-info h4.title {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-info h4.title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-info h4.title a:hover {
    color: #007bff;
}

.product-info p {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

/* Price Styling */
.product-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price.new-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.price del {
    font-size: 0.9rem;
    color: #adb5bd;
}

/* Filter Button */
.filter-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    padding: 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.filter-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
}

.filter-btn i {
    font-size: 1.1rem;
}

/* Search Bar */
.custom-search-bar {
    background: #ffffff;
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(80, 80, 80, 0.08);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s;
    border: 1.5px solid #f0f0f0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.custom-search-bar:focus-within {
    box-shadow: 0 8px 32px rgba(40, 120, 255, 0.13);
    border-color: #c0d5fa;
}

.custom-search-bar input[type="text"] {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    padding: 8px 12px;
    flex: 1;
}

.custom-search-bar button {
    background: linear-gradient(90deg, #4f8cff 0%, #1e62d0 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.custom-search-bar button:hover {
    background: linear-gradient(90deg, #1e62d0 0%, #4f8cff 100%);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-banner-content h1 {
        font-size: 2rem;
    }
    
    .category-scroll-container {
        gap: 1.5rem;
        padding: 0.5rem 1rem;
    }
    
    .category-item {
        min-width: 80px;
        padding: 1rem;
        margin-right: 0.5rem;
    }
    
    .product-info-wrap {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .category-scroll-container {
        gap: 2rem;
        padding: 0.5rem 1.5rem;
    }
    
    .category-item {
        min-width: 90px;
        padding: 1.25rem;
        margin-right: 0.75rem;
    }
}

/* Modal Styling */
#productDetailModal .modal-dialog {
    transition: transform .2s ease;
}

#productDetailModal .modal-content {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    background-color: #ffffff;
}

.modal-backdrop.show {
    opacity: 0.7 !important;
    background-color: #0b0d14 !important;
    backdrop-filter: blur(2px);
}

#productDetailModal .btn-close {
    filter: invert(0.2);
    opacity: .85;
}

#productDetailModal .btn-close:hover {
    opacity: 1;
}

/* Filter Sidebar Styling - High Specificity */
.offcanvas.offcanvas-start {
    background: #ffffff !important;
    border-right: 1px solid #e9ecef !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.1) !important;
}

.offcanvas.offcanvas-start .offcanvas-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #e9ecef !important;
    padding: 1.5rem !important;
}

.offcanvas.offcanvas-start .offcanvas-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    margin: 0 !important;
}

.offcanvas.offcanvas-start .offcanvas-body {
    padding: 1.5rem !important;
    background: #ffffff !important;
}

.offcanvas.offcanvas-start .btn-close {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    color: #6c757d !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s !important;
    filter: none !important;
}

.offcanvas.offcanvas-start .btn-close:hover {
    opacity: 1 !important;
    color: #dc3545 !important;
}

/* Filter Section Styling - High Specificity */
.offcanvas.offcanvas-start .offcanvas-body h6 {
    color: #2c3e50 !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid #e9ecef !important;
}

.offcanvas.offcanvas-start .form-check {
    margin-bottom: 0.75rem !important;
}

.offcanvas.offcanvas-start .form-check-input {
    width: 1.2em !important;
    height: 1.2em !important;
    margin-top: 0.1em !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 0.25em !important;
    transition: all 0.2s !important;
}

.offcanvas.offcanvas-start .form-check-input:checked {
    background-color: #007bff !important;
    border-color: #007bff !important;
}

.offcanvas.offcanvas-start .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

.offcanvas.offcanvas-start .form-check-label {
    color: #495057 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    padding-left: 0.5rem !important;
}

.offcanvas.offcanvas-start .form-check-label:hover {
    color: #007bff !important;
}

/* Product count styling */
.offcanvas.offcanvas-start .form-check-label .text-muted {
    font-size: 0.85rem !important;
    font-weight: 400 !important;
}

/* Responsive filter sidebar */
@media (max-width: 768px) {
    .offcanvas.offcanvas-start {
        width: 85% !important;
    }
    
    .offcanvas.offcanvas-start .offcanvas-header {
        padding: 1rem !important;
    }
    
    .offcanvas.offcanvas-start .offcanvas-body {
        padding: 1rem !important;
    }
}
