@import url("theme.css");

#map {
    height: 100%;
    width: 100%;
}

.product-summary {
    position: relative;
    background: var(--background, #fff);
    border-radius: var(--main-border-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    margin: 0 auto;
    padding: var(--padding-value);
}

    .product-summary #content_prod {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .product-summary span {
        font-family: "Inter", sans-serif;
        font-size: 0.652rem;
    }

    .product-summary #closest-location {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

        .product-summary #closest-location h6 {
            font-size: 0.75rem;
            font-weight: bold;
            margin-bottom: 0px;
        }

    .product-summary #more-locations {
        font-size: 0.65rem;
        color: var(--highlight-blue);
    }

    .product-summary #content_prod button#go-to {
        background-color: transparent;
        border-radius: var(--main-border-radius);
        color: var(--highlight-blue);
        border-color: var(--highlight-blue);
        border-width: 1px;
        border-style: solid;
        padding: 6px 8px;
        transition: all 0.6s;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.8rem;
        height: 2.2rem;
        line-height: normal;
    }

    .product-summary button:hover {
        background-color: #0a7afb40;
        border-radius: var(--main-border-radius);
        transition: all 0.6s;
        cursor: pointer;
    }


    .product-summary button img {
        height: 1rem;
    }

    .product-summary .closest-location-wrapper {
        display: flex;
        justify-content: space-between;
    }

    .product-summary #online-stores {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

#stores {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding-left: 0;
    margin-bottom: 0px;
}

    #stores li {
        list-style: none;
    }

    #stores a,
    .online-store {
        object-fit: contain;
        height: clamp(2.25rem, 6vh, 6.75rem);
        width: clamp(2.25rem, 6vh, 6.75rem);
    }

.tag {
    background-color: var(--background-blue);
    color: var(--highlight-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 6px;
    border-radius: var(--main-border-radius);
    font-size: 0.625rem;
    flex-shrink: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .tag:hover {
        background-color: var(--highlight-blue);
        color: white;
    }

#product-name {
    display: flex;
    align-items: center;
    min-width: 0;
}

.product-summary #content_prod button.filled {
    background-color: var(--highlight-blue);
    color: white;
    width: 4rem;
    min-width: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-radius: var(--main-border-radius);
    border-color: var(--highlight-blue);
    border-width: 1px;
    border-style: solid;
    padding: 5px 8px 4px;
}

.product-summary .label {
    white-space: nowrap;
    transition: opacity 0.25s ease, transform 0.25s ease, width 0.25s ease;
}

.product-summary .arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
}

.product-summary.full_view #content_prod .filled {
    width: 2.5rem;
    min-width: 2.5rem;
    justify-content: center;
    gap: 0px;
}

    .product-summary.full_view #content_prod .filled .label {
        opacity: 0;
        transform: translateX(-10px);
        width: 0;
    }

    .product-summary.full_view #content_prod .filled .arrow {
        transform: rotate(90deg);
    }

#product {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

    #product .name {
        font-weight: bold;
        font-size: 0.75rem;
        margin-right: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
    }

    #product #description {
        font-size: 0.75rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

.full-text {
    overflow: visible !important;
    height: fit-content;
    display: block !important;
}
/*
#gallery {
  display: flex;
  overflow-x: scroll;
  /*height: clamp(20rem, 30vh, 35rem);
  gap: 10px;
}

#gallery img {
  object-fit: contain;
  width: clamp(10rem, 90%, 35rem);
}
*/
#product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0px;
}

    #product-info > div {
        min-width: 0px;
    }

#product-image {
    border-radius: 50%;
    object-fit: contain;
    width: clamp(2.5rem, 30%, 4rem);
    aspect-ratio: 2 / 2;
}

#extras-container {
    display: flex;
    flex-direction: column;
}

#extras-containter {
    font-weight: 700;
    font-size: 0.75rem;
}

#extras {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton {
    background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 6px;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Gallery */
#gallery-skeleton {
    display: flex;
    gap: 8px;
    overflow-x: hidden;
    height: clamp(20rem, 30vh, 60rem);
}

.skeleton-img {
    min-width: 80%;
    height: 100%;
    border-radius: 8px;
}

/* Extras */
#extras-container-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skeleton-title {
    width: 120px;
    height: 16px;
}

#extras-skeleton {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.extra-skeleton {
    display: flex;
    gap: 8px;
    align-items: center;
}

.skeleton-extra-img {
    width: 72px;
    height: 72px;
}

.skeleton-text {
    height: 10px;
    width: 100%;
}

    .skeleton-text.short {
        width: 60%;
    }

.hidden {
    display: none !important;
}

#con_gallery {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

    #con_gallery img, #con_gallery video {
        width: 100%;
        height: 100%;
        object-fit: contain;
        flex: 0 0 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
    }

    #con_gallery .gallery {
        position: relative;
        overflow: hidden;
    }

        #con_gallery .gallery .track {
            transform: translateX(-2540px);
            display: flex;
            transition: transform 0.4s ease;
        }

        #con_gallery .gallery button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            border: none;
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            cursor: pointer;
            z-index: 10;
        }

            #con_gallery .gallery button.prev {
                left: 8px;
            }

            #con_gallery .gallery button.next {
                right: 8px;
            }

        #con_gallery .gallery iframe {
            min-width: stretch;
            width: 100%;
            border-radius: 10px;
        }

#overlay_prev_full {
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    height: 0;
}

    #overlay_prev_full.open {
        opacity: 1;
        z-index: 99;
        position: absolute;
        height: 100%;
    }

    #overlay_prev_full button {
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        border: none;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        cursor: pointer;
        font-size: 18px;
    }

    #overlay_prev_full img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 12px;
        transition: transform 0.3s ease;
        transform: scale(1);
    }

@media(min-width:1024px) {
    .product-summary #content_prod {
        flex-direction: column-reverse !important;
        gap: 12px;
    }

    .product-summary #more-locations {
        font-size: 0.82rem;
    }

        .product-summary #more-locations:hover {
            cursor: pointer;
            text-decoration: underline;
            text-underline-offset: 5px;
        }


    .product-summary span {
        font-family: "Inter", sans-serif;
        font-size: 0.78rem;
    }

    #product #description {
        font-size: 0.875rem;
        overflow: visible;
        height: fit-content;
        display: block;
        margin-top: 8px;
    }

    #product .name {
        font-size: 1.0625rem;
    }

    .product-summary #closest-location h6,
    .product-summary #closest-location span {
        font-size: 0.8rem;
    }

    #more-button {
        display: none !important;
    }
}

@media (max-width: 1023px) {

    .handle {
        padding: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .barr_handle {
        width: 50px;
        height: 5px;
        background: #ccc;
        border-radius: 10px;
    }

    #con_gallery {
        display: none;
    }

    .product-summary {
        position: fixed;
        bottom: 20px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
        transform: translateY(0);
        transition: transform 0.3s ease, height 0.3s ease;
        padding: 0px var(--padding-value);
        overflow: auto;
        border-radius: var(--main-border-radius) var(--main-border-radius) 0px 0px;
        height: 95vh;
        will-change: transform;
        touch-action: none;
    }

    .full_view {
        max-height: calc(-32px + 100vh);
        z-index: 12;
    }

        .full_view #con_gallery {
            display: flex;
        }

        .full_view #product #description {
            overflow: visible !important;
            height: fit-content;
            display: block !important;
        }
}
