body {
    font-family: "Roboto", sans-serif;
    background: #fff;
    color: #111;
}
.site-header .logo img { max-width: 253px; }
.btt {
    background-color: #37475A;
    color: white;
    text-align: center;
    padding: 15px 0;
    cursor: pointer;
}
.btt:hover { background-color: #485769; }
.tbay-footer { background: #232f3e; color: #dddddd; }
.tbay-footer .tbay-addon .tbay-addon-title { color: #ffffff; }
.tbay-footer .tbay-addon .tbay-addon-title .subtitle, .contact-info li, .copyright { color: #dddddd; }
.tbay-footer .menu li > a, .copyright a, .contact-info li a { color: #dddddd; }
.tbay-footer .menu li > a:hover, .copyright a:hover, .tbay-footer .menu li.active > a { color: #f4d020; }
.product-block .name { font-weight: 700; color: black; }
.woocommerce-Price-amount { font-weight: 700; }
.tbay-search-form .form-control { width: 100%; }
.tbay-search-form .button-search { background: #ca0815; color: #fff; border: none; }
input[type="text"], input[type="email"], input[type="password"] { padding: 8px; border: 1px solid #ddd; border-radius: 2px; }
.menu-category-menu-image-container img { max-width: 24px; margin-right: 8px; vertical-align: middle; }
/* Fix Bootstrap dropdown function */
.dropdown.open .dropdown-menu,
.dropdown.show .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
}

/* Fallback for missing icon fonts */
.linear-icon-minus:before { content: "−"; }
.linear-icon-plus:before { content: "+"; }
.linear-icon-cart:before { content: "🛒"; }
.linear-icon-user:before { content: "👤"; }
.linear-icon-heart:before { content: "♡"; }
.linear-icon-magnifier:before { content: "🔍"; }
.linear-icon-home3:before { content: "🏠"; }
.linear-icon-chevron-left:before { content: "‹"; }
.linear-icon-chevron-right:before { content: "›"; }
.linear-icon-arrow-left:before { content: "←"; }
.linear-icon-cross:before { content: "×"; }
.linear-icon-cross2:before { content: "×"; }

/* Ensure icons display properly */
[class*="linear-icon-"]:before,
[class*="icon-"]:before {
    font-family: inherit;
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    text-decoration: inherit;
    width: 1em;
    text-align: center;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
}

/* Product Modal Styles */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal {
    z-index: 1050;
}

.modal-lg {
    max-width: 900px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
}

.close {
    padding: 0;
    background-color: transparent;
    border: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    cursor: pointer;
}

.close:hover {
    opacity: 0.75;
}

/* Product Grid Responsive */
@media (max-width: 768px) {
    .product.col-lg-3.col-md-4.col-sm-6.col-xs-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .product.col-lg-3.col-md-4.col-sm-6.col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Product Block Styling */
.product-block {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.product-block:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.product-block .image {
    position: relative;
    margin: 0;
}

.product-block .image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-block:hover .image img {
    transform: scale(1.05);
}

.product-block .out-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.product-block .caption {
    padding: 15px;
}

.product-block .name {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.product-block .name a {
    color: #333;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-block .name a:hover {
    color: #ca0815;
}

/* Pagination Styling */
.tbay-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-numbers {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    margin: 0 2px;
}

.page-numbers a,
.page-numbers span {
    display: block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers a:hover {
    background-color: #ca0815;
    color: white;
    border-color: #ca0815;
}

.page-numbers .current {
    background-color: #ca0815;
    color: white;
    border-color: #ca0815;
}

.page-numbers .dots {
    border: none;
    color: #999;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading:after {
    content: "Loading...";
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: "Loading"; }
    40% { content: "Loading."; }
    60% { content: "Loading.."; }
    80%, 100% { content: "Loading..."; }
}

/* Search Form Enhancements */
.tbay-search-form .form-group {
    margin-bottom: 0;
}

.tbay-search-form .input-group {
    display: flex;
    width: 100%;
}

.tbay-search-form .form-control {
    flex: 1;
    border: 2px solid #ddd;
    border-radius: 4px 0 0 4px;
    padding: 10px 15px;
}

.tbay-search-form .button-search {
    background-color: #ca0815;
    border: 2px solid #ca0815;
    color: white;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.tbay-search-form .button-search:hover {
    background-color: #bf0713;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .sidebar {
        margin-top: 30px;
    }
    
    .product-block .caption {
        padding: 10px;
    }
    
    .page-numbers a,
    .page-numbers span {
        padding: 6px 8px;
        font-size: 14px;
    }
}

/* Filter mobile styles */
.filter-mobile {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

.filter-mobile.active {
    display: block;
}

.filter-mobile .content {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: white;
    padding: 20px;
    overflow-y: auto;
}

.filter-mobile .close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* Error handling */
.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.retry-button {
    background-color: #ca0815;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.retry-button:hover {
    background-color: #bf0713;
}

/* No products found */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.no-products p {
    font-size: 16px;
    line-height: 1.5;
}

/* Category Menu Enhancements */
.menu.treeview.nav li.active > a {
    background-color: #ca0815;
    color: white;
    border-radius: 4px;
}

.menu.treeview.nav li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.menu.treeview.nav li a:hover {
    background-color: #f5f5f5;
    color: #ca0815;
}

.menu.treeview.nav li a img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.menu.treeview.nav li a .count {
    margin-left: auto;
    background-color: #eee;
    color: #666;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
}

.menu.treeview.nav li.active a .count {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Product Category in Product Cards */
.product-category {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Price styling in product cards */
.price {
    font-weight: bold;
    color: #ca0815;
    margin-top: 8px;
}

/* Filter Mobile Button */
.filter-toggle-btn {
    display: none;
    background-color: #ca0815;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    cursor: pointer;
}

@media (max-width: 991px) {
    .filter-toggle-btn {
        display: inline-block;
    }
}

/* Loading state */
.products-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.products-loading:after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ca0815;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal backdrop */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px;
    top: 50%;
    transform: translateY(-50%);
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 30px auto;
    }
}

@media (min-width: 992px) {
    .modal-lg {
        max-width: 800px;
    }
}

/* Enhanced product grid responsiveness */
@media (max-width: 1199px) {
    .product.col-lg-3 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 991px) {
    .product.col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575px) {
    .product.col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}