/*------------------------- TABS -------------------------*/

section#tabs-product {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    padding: 0;
    margin: 0;
    background-color: var(--background-color);
    border-bottom: 2px solid rgb(161, 161, 161, 0.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

section#tabs-product nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

section#tabs-product .tab-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--dark-color);
    font-family: inherit;
    font-size: 1.4rem;
    background: none;
    border: none;
    padding: 2.2rem 1rem;
    cursor: pointer;
    opacity: 0.9;
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease;
    touch-action: manipulation;
}

section#tabs-product button:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 4px;
    background-color: var(--accent-color);
    transition: transform 0.3s ease;
}

section#tabs-product button:hover {
    opacity: 1;
}

section#tabs-product button.selected {
    color: var(--accent-color);
    opacity: 1;
}

section#tabs-product button:hover::after,
section#tabs-product button.selected::after {
    transform: translateX(-50%) scaleX(1);
}

section#tabs-product button .icon {
    width: 18px;
    height: 18px;
    box-shadow: none;
    flex-shrink: 0;
}

section#tabs-product button .icon * {
    color: var(--dark-color);
}

section#tabs-product button.selected .icon * {
    color: var(--accent-color);
}

@media (max-width: 670px) {
    section#tabs-product nav {
        gap: 0.5rem;
    }

    section#tabs-product .tab-button {
        font-size: 1.2rem;
    }

    section#tabs-product button .icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 600px) {
    section#tabs-product nav {
        flex-direction: column;
        align-items: stretch;
        max-width: 90%;
        gap: 1.1rem;
        padding: 1rem;
    }

    section#tabs-product .tab-button {
        font-size: 1.2rem;
        padding: 1rem;
        justify-content: center;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }

    section#tabs-product button:after {
        height: 3px;
    }

    section#tabs-product button .icon {
        width: 20px;
        height: 20px;
    }
}

/*------------------------- MAIN DESCRIPTION -------------------------*/

section#description-product {
    background-color: var(--background-color);
    padding: 2rem 0;
    padding-bottom: 0;
}

section#description-product > div:nth-of-type(2n+2) {
    background-color: var(--gray-color);
}

section#description-product * h3 {
    font-size: 2.5rem;
    margin-bottom: 1.3rem;
    color: var(--dark-color);
}

section#description-product * h2 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

section#description-product * p {
    font-size: 1.5rem;
}

@media (max-width: 1100px) {
    section#description-product {
        padding-top: 2rem;
    }
}

@media (max-width: 480px){

    section#description-product .description-details h3{
        font-size: 2rem !important;
    }

    section#description-product .description-details p {
        font-size: 1.3rem !important;
    }

}

/*------------------------- MAIN CONTAINER -------------------------*/

section#description-product .main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    max-width: 1450px;
    width: 90%;
    height: auto;
    margin-bottom: 2rem;
    gap: 2rem;
}

section#description-product .description-details {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
    max-width: 80%;
    flex: 1 1 45%;
    min-width: 300px;
    height: 100%;
}

section#description-product .description-details p {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    max-width: 100%;
}

section#description-product .description-details .custom-list {
    list-style: none;
    display: block;
    padding-left: 0;
    margin: 0.5rem 0;
}

section#description-product .description-details .custom-list li {
    position: relative;
    display: flex; 
    align-items: center; 
    gap: 6px;
    margin-bottom: 1.4rem;
    color: var(--dark-color);
    font-size: 1.4rem;
}

section#description-product .description-details .custom-list li::before {
    content: '';
    flex-shrink: 0;  
    top: 4px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='%2346989c'/><path d='M9 12l2 2l4 -4' stroke='%23ffffff' stroke-width='2' fill='none' transform='translate(12 12) scale(1.5) translate(-12 -12)'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
}

section#description-product .carousel-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    flex: 1 1 45%;
    min-width: 300px;
    height: 100%;
    max-height: 650px;
    aspect-ratio: 4 / 3;
}

section#description-product .carousel {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    overflow: hidden;
    height: 100%;
    width: 100%;
    transition: 0.4s ease;
}

section#description-product .carousel:hover {
    transform: scale(1.01) translateY(-0.2rem);
}

section#description-product .carousel-slide {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

section#description-product .slide-item {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
}

section#description-product .slide-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background-color: white;
    box-shadow: none;
}

section#description-product .nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1;
    width: 3rem;
    border-radius: 0.6rem;
}

section#description-product .nav-button.left {
    left: 10px;
}

section#description-product .nav-button.right {
    right: 10px;
}

section#description-product .dots {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

section#description-product .dot {
    height: 16px;
    width: 16px;
    margin: 0 5px;
    background-color: var(--dark-color);
    opacity: 0.3;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

section#description-product .dot.active {
    background-color: var(--accent-color);
    opacity: 1;
}

section#description-product .thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

section#description-product .thumbnail {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    cursor: pointer;
    object-fit: contain;
    background: white;
}

section#description-product .thumbnail.active {
    border-color: var(--dark-color);
}



@media (max-width: 900px) {
    section#description-product .main-container {
        flex-direction: column-reverse;
        align-items: center;
    }

    section#description-product .description-details,
    section#description-product .carousel-container {
        width: 100%;
        max-width: 90%;
    }

    section#description-product .carousel-container {
        aspect-ratio: auto;
        max-height: none;
    }

    section#description-product .width-container .description-row-wrapper .description-video-wrapper{
        width: 100%;
        max-width: none !important;
        aspect-ratio: 16/9;
    }
}

/*------------------------- IN ACTION CONTAINER -------------------------*/

section#description-product .in-action-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.8rem;
    text-align: center;
    width: 90%;
    max-width: 1450px;
    padding-bottom: 3.8rem;
    padding-top: 2rem;
}

section#description-product .in-action-container h3 {
    margin-bottom: 0;
    font-size: 2.7rem;
}

section#description-product .in-action-container * p {
    margin-top: 1rem;
    font-size: 1.7rem;
}

section#description-product .in-action-container .media-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  
    gap: 1.5rem;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

section#description-product .in-action-container .media-grid .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    max-width: 500px;
}

section#description-product .in-action-container .video-wrapper {
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

section#description-product .in-action-container .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

section#description-product .in-action-container .video-caption {
    margin-top: 0.75rem;
    color: #333;
    max-width: 100%;
}

section#description-product .in-action-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: none;
    display: block;
    box-shadow: none;
}

@media (max-width: 1100px) {
    section#description-product .in-action-container .media-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 750px) {
    section#description-product .in-action-container .media-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        justify-content: center; 
    }
}

/*------------------------- COLUMN CONTAINER -------------------------*/

section#description-product .description-collumn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 1450px;
    width: 90%;
}

section#description-product .description-collumn-wrapper article {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

section#description-product .description-collumn-wrapper article h2{
    align-self: center;
}

section#description-product .description-collumn-wrapper article h3{
    align-self: center;
}

section#description-product .description-collumn-wrapper .description-img-wrapper{
    display: flex;
    justify-content: center;
    max-width: 100%;
    width: 100%;
    margin: 2rem 0;
}

section#description-product .description-collumn-wrapper .description-img-wrapper img{
    max-width: 70%;
    width: 100%;
}

/*------------------------- ROW CONTAINER -------------------------*/

section#description-product .description-row-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 1450px;
    width: 90%;
    margin: 0 auto;
    gap: 2rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

section#description-product .description-row-wrapper.reverse {
    flex-direction: row-reverse;
}

section#description-product .description-row-wrapper article {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

section#description-product .description-row-wrapper .description-img-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 90%;
    width: 90%;
}

section#description-product .description-row-wrapper .description-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


@media (max-width: 900px) {
    section#description-product .description-row-wrapper {
        flex-direction: column-reverse;
        text-align: center;
    }

    section#description-product .description-row-wrapper.reverse {
        flex-direction: column-reverse;
    }

    section#description-product .description-row-wrapper article,
    section#description-product .description-img-wrapper {
        align-items: center;
        text-align: center;
        width: 95%;
    }
}

/*------------------------- SPECS -------------------------*/

section#specs-product {
    display: flex;
    justify-content: center;
    background-color: var(--background-color);
}

section#specs-product * {
    color: var(--dark-color);
}


section#specs-product caption {
    margin-bottom: 2rem;
}

section#specs-product .product-table {
    max-width: 900px;
    margin: 3rem auto;
    padding: 1rem;
    font-family: 'Segoe UI', sans-serif;
    border: 2px solid gray;
}

section#specs-product #table-container{
    width: 100%;
    max-width: 1450px;
}

section#specs-product h1 {
    margin-bottom: 4rem;
}

section#specs-product h2 {
    margin-bottom: 1.4rem;
}

section#specs-product #product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    table-layout: fixed;
}

section#specs-product #product-table th, #product-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

section#specs-product #product-table td:first-child {
    text-align: right;
    font-weight: bold;
}

section#specs-product #product-table td:last-child {
    text-align: left;
    font-weight: normal;
}

section#specs-product #product-table th {
    background-color: #fafafa;
    color: #333;
    font-weight: bold;
}

section#specs-product #product-table tr{
    font-weight: 600;
    transition: 0.1s;
    font-size: 1.2rem;
}

section#specs-product #product-table tr:nth-of-type(2n) {
    background-color: #f9f9f9;
}

section#specs-product #product-table tr:hover {
    background-color: var(--gray-color);
}

@media (max-width: 480px){
    section#specs-product #product-table th, #product-table td {
        font-size: 0.9em;
    }

    section#specs-product #product-table td:first-child {
        text-align: center;
        font-weight: bold;
    }

    section#specs-product #product-table td:last-child {
        text-align: left;
        font-weight: normal;
    }

}

/*------------------------- DOWNLOADS -------------------------*/

section#downloads-product {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem;
    background-color: var(--background-color);
}

section#downloads-product h2 {
    margin-bottom: 3.4rem;
}

section#downloads-product .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, max-content));
    gap: 2rem;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    justify-content: center;
    box-sizing: border-box;
    padding: 0 1rem;
}

section#downloads-product .file-box {
    background-color: white;
    border-radius: 1rem;
    padding: 1.2rem 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 300px;
    position: relative;
    align-items: flex-start;
}

section#downloads-product .file-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

section#downloads-product .icon-wrapper {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

section#downloads-product .icon-wrapper img {
    width: 3.8rem;
    height: 3.8rem;
    background-color: none;
    box-shadow: none;
}

section#downloads-product .file-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 3.3rem;
}

section#downloads-product .file-info .row-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: var(--dark-color);
    gap: 0.5rem;
    font-size: 1.2rem;
}

section#downloads-product .file-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
    word-break: break-word;
}

section#downloads-product .file-info p {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 0.4rem;
}

section#downloads-product .file-info a {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    transition: color 0.2s ease;
}

section#downloads-product .file-info a p {
    color: var(--accent-color);
    margin: 0;
}

section#downloads-product .file-info a p:hover {
    text-decoration: underline;
}

section#downloads-product .file-info a img {
    width: 1.4rem;
    height: 1.4rem;
    background-color: none;
    box-shadow: none;
}

@media (max-width: 480px){

    section#description-product .nav-button {
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.4);
        color: white;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
        z-index: 1;
        width: 2rem;
        border-radius: 0.3rem;
    }

    section#downloads-product{
        padding: 2rem 1rem;
    }

    section#downloads-product h2 {
        width: auto !important;
        font-size: clamp(1.8rem, 6vw + 0.5rem, 3rem);
    }

    section#downloads-product .file-box {
        padding: 1rem 0.5rem;
        max-width: 100%;
        width: 100%;
    }

    section#downloads-product .icon-wrapper {
        top: 50%;
        transform: translateY(-50%);
        left: 1rem;
    }

    section#downloads-product .icon-wrapper img {
        width: 3rem;
        height: 3rem;
    }

    section#downloads-product .file-info {
        margin-left: 4rem;
    }

    section#downloads-product .file-info h4 {
        font-size: 1.2rem;
    }

    section#downloads-product .file-info p {
        font-size: 1rem;
    }

    section#downloads-product .file-info a {
        font-size: 1rem;
    }

    section#downloads-product .file-info a p {
        font-size: 1em;
    }

    section#downloads-product .file-info a img {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/*------------------------- SUPPORT -------------------------*/

section#support-product {
    display: flex;
    justify-content: center;
    padding: 2rem 2rem;
    background-color: var(--background-color);
}

section#support-product * {
    color: var(--dark-color);
}

section#support-product h3{
    font-size: 1.3rem;
}

section#support-product .question-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
    margin: 2rem 0;
}

section#support-product .question-wrapper article {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px;
    text-align: center;

}

section#support-product .question-wrapper article p{
    font-size: 1.2rem;
}

section#support-product a{
    box-sizing: content-box;
    background-color: var(--detail-color);
    color: var(--background-color);
    padding: 0.8rem;
    font-size: 1.3rem;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    max-width: 150px;
    transition: 0.1s ease-in;
}

section#support-product a:hover{
    background-color: var(--accent-color);
}

/*------------------------- LIGHTBOX -------------------------*/

.lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: top left;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px black;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
    display: block;
    margin: 0 auto;
}

.lightbox-zoom-container {
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 5rem;
    font-size: 4rem;
    color: white;
    cursor: pointer;
    transition: color 0.2s ease;
}

.lightbox-close:hover {
    color: var(--accent-color);
}

/*------------------------- OTHER -------------------------*/

section#description-product .width-container {
    display: flex;
    justify-content: center;
    justify-items: center;
    width: 100%;
    min-width: 100%;
}

section#description-product .width-container .description-row-wrapper .description-video-wrapper{
    width: 100%;
    max-width: 50%;
    aspect-ratio: 16/9;
}

section#description-product .width-container .description-row-wrapper .description-video-wrapper iframe{
    max-width: 100%;
    width: 100%;
    height: 100%;
}



.hidden {
    display: none !important;
}
