/* ===================================================================
   Pack Page (/packs) - Modern dark design system
   Built on top of .new-home design tokens.
   =================================================================== */

:root {
    --pack-page-bg: #0b0c0e;
    --pack-surface: #151618;
    --pack-surface-strong: #1b1c1f;
    --pack-border: #2a2b2f;
    --pack-border-strong: #3a3b40;
    --pack-text: #f4f4f5;
    --pack-text-muted: #9d9da6;
    --pack-text-soft: #6f7078;
    --pack-accent: #f59e0b;
    --pack-accent-soft: rgba(245, 158, 11, 0.15);
    --pack-accent-hover: #fbbf24;
    --pack-success: #10b981;
    --pack-success-soft: rgba(16, 185, 129, 0.12);
    --pack-radius-sm: 8px;
    --pack-radius-md: 12px;
    --pack-radius-lg: 18px;
    --pack-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.pack-page {
    width: 100%;
    min-height: 100vh;
    background: var(--pack-page-bg);
    color: var(--pack-text);
    font-family: "Inter", "Josefin Sans", Arial, sans-serif;
}

.pack-page *,
.pack-page *::before,
.pack-page *::after {
    box-sizing: border-box;
}

.pack-page a {
    color: inherit;
    text-decoration: none;
}

.pack-page img {
    max-width: 100%;
    display: block;
}

.pack-page__container {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 115px 96px;
}

/* ===== HERO ===== */
.pack-page__hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--pack-border);
    background:
        radial-gradient(60% 80% at 80% 0%, rgba(245, 158, 11, 0.18) 0%, transparent 70%),
        radial-gradient(40% 60% at 0% 100%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        linear-gradient(180deg, #0e1013 0%, #0b0c0e 100%);
}

.pack-page__hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 48px;
    padding: 88px 0 64px;
    align-items: center;
}

.pack-page__hero-eyebrow {
    margin: 0 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pack-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.pack-page__hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--pack-accent);
}

.pack-page__hero-title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 56px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
    max-width: 720px;
}

.pack-page__hero-title em {
    font-style: normal;
    color: var(--pack-accent);
}

.pack-page__hero-sub {
    margin: 0 0 28px;
    color: var(--pack-text-muted);
    font-size: 16px;
    line-height: 1.65;
    max-width: 560px;
}

.pack-page__hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pack-page__hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--pack-border);
    border-radius: 999px;
    background: rgba(21, 22, 24, 0.6);
    backdrop-filter: blur(8px);
    color: var(--pack-text);
    font-size: 13px;
    font-weight: 600;
}

.pack-page__hero-chip svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-page__hero-chip strong {
    color: #ffffff;
    font-weight: 700;
}

/* Featured card */
.pack-page__featured {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-lg);
    background: var(--pack-surface);
    box-shadow: var(--pack-shadow);
    transition: transform 0.4s ease, border-color 0.3s ease;
}

.pack-page__featured:hover {
    transform: translateY(-4px);
    border-color: var(--pack-border-strong);
}

.pack-page__featured-media {
    position: absolute;
    inset: 0;
    background: var(--pack-surface-strong);
}

.pack-page__featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pack-page__featured-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.pack-page__featured-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    z-index: 1;
}

.pack-page__featured-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--pack-accent);
    color: #0b0c0e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 14px;
}

.pack-page__featured-tag svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.pack-page__featured-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pack-page__featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--pack-text-muted);
    font-size: 13px;
    font-weight: 600;
}

.pack-page__featured-meta strong {
    color: #ffffff;
    font-weight: 700;
}

/* ===== STATS BAR ===== */
.pack-page__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--pack-border);
    border-bottom: 1px solid var(--pack-border);
    background: var(--pack-surface);
}

.pack-page__stats-tile {
    padding: 26px 24px;
    border-right: 1px solid var(--pack-border);
}

.pack-page__stats-tile:last-child {
    border-right: 0;
}

.pack-page__stats-value {
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}

.pack-page__stats-label {
    margin-top: 6px;
    color: var(--pack-text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pack-page__stats-tile--accent .pack-page__stats-value {
    color: var(--pack-accent);
}

/* ===== TOOLBAR ===== */
.pack-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 24px;
}

.pack-page__toolbar-title {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.pack-page__toolbar-sub {
    color: var(--pack-text-muted);
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

.pack-page__toolbar-sub strong {
    color: var(--pack-text);
    font-weight: 700;
}

.pack-page__toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pack-page__search {
    position: relative;
    width: 280px;
    max-width: 100%;
}

.pack-page__search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--pack-text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.pack-page__search input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 42px;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-sm);
    background: var(--pack-surface);
    color: var(--pack-text);
    font-size: 14px;
    font-weight: 500;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pack-page__search input::placeholder {
    color: var(--pack-text-soft);
}

.pack-page__search input:focus {
    outline: none;
    border-color: var(--pack-accent);
    background: var(--pack-surface-strong);
}

.pack-page__sort {
    position: relative;
}

.pack-page__sort-select {
    appearance: none;
    -webkit-appearance: none;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-sm);
    background: var(--pack-surface);
    color: var(--pack-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.pack-page__sort-select:focus {
    outline: none;
    border-color: var(--pack-accent);
}

.pack-page__sort::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--pack-text-muted);
    border-bottom: 1.5px solid var(--pack-text-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

/* ===== FILTER CHIPS ===== */
.pack-page__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.pack-page__filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid var(--pack-border);
    border-radius: 999px;
    background: transparent;
    color: var(--pack-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pack-page__filter:hover {
    color: var(--pack-text);
    border-color: var(--pack-border-strong);
    background: var(--pack-surface);
}

.pack-page__filter.is-active {
    background: var(--pack-text);
    color: #0b0c0e;
    border-color: var(--pack-text);
}

.pack-page__filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.pack-page__filter.is-active .pack-page__filter-count {
    background: rgba(0, 0, 0, 0.18);
    color: inherit;
}

/* ===== PACK GRID ===== */
.pack-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.pack-page__empty {
    grid-column: 1 / -1;
    padding: 80px 32px;
    text-align: center;
    border: 1px dashed var(--pack-border);
    border-radius: var(--pack-radius-md);
    color: var(--pack-text-muted);
}

.pack-page__empty svg {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    opacity: 0.6;
}

.pack-page__empty h3 {
    margin: 0 0 6px;
    color: var(--pack-text);
    font-size: 18px;
    font-weight: 700;
}

.pack-page__empty p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== PACK CARD ===== */
.pack-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pack-surface);
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-md);
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.pack-card:hover {
    transform: translateY(-4px);
    border-color: var(--pack-border-strong);
    box-shadow: var(--pack-shadow);
}

.pack-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pack-surface-strong);
}

.pack-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.pack-card:hover .pack-card__image {
    transform: scale(1.06);
}

.pack-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pack-surface) 0%, var(--pack-surface-strong) 100%);
    color: var(--pack-text-soft);
}

.pack-card__placeholder svg {
    width: 64px;
    height: 64px;
    fill: currentColor;
    opacity: 0.45;
}

.pack-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--pack-accent);
    color: #0b0c0e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
}

.pack-card__badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.pack-card__badge--owned {
    background: var(--pack-success);
    color: #ffffff;
}

.pack-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.75) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 1;
}

.pack-card:hover .pack-card__overlay {
    opacity: 1;
}

.pack-card__quick {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #0b0c0e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pack-card__quick:hover {
    background: #ffffff;
}

.pack-card__quick svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pack-card__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pack-card__name {
    display: block;
    color: var(--pack-text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.005em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.7em;
    transition: color 0.15s ease;
}

.pack-card__name:hover {
    color: #ffffff;
}

.pack-card__code {
    color: var(--pack-text-soft);
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: 12px;
    font-weight: 600;
}

.pack-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--pack-border);
}

.pack-card__price {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pack-card__price-label {
    color: var(--pack-text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pack-card__price-value {
    color: var(--pack-accent);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.pack-card__price-free {
    color: var(--pack-success);
}

.pack-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1px solid var(--pack-accent);
    border-radius: var(--pack-radius-sm);
    background: transparent;
    color: var(--pack-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pack-card__cta:hover {
    background: var(--pack-accent);
    color: #0b0c0e;
}

.pack-card__cta svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-card__cta--owned {
    background: var(--pack-success-soft);
    border-color: var(--pack-success);
    color: var(--pack-success);
}

.pack-card__cta--owned:hover {
    background: var(--pack-success);
    color: #ffffff;
}

/* ===== PAGINATION ===== */
.pack-page__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.pack-page__page {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-sm);
    background: var(--pack-surface);
    color: var(--pack-text);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease;
}

.pack-page__page:hover {
    border-color: var(--pack-border-strong);
    background: var(--pack-surface-strong);
}

.pack-page__page.is-active {
    background: var(--pack-accent);
    color: #0b0c0e;
    border-color: var(--pack-accent);
}

.pack-page__page svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-page__page--nav {
    color: var(--pack-text-muted);
}

/* ===== BENEFITS BAR ===== */
.pack-page__benefits {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 32px;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-lg);
    background: linear-gradient(135deg, var(--pack-surface) 0%, var(--pack-surface-strong) 100%);
}

.pack-page__benefit {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.pack-page__benefit-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--pack-accent-soft);
    color: var(--pack-accent);
}

.pack-page__benefit-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-page__benefit-text strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pack-page__benefit-text span {
    display: block;
    color: var(--pack-text-muted);
    font-size: 13px;
    line-height: 1.55;
}

/* ===================================================================
   Pack Detail (/pack/{slug})
   =================================================================== */

.pack-detail {
    width: 100%;
    min-height: 100vh;
    background: var(--pack-page-bg);
    color: var(--pack-text);
    font-family: "Inter", "Josefin Sans", Arial, sans-serif;
}

.pack-detail *,
.pack-detail *::before,
.pack-detail *::after {
    box-sizing: border-box;
}

.pack-detail a {
    color: inherit;
    text-decoration: none;
}

.pack-detail img {
    max-width: 100%;
    display: block;
}

.pack-detail__container {
    max-width: 1672px;
    margin: 0 auto;
    padding: 0 115px 96px;
}

.pack-detail__crumbs {
    padding: 20px 0;
    border-bottom: 1px solid var(--pack-border);
}

.pack-detail__crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
}

.pack-detail__crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pack-text-muted);
}

.pack-detail__crumbs a {
    color: var(--pack-text-muted);
    transition: color 0.15s ease;
}

.pack-detail__crumbs a:hover {
    color: var(--pack-text);
}

.pack-detail__crumbs li[aria-current="page"] {
    color: var(--pack-text);
}

.pack-detail__crumbs li + li::before {
    content: '/';
    color: var(--pack-text-soft);
}

/* Detail hero */
.pack-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 32px;
    padding: 48px 0 56px;
    align-items: flex-start;
}

.pack-detail__gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 480px;
}

.pack-detail__gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-md);
    background: var(--pack-surface);
    cursor: zoom-in;
    transition: border-color 0.2s ease;
}

.pack-detail__gallery-item:hover {
    border-color: var(--pack-border-strong);
}

.pack-detail__gallery-item:first-child {
    grid-row: span 2;
}

.pack-detail__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pack-detail__gallery-item:hover img {
    transform: scale(1.04);
}

.pack-detail__gallery-empty {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--pack-border);
    border-radius: var(--pack-radius-md);
    color: var(--pack-text-soft);
}

.pack-detail__gallery-empty svg {
    width: 80px;
    height: 80px;
    fill: currentColor;
    opacity: 0.5;
}

/* Detail sidebar */
.pack-detail__sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pack-detail__badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pack-detail__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--pack-accent-soft);
    color: var(--pack-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pack-detail__badge svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.pack-detail__badge--success {
    background: var(--pack-success-soft);
    color: var(--pack-success);
}

.pack-detail__title {
    margin: 12px 0 16px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pack-detail__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    color: var(--pack-text-muted);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 22px;
}

.pack-detail__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pack-detail__meta-item svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-detail__price-box {
    padding: 20px;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-md);
    background: var(--pack-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pack-detail__price-label {
    color: var(--pack-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pack-detail__price-value {
    color: var(--pack-accent);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.pack-detail__price-original {
    color: var(--pack-text-soft);
    font-size: 14px;
    font-weight: 600;
    text-decoration: line-through;
    margin-top: 6px;
}

.pack-detail__cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pack-detail__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--pack-radius-sm);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pack-detail__btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-detail__btn--primary {
    background: var(--pack-accent);
    color: #0b0c0e;
    border-color: var(--pack-accent);
}

.pack-detail__btn--primary:hover {
    background: var(--pack-accent-hover);
    border-color: var(--pack-accent-hover);
}

.pack-detail__btn--ghost {
    background: transparent;
    color: var(--pack-text);
    border-color: var(--pack-border);
}

.pack-detail__btn--ghost:hover {
    border-color: var(--pack-text-muted);
    background: var(--pack-surface);
}

.pack-detail__btn--success {
    background: var(--pack-success-soft);
    color: var(--pack-success);
    border-color: var(--pack-success);
}

.pack-detail__stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-md);
    background: var(--pack-surface);
}

.pack-detail__stat-tile {
    padding: 12px;
    border-radius: 8px;
    background: var(--pack-surface-strong);
}

.pack-detail__stat-value {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
}

.pack-detail__stat-label {
    margin-top: 6px;
    color: var(--pack-text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Detail content section */
.pack-detail__section {
    margin-top: 56px;
}

.pack-detail__section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--pack-border);
}

.pack-detail__section-title {
    margin: 0;
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.pack-detail__section-title span {
    color: var(--pack-accent);
    font-weight: 700;
}

.pack-detail__section-sub {
    margin: 4px 0 0;
    color: var(--pack-text-muted);
    font-size: 14px;
}

.pack-detail__products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.pack-detail__product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pack-surface);
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
}

.pack-detail__product-card:hover {
    transform: translateY(-3px);
    border-color: var(--pack-border-strong);
    box-shadow: var(--pack-shadow);
}

.pack-detail__product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--pack-surface-strong);
}

.pack-detail__product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pack-detail__product-card:hover .pack-detail__product-media img {
    transform: scale(1.06);
}

.pack-detail__product-status {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}

.pack-detail__product-status--owned {
    background: var(--pack-success);
    color: #ffffff;
}

.pack-detail__product-status--available {
    background: rgba(59, 130, 246, 0.92);
    color: #ffffff;
}

.pack-detail__product-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pack-detail__product-name {
    margin: 0;
    color: var(--pack-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.pack-detail__product-code {
    color: var(--pack-text-soft);
    font-size: 12px;
    font-weight: 600;
    font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Related packs */
.pack-detail__related {
    margin-top: 80px;
}

.pack-detail__related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.pack-detail__related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pack-surface);
    border: 1px solid var(--pack-border);
    border-radius: var(--pack-radius-md);
    overflow: hidden;
    transition: all 0.25s ease;
}

.pack-detail__related-card:hover {
    transform: translateY(-3px);
    border-color: var(--pack-border-strong);
    box-shadow: var(--pack-shadow);
}

.pack-detail__related-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pack-surface-strong);
}

.pack-detail__related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pack-detail__related-card:hover .pack-detail__related-media img {
    transform: scale(1.06);
}

.pack-detail__related-body {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pack-detail__related-price {
    color: var(--pack-accent);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.005em;
}

.pack-detail__related-name {
    color: var(--pack-text);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.7em;
}

/* ===================================================================
   Lightbox (pack detail gallery)
   =================================================================== */

.pack-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    padding: 32px;
}

.pack-lightbox.is-active {
    display: flex;
}

.pack-lightbox__content {
    position: relative;
    max-width: 1200px;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pack-lightbox__content img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--pack-radius-md);
}

.pack-lightbox__close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pack-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pack-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pack-lightbox__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pack-border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.pack-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pack-lightbox__nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pack-lightbox__nav--prev {
    left: 24px;
}

.pack-lightbox__nav--next {
    right: 24px;
}

.pack-lightbox__counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--pack-text-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1280px) {
    .pack-page__container,
    .pack-detail__container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 1024px) {
    .pack-page__container,
    .pack-detail__container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .pack-page__hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 56px 0;
    }

    .pack-page__hero-title {
        font-size: 42px;
    }

    .pack-page__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pack-page__stats-tile:nth-child(2) {
        border-right: 0;
    }

    .pack-page__stats-tile:nth-child(-n+2) {
        border-bottom: 1px solid var(--pack-border);
    }

    .pack-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .pack-page__benefits {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .pack-detail__hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px 0;
    }

    .pack-detail__sidebar {
        position: static;
    }

    .pack-detail__gallery {
        min-height: 360px;
    }

    .pack-detail__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pack-detail__related-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .pack-page__hero-title {
        font-size: 34px;
    }

    .pack-page__hero-sub {
        font-size: 14px;
    }

    .pack-page__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pack-page__toolbar-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .pack-page__search {
        width: 100%;
    }

    .pack-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pack-page__pagination {
        gap: 6px;
    }

    .pack-page__page {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .pack-detail__title {
        font-size: 28px;
    }

    .pack-detail__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .pack-detail__gallery-item:first-child {
        grid-row: span 1;
    }

    .pack-detail__gallery-empty {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 220px;
    }

    .pack-detail__products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pack-detail__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pack-lightbox__nav--prev {
        left: 12px;
    }

    .pack-lightbox__nav--next {
        right: 12px;
    }
}

@media (max-width: 480px) {
    .pack-page__container,
    .pack-detail__container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .pack-page__hero-title {
        font-size: 28px;
    }

    .pack-page__stats {
        grid-template-columns: 1fr 1fr;
    }

    .pack-page__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .pack-detail__title {
        font-size: 24px;
    }

    .pack-detail__price-value {
        font-size: 26px;
    }

    .pack-detail__products {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .pack-detail__related-grid {
        grid-template-columns: 1fr 1fr;
    }
}
