/* ============================================
   Single Equipamento — Produto Individual
   ============================================ */

.site-single-equipamento {
    padding-top: 76px; /* compensa header fixo */
    background: #F8FAFC;
}

/* ──────────────────────────────────────────
   Breadcrumb / Topo de página
   ────────────────────────────────────────── */

.equip-intro {
    padding: 48px 0 80px;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ──────────────────────────────────────────
   Grid principal (galeria + info)
   ────────────────────────────────────────── */

.equip-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .equip-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Galeria ── */

.equip-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.equip-main-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: #F4F4F5;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.equip-main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--inoxmilk-color-semantic-action-primary-default);
    z-index: 2;
}

.equip-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.equip-main-image:hover img {
    transform: scale(1.03);
}

.equip-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
}

.thumb-item {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    border: 2px solid transparent;
    overflow: hidden;
    background: #F4F4F5;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumb-item:hover {
    transform: translateY(-2px);
    border-color: rgba(205, 0, 6, 0.3);
}

.thumb-item.active {
    border-color: var(--inoxmilk-color-semantic-action-primary-default);
}

/* ── Info ── */

.equip-info {
    display: flex;
    flex-direction: column;
}

.equip-cat {
    display: inline-flex;
    align-items: center;
    font-family: var(--inoxmilk-typography-family-heading);
    font-size: 11px;
    font-weight: 700;
    color: var(--inoxmilk-color-semantic-action-primary-default);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgba(205, 0, 6, 0.06);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
    align-self: flex-start;
}

.equip-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--inoxmilk-color-primitive-steel-900);
    margin-bottom: 20px;
}

.equip-description {
    font-size: 16px;
    color: var(--inoxmilk-color-primitive-steel-500);
    line-height: 1.7;
    margin-bottom: 36px;
}

.equip-description p { margin-bottom: 12px; }
.equip-description p:last-child { margin-bottom: 0; }

.equip-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ──────────────────────────────────────────
   Detalhes Técnicos
   ────────────────────────────────────────── */

.equip-tech-details {
    padding: 80px 0;
    background: #F8FAFC;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.specs-grid {
    max-width: 780px;
    margin: 0 auto;
}

.specs-box {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.specs-tabela {
    width: 100%;
    border-collapse: collapse;
}

.specs-tabela tr {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.specs-tabela tr:last-child {
    border-bottom: none;
}

.specs-tabela td {
    padding: 16px 20px;
    font-size: 15px;
    vertical-align: middle;
}

.spec-name {
    width: 38%;
    font-weight: 600;
    color: var(--inoxmilk-color-primitive-steel-900);
    font-family: var(--inoxmilk-typography-family-heading);
}

.spec-value {
    width: 62%;
    color: var(--inoxmilk-color-primitive-steel-500);
}

@media (max-width: 600px) {
    .equip-tech-details { padding: 60px 0; }
    .specs-tabela td { padding: 14px 16px; font-size: 14px; }
    .specs-tabela tr { display: flex; flex-direction: column; }
    .spec-name, .spec-value { width: 100%; }
    .spec-name { padding-bottom: 4px; }
}

/* ──────────────────────────────────────────
   Modal Lightbox
   ────────────────────────────────────────── */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    display: block;
}

.lightbox-close {
    position: fixed;
    top: 24px;
    right: 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 32px;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10000;
    line-height: 1;
}

.lightbox-close:hover {
    color: #FFFFFF;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s, transform 0.2s;
}

.lightbox-arrow:hover {
    background: var(--inoxmilk-color-semantic-action-primary-default);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-arrow.prev { left: -64px; }
.lightbox-arrow.next { right: -64px; }

@media (max-width: 1024px) {
    .lightbox-arrow.prev { left: 10px; }
    .lightbox-arrow.next { right: 10px; }
}
