/* ==========================================================================
   Bundle System Styles
   ========================================================================== */

/* ───── Bundle Card ───── */
.aos-bundle-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--aos-surface);
    border-radius: var(--aos-radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--aos-border);
}

.aos-bundle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aos-shadow-md);
}

.aos-bundle-card__media {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect ratio */
    background: #f8fafc;
    overflow: hidden;
}

.aos-bundle-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.aos-bundle-card:hover .aos-bundle-card__image {
    transform: scale(1.05);
}

.aos-bundle-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
}

.aos-bundle-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.aos-bundle-card__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.aos-bundle-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.aos-bundle-card__title a {
    color: var(--aos-text);
    text-decoration: none;
}

.aos-bundle-card__desc {
    font-size: 0.875rem;
    color: var(--aos-text-light);
    margin-bottom: 16px;
    flex: 1;
}

.aos-bundle-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.aos-bundle-card__price-regular {
    text-decoration: line-through;
    color: var(--aos-text-lighter);
    font-size: 0.875rem;
}

.aos-bundle-card__price-sale {
    color: var(--aos-primary);
    font-weight: 800;
    font-size: 1.25rem;
}

/* ───── Bundle Landing Page (Single) ───── */
.aos-bundle-landing {
    padding-bottom: 80px; /* Space for mobile sticky CTA */
}

/* Hero Section */
.aos-bundle-hero {
    padding: 40px 0 60px;
    background: linear-gradient(to bottom, #f8fafc, #ffffff);
}

.aos-bundle-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.aos-bundle-hero__media {
    position: relative;
    border-radius: var(--aos-radius-lg);
    overflow: hidden;
    box-shadow: var(--aos-shadow-lg);
}

.aos-bundle-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

.aos-bundle-hero__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 1rem;
    padding: 6px 16px;
}

.aos-bundle-hero__title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--aos-text);
    line-height: 1.2;
}

.aos-bundle-hero__desc {
    font-size: 1.125rem;
    color: var(--aos-text-light);
    margin-bottom: 24px;
    line-height: 1.6;
}

.aos-bundle-hero__pricing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    background: #f1f5f9;
    padding: 16px 24px;
    border-radius: var(--aos-radius-md);
    display: inline-flex;
}

.aos-bundle-hero__price-regular {
    text-decoration: line-through;
    color: var(--aos-text-light);
    font-size: 1.25rem;
}

.aos-bundle-hero__price-sale {
    color: var(--aos-primary);
    font-weight: 800;
    font-size: 2rem;
}

.aos-bundle-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 300px;
}

.aos-bundle-hero__trust {
    font-size: 0.875rem;
    color: var(--aos-success);
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}

/* What's Included */
.aos-bundle-includes {
    padding: 60px 0;
    background: #ffffff;
}

.aos-bundle-includes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.aos-bundle-includes__item {
    text-align: center;
    background: #f8fafc;
    border-radius: var(--aos-radius-md);
    padding: 16px;
    border: 1px solid var(--aos-border);
}

.aos-bundle-includes__item-link {
    text-decoration: none;
    color: var(--aos-text);
    display: block;
}

.aos-bundle-includes__item-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 16px;
    mix-blend-mode: multiply;
}

.aos-bundle-includes__item-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.aos-bundle-includes__item-price {
    font-size: 0.875rem;
    color: var(--aos-text-light);
}

/* Bundle Details */
.aos-bundle-details {
    padding: 60px 0;
    background: #f8fafc;
}

.aos-bundle-details__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.aos-bundle-details__col h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--aos-primary);
}

.aos-bundle-details__col p {
    color: var(--aos-text-light);
    line-height: 1.8;
}

.aos-bundle-details__col ul {
    list-style: none;
    padding: 0;
}

.aos-bundle-details__col ul li {
    position: relative;
    padding-right: 24px;
    margin-bottom: 12px;
    color: var(--aos-text);
}

.aos-bundle-details__col ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--aos-success);
    font-weight: bold;
}

/* Mobile Sticky */
.aos-bundle-sticky-mobile {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--aos-surface);
    padding: 12px 16px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
    z-index: 999;
    display: none; /* Desktop hidden */
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aos-bundle-sticky-mobile.is-visible {
    transform: translateY(0);
}

.aos-bundle-sticky-mobile__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: var(--aos-container-width);
    margin: 0 auto;
}

.aos-bundle-sticky-mobile__info {
    display: flex;
    flex-direction: column;
}

.aos-bundle-sticky-mobile__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--aos-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.aos-bundle-sticky-mobile__price {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--aos-primary);
}

/* ───── Archive Page ───── */
.aos-bundle-archive {
    padding: 60px 0;
    background: #f8fafc;
}

.aos-bundle-archive__header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.aos-bundle-archive__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--aos-primary);
    margin-bottom: 16px;
}

.aos-bundle-archive__subtitle {
    font-size: 1.125rem;
    color: var(--aos-text-light);
    margin-bottom: 32px;
}

.aos-bundle-archive__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.aos-bundle-filter {
    background: #ffffff;
    border: 1px solid var(--aos-border);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--aos-text);
    transition: all 0.2s ease;
}

.aos-bundle-filter:hover {
    background: #f1f5f9;
}

.aos-bundle-filter.is-active {
    background: var(--aos-primary);
    color: #ffffff;
    border-color: var(--aos-primary);
}

.aos-bundle-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* Responsive */
@media (max-width: 991px) {
    .aos-bundle-hero__inner {
        grid-template-columns: 1fr;
    }
    .aos-bundle-hero__actions {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .aos-bundle-details__grid {
        grid-template-columns: 1fr;
    }
    .aos-bundle-hero__title {
        font-size: 2rem;
    }
    .aos-bundle-sticky-mobile {
        display: block; /* Show on mobile */
    }
    /* Hide the main add to cart on mobile if sticky is visible, or keep both. Keeping both is fine. */
}
