/* ==========================================
   LifeSmart - Página de Detalle de Producto
   ========================================== */

/* ==========================================
   Product Hero Section
   ========================================== */
.product-hero {
    margin-top: 80px;
    background-color: var(--color-bg-light);
    padding: 80px;
}

.product-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

/* Product Carousel */
.product-carousel {
    flex-shrink: 0;
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-main-image {
    width: 100%;
    height: 450px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: none;
}

.thumbnail.active {
    border: 2px solid var(--color-primary);
}

.thumbnail:hover {
    border-color: var(--color-primary);
}

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

/* Product Info */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: var(--font-primary);
}

.breadcrumb a {
    color: var(--color-tertiary);
    transition: color 0.3s ease;
}

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

.breadcrumb span {
    color: #ccc;
}

.breadcrumb .current {
    color: var(--color-primary);
    font-weight: 500;
}

/* Product Title & Description */
.product-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin: 0;
}

.product-subtitle {
    font-size: 18px;
    color: var(--color-secondary);
    margin: 0;
}

.product-description {
    font-size: 16px;
    color: var(--color-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Integration Section */
.integration-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.integration-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-tertiary);
}

.integration-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.integration-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s ease;
}

.integration-btn svg {
    width: 18px;
    height: 18px;
}

.integration-btn.alexa {
    background-color: #00CAFF;
}

.integration-btn.alexa:hover {
    background-color: #00B5E6;
}

.integration-btn.siri {
    background-color: #000000;
}

.integration-btn.siri:hover {
    background-color: #333333;
}

.integration-btn.google {
    background-color: #4285F4;
}

.integration-btn.google:hover {
    background-color: #3367D6;
}

/* Product Highlights */
.product-highlights {
    display: flex;
    gap: 16px;
}

.highlight-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
}

.highlight-item svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.highlight-item span {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 16px;
}

.btn-download-product,
.btn-manual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-download-product {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-download-product:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-manual {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-manual:hover {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-download-product svg,
.btn-manual svg {
    width: 20px;
    height: 20px;
}

/* ==========================================
   Specifications Section
   ========================================== */
.specs-section {
    padding: 80px;
    background-color: var(--color-bg-white);
}

.specs-header {
    text-align: center;
    margin-bottom: 48px;
}

.specs-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 16px;
}

.specs-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.specs-column {
    flex: 1;
    max-width: 380px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-border);
}

.spec-label {
    font-size: 14px;
    color: var(--color-tertiary);
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-align: right;
}

/* Additional Downloads */
.additional-downloads {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.additional-downloads h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
}

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background-color: var(--color-bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.download-item > svg:first-child {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.download-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.download-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.download-size {
    font-size: 12px;
    color: var(--color-tertiary);
}

.download-item > svg:last-child {
    width: 20px;
    height: 20px;
    color: var(--color-secondary);
    transition: color 0.3s ease;
}

.download-item:hover > svg:last-child {
    color: var(--color-primary);
}

/* ==========================================
   Responsive - Tablet (max 1024px)
   ========================================== */
@media (max-width: 1024px) {
    .product-hero {
        padding: 60px 40px;
    }

    .product-hero-content {
        gap: 40px;
    }

    .product-carousel {
        width: 450px;
    }

    .product-main-image {
        height: 340px;
    }

    .thumbnail {
        width: 100px;
        height: 75px;
    }

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

    .specs-section {
        padding: 60px 40px;
    }

    .specs-grid {
        gap: 24px;
    }
}

/* ==========================================
   Responsive - Mobile (max 768px)
   ========================================== */
@media (max-width: 768px) {
    .product-hero {
        margin-top: 70px;
        padding: 40px 24px;
    }

    .product-hero-content {
        flex-direction: column;
        gap: 32px;
    }

    .product-carousel {
        width: 100%;
    }

    .product-main-image {
        height: 300px;
    }

    .product-thumbnails {
        justify-content: center;
    }

    .thumbnail {
        width: 80px;
        height: 60px;
    }

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

    .product-subtitle {
        font-size: 16px;
    }

    .product-description {
        font-size: 15px;
    }

    .integration-buttons {
        flex-wrap: wrap;
    }

    .integration-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .product-highlights {
        flex-wrap: wrap;
    }

    .highlight-item {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn-download-product,
    .btn-manual {
        width: 100%;
    }

    .specs-section {
        padding: 48px 24px;
    }

    .specs-title {
        font-size: 28px;
    }

    .specs-grid {
        flex-direction: column;
        gap: 0;
    }

    .specs-column {
        max-width: 100%;
    }

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

    .download-item {
        padding: 16px;
    }
}

/* ==========================================
   Responsive - Small Mobile (max 480px)
   ========================================== */
@media (max-width: 480px) {
    .product-hero {
        padding: 32px 16px;
    }

    .product-main-image {
        height: 250px;
        border-radius: 12px;
    }

    .thumbnail {
        width: 70px;
        height: 52px;
        border-radius: 6px;
    }

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

    .breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }

    .highlight-item {
        padding: 12px;
    }

    .highlight-item span {
        font-size: 11px;
    }

    .btn-download-product,
    .btn-manual {
        padding: 14px 20px;
        font-size: 14px;
    }

    .specs-section {
        padding: 40px 16px;
    }

    .specs-title {
        font-size: 24px;
    }

    .spec-row {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .spec-value {
        text-align: left;
    }
}

/* ==========================================
   Image Zoom Effect
   ========================================== */
.product-main-image.zoomed img {
    transform: scale(1.5);
    cursor: zoom-out;
}

.product-main-image:not(.zoomed):hover img {
    cursor: zoom-in;
}
