/* ============================================
   PRISMA CRISTAIS - PÁGINA DE PRODUTO
   CSS Externo para todas as páginas individuais
   ============================================ */

/* Breadcrumb */
.product-breadcrumb {
    padding: calc(var(--header-height, 80px) + 16px) 24px 16px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: var(--color-text-secondary, #a0a0a0);
    font-family: var(--font-secondary);
}

.product-breadcrumb a {
    color: var(--color-text-secondary, #a0a0a0);
    transition: color 0.3s ease;
}

.product-breadcrumb a:hover {
    color: var(--turmalina-paraiba);
}

.product-breadcrumb span {
    margin: 0 8px;
    color: var(--color-text-secondary, #a0a0a0);
}

/* ============================================
   HERO: GALERIA + INFO (SPLIT LAYOUT)
   ============================================ */
.product-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Galeria */
.product-gallery {
    position: relative;
    width: 100%;
    background: var(--color-bg-secondary, #111111);
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-main img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-main img.active {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }

.gallery-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.gallery-dot.active {
    background: var(--color-bg-card, #1a1a1a);
    width: 24px;
    border-radius: 5px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    background: var(--color-bg-secondary, #111111);
}

.gallery-thumb.active {
    border-color: var(--turmalina-paraiba);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info do Produto */
.product-info-hero {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-category-tag {
    display: inline-block;
    background: var(--turmalina-paraiba);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.product-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary, #f5f5f5);
    font-family: var(--font-primary);
    line-height: 1.2;
    margin-bottom: 0;
}

.product-price-tag {
    font-size: 36px;
    font-weight: 700;
    color: var(--turmalina-paraiba);
    font-family: var(--font-primary);
}

.product-price-tag small {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary, #a0a0a0);
    margin-top: 4px;
}

.product-short-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary, #a0a0a0);
}

.product-cta-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.product-cta-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--turmalina-paraiba);
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(21, 182, 184, 0.3);
    text-align: center;
}

.product-cta-primary:hover {
    background: var(--turmalina-secundaria);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(21, 182, 184, 0.4);
    color: #fff;
}

.product-cta-primary svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.product-cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--color-text-primary, #f5f5f5);
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--color-text-primary, #f5f5f5);
    transition: all 0.3s ease;
    text-align: center;
}

.product-cta-secondary:hover {
    border-color: var(--turmalina-paraiba);
    color: var(--turmalina-paraiba);
}

.product-shipping {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--turmalina-paraiba);
    font-weight: 500;
}

.product-shipping svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   STORYTELLING SECTIONS
   ============================================ */
.product-story {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Accordion details/summary */
.story-section {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.story-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 32px 0;
    list-style: none;
    list-style-type: none;
    -webkit-appearance: none;
    -webkit-user-select: none;
    user-select: none;
}

.story-section summary::-webkit-details-marker,
.story-section summary::marker {
    display: none;
    content: '';
    font-size: 0;
    width: 0;
    height: 0;
}

.story-section summary h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-primary, #f5f5f5);
    margin: 0;
    font-family: var(--font-primary);
    flex: 1;
}

.accordion-chevron {
    flex-shrink: 0;
    margin-left: 16px;
    width: 28px;
    height: 28px;
    color: var(--turmalina-paraiba);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.story-section summary:hover .accordion-chevron {
    opacity: 1;
}

.story-section[open] .accordion-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.story-content {
    padding-bottom: 32px;
}

.story-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-primary, #f5f5f5);
    margin-bottom: 20px;
    font-family: var(--font-primary);
}

.story-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary, #a0a0a0);
    margin-bottom: 16px;
}

.story-section p:last-child {
    margin-bottom: 0;
}

.story-section ul {
    margin: 16px 0;
    padding-left: 0;
}

.story-section ul li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text-secondary, #a0a0a0);
    padding: 8px 0 8px 24px;
    position: relative;
}

.story-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--turmalina-paraiba);
}

/* ============================================
   ESPECIFICAÇÕES
   ============================================ */
.product-specs {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

.product-specs h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-primary, #f5f5f5);
    margin-bottom: 24px;
    font-family: var(--font-primary);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.specs-table td {
    padding: 14px 0;
    font-size: 15px;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: var(--color-text-primary, #f5f5f5);
    width: 40%;
    padding-right: 16px;
}

.specs-table td:last-child {
    color: var(--color-text-secondary, #a0a0a0);
}

/* ============================================
   CTA FINAL
   ============================================ */
.product-cta-final {
    background: linear-gradient(135deg, #0A1929 0%, #1a2332 100%);
    padding: 64px 24px;
    text-align: center;
    margin-top: 48px;
}

.product-cta-final .cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.product-cta-final h2 {
    font-size: 28px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    font-family: var(--font-primary);
}

.product-cta-final p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    line-height: 1.7;
}

.product-cta-final .product-cta-primary {
    font-size: 18px;
    padding: 18px 40px;
}

.product-cta-final .product-shipping {
    justify-content: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   PRODUTOS RELACIONADOS
   ============================================ */
.related-products {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.related-products h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-primary, #f5f5f5);
    margin-bottom: 32px;
    text-align: center;
    font-family: var(--font-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.related-card {
    background: var(--color-bg-card, #1a1a1a);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.related-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-bg-secondary, #111111);
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-info {
    padding: 20px;
}

.related-card-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary, #f5f5f5);
    margin-bottom: 8px;
    font-family: var(--font-primary);
}

.related-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--turmalina-paraiba);
    font-family: var(--font-primary);
}

/* ============================================
   FOOTER OVERRIDE
   ============================================ */
.footer-loja {
    background-color: #0A1929;
    margin-top: 0;
}

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

/* Tablet */
@media (min-width: 768px) {
    .product-hero {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        padding: 16px 48px 80px;
    }

    .product-gallery {
        position: sticky;
        top: 100px;
    }

    .product-title {
        font-size: 36px;
    }

    .product-price-tag {
        font-size: 40px;
    }

    .product-cta-group {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .product-cta-primary,
    .product-cta-secondary {
        flex: 1;
        min-width: 200px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .product-breadcrumb {
        padding: calc(var(--header-height, 80px) + 16px) 48px 16px;
    }

    .story-section h2 {
        font-size: 32px;
    }

    .gallery-thumbs {
        gap: 12px;
    }

    .gallery-thumb {
        width: 80px;
        height: 80px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .product-hero {
        padding: 24px 24px 100px;
        gap: 60px;
    }

    .product-breadcrumb {
        padding: calc(var(--header-height, 80px) + 20px) 24px 20px;
    }

    .product-title {
        font-size: 40px;
    }

    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .story-section summary {
        padding: 40px 0;
    }

    .story-content {
        padding-bottom: 48px;
    }

    .product-specs {
        padding: 60px 24px;
    }
}

/* Large Desktop */
@media (min-width: 1440px) {
    .product-hero {
        gap: 80px;
    }

    .gallery-thumb {
        width: 90px;
        height: 90px;
    }
}
