/* Products Page Styles */

.products-section {
    min-height: 60vh;
    background: var(--ob-book-bg);   /* was var(--lavender-light); */
}

/* Brand the treatment-area carousel controls. */
#treatmentAreasCarousel .carousel-control-prev,
#treatmentAreasCarousel .carousel-control-next {
    width: 2rem;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    opacity: 1;
}

#treatmentAreasCarousel .carousel-control-prev {
    left: -2rem;
}

#treatmentAreasCarousel .carousel-control-next {
    right: -2rem;
}

#treatmentAreasCarousel .carousel-control-prev-icon,
#treatmentAreasCarousel .carousel-control-next-icon {
    background-image: none;
    width: 1rem;
    height: 1rem;
    display: inline-block;
    border-top: 0.2rem solid var(--brand-primary);
    border-right: 0.2rem solid var(--brand-primary);
}

#treatmentAreasCarousel .carousel-control-prev-icon {
    transform: rotate(-135deg);
}

#treatmentAreasCarousel .carousel-control-next-icon {
    transform: rotate(45deg);
}

#treatmentAreasCarousel {
    padding-bottom: 2.5rem;
}

@media (max-width: 768px) {
    #treatmentAreasCarousel .carousel-control-prev {
        left: 0.25rem;
    }

    #treatmentAreasCarousel .carousel-control-next {
        right: 0.25rem;
    }
}

#treatmentAreasCarousel .carousel-indicators {
    bottom: 0.25rem;
    margin-bottom: 0;
}

#treatmentAreasCarousel .carousel-indicators [data-bs-target] {
    width: 0.65rem;
    height: 0.65rem;
    border: 0;
    border-radius: 50%;
    background-color: var(--brand-primary);
    opacity: 0.35;
}

#treatmentAreasCarousel .carousel-indicators .active {
    opacity: 1;
}

/* Product Group */
.product-group {
    animation: fadeInUp 0.6s ease-out;
}


.group-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.group-header:hover {
    opacity: 0.8;
}

.group-header h2 {
    font-size: 1.75rem;
    font-family: 'ShaenaFont', 'Poppins', sans-serif;
}

.collapse-icon {
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.group-header[aria-expanded="false"] .collapse-icon {
    transform: rotate(-90deg);
}

.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
}

/* Product Card */
.product-card {
    background: var(--ob-book-card-bg);
    /* sam029 border: 1px solid var(--ob-book-border-subtle); */
    border-radius: var(--ob-book-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    /* sam029 
    box-shadow: var(--ob-book-shadow-soft);
    border-color: var(--ob-book-accent);
    */
}

/* Product Image */
.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    /* background: linear-gradient(135deg, #0a1640 0%, #04123E 100%); */
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-offer-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    background-color: #ffc107;
    color: #212529;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    border-radius: 999px;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ob-book-text-muted);
    font-size: 3rem;
}

/* Product Info */
.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ob-book-text);
    margin-bottom: 1rem;
    min-height: 2.5rem;
    font-family: 'ShaenaFont', 'Poppins', sans-serif;
}

.product-price {
    margin-bottom: auto;
    padding-bottom: 1rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ob-book-accent);
    font-family: 'ShaenaFont', 'Poppins', sans-serif;
}

.price-unit {
    font-size: 0.875rem;
    color: var(--ob-book-text-muted);
    margin-left: 0.25rem;
    font-family: 'ShaenaFont', 'Poppins', sans-serif;
}

/* Cart Summary (Sticky Bottom) */
.cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--ob-book-card-bg);
    border-top: 2px solid var(--ob-book-accent);
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateY(100%);
    transition: all 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-summary.show {
    transform: translateY(0);
}

.cart-summary.expanded {
    padding-bottom: 2rem;
}

.cart-summary-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cart-header {
    padding-bottom: 1rem;
}

.cart-header-buttons {
    flex-shrink: 0;
}

.cart-count {
    background: var(--ob-book-accent);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 1rem;
    font-weight: 600;
    font-size: 0.875rem;
}

.cart-total {
    font-size: 1.1rem;
    /* color: var(--ob-book-text); */
    color: var(--primary-lavender);
}

.cart-toggle-icon {
    transition: transform 0.3s ease;
}

/* Cart Details */
.cart-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0;
}

.cart-details.show {
    max-height: 60vh;
    opacity: 1;
    overflow-y: auto;
    margin-top: 1rem;
    border-top: 1px solid var(--ob-book-border-subtle);
    padding-top: 1rem;
}

/* Cart Items List */
.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cart-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ob-book-border-subtle);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ob-book-text);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.85rem;
    color: var(--ob-book-text-muted);
    margin: 0;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.quantity {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: var(--ob-book-text);
}

.cart-item-total {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ob-book-accent);
    min-width: 70px;
    text-align: right;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--ob-book-border-subtle);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .group-header h2 {
        font-size: 1.5rem;
    }

    .product-image {
        height: 180px;
    }

    .product-title {
        font-size: 1rem;
        min-height: 2rem;
    }

    .price-amount {
        font-size: 1.5rem;
    }

    .cart-summary-content {
        font-size: 0.9rem;
    }

    .cart-total {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .cart-summary-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-summary-content > div {
        justify-content: center !important;
    }
}

/* Alert Styling */
.alert-info {
    background: var(--ob-book-card-bg);
    border-color: var(--ob-book-accent);
    color: var(--ob-book-text);
}

/* Text Utilities */
/* use the one from utilities
.text-white-75 {
    color: var(--ob-book-text-muted) !important;
} */
