/* ==========================================================================
   Bundle Detail Page CSS Stylesheet
   Design System & Theme Integration (Green / Premium Clean Theme)
   ========================================================================== */

:root {
    --pa-primary: #198754;
    --pa-primary-dark: #146c43;
    --pa-primary-light: #eef7f2;
    --pa-accent: #00a651;
    --pa-bg-muted: #f8f9fa;
    --pa-border-color: rgba(0, 0, 0, 0.08);
    --pa-text-dark: #212529;
    --pa-text-muted: #5a6e85;
    --pa-font-sans: 'Outfit', 'Poppins', sans-serif;
    --pa-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --pa-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.08);
    --pa-radius-card: 16px;
    --pa-radius-item: 8px;
}

/* Base section wrapper styling */
.bundle-detail-section {
    background-color: var(--pa-bg-muted);
    font-family: var(--pa-font-sans);
    color: var(--pa-text-dark);
}

/* Card Styling */
.bundle-card {
    border-radius: var(--pa-radius-card);
    border: 1px solid var(--pa-border-color);
    box-shadow: var(--pa-shadow);
    padding: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bundle-card:hover {
    box-shadow: var(--pa-shadow-hover);
}

/* Hero elements */
.bundle-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    aspect-ratio: 4 / 3;
}

/* Hero product-image collage — larger version of the Home page bundle card
   collage (bundle-bg-blur / bundle-img-group / bundle-img-circle / bundle-img-more). */
.bundle-img-wrapper--collage {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: auto;
    min-height: 340px;
    padding: 36px 16px;
}

.bundle-img-wrapper--collage .bundle-bg-blur {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    filter: blur(16px);
    z-index: 0;
}

.bundle-img-group--hero {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    position: relative;
    z-index: 1;
}

.bundle-img-group--hero .bundle-img-circle,
.bundle-img-group--hero .bundle-img-more {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 5px solid #fff;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background: #fff;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.bundle-img-group--hero .bundle-img-circle:hover,
.bundle-img-group--hero .bundle-img-more:hover {
    transform: translateY(-8px) scale(1.1);
    z-index: 10 !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #85b943;
}

.bundle-img-group--hero > *:nth-child(1) {
    margin-left: 0;
}

.bundle-img-group--hero > *:nth-child(2) {
    margin-left: -55px;
}

.bundle-img-group--hero > .bundle-img-more {
    grid-column: span 2;
    justify-self: center;
    margin-top: -70px;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f5f7;
    color: #4b5563;
    font-size: 2rem;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .bundle-img-group--hero .bundle-img-circle,
    .bundle-img-group--hero .bundle-img-more {
        width: 130px;
        height: 130px;
    }

    .bundle-img-group--hero > *:nth-child(2) {
        margin-left: -32px;
    }

    .bundle-img-group--hero > .bundle-img-more {
        margin-top: -42px;
        font-size: 1.4rem;
    }
}

.bundle-sku {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.bundle-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--pa-text-dark);
    line-height: 1.3;
}

.bundle-description {
    font-size: 14.5px;
    color: var(--pa-text-muted);
    line-height: 1.6;
}

/* Badges and pills */
.badge-pill-outline {
    border: 1.5px solid var(--pa-primary);
    background-color: var(--pa-primary-light);
    color: var(--pa-primary);
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.bg-light-green {
    background-color: var(--pa-primary-light);
}

.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }
.font-weight-bold { font-weight: 700; }



/* Quantity Selector */
.qty-selector {
    background-color: #f1f3f5;
    border: 1px solid var(--pa-border-color) !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.qty-btn {
    transition: background-color 0.2s ease;
    color: var(--pa-text-dark);
}

.qty-btn:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.qty-btn:focus {
    box-shadow: none;
}

/* CTA buttons */
.btn-cart-premium {
    background-color: #00A651;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.3);
}

.btn-cart-premium:hover {
    background-color: var(--pa-primary-dark);
    box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
    color: #ffffff;
}

.btn-cart-premium:active {
    transform: translateY(0);
}

.text-dark-green {
    color: var(--pa-primary-dark);
}

.bg-secondary-light {
    background-color: rgba(25, 135, 84, 0.1);
}

/* Included Item details list */
.included-list {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for list */
.included-list::-webkit-scrollbar {
    width: 6px;
}
.included-list::-webkit-scrollbar-track {
    background: transparent;
}
.included-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.included-plant-item {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.included-plant-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.item-thumb-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--pa-radius-item);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--pa-border-color);
}

.item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Math breakdown */
.math-summary {
    font-size: 14.5px;
}

.math-summary-prices {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.math-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.math-summary-row--bundle {
    align-items: center;
}

.math-summary-bundle-value {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    text-align: right;
}

.math-summary-save-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    background-color: var(--pa-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.bg-green {
    background-color: var(--pa-primary) !important;
}

.bundle-save-badge {
    font-size: 1.05rem;
    padding: 0.75rem 1.25rem;
    line-height: 1.2;
}

.bundle-save-badge .bi-tag-fill {
    font-size: 1.1rem;
}

.bundle-checkout-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.bundle-checkout-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bundle-checkout-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.bundle-checkout-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pa-text-muted, #6c757d);
}

.bundle-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.bundle-stock-pill--in {
    color: #198754;
    background: rgba(25, 135, 84, 0.1);
}

.bundle-stock-pill--out {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.bundle-checkout-qty .qty-selector {
    min-width: 110px;
}

.bundle-checkout-qty .qty-selector input {
    width: 38px !important;
    font-size: 0.9375rem;
}

.qty-selector--disabled {
    opacity: 0.55;
    pointer-events: none;
}

.bundle-checkout-actions .btn-cart-premium {
    max-width: none;
    padding: 0.85rem 1.25rem;
    border-radius: 12px !important;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.bundle-checkout-actions .btn-cart-premium:disabled {
    background-color: #adb5bd;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.85;
}

/* Logistics / Logistics components */


.logistics-title {
    font-size: 15px;
    color: var(--pa-text-dark);
}

.logistics-desc {
    font-size: 13.5px;
}

/* Store details styles */
@media (min-width: 992px) {
    .more-from-store {
        flex: 0 0 350px !important;
        width: 350px !important;
        max-width: 350px !important;
    }
    .bundle-left-col,
    .bundle-mid-col {
        flex: 1 1 0% !important;
        max-width: none !important;
    }
}

.bundle-store-widget {
    padding: 0 !important;
    overflow: hidden;
    background-color: #ffffff;
}

.bundle-store-profile {
    padding: 20px;
}

.bundle-store-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bundle-store-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--pa-primary-light);
    color: var(--pa-primary);
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bundle-store-info {
    min-width: 0;
}

.bundle-store-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--pa-text-dark);
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.bundle-store-name:hover {
    color: var(--pa-primary) !important;
}

.bundle-store-meta {
    font-size: 13px;
    color: var(--pa-text-muted);
}

.bundle-store-address {
    color: var(--pa-text-muted);
    font-size: 13.5px;
}

.bundle-store-btn {
    border: 1.5px solid rgba(25, 135, 84, 0.2);
    color: var(--pa-primary);
    background-color: transparent;
    transition: all 0.2s ease;
    padding: 10px 16px;
    font-size: 14.5px;
}

.bundle-store-btn:hover {
    background-color: var(--pa-primary-light);
    border-color: var(--pa-primary);
    color: var(--pa-primary-dark);
}

/* Listings section */
.bundle-store-listings {
    border-top: 1px solid var(--pa-border-color);
    display: flex;
    flex-direction: column;
}

.bundle-store-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--pa-border-color);
    transition: background-color 0.2s ease;
    text-decoration: none !important;
}

.bundle-store-item:last-child {
    border-bottom: none;
}

.bundle-store-item:hover {
    background-color: var(--pa-bg-muted);
}

.bundle-store-thumb-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--pa-border-color);
}

.bundle-store-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bundle-store-item-title {
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--pa-text-dark);
}

.bundle-store-item-scientific {
    font-size: 12px;
    color: var(--pa-text-muted);
}

.bundle-store-item-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--pa-text-dark);
}

/* Miscellaneous Helpers */
.cursor-pointer {
    cursor: pointer;
}


/* Toast overrides */
.toast.bg-green {
    box-shadow: 0 10px 30px rgba(25, 135, 84, 0.4);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .bundle-card {
        padding: 12px;
    }
    .bundle-title {
        font-size: 22px;
    }
}

/* Expandable "See More/Less" bundle description -- same markup/behavior as
   the Store Bundles list and PDP "Available in Bundles" cards. */
.bundle-desc-wrap .bundle-desc-full {
    display: block;
}

.bundle-desc-toggle {
    display: inline-block;
    margin-left: 4px;
    color: var(--pa-primary);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.bundle-desc-toggle:hover,
.bundle-desc-toggle:focus {
    text-decoration: none;
}
