/* ============================================
   SUBPAGE STYLES — Kitpoint Category Pages
   ============================================ */

/* ---- Header Sub variant ---- */
.header--sub {
    background: var(--c-bg-primary);
    border-bottom: 1px solid var(--c-border);
}

/* ---- Category Hero ---- */
.cat-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 80px;
}

.cat-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cat-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cat-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.7) 40%,
        rgba(10, 10, 10, 0.3) 70%,
        rgba(10, 10, 10, 0.1) 100%
    );
}

.cat-hero__content {
    position: relative;
    z-index: 2;
    padding: var(--s-5xl) 0;
    max-width: 680px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--s-xs);
    font-size: 0.8rem;
    margin-bottom: var(--s-xl);
    color: var(--c-text-secondary);
}

.breadcrumb a {
    color: var(--c-text-secondary);
    text-decoration: none;
    transition: color var(--t-fast);
}

.breadcrumb a:hover {
    color: var(--c-accent);
}

.breadcrumb__current {
    color: var(--c-accent);
    font-weight: 500;
}

/* Hero Title */
.cat-hero__title {
    font-family: var(--f-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--s-lg);
}

.cat-hero__title span {
    display: block;
}

.cat-hero__accent {
    color: var(--c-accent);
}

.cat-hero__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text-secondary);
    margin-bottom: var(--s-2xl);
    max-width: 580px;
}

.cat-hero__actions {
    display: flex;
    gap: var(--s-md);
    flex-wrap: wrap;
}


/* ---- Product Section ---- */
.prod-section {
    padding: var(--s-5xl) 0;
    position: relative;
    scroll-margin-top: 100px; /* Prevent fixed header overlap on anchor scroll */
}

.prod-section--alt {
    background: rgba(255, 255, 255, 0.015);
}

.prod-section__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-3xl);
    align-items: center;
}

@media (min-width: 768px) {
    .prod-section__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--s-5xl);
    }

    .prod-section__grid--reverse .prod-section__visual {
        order: 2;
    }
    .prod-section__grid--reverse .prod-section__content {
        order: 1;
    }
}

/* Visual */
.prod-section__visual img {
    width: 100%;
    border-radius: var(--radius-xl);
    object-fit: contain;
    background: #ffffff;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-lg);
}

/* Content */
.prod-section__title {
    font-family: var(--f-heading);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 300;
    line-height: 1.3;
    color: var(--c-text-primary);
    margin-bottom: var(--s-xs);
}

.prod-section__subtitle {
    font-family: var(--f-heading);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--c-accent);
    letter-spacing: -0.02em;
    margin-bottom: var(--s-lg);
}

.prod-section__desc {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--c-text-secondary);
    margin-bottom: var(--s-2xl);
}

/* Specs Grid */
.prod-specs {
    display: flex;
    gap: var(--s-xl);
    flex-wrap: wrap;
    margin-bottom: var(--s-2xl);
    padding-bottom: var(--s-xl);
    border-bottom: 1px solid var(--c-border);
}

.prod-spec {
    display: flex;
    flex-direction: column;
    min-width: 60px;
}

.prod-spec__value {
    font-family: var(--f-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--c-text-primary);
    letter-spacing: -0.02em;
}

.prod-spec__label {
    font-size: 0.72rem;
    color: var(--c-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Feature List */
.prod-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--s-2xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--s-sm);
}

.prod-features li {
    position: relative;
    padding-left: var(--s-xl);
    font-size: 0.88rem;
    color: var(--c-text-secondary);
    line-height: 1.6;
}

.prod-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-accent);
    opacity: 0.7;
}


/* ---- CTA Banner ---- */
.cta-banner {
    padding: var(--s-5xl) 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.08) 0%, transparent 60%);
    border-top: 1px solid var(--c-border);
    border-bottom: 1px solid var(--c-border);
}

.cta-banner__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-banner__title {
    font-family: var(--f-heading);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--c-text-primary);
    margin-bottom: var(--s-lg);
}

.cta-banner__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--c-text-secondary);
    margin-bottom: var(--s-2xl);
}

.cta-banner__actions {
    display: flex;
    justify-content: center;
    gap: var(--s-md);
    flex-wrap: wrap;
}


/* ============================================
   RESPONSIVE OVERRIDES
   ============================================ */
@media (max-width: 767px) {
    .cat-hero {
        min-height: 60vh;
    }

    .cat-hero__title {
        font-size: 1.8rem;
    }

    .prod-section {
        padding: var(--s-3xl) 0;
    }

    .prod-section__grid {
        gap: var(--s-2xl);
    }

    .prod-specs {
        gap: var(--s-lg);
    }

    .cta-banner {
        padding: var(--s-3xl) 0;
    }
}

/* Ensure all product thumbnails, gallery thumbnails, and color/options blocks have a white background */
.prod-thumb,
.gallery-thumb,
.retro-colors-grid div,
.mini-options-grid div,
.options-grid div,
.dimensions-section div {
    background: #ffffff !important;
}

/* Specifications Table Styles */
.table-wrapper {
    background: var(--c-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--c-border);
    color: var(--c-text-secondary);
}

th {
    background: var(--c-bg-secondary);
    color: var(--c-text-primary);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}


