/* ===================================================
   1 TO STOCK — Card Shop
   Dark theme: #1a1a1a bg, white text, #1e8d20 accent
   =================================================== */

/* ── Base wrapper ── */
.cards-dark {
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
    /* Override parent theme_light.css custom properties so its !important
       rules resolve to dark-theme values inside the cards wrapper */
    --tss-bg: #1a1a1a;
    --tss-fg: #fff;
    --tss-accent: #1e8d20;
}

/* Green for inline text links only — buttons stay white via their own
   rules. !important needed to beat theme_light.css's blanket
   a:not(.btn-cta) { color: var(--tss-accent) !important } */
.cards-dark p a,
.cards-dark td a,
.cards-dark li a,
.cards-dark .cards-detail-description a,
.cards-dark .cards-catalog-desc a,
.cards-dark .cards-subset-desc a {
    color: #1e8d20 !important;
}

.cards-dark p a:hover,
.cards-dark td a:hover,
.cards-dark li a:hover,
.cards-dark .cards-detail-description a:hover,
.cards-dark .cards-catalog-desc a:hover,
.cards-dark .cards-subset-desc a:hover {
    color: #166b17 !important;
    text-decoration: none;
}

/* ── Shared utilities ── */
.cards-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.cards-badge-green {
    background: #1e8d20;
}

/* All button classes: explicit white text, no !important needed
   since the blanket .cards-dark a rule is gone. .cards-dark prefix
   beats Bootstrap's bare `a { color: #337ab7 }` via specificity. */
.cards-dark .cards-btn-primary,
.cards-dark a.cards-btn-primary {
    background: #1e8d20;
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    border-radius: 3px;
    display: inline-block;
    margin-right: 10px;
    margin-top: 8px;
    transition: background 0.2s;
    text-decoration: none;
}

.cards-dark .cards-btn-primary:hover,
.cards-dark a.cards-btn-primary:hover {
    background: #166b17;
    color: #fff !important;
    text-decoration: none;
}

.cards-dark .cards-btn-secondary,
.cards-dark a.cards-btn-secondary {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    border-radius: 3px;
    display: inline-block;
    margin-top: 8px;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}

.cards-dark .cards-btn-secondary:hover,
.cards-dark a.cards-btn-secondary:hover {
    border-color: #fff;
    color: #fff !important;
    text-decoration: none;
}

.cards-dark .cards-btn-sm,
.cards-dark a.cards-btn-sm {
    background: #1e8d20;
    color: #fff !important;
    border: none;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 6px;
    display: block;
    width: 100%;
    text-decoration: none;
}

.cards-dark .cards-btn-sm:hover,
.cards-dark a.cards-btn-sm:hover {
    background: #166b17;
    text-decoration: none;
}

.cards-dark .cards-btn-ghost,
.cards-dark a.cards-btn-ghost {
    background: transparent;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
    border-radius: 3px;
    cursor: pointer;
    margin-top: 4px;
    text-decoration: none;
}

.cards-dark .cards-btn-ghost:hover,
.cards-dark a.cards-btn-ghost:hover {
    border-color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* ── Site header (mirrors TSS _page_header structure) ── */
.cards-site-header {
    text-align: center;
    padding-top: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cards-dark .cards-site-brand,
.cards-dark a.cards-site-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff !important;
}

.cards-dark .cards-site-brand:hover,
.cards-dark .cards-site-brand:focus,
.cards-dark a.cards-site-brand:hover,
.cards-dark a.cards-site-brand:focus {
    text-decoration: none;
    color: #fff !important;
}

/* Same rendered size as TSS logo (84px wide) */
.cards-site-logo {
    width: 84px;
    height: auto;
    display: block;
}

/* Same as .hero-title: 60px / 500 / letter-spacing 0.5px */
.cards-site-title {
    margin: 0;
    font-size: 60px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.cards-site-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}

/* ── Page header ── */
.cards-page-header {
    padding: 48px 0 24px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cards-page-title {
    font-size: 36px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 8px;
    color: #fff;
}

.cards-page-subtitle {
    color: #999;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── LANDING — catalog rows ── */
.cards-catalog {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.cards-catalog-section {
    background: #1a1a1a;
    border-bottom: 2px solid #111;
}

.cards-catalog-section:nth-child(odd) {
    background: #171717;
}

.cards-catalog-section:last-child {
    border-bottom: none;
}

.cards-catalog-row {
    display: flex;
    align-items: center;
    min-height: 440px;
    max-width: 1140px;
    margin: 0 auto;
}

/* Even rows: reverse — image right, info left */
.cards-catalog-row.set-row-even {
    flex-direction: row-reverse;
}

/* ── Image column ── */
.cards-catalog-img-col {
    flex: 0 0 46%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
}

.cards-catalog-img {
    max-height: 480px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 3px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.cards-catalog-img-fallback {
    width: 100%;
    max-height: 500px;
    min-height: 280px;
    background: linear-gradient(135deg, #0d2e0e 0%, #111 70%);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
}

.cards-catalog-img-fallback-year {
    font-size: 64px;
    font-weight: 500;
    color: rgba(30,141,32,0.4);
    letter-spacing: 4px;
    line-height: 1;
}

.cards-catalog-img-fallback-name {
    font-size: 18px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 12px;
}

/* ── Info column ── */
.cards-catalog-info-col {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 48px 56px;
    border-left: 1px solid rgba(255,255,255,0.07);
}

.set-row-even .cards-catalog-info-col {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.07);
}

.cards-catalog-info-inner {
    max-width: 460px;
}

.cards-catalog-meta {
    margin-bottom: 12px;
}

.cards-catalog-name {
    font-size: 42px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.1;
}

.cards-catalog-desc {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    line-height: 1.7;
    font-weight: normal;
    margin-bottom: 24px;
}

.cards-catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ── Hero split (set detail + pack rip) ── */
.cards-hero-split {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
}

.cards-hero-split-img {
    flex: 0 0 calc(50% - 20px);
    max-height: 350px;
    width: 100%;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.cards-hero-split-single {
    flex: 0 0 50%;
    display: flex;
    justify-content: center;
}

.cards-hero-split-single .cards-hero-split-img {
    flex: none;
    width: auto;
    max-width: 100%;
}

/* Right column on pack rip: button area */
.cards-hero-split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

@media (max-width: 767px) {
    .cards-hero-split {
        flex-direction: column;
        padding: 24px 16px;
        gap: 20px;
    }
    .cards-hero-split-img {
        flex: none;
        max-height: 250px;
        width: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    .cards-hero-split-single {
        flex: none;
        width: 100%;
    }
    .cards-hero-split-content {
        align-items: center;
        text-align: center;
        width: 100%;
    }
}

/* ── SET DETAIL ── */

.cards-set-banner-fallback {
    background: linear-gradient(135deg, #1e8d20 0%, #111 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards-set-banner-fallback h1 {
    color: #fff;
    font-size: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
}

.cards-detail-header {
    padding: 32px 0 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 32px;
}

.cards-detail-title {
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 8px;
}

.cards-detail-description {
    color: rgba(255,255,255,0.7);
    font-weight: normal;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Subset sections ── */
.cards-subset {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cards-subset-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.cards-subset-name {
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.cards-subset-price {
    font-size: 20px;
    color: #1e8d20;
    font-weight: 500;
}

.cards-subset-odds {
    font-size: 14px;
    color: #888;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.cards-subset-desc {
    color: rgba(255,255,255,0.6);
    font-weight: normal;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.6;
}

/* ── Sample images strip ── */
.cards-sample-images {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.cards-sample-img {
    width: 90px;
    height: 126px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #2a2a2a;
}

/* ── Checklist table ── */
.cards-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 16px;
}

.cards-table th {
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 400;
    white-space: nowrap;
}

.cards-table td {
    padding: 7px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.85);
    vertical-align: middle;
}

.cards-table tr:hover td {
    background: rgba(255,255,255,0.03);
}

.cards-table .col-thumb {
    width: 40px;
    padding: 4px 6px;
}

.checklist-thumb {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    background: #2a2a2a;
}

.checklist-thumb-placeholder {
    width: 40px;
    height: 56px;
    background: #2a2a2a;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.06);
}

.cards-table .col-num {
    color: #666;
    width: 50px;
}

.cards-table .col-add {
    width: 80px;
    text-align: right;
}

.cards-table .btn-add-card {
    background: transparent;
    border: 1px solid rgba(30,141,32,0.5);
    color: #1e8d20;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 3px;
    cursor: pointer;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-transform: capitalize;
}

.cards-table .btn-add-card:hover {
    border-color: #1e8d20;
    background: rgba(30,141,32,0.1);
}

/* ── Subset add-full-set row ── */
.cards-subset-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ── PACK RIP ── */
.pack-rip-hero {
    position: relative;
    min-height: 360px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Collapsed hero after rip starts — shrinks to compact bar */
.pack-rip-hero.is-collapsed {
    min-height: 0;
    transition: min-height 0.4s ease;
}

.pack-rip-hero.is-collapsed .cards-hero-split {
    padding: 16px 20px;
    gap: 20px;
}

.pack-rip-hero.is-collapsed .cards-hero-split-img {
    max-height: 100px;
    transition: max-height 0.4s ease;
}

.pack-rip-hero.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.pack-rip-hero-content {
    position: relative;
    z-index: 2;
    padding: 48px 24px;
}

.pack-rip-title {
    font-size: 52px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 8px;
}

.pack-rip-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.cards-dark .pack-rip-btn,
.cards-dark a.pack-rip-btn {
    background: #1e8d20;
    color: #fff !important;
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: capitalize;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.cards-dark .pack-rip-btn:hover,
.cards-dark a.pack-rip-btn:hover {
    background: #166b17;
    color: #fff !important;
    text-decoration: none;
}

.cards-dark .pack-rip-btn:active {
    transform: scale(0.97);
}

.cards-dark .pack-rip-btn:disabled {
    background: #444;
    cursor: not-allowed;
    transform: none;
}

/* ── Pack fan (fanned hand-of-cards layout) ── */
.pack-fan-section {
    padding: 16px 0 24px;
}

.pack-fan {
    position: relative;
    height: 420px;
    max-width: 1140px;
    margin: 0 auto;
    perspective: 1200px;
}

/* ── Individual fan card ── */
.fan-card {
    position: absolute;
    width: 160px;
    bottom: 24px;
    left: 50%;
    transform: translateX(calc(-50% + var(--tx, 0px)))
               translateY(var(--ty, 0px))
               rotate(var(--rot, 0deg));
    transform-origin: bottom center;
    opacity: 0;
    cursor: pointer;
    transition: transform 0.4s ease, opacity 0.3s ease;
}

.fan-card.is-placed {
    opacity: 1;
}

.fan-card.is-rising {
    transform: translateX(calc(-50% + var(--tx, 0px)))
               translateY(calc(var(--ty, 0px) - 25px))
               rotate(var(--rot, 0deg));
    z-index: 20 !important;
}

.fan-card:hover {
    filter: brightness(1.1);
}

/* ── 3D flip inner ── */
.fan-card-inner {
    width: 100%;
    aspect-ratio: 63 / 88;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    border-radius: 6px;
}

.fan-card.is-revealed .fan-card-inner {
    transform: rotateY(180deg);
}

.fan-card-front,
.fan-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
}

/* Front face — rotated 180 so it shows when inner flips */
.fan-card-front {
    transform: rotateY(180deg);
    background: #242424;
}

.fan-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.fan-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
}

.fan-card-placeholder span {
    color: #555;
    font-size: 9px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* Back face — visible by default (face-down card) */
.fan-card-back {
    background: #1a3d1b;
    border: 2px solid rgba(30,141,32,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fan-card-back span {
    color: rgba(255,255,255,0.2);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.8;
}

.fan-card-back-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Gold glow on insert cards after reveal ── */
@keyframes fan-gold-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(255,215,0,0.3); }
    50%      { box-shadow: 0 0 24px rgba(255,215,0,0.6), 0 0 48px rgba(255,215,0,0.15); }
}

.fan-card.is-revealed.is-insert .fan-card-inner {
    animation: fan-gold-glow 2s ease-in-out 3;
}

/* ── Sold out fan cards ── */
.fan-card.is-sold-out .fan-card-front {
    border: 2px solid #cc0000;
    border-radius: 8px;
}

/* ── Nice Pull! callout ── */
.fan-card-pull {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    color: #FFD700;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 8px rgba(0,0,0,0.95), 0 0 16px rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.5s ease 0.3s;
    pointer-events: none;
}

.fan-card.is-revealed.is-insert .fan-card-pull {
    opacity: 1;
}

/* ── Inspect lightbox overlay ── */
.inspect-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    cursor: pointer;
}

.inspect-overlay.is-open {
    display: flex;
}

.inspect-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

/* ── Inspect flipper (3D card flip) ── */
.inspect-flipper {
    width: 300px;
    max-height: 65vh;
    aspect-ratio: 63 / 88;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.inspect-flipper-front,
.inspect-flipper-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.inspect-flipper-front {
    transform: rotateY(0deg);
}

.inspect-flipper-back {
    transform: rotateY(180deg);
    background: #1a3d1b;
    border: 2px solid rgba(30,141,32,0.4);
}

.inspect-flipper.is-flipped .inspect-flipper-front {
    transform: rotateY(-180deg);
}

.inspect-flipper.is-flipped .inspect-flipper-back {
    transform: rotateY(0deg);
}

.inspect-back-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255,255,255,0.2);
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.8;
}

.inspect-flip-hint {
    color: #666;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 10px;
    text-align: center;
}

.inspect-card-img {
    width: 300px;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 16px 64px rgba(0,0,0,0.8);
    display: block;
}

.inspect-placeholder {
    width: 300px;
    height: 420px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.8;
}

.inspect-details {
    text-align: center;
    margin-top: 20px;
    max-width: 320px;
}

/* ── Fan mobile ── */
@media (max-width: 767px) {
    .pack-fan {
        height: 280px;
    }
    .fan-card {
        width: 100px;
        bottom: 20px;
    }
    .fan-card-pull {
        font-size: 8px;
        top: -22px;
    }
    .inspect-flipper {
        width: 85vw;
        max-width: 340px;
    }
    .inspect-card-img {
        width: 85vw;
        max-width: 340px;
    }
    .inspect-placeholder {
        width: 85vw;
        max-width: 340px;
        height: 60vw;
        max-height: 300px;
    }
    .inspect-details {
        max-width: 85vw;
    }
}

/* ── Shared card label styles ── */
.pack-card-subset-badge {
    background: #1e8d20;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.pack-card-num {
    color: #666;
    font-size: 10px;
    letter-spacing: 0.5px;
}

.pack-card-name {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-card-colorway {
    color: #888;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pack-card-price {
    color: #1e8d20;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    padding-top: 0;
}

/* ── Physical Products Section ── */
.cards-physical-section {
    margin-top: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 40px;
}

.cards-physical-title {
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 500;
}

.cards-physical-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.cards-product-card {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.cards-product-card:hover {
    border-color: rgba(255,255,255,0.2);
}

.cards-product-card.is-sold-out {
    opacity: 0.6;
}

.cards-product-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: #2a2a2a;
}

.cards-product-img-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cards-product-info {
    padding: 16px;
}

.cards-product-type {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}

.cards-product-name {
    font-size: 16px;
    color: #fff;
    margin: 4px 0 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.cards-product-desc {
    color: #888;
    font-size: 12px;
    margin: 6px 0 0;
    line-height: 1.4;
}

.cards-product-price {
    color: #1e8d20;
    font-size: 18px;
    font-weight: 500;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .cards-physical-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .cards-product-info {
        padding: 12px;
    }

    .cards-product-name {
        font-size: 14px;
    }
}

/* ── After-reveal buttons ── */
.pack-revealed-actions {
    text-align: center;
    padding: 16px 0 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 8px;
}

.pack-revealed-actions h3 {
    color: #fff;
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* ── CART ── */
.cards-cart-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px;
}

.cards-cart-title {
    font-size: 32px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 32px;
    font-weight: 500;
}

.cards-cart-empty {
    text-align: center;
    padding: 80px 0;
    color: #666;
}

.cards-cart-empty p {
    font-size: 16px;
    margin-bottom: 24px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
}

.cart-table .col-thumb {
    width: 40px;
    padding: 4px 6px;
}

.cart-table .checklist-thumb {
    width: 40px;
    height: 56px;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    background: #2a2a2a;
}

.cart-table .checklist-thumb-placeholder {
    width: 40px;
    height: 56px;
    background: #2a2a2a;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.06);
}

.cart-table th {
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-weight: 400;
    text-align: left;
}

.cart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    vertical-align: top;
}

.cart-item-name {
    font-size: 15px;
    color: #fff;
    margin-bottom: 2px;
}

.cart-item-detail {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cart-item-type-badge {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    vertical-align: middle;
    background: rgba(255,255,255,0.1);
    color: #aaa;
}

/* ── Cart quantity controls ── */
.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 3px;
    overflow: hidden;
}

.cart-qty-btn {
    background: rgba(255,255,255,0.06);
    color: #aaa;
    border: none;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    padding: 0;
}

.cart-qty-btn:hover {
    background: rgba(30,141,32,0.2);
    color: #fff;
}

.cart-qty-value {
    width: 32px;
    text-align: center;
    font-size: 13px;
    color: #fff;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #555;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.15s;
}

.cart-remove-btn:hover {
    color: #e74c3c;
}

.cart-price-col {
    color: #1e8d20;
    font-size: 15px;
    white-space: nowrap;
}

.cart-total-row td {
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: none;
    padding-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.cart-checkout-box {
    background: #242424;
    border-radius: 6px;
    padding: 28px;
    text-align: center;
    margin-top: 8px;
}

.cart-checkout-soon {
    color: #999 !important;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.cart-checkout-note {
    color: #999 !important;
    font-size: 12px;
}

/* ── Nav cart badge ── */
.nav-cart-count {
    background: #1e8d20;
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1;
}

/* ── Back link ── */
/* Reset grayscale.css's p { font-size: 20px; margin: 0 0 35px } inside cards */
.cards-dark p {
    font-size: inherit;
    margin: 0 0 16px;
    line-height: 1.5;
}

.cards-dark .cards-back-link,
.cards-dark a.cards-back-link {
    display: inline-block;
    color: #999 !important;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 6px 0;
    text-decoration: none;
}

.cards-dark .cards-back-link:hover,
.cards-dark a.cards-back-link:hover {
    color: #fff !important;
    text-decoration: none;
}

.cards-back-link::before {
    content: '← ';
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .cards-set-hero {
        min-height: 340px;
    }

    /* Landing catalog rows: stack vertically on mobile */
    .cards-catalog-row,
    .cards-catalog-row.set-row-even {
        flex-direction: column;
    }

    .cards-catalog-img-col {
        flex: none;
        width: 100%;
        padding: 28px 20px 0;
    }

    .cards-catalog-img {
        max-height: 350px;
        margin: 0 auto;
    }

    .cards-catalog-img-fallback {
        min-height: 200px;
    }

    .cards-catalog-img-fallback-year {
        font-size: 48px;
    }

    .cards-catalog-info-col,
    .set-row-even .cards-catalog-info-col {
        flex: none;
        width: 100%;
        padding: 24px 20px 36px;
        border-left: none;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    .cards-catalog-name {
        font-size: 30px;
    }

    .pack-rip-title {
        font-size: 36px;
    }

    .cards-detail-title {
        font-size: 24px;
    }

    .cards-table {
        font-size: 12px;
    }

    .cards-table th,
    .cards-table td {
        padding: 6px 6px;
    }
}

/* ── Sold out states ── */
.cards-sold-out-badge,
.pack-card-sold-out {
    display: inline-block;
    background: transparent;
    color: #999 !important;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #cc0000;
    cursor: default;
}

.cards-sold-out-badge:hover,
.pack-card-sold-out:hover {
    background: transparent;
    border-color: #cc0000;
}

.pack-card-sold-out {
    display: block;
    margin-top: 6px;
    text-align: center;
    width: 100%;
}

/* ── Pack revealed fade-in ── */
.pack-revealed-fade {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.pack-revealed-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Checklist pull highlights ── */
#rip-checklist tr.is-pulled td {
    background: rgba(30,141,32,0.08);
    border-left: 3px solid #1e8d20;
}

/* ── Cart navigation buttons ── */
.cart-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 32px 0 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 24px;
}

@media (max-width: 767px) {
    .cart-nav-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .cart-nav-buttons a {
        text-align: center;
    }
}
