/* Rental Shop Page Styles - BabyQuip Inspired */

:root {
    --rental-blue: #007bff;
    --rental-text-dark: #333;
    --rental-text-light: #666;
    --rental-text-white: #fff;
    --rental-bg-light: #f8f9fa;
    --rental-accent-yellow: #ffcc00;
    --rental-hero-bg-image: url('');
}

.rental-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Hero Section */
.rental-shop-hero {
    background-color: var(--rental-bg-light);
    background-image: var(--rental-hero-bg-image);
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 40px;
}

.rental-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--rental-text-white);
    margin-bottom: 20px;
}

.rental-hero-subtitle {
    font-size: 1.25rem;
    color: var(--rental-text-white);
    max-width: 800px;
    margin: 0 auto;
}

/* How It Works Section */
.rental-how-it-works {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
}

.rental-how-it-works .section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.rental-steps {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.rental-step {
    flex: 1;
    text-align: center;
}

.step-icon {
    font-size: 40px;
    color: var(--rental-blue);
    margin-bottom: 20px;
}

.rental-step h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.rental-step p {
    color: var(--rental-text-light);
    line-height: 1.6;
}

/* Categories Section */
.rental-category-group {
    margin-bottom: 80px;
}

.rental-parent-category-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--rental-text-dark);
    text-transform: capitalize;
}

.rental-child-category-section {
    margin-bottom: 50px;
    padding-left: 0;
}

.rental-child-category-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--rental-text-dark);
    padding-left: 15px;
    border-left: 5px solid var(--rental-accent-yellow);
}

/* Safety & Cancellation Cards */
.rental-safety-info,
.rental-cancellation-info {
    padding: 60px 0;
}

.safety-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 40px;
}

.safety-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.safety-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--rental-text-light);
}

.btn-link {
    color: var(--rental-blue);
    font-weight: 700;
    text-decoration: underline;
}

.cancellation-card {
    background: #e7f3ff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #b6d4fe;
}

/* Category Filter Navigation */
.rental-category-filter {
    margin-bottom: 60px;
    padding-top: 20px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.filter-selection {
    gap: 0;
    line-height: 1;
}

.filter-all-link {
    font-weight: 600;
    color: var(--rental-text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.filter-all-link.active {
    color: var(--rental-blue);
}

.filter-wrapper {
    overflow: hidden;
    position: relative;
}

.filter-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 15px;
    scrollbar-width: none;
    padding-top: 15px;
    /* Firefox */
}

.filter-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.filter-item {
    flex: 0 0 100px;
    text-align: center;
    text-decoration: none;
    color: var(--rental-text-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}

.filter-item:hover {
    transform: translateY(-5px);
}

.filter-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #eee;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
    background: #fff;
}

.filter-item:hover .filter-img {
    border-color: var(--rental-blue);
}

.filter-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.filter-img.has-letter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.filter-letter {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rental-blue);
    text-transform: uppercase;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-name {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Category Sections Anchor Offset */
.rental-category-group {
    scroll-margin-top: 100px;
    /* Offset for sticky headers if any */
}

/* Filter Header Wrapper */
.filter-title-wrapper {
    gap: 15px;
}

.category-selected {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--rental-blue);
    display: flex;
    align-items: center;
}

.category-selected::before {
    content: "|";
    padding: 0 5px;
    color: #ccc;
    font-weight: 400;
}

/* Utilities */
.d-flex {
    display: flex !important;
}

.align-items-center {
    align-items: center !important;
}

.cancellation-card p {
    margin: 0;
    font-weight: 600;
    color: #084298;
}

.cancellation-card a {
    text-decoration: underline;
    color: #084298;
}

/* WooCommerce Overrides & Elegant Grid */
.rental-shop-container .woocommerce ul.products {
    margin: 0 -15px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.rental-shop-container .woocommerce ul.products li.product,
li.material.product-type-rental {
    padding: 20px !important;
    flex: 0 1 calc(25% - 30px) !important;
    /* 4 items per row on desktop (>1200px) */
    margin: 15px !important;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    list-style: none !important;
    box-sizing: border-box !important;
}

@media (max-width: 1200px) {

    .rental-shop-container .woocommerce ul.products li.product,
    li.material.product-type-rental {
        flex: 0 1 calc(33.333% - 30px) !important;
        /* 3 items per row on tablet (800px - 1200px) */
    }
}

@media (max-width: 800px) {
    .rental-shop-container .woocommerce ul.products {
        margin: 0 -5px !important;
    }

    .rental-shop-container .woocommerce ul.products li.product,
    li.material.product-type-rental {
        flex: 0 1 calc(50% - 10px) !important;
        /* 2 items per row on mobile (<800px) */
        margin: 5px !important;
        padding: 10px !important;
    }

    .rental-shop-container .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 1rem;
        margin-top: 10px;
    }

    .rental-shop-container .woocommerce ul.products li.product .price {
        font-size: 0.9rem;
    }
}

.rental-shop-container .woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.rental-shop-container .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 15px;
    color: var(--rental-text-dark);
}

.rental-shop-container .woocommerce ul.products li.product .price {
    font-size: 1.1rem;
    color: var(--rental-blue);
    font-weight: 600;
}

.rental-shop-container .woocommerce ul.products li.product .button {
    background-color: var(--rental-blue) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: opacity 0.3s ease !important;
}

.rental-shop-container .woocommerce ul.products li.product .button:hover {
    opacity: 0.9 !important;
}

/* Responsive */
@media (max-width: 991px) {
    .rental-steps {
        flex-direction: column;
        align-items: center;
    }

    .rental-step {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .rental-hero-title {
        font-size: 2.25rem;
    }

    .rental-parent-category-title {
        font-size: 1.75rem;
    }
}