* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Poppins, sans-serif;
    background: #f5f5f5;
}

/* HEADER */
.header-unika {
    background-color: black;
    padding: 20px;
    color: white;
    font-weight: 700;
    text-align: center;
    font-size: 26px;
    position: relative;
    /* Para posicionar o ícone absoluto */
}

/* GRID */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.product-card {
    background: white;
    border-radius: 14px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: .2s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.product-card h3 {
    font-size: 16px;
    margin: 12px 0 8px 0;
}

.product-card p {
    font-size: 18px;
    margin: 0;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    animation: fadeIn .3s ease;
    overflow-y: auto;
    z-index: 1000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 600px;
    margin: auto auto 0 auto;
    position: relative;
    animation: slideUp .3s ease;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .modal-content {
        border-radius: 20px;
        margin: 40px auto;
        min-height: auto;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background-color: black;
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    cursor: pointer;
    font-weight: 300;
    color: white;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    padding-right: 40px;
}

.modal-body {
    padding: 0;
}

/* CARROSSEL */
.carousel {
    position: relative;
    margin: 0;
    background: #f8f8f8;
}

.carousel img {
    width: 100%;
    display: block;
    max-height: 400px;
    object-fit: contain;
    background: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: .2s;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.left {
    left: 15px;
}

.carousel-btn.right {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f8f8f8;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: black;
    transition: .3s;
}

.indicator-dot.active {
    background-color: black;
    width: 24px;
    border-radius: 4px;
}

.product-info {
    padding: 24px;
}

.product-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.product-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

.price-section {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.price-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.price-value {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.payment-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
}

.payment-list li:last-child {
    border-bottom: none;
}

.payment-icon {
    font-size: 20px;
}

/* BOTÕES */
.btn-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 24px 24px;
}

@media (min-width: 480px) {
    .btn-area {
        flex-direction: row;
    }
}

.btn-mercadolivre {
    flex: 1;
    background: #3feaa6;
    border: none;
    padding: 16px;
    color: #ffffff;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: .2s;
}

.btn-mercadolivre:hover {
    background: #3feaa6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 220, 209, 0.4);
}

.btn-icon-ml {
    width: 40px;
    height: auto;
    display: block;
}

.btn-close {
    flex: 1;
    background: #6b7280;
    border: none;
    padding: 16px;
    color: white;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 600;
    transition: .2s;
}

.btn-close:hover {
    background: #4b5563;
}

#logo-un1ka {
    width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* SOLD OUT */
.product-card.sold-out {
    filter: grayscale(100%);
    opacity: 0.8;
    position: relative;
    cursor: not-allowed;
    pointer-events: none;
}

.product-card.sold-out::after {
    content: "Produto esgotado";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    z-index: 10;
    white-space: nowrap;
}

/* BANNER ROTATIVO */
.main-banner {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 40px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.banner-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

@media (min-width: 768px) {
    .banner-slide {
        height: 400px;
        aspect-ratio: auto;
    }
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* QUEM SOMOS */
.about-us {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    align-items: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    font-size: 28px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .about-us {
        flex-direction: row;
        text-align: left;
    }

    .about-image {
        flex: 1;
    }
}

/* HEADER INSTAGRAM ICON */
.header-social {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    transition: transform 0.2s;
}

.header-social:hover {
    transform: translateY(-50%) scale(1.1);
    color: #f0f0f0;
}

/* FOOTER */
.footer-unika {
    background-color: #000000;
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
}

.footer-logo {
    width: 100px;
    /* Logo pequena */
    height: auto;
    display: block;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: white;
    font-size: 25px;
    /* Ícone maior */
    transition: opacity 0.2s;
}

.footer-social a:hover {
    opacity: 0.8;
}

.footer-copyright {
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    border-top: 1px solid #444;
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Para telas menores */
    gap: 10px;
}

#footer-dev {
    color: #888;
    text-decoration: none;
}

/* MERCADO LIVRE CARD */
.ml-card-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    background: white;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.ml-logo-box {
    background: #fdf5e6;
    /* Cor aproximada do fundo do logo na imagem */
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.ml-logo-box img {
    width: 100%;
    height: auto;
}

.ml-content {
    flex: 1;
}

.ml-content h2 {
    font-size: 24px;
    color: #0e0e0e;
    margin: 0 0 10px 0;
}

.ml-content p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.btn-ml-store {
    background-color: #ffe600;
    /* Amarelo Mercado Livre */
    color: #2d3277;
    /* Azul escuro Mercado Livre */
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-ml-store:hover {
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .ml-card-container {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .ml-content {
        margin: 0 30px;
    }
}