/* Single Product Template Styles */

.single-product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 30px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #000;
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #999;
}

.breadcrumb .current {
    color: #999;
}

/* Product Content Layout */
.product-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

/* Product Image Large */
.product-image-large {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
}

.product-image-large img {
    width: 100%;
    height: auto;
    display: block;
}

.product-image-large .badge-opzionato {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

/* Product Details Section */
.product-details-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-title-large {
    font-family: 'Lato', sans-serif;
    font-size: 36px;
    font-weight: 600;
    margin: 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* Specifications */
.product-specifications h3 {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 15px 0;
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

.spec-label {
    font-weight: 600;
    color: #333;
    width: 40%;
}

.spec-value {
    color: #666;
}

/* Color Dots */
.color-dots {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.color-dot {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: help;
    transition: transform 0.2s;
}

.color-dot:hover {
    transform: scale(1.2);
    border-color: #333;
}

/* Special handling for white color */
.color-dot[style*="#FFFFFF"],
.color-dot[style*="#ffffff"] {
    border-color: #999;
}

/* Downloads Section */
.downloads-section {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-download:hover {
    background: #e0e0e0;
    border-color: #333;
    color: #000;
    transform: translateY(-2px);
}

.btn-download svg {
    flex-shrink: 0;
}

.download-info-note {
    margin-top: 15px;
    font-size: 11px;
    color: #888;
    font-style: italic;
    line-height: 1.5;
    max-width: 500px;
    font-family: 'Lato', sans-serif;
}

.download-info-note strong {
    color: #555;
    font-weight: 700;
}

/* Availability Notice */
.availability-notice {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid;
}

.availability-notice strong {
    display: block;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    margin-bottom: 5px;
}

.availability-notice p {
    margin: 0;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666;
}

.opzionato-notice {
    background: #fff3cd;
    border-color: #ffc107;
}

.opzionato-notice strong {
    color: #856404;
}

.available-notice {
    background: #d4edda;
    border-color: #28a745;
}

.available-notice strong {
    color: #155724;
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #333;
    color: white;
    border: 2px solid #333;
}

.btn-primary:hover {
    background: #555;
    border-color: #555;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
}

/* Store Availability */
.store-availability {
    margin-top: 10px;
}

.store-availability h4 {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-badges {
    display: flex;
    gap: 10px;
}

.store-badge {
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-badge.available {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 80px 20px;
    background: #f8f8f8;
    border-radius: 8px;
    margin: 40px 0;
}

.error-message h2 {
    font-family: 'Playfair', serif;
    font-size: 32px;
    margin: 0 0 15px 0;
    color: #333;
}

.error-message p {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: #666;
    margin: 0 0 25px 0;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s;
}

.btn-back:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-content {
        gap: 40px;
    }

    .product-title-large {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .single-product-container {
        padding: 30px 15px;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-title-large {
        font-size: 26px;
    }

    .product-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .category-navigation {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
    }

    .category-nav-item {
        text-align: center;
        width: 100%;
    }

    .downloads-section {
        flex-direction: column;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .store-filters {
        gap: 10px;
    }

    .filter-group {
        min-width: 100%;
    }

    .sec-tit h2 {
        font-size: 28px;
    }

    .product-title-large {
        font-size: 22px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    .specs-table td {
        padding: 12px 0;
        font-size: 14px;
    }

    .spec-label {
        width: 45%;
    }
}

/* Image Variant Toggle (Day/Night) */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.img-variant-toggle {
    position: absolute;
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
}

.img-variant-toggle:hover {
    background: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.toggle-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sun-icon {
    display: none;
    color: #666;
}

.moon-icon {
    display: block;
    color: #FFF;
}

.img-variant-toggle.is-day .sun-icon {
    display: block;
}

.img-variant-toggle.is-day .moon-icon {
    display: none;
}

.img-variant-toggle.is-day {
    background: #fffbe6;
    border-color: #666;
}