/* Category Page Custom CSS */

.page-banner {
    background-image: url(https://futurcrop.com/wp-content/uploads/2023/06/ingeniero-agronomo-1-1.jpeg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.page-banner-box {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 60px 40px;
    text-align: center;
    width: 90%;
    max-width: 1000px;
}

.page-banner-heading {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.page-banner-sub-heading {
    font-size: 2.2rem;
    font-family: "Georgia", serif;
    color: #fff !important;
    font-style: italic;
}

.cart-icon-bar {
    background-color: #d4af37;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 75%;
    margin: 50px auto 40px;
    position: relative;
    z-index: 10;
    border-radius: 2px;
}

.cart-icon-bar i {
    font-size: 2rem;
    color: #fff;
}

/* Section Title Styling */
.section-title-main {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title-underline {
    width: 80px;
    height: 4px;
    background-color: #d4af37;
    /* Gold color matching the icon bar */
    border-radius: 2px;
}

.section-title-sub {
    font-size: 1.1rem;
    color: #777;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-grid-container {
    padding-bottom: 50px;
}

.category-card-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card-wrapper:hover {
    transform: scale(1.02);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.category-card-wrapper:hover .category-card-img {
    transform: scale(1.1);
}

.category-card-overlay {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.85);
    width: 85%;
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    transition: background 0.3s ease;
}

.category-card-wrapper:hover .category-card-overlay {
    background: rgba(255, 255, 255, 0.95);
}

.category-card-title {
    color: #000;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
    text-transform: uppercase;
    line-height: 1.2;
}

.category-card-subtitle {
    color: #666;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    text-transform: uppercase;
}

/* Responsiveness */
@media (max-width: 768px) {
    .page-banner {
        height: 300px;
    }

    .page-banner-heading {
        font-size: 2rem;
        letter-spacing: 2px;
    }

    .page-banner-sub-heading {
        font-size: 1.4rem;
    }

    .page-banner-box {
        padding: 30px 20px;
    }

    .cart-icon-bar {
        width: 90%;
        margin-top: 30px;
    }

    .category-card-overlay {
        width: 90%;
        padding: 15px 5px;
    }

    .category-card-title {
        font-size: 0.9rem;
    }
}

/* Shop realtime search (shop + product-category pages) */
.page-banner + .shop-search-wrap {
    margin-top: 28px;
}

.shop-search-wrap {
    padding-top: 0;
    margin-bottom: 2.5rem;
}

.shop-search-inner {
    max-width: 640px;
}

.shop-search-input-group .form-control {
    min-height: 48px;
    font-size: 1.05rem;
}

.shop-search-input-group .input-group-text {
    min-height: 48px;
    border-color: #ced4da;
}

.shop-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 2000;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 70vh;
    overflow-y: auto;
}

.shop-search-section {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.shop-search-section:last-child {
    border-bottom: none;
}

.shop-search-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    padding: 4px 14px 8px;
    font-weight: 700;
}

.shop-search-item {
    padding: 10px 14px;
    color: #333 !important;
    text-decoration: none !important;
    border-top: 1px solid #f5f5f5;
}

.shop-search-item:hover {
    background: #f8f9fa;
}

.shop-search-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
}

.shop-search-item-title {
    font-weight: 600;
    color: #184A45;
}