.bundle-details-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.bundle-details-page .breadcrumb {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-bottom: 24px;
}

.bundle-details-page .breadcrumb a {
    color: inherit;
}

.bundle-hero-card {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: var(--box-shadow-light);
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 28px;
    align-items: center;
}

.bundle-hero-image {
    background: #f8f5f1;
    border-radius: 16px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.bundle-image-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.bundle-image-stack::after {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(50% + 70px);
    width: 58%;
    height: 42px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(111, 86, 70, 0.2) 0%, rgba(111, 86, 70, 0.1) 34%, rgba(111, 86, 70, 0) 78%);
    filter: blur(6px);
}

.bundle-stack-item {
    position: absolute;
    left: 50%;
    top: calc(50% + 10px - (var(--stack-index) * 8px));
    width: 36%;
    max-width: 170px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 28px rgba(72, 53, 42, 0.16);
    transform-origin: center center;
    z-index: calc(10 - var(--stack-index));
}

.bundle-stack-item:nth-child(1) {
    transform: translate(-92%, -50%) rotate(-18deg);
}

.bundle-stack-item:nth-child(2) {
    transform: translate(-46%, -50%) rotate(-7deg);
}

.bundle-stack-item:nth-child(3) {
    transform: translate(-2%, -50%) rotate(7deg);
}

.bundle-stack-item:nth-child(4) {
    transform: translate(42%, -50%) rotate(18deg);
}

.bundle-image-stack--count-1 .bundle-stack-item:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg);
}

.bundle-image-stack--count-2 .bundle-stack-item:nth-child(1) {
    transform: translate(-74%, -50%) rotate(-14deg);
}

.bundle-image-stack--count-2 .bundle-stack-item:nth-child(2) {
    transform: translate(-26%, -50%) rotate(14deg);
}

.bundle-image-stack--count-3 .bundle-stack-item:nth-child(1) {
    transform: translate(-82%, -50%) rotate(-16deg);
}

.bundle-image-stack--count-3 .bundle-stack-item:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-2deg);
}

.bundle-image-stack--count-3 .bundle-stack-item:nth-child(3) {
    transform: translate(-18%, -50%) rotate(12deg);
}

.bundle-image-stack--count-4 .bundle-stack-item:nth-child(1) {
    transform: translate(-92%, -50%) rotate(-18deg);
}

.bundle-image-stack--count-4 .bundle-stack-item:nth-child(2) {
    transform: translate(-46%, -50%) rotate(-7deg);
}

.bundle-image-stack--count-4 .bundle-stack-item:nth-child(3) {
    transform: translate(-2%, -50%) rotate(7deg);
}

.bundle-image-stack--count-4 .bundle-stack-item:nth-child(4) {
    transform: translate(42%, -50%) rotate(18deg);
}

.bundle-stack-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bundle-hero-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bundle-purchase-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bundle-hero-content h1 {
    font-size: 1.9rem;
    margin: 0;
}

.bundle-public-id {
    color: var(--text-muted);
}

.bundle-availability.available {
    color: #2e7d32;
    font-weight: 700;
}

.bundle-availability.unavailable {
    color: #c0392b;
    font-weight: 700;
}

.bundle-price-row {
    display: flex;
    gap: 14px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 1.2rem;
}

.bundle-price-old {
    text-decoration: line-through;
    color: var(--text-muted);
}

.bundle-price-new {
    color: #b31212;
    font-weight: 700;
    font-size: 1.5rem;
}

.bundle-save-box {
    width: fit-content;
    background: #b31212;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.bundle-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.bundle-stat {
    background: #f8f5f1;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bundle-stat .label {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bundle-stat .value {
    font-weight: 700;
}

.bundle-action-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.bundle-qty-controls {
    display: grid;
    grid-template-columns: 40px 58px 40px;
    align-items: center;
    border-radius: 999px;
    background: #f3ece6;
    overflow: hidden;
}

.bundle-cover-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bundle-qty-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #4a372c;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.bundle-qty-controls span {
    text-align: center;
    font-weight: 700;
    color: #241a14;
}

.bundle-buy-btn {
    min-height: 44px;
    padding: 0 22px;
    border: none;
    border-radius: 999px;
    background: #5d4e47;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.bundle-buy-btn:disabled {
    background: #b7aea8;
    cursor: not-allowed;
}

.bundle-items-section {
    margin-top: 28px;
}

.bundle-items-section h2 {
    margin-bottom: 16px;
}

.bundle-items-list {
    display: grid;
    gap: 14px;
}

.bundle-item-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--box-shadow-light);
    padding: 16px;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
    color: inherit;
}

.bundle-item-image {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f5f1;
    border-radius: 12px;
    padding: 10px;
}

.bundle-item-image img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.bundle-item-copy h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.bundle-item-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.bundle-item-meta {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 700;
}

.bundle-not-found {
    background: var(--bg-card);
    border-radius: 18px;
    box-shadow: var(--box-shadow-light);
    padding: 36px 28px;
    text-align: center;
}

.bundle-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--brand-primary);
    color: var(--text-inverse);
    margin-top: 16px;
}

@media (max-width: 900px) {
    .bundle-hero-card {
        grid-template-columns: 1fr;
    }

    .bundle-stat-grid {
        grid-template-columns: 1fr;
    }

    .bundle-stack-item {
        width: 34%;
        max-width: 150px;
    }
}

@media (max-width: 640px) {
    .bundle-item-card {
        grid-template-columns: 1fr;
    }

    .bundle-stack-item {
        width: 32%;
        max-width: 120px;
        padding: 12px;
    }
}
