/* Logo size control */
.main-header .logo-box .logo img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* Ensure header doesn't get too tall */
.main-header .header-lower {
    min-height: 80px;
}

.main-header .inner-container {
    padding: 10px 0;
}

/* Mobile logo */
.mobile-menu .nav-logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

/* Search and Filter Section */
.shop-filters {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f8f8;
    border-radius: 8px;
}

.shop-filters .search-box {
    position: relative;
    margin-bottom: 20px;
}

.shop-filters .search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.shop-filters .search-box input:focus {
    outline: none;
    border-color: var(--theme-color-one);
}

.shop-filters .search-box .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.shop-filters .filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.shop-filters .filter-group {
    flex: 1;
    min-width: 200px;
}

.shop-filters select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
}

/* Product Card Improvements */
.product-block_one-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-block_one-inner:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-block_one-image {
    position: relative;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #f9f9f9;
}

.product-block_one-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures image fits without cropping */
    padding: 20px;
    transition: transform 0.5s ease;
}

.product-block_one-inner:hover .product-block_one-image img {
    transform: scale(1.05);
}

.product-block_one-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-block_one-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-block_one-title a {
    color: #333;
    transition: color 0.3s;
}

.product-block_one-title a:hover {
    color: var(--theme-color-one);
}

.product-block_one-price {
    color: var(--theme-color-one);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
}

.product-block_one-buttons {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.theme-btn.btn-style-three {
    padding: 10px 20px;
    font-size: 14px;
    flex: 1;
    text-align: center;
    justify-content: center;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-results i {
    font-size: 60px;
    margin-bottom: 20px;
    color: #ddd;
}

/* Fix pagination clickability */
.styled-pagination-two li {
    display: inline-block;
    margin: 0 5px;
    vertical-align: middle;
}

.styled-pagination-two li a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}
#productsContainer {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px; /* compensate for padding/gap */
    margin-right: -10px;
    justify-content: center;
}

.product-block_one {
    flex: 0 0 25%; /* 4 per row */
    padding: 0 10px; /* gutter spacing */
    margin-bottom: 30px; /* space between rows */
    box-sizing: border-box;
}
@media (max-width: 992px) {
    .product-block_one {
        flex: 0 0 50%; /* 2 per row on tablets */
    }
}

@media (max-width: 576px) {
    .product-block_one {
        flex: 0 0 100%; /* 1 per row on mobile */
    }
}
