/* 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;
}

/* Crop category cards on shop page — slightly smaller imagery */
.category-grid-container .category-card-wrapper {
    aspect-ratio: 2 / 1;
    max-height: 200px;
}

.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-all-products-heading {
    margin-top: 28px;
}

.shop-all-products-heading + .shop-search-wrap {
    margin-top: 0;
}

.shop-search-wrap {
    padding-top: 0;
    margin-bottom: 2.5rem;
}

.shop-search-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px 20px;
}

.shop-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: #fff;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.shop-cart-btn:hover,
.shop-cart-btn:focus {
    border-color: #d4af37;
    color: #184a45 !important;
    text-decoration: none !important;
}

.shop-cart-btn .fa-shopping-cart {
    font-size: 1.15rem;
}

.shop-search-inner {
    flex: 1 1 280px;
    max-width: 640px;
    min-width: 0;
}

.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;
}
/* Arrows sit beside the card strip (flex), not over the images */
.shop-category-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    box-sizing: border-box;
}

.shop-category-carousel-viewport {
    flex: 1;
    min-width: 0;
    height: fit-content;
}

.shop-category-carousel-track {
    will-change: transform;
}

.shop-category-carousel-item {
    min-width: 0;
}

.shop-category-carousel-nav {
    flex-shrink: 0;
    align-self: center;
    border: none;
    outline: none;
    box-shadow: none;
    background: rgba(212, 175, 55, 0.95);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.shop-category-carousel-nav:hover,
.shop-category-carousel-nav:focus {
    background: #d4af37;
    color: #fff;
    outline: none;
    box-shadow: none;
}

.shop-category-carousel-nav i {
    color: inherit;
}

@media (max-width: 576px) {
    .shop-category-carousel-wrap {
        gap: 8px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .shop-category-carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}