/* ============================================================
   produto.css — Styles for individual product pages
   Extends ../styles/styles.css
   ============================================================ */

/* ── Product Hero ─────────────────────────────────────────── */
.prod-hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy-dark, #111B3A) 0%, var(--navy, #1B2952) 55%, var(--navy-light, #2D3E6E) 100%);
}

.prod-hero-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.prod-hero-bg span {
    font-size: clamp(80px, 20vw, 220px);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, .06);
    white-space: nowrap;
    user-select: none;
}

.prod-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.prod-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 16px 0 20px;
}

.prod-hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .82);
    margin-bottom: 32px;
    max-width: 560px;
    line-height: 1.65;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
    margin-bottom: 18px;
    transition: color .2s;
}

.back-link:hover {
    color: #fff;
}

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.gallery-grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    background: var(--surface, #1a2740);
    box-shadow: var(--shadow-md, 0 8px 30px rgba(0, 0, 0, .35));
    transition: transform .25s, box-shadow .25s;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg, 0 20px 50px rgba(0, 0, 0, .5));
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform .35s;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ── Specs Grid ───────────────────────────────────────────── */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.spec-card {
    background: var(--surface, #1a2740);
    border: 1px solid var(--border, rgba(255, 255, 255, .08));
    border-radius: var(--radius-lg, 16px);
    padding: 28px 24px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.spec-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #4a9eff), var(--secondary, #7b5ea7));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.spec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md, 0 8px 30px rgba(0, 0, 0, .35));
    border-color: var(--primary, #4a9eff);
}

.spec-card:hover::after {
    transform: scaleX(1);
}

.spec-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.spec-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #f0f4ff);
    margin-bottom: 12px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-list li {
    font-size: .875rem;
    color: var(--text-secondary, #9aa5be);
    padding-left: 14px;
    position: relative;
}

.spec-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary, #4a9eff);
    font-size: .75rem;
    line-height: 1.6;
}

/* ── Table ────────────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    margin-top: 48px;
    border-radius: var(--radius-lg, 16px);
}

.prod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    background: var(--surface, #1a2740);
}

.prod-table th {
    padding: 14px 18px;
    text-align: left;
    background: var(--navy, #0a1628);
    color: var(--text-secondary, #9aa5be);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 2px solid var(--border, rgba(255, 255, 255, .08));
}

.prod-table td {
    padding: 14px 18px;
    color: var(--text-primary, #f0f4ff);
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, .06));
    vertical-align: middle;
}

.prod-table tbody tr:hover {
    background: rgba(255, 255, 255, .03);
}

.prod-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.badge-green {
    background: rgba(34, 197, 94, .15);
    color: #4ade80;
}

.badge-blue {
    background: rgba(59, 130, 246, .15);
    color: #60a5fa;
}

.badge-primary {
    background: rgba(74, 158, 255, .15);
    color: #4a9eff;
}

.badge-secondary {
    background: rgba(154, 165, 190, .15);
    color: #9aa5be;
}

/* ── Types Grid ───────────────────────────────────────────── */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 48px;
}

.type-card {
    background: var(--surface, #1a2740);
    border: 1px solid var(--border, rgba(255, 255, 255, .08));
    border-radius: var(--radius-lg, 16px);
    padding: 28px 24px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary, #7b5ea7), var(--primary, #4a9eff));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    border-color: var(--secondary, #7b5ea7);
}

.type-card:hover::before {
    transform: scaleX(1);
}

.type-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 14px;
    line-height: 1;
}

.type-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary, #f0f4ff);
    margin-bottom: 14px;
    line-height: 1.3;
}

.type-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.type-list li {
    font-size: .875rem;
    color: var(--text-secondary, #9aa5be);
    padding-left: 16px;
    position: relative;
    line-height: 1.45;
}

.type-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary, #7b5ea7);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.6;
}


.logo-footer {
    width: 140px;
    height: auto;
    vertical-align: middle;
    margin-bottom: 10px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
    .prod-hero {
        min-height: 60vh;
        padding: 100px 0 60px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .types-grid {
        grid-template-columns: 1fr;
    }
}