/** {
  outline: 1px solid limegreen;
}
*/

/* Seção do Carousel */
.carousel-wrapper {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 5px;
    padding-left: 45px;
    position: relative;
    background-color: transparent;
}

.carousel-container {
    display: flex;
    overflow-x: hidden;
    gap: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -webkit-scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-stop: always;
    user-select: none;
}

.carousel-container.dragging {
    scroll-behavior: auto; /* Remove smooth durante o arrasto */
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container .carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-container .carousel-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-container .carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    left: calc(50% + 22.5px);
    transform: translateX(-50%);
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: #ffffff;
    transform: scale(1.4);
}

.carousel-dot:hover {
    background: #ffffffcc;
}

/* Seção de Ícones Sociais */
.social-icons {
    position: fixed;
    bottom: 45px;
    left: 0;
    width: 100%;
    padding-left: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    z-index: 1000;
}

.social-icons li {
    display: inline-block;
    position: relative;
}

.social-icons img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.2s ease;
    animation: jumpWave 3.5s ease-in-out infinite;
    -webkit-animation: jumpWave 3.5s ease-in-out infinite;
    will-change: transform;
}

.social-icons li::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    animation: shadowWave 3.5s ease-in-out infinite;
    z-index: -1;
}

.social-icons li:nth-child(1) img, .social-icons li:nth-child(1)::after { animation-delay: 0s; -webkit-animation-delay: 0s; }
.social-icons li:nth-child(2) img, .social-icons li:nth-child(2)::after { animation-delay: 0.1s; -webkit-animation-delay: 0.1s; }
.social-icons li:nth-child(3) img, .social-icons li:nth-child(3)::after { animation-delay: 0.2s; -webkit-animation-delay: 0.2s; }
.social-icons li:nth-child(4) img, .social-icons li:nth-child(4)::after { animation-delay: 0.3s; -webkit-animation-delay: 0.3s; }
.social-icons li:nth-child(5) img, .social-icons li:nth-child(5)::after { animation-delay: 0.4s; -webkit-animation-delay: 0.4s; }
.social-icons li:nth-child(6) img, .social-icons li:nth-child(6)::after { animation-delay: 0.5s; -webkit-animation-delay: 0.5s; }

.social-icons img:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

.social-icons li:hover::after {
    animation-play-state: paused;
    opacity: 0;
}

/* Seção do Nome da Loja */
.store-name {
    margin-top: 20px;
    padding-left: 48px;
    padding-right: 5px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

.store-name h2 {
    color: #333333;
    height: auto;
    font-family: "Roboto", sans-serif;
    margin: 0;
    display: inline;
    white-space: normal;
    text-align: center;
}

.store-name h2 .share-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.7rem;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 5px;
    vertical-align: bottom;
    margin-bottom: 1px;
}

.store-name h2 .share-btn:hover,
.store-name h2 .share-btn:active,
.store-name h2 .share-btn:focus {
    color: #bdc3c7;
    outline: none;
}

/* Seção da Descrição */
.description {
    padding: 0 16px 0 48px;
    margin-top: 21px;
    height: 300px;
    overflow-y: auto;
}

.description p,
.description ul,
.description ol,
.description li {
    color: #4A4A4A;
    font-size: 1.1rem;
    font-family: "Roboto", sans-serif;
    line-height: 1.4;
    text-align: justify;
    margin: 0;
    padding: 0;
}

.description ul,
.description ol {
    padding-left: 1.2em;
    margin-top: 4px;
}

.description ul { list-style: disc outside; }
.description ol { list-style: decimal outside; }




/* Sombra superior saindo da parte inferior do store-name */
.store-name.scroll-shadow-top::after {
    content: "";
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15), transparent);
    z-index: 10;
}

/* Sombra inferior saindo da parte superior do store-info */
.store-info.scroll-shadow-bottom::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent);
    z-index: 10;
}

/* Seção de Informações da Loja */
.store-info {
    position: fixed;
    bottom: 125px;
    left: 0px;
    width: 100%;
    padding: 10px 48px;
    bottom: 22px;
    height: 205px;
    background-color: #f4f4f4;
    z-index: 1000;
    box-sizing: border-box;
}

.store-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #4A4A4A;  
    font-family: "Roboto", sans-serif;
    line-height: 18px;
    z-index: 1001;
    position: relative;
}

.store-info li {
    margin-bottom: 2px;
    font-size: 0.95rem;
}

/* Seção de Variáveis de Estilo */
:root {
    --store-info-height: 90px;
}

/* Seção de Media Queries */
@media (min-width: 768px) {
    .social-icons {
        margin-top: calc(60% - 15px);
    }

    .social-icons img {
        width: 50px;
        height: 50px;
    }

    .social-icons li::after {
        width: 30px;
        height: 5px;
    }
}

@media (min-width: 1600px) {
    .carousel-wrapper {
        max-width: 1000px;
    }

    .carousel-container .carousel-item img {
        aspect-ratio: 16 / 4;
        max-height: 500px;
    }

    .social-icons img {
        width: 60px;
        height: 60px;
    }

    .social-icons li::after {
        width: 36px;
        height: 6px;
    }

    .carousel-dots {
        left: calc(50% + 22.5px);
    }
}

@media (max-width: 768px) {
    .carousel-wrapper {
        max-width: 100%;
        padding-left: 45px;
    }

    .social-icons {
        padding-left: 40px;
    }

    .description h2 {
        padding-left: 48px;
        padding-right: 10px;
    }

    
}

@media (max-height: 720px) {
    .description p {
        padding-bottom: calc(var(--store-info-height) + 15px);
    }
}

@media (max-width: 950px) and (orientation: landscape) {
    .store-info {
        position: relative;
        bottom: 125px;
        left: 0;
        width: 100%;
        padding: 10px 48px;
        bottom: 100px;
        height: 135px;
        background-color: #f4f4f4;
        z-index: 1000;
        box-sizing: border-box;
    }

    .store-info p {
        margin: 0;
        font-size: 0.9rem;
        color: #4A4A4A;  
        font-family: "Roboto", sans-serif;
        line-height: 18px;
        z-index: 1001;
    }

    .store-info li {
        margin-bottom: 2px;
        font-size: 0.95rem;
    }

    .social-icons {
        margin-top: calc(-5% - 25px);
        position: relative;
        bottom: 25px;
        left: 0;
        width: 100%;
        padding-left: 40px;
        display: flex;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
        list-style: none;
        z-index: 1000;
    }

    .description p {
        position: relative;
        color: #4A4A4A;
        padding-left: 110px;
        padding-right: 75px;
        text-align: justify;
        margin-top: 10px;
        display: block;
        height: 300px;
        font-size: 1.1rem;
        font-family: "Roboto", sans-serif;
        line-height: 18px;
        overflow-y: auto;
    }
}

/* Seção de Animações */
@keyframes jumpWave {
    0%, 10% { transform: translateY(0); }
    5% { transform: translateY(-10px); }
    10.1%, 100% { transform: translateY(0); }
}

@-webkit-keyframes jumpWave {
    0%, 10% { -webkit-transform: translateY(0); }
    5% { -webkit-transform: translateY(-10px); }
    10.1%, 100% { -webkit-transform: translateY(0); }
}

@keyframes shadowWave {
    0%, 10% { transform: translateX(-50%) scale(1); opacity: 0; }
    5% { transform: translateX(-50%) scale(0.7); opacity: 0.4; }
    10.1%, 100% { transform: translateX(-50%) scale(1); opacity: 0; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}