/* ==========================================================================
   /collection/{slug} — Collection detail page
   ========================================================================== */

/* Page wrapper */
.collection-page {
    background: #fff;
    min-height: 100vh;
}

/* Hero section */
.collection-hero {
    background: #fff;
    border-bottom: 1px solid #f3f4f6;
}
.collection-hero > .container {
    padding: 24px 15px 48px;
}

/* Breadcrumb */
.collection-breadcrumb {
    color: #6b7280;
    font-weight: 500;
    text-decoration: none;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Hero image wrapper */
.collection-hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
}
.collection-hero-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.collection-hero-save-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgb(204, 234, 74);
    color: #111827;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Category badges */
.collection-badges {
    gap: 8px;
}
.collection-badge-featured {
    background: #fef9ec;
    color: #92400e;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.collection-badge-featured img {
    vertical-align: -2px;
    margin-right: 4px;
}
.collection-badge-neutral {
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

/* Title */
.collection-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

/* Descriptions */
.collection-short-desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 8px;
}
.collection-full-desc {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Price block */
.collection-price-row {
    gap: 12px;
}
.collection-price-current {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
}
.collection-price-strike {
    font-size: 1rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.collection-price-note {
    font-size: 0.85rem;
    color: #6b7280;
}

/* Savings tag */
.collection-savings-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f5fad4;
    color: #111827;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Format badges */
.collection-formats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.collection-format-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}

/* CTA buttons */
.collection-cta-row {
    gap: 12px;
}
.collection-btn-lime {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
}
.collection-btn-lime:hover {
    background: var(--brand-lime-hover);
    color: var(--brand-dark);
    box-shadow: 0 4px 14px rgba(204, 234, 74, 0.4);
    transform: translateY(-1px);
}
.collection-btn-lime-owned {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    pointer-events: none;
}
.collection-btn-lime svg,
.collection-btn-lime-owned svg {
    vertical-align: -3px;
    margin-right: 8px;
}
.collection-btn-share {
    border: 1px solid var(--brand-gray-300);
    background: transparent;
    border-radius: 20px;
    color: var(--brand-gray-700);
    transition: background 0.18s, border-color 0.18s;
}
.collection-btn-share:hover {
    background: var(--brand-gray-100);
    border-color: var(--brand-gray-400);
}
.collection-btn-free {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
}

/* ==================== What's Included ==================== */
.collection-included {
    background: #fff;
}
.collection-included > .container {
    padding: 48px 15px 64px;
}

/* Section header */
.collection-section-header {
    gap: 12px;
}
.collection-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.collection-pack-count {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 500;
}

/* Pack card */
.collection-pack-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: all 0.2s;
    color: inherit;
}
.collection-pack-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Pack card — desktop image */
.collection-pack-img-desktop {
    width: 220px;
    flex-shrink: 0;
}
.collection-pack-img-inner {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    height: 100%;
    min-height: 220px;
}
.collection-pack-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}
.collection-pack-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pack card — mobile image */
.collection-pack-img-mobile {
    aspect-ratio: 16/9;
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
}
.collection-pack-img-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Pack card — info */
.collection-pack-info {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}
.collection-pack-info-header {
    gap: 16px;
}
.collection-pack-name-row {
    gap: 8px;
}
.collection-pack-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
}
.collection-pack-style-badge {
    background: #f5fad4;
    color: #111827;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.collection-pack-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pack card — price */
.collection-pack-price-col {
    text-align: right;
    flex-shrink: 0;
}
.collection-pack-price-strike {
    font-size: 0.85rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.collection-pack-price-included {
    font-size: 0.8rem;
    color: #111827;
    font-weight: 500;
}

/* Pack card — element count */
.collection-pack-elements {
    font-size: 0.8rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pack card — thumbnails */
.collection-pack-thumbs {
    gap: 6px;
    overflow: hidden;
    flex-wrap: nowrap;
}
.collection-pack-thumb {
    flex: 1;
    min-width: 0;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.collection-pack-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Pack card — view link */
.collection-pack-view {
    font-size: 0.85rem;
    color: #111827;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==================== Sticky Sidebar ==================== */
.collection-sidebar-sticky {
    position: sticky;
    top: 100px;
}
.collection-sidebar-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 24px;
}
.collection-sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}
.collection-sidebar-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
}
.collection-stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
}
.collection-stat-value {
    font-weight: 600;
    color: #111827;
}
.collection-stat-formats {
    font-weight: 600;
    color: #111827;
    text-align: right;
    font-size: 0.85rem;
}

/* Sidebar divider */
.collection-sidebar-hr {
    margin: 4px 0;
    border-color: #e5e7eb;
}

/* Sidebar prices */
.collection-sidebar-individual {
    color: #6b7280;
}
.collection-sidebar-individual-value {
    color: #9ca3af;
    text-decoration: line-through;
}
.collection-sidebar-price-label {
    color: #111827;
    font-weight: 500;
}
.collection-sidebar-price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
}

/* Sidebar savings row */
.collection-sidebar-savings {
    background: #f5fad4;
    margin: 0 -12px;
    padding: 8px 12px;
    border-radius: 8px;
}
.collection-sidebar-savings-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #111827;
    font-weight: 500;
}
.collection-sidebar-savings-value {
    color: #111827;
    font-weight: 700;
}

/* Sidebar CTA */
.collection-sidebar-cta {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
    display: block;
    text-align: center;
}
.collection-sidebar-cta:hover {
    background: var(--brand-lime-hover);
    color: var(--brand-dark);
    box-shadow: 0 4px 14px rgba(204, 234, 74, 0.4);
    transform: translateY(-1px);
}
.collection-sidebar-cta svg {
    vertical-align: -3px;
    margin-right: 6px;
}
.collection-sidebar-owned {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    pointer-events: none;
    text-align: center;
}
.collection-sidebar-owned svg {
    vertical-align: -3px;
    margin-right: 6px;
}

/* Sidebar features */
.collection-sidebar-features {
    border-top: 1px solid #f3f4f6;
}
.collection-feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
    color: #6b7280;
}
.collection-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== Mobile Bottom Bar ==================== */
.collection-mobile-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 12px 16px;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
}
.collection-mobile-bar-inner {
    gap: 16px;
}
.collection-mobile-price {
    flex-shrink: 0;
}
.collection-mobile-price-main {
    font-size: 1.3rem;
    font-weight: 800;
    color: #111827;
}
.collection-mobile-price-strike {
    font-size: 0.75rem;
    color: #9ca3af;
    text-decoration: line-through;
}
.collection-mobile-cta-wrap {
    flex: 1;
}
.collection-mobile-cta {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    text-align: center;
    display: block;
    transition: background 0.18s;
}
.collection-mobile-owned {
    background: var(--brand-lime);
    color: var(--brand-dark);
    border-radius: 20px;
    font-weight: 700;
    pointer-events: none;
    text-align: center;
    display: block;
}

/* Bundle / All Access states */
.collection-bundle-access-box {
    background: #f5fad4;
    border: 1px solid #d4e157;
    border-radius: 12px;
    padding: 20px;
}
.collection-bundle-access-box strong {
    color: #111827;
    font-size: 0.95rem;
}
.collection-btn-downloads {
    background: #111827;
    color: #fff;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.18s;
}
.collection-btn-downloads:hover {
    background: #374151;
    color: #fff;
}
.collection-sidebar-bundle {
    background: #111827;
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.18s;
}
.collection-sidebar-bundle:hover {
    background: #374151;
    color: #fff;
}
.collection-mobile-bundle {
    background: #111827;
    color: #fff;
    border-radius: 20px;
    font-weight: 700;
    text-align: center;
}
.collection-mobile-bundle:hover {
    background: #374151;
    color: #fff;
}
