@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto+Mono:ital,wght@0,100..700;1,100..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #fcfcfc;
    --bg-tertiary: #d8d8d8;
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-tertiary: #555555;
    --border-color: #e0e0e0;
    --border-dark: #0000001a;
    --header-bg: linear-gradient(180deg, white, #dbdbdb93);
    --input-border: #cccccc;
    --input-border-dark: #777777;
    --card-shadow: rgba(0, 0, 0, 0.08);
    --button-bg: #0270ff86;
    --button-hover: #00000086;
    --accent-yellow: #ffd90286;
    --modal-bg: #fefefe;
    --scrollbar-bg: #d3d3d391;
    --scrollbar-thumb: #a8a8a8;
}

/* Tema Escuro */
body.dark-theme {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-tertiary: #a0a0a0;
    --border-color: #404040;
    --border-dark: #ffffff1a;
    --header-bg: linear-gradient(180deg, #1a1a1a, #2d2d2d);
    --input-border: #404040;
    --input-border-dark: #666666;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --button-bg: #0270ff;
    --button-hover: #ffd900;
    --accent-yellow: #ffd900;
    --modal-bg: #2d2d2d;
    --scrollbar-bg: #404040;
    --scrollbar-thumb: #666666;
}

body {
    font-family: "Poppins";
    background-color: var(--bg-primary);
    color: var(--text-primary);
    margin: 0;
    transition: background-color 0.3s;
}

header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background: var(--header-bg);
    padding: 20px;
    border-bottom: 2px solid var(--border-dark);
    color: rgb(255, 255, 255);
    box-shadow: 0 4px 10px var(--border-dark);
}

.project-description {
    width: 700px;
    font-size: 22px;
    text-align: center;
    color: var(--text-primary);
}

header div {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
    cursor: default;
}

header div img {
    width: 40px;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 3px solid #0270ff86;
}

header h2 {
    font-size: 1.4em;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
}

header a svg {
    display: none;
}

#theme {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

#theme svg {
    fill: var(--text-primary);
    transition: fill 0.3s ease, transform 0.3s ease;
}

#theme:hover svg {
    transform: rotate(20deg);
}

header a {
    background-color: var(--accent-yellow);
    padding: 8px 15px;
    color: #000000;
    text-decoration: none;
    border: 2px solid var(--text-primary);
    border-bottom: 4px solid var(--text-primary);
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: 600;
}

header a:hover {
    background-color: #ffd900;
    transform: translateY(-2px);
    color: var(--text-primary);
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.load-more-btn {
    width: 50%;
    margin-top: 30px;
    transition: 0.3s;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, #0070cc, #4686cf);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 144, 255, 0.4);
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 10px;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

option {
    font-size: 12px;
}

#search-input,
#filter-tipo {
    font-family: "Poppins";
    width: 100%;
    max-width: 500px;
    padding: 12px 20px;
    border: 2px solid var(--input-border);
    border-bottom: 4px solid var(--input-border);
    border-radius: 15px;
    font-size: 14px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

#search-input:hover {
    border-color: var(--input-border-dark);
}

#search-input:focus {
    border-color: var(--text-primary);
    box-shadow: 0 0 8px rgba(95, 95, 95, 0.25);
    outline: none;
}

#modal {
    display: flex;
    align-items: center;
    gap: 10px;
}

.container .card {
    width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: space-between;
    padding: 25px;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    border-bottom: 3px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-secondary);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.card .title {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.card .price {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 10px;
}

.container .card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.container .card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 10px;
}

.card button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.card button:hover {
    background-color: #218838;
    transform: translateY(-2px);
}

.card .product-button,
.load-more-btn {
    width: 70%;
    justify-content: center;
    text-align: center;
    background-color: var(--button-bg);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid var(--text-primary);
    border-bottom: 4px solid var(--text-primary);
    font-weight: 600;
}

.product-button svg {
    display: none;
    transition: all 0.3s;
}

.card .product-button:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.card .product-button:hover svg {
    fill: black;
}

.product-button:hover svg {
    display: block;
}

.whatsapp-button {
    background-color: #28a745 !important;
    /* Verde do WhatsApp */
    border-color: #218838 !important;
}

.whatsapp-button:hover {
    background-color: #218838 !important;
}

.product-button:hover span {
    display: none;
}

footer {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

footer p {
    margin: 0;
    font-size: 0.9em;
}

::-webkit-scrollbar {
    width: 7px;
    background-color: var(--scrollbar-bg);
}

::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: 5px;
}

#btnTopo {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: var(--button-bg);
    color: rgb(255, 255, 255);
    border: 2px solid var(--text-primary);
    border-bottom: 4px solid var(--text-primary);
    border-radius: 20%;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, background-color 0.3s, border-color 0.3s;
}

#btnTopo:hover {
    background-color: var(--button-hover);
    color: rgb(255, 255, 255);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--modal-bg);
    margin: auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    overflow-y: auto;
    max-height: 80vh;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.close-button {
    color: #ff0000;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #b10000;
    text-decoration: none;
    cursor: pointer;
}

#modal-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

#modal-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0;
}

#modal-price {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 10px 0;
}

#modal-description {
    font-size: 1em;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

#modal-product-url {
    background-color: var(--accent-yellow);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border: 2px solid var(--text-primary);
    border-bottom: 4px solid var(--text-primary);
}

#modal-product-url:hover {
    background-color: #ffd900;
}

.modal-open {
    overflow: hidden;
}

.btn-zap {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    background-color: rgb(0, 150, 12);
    border: 2px solid rgb(0, 0, 0);
    border-bottom: 4px solid rgb(0, 0, 0);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: 0.3s;
}

.btn-zap:hover {
    transform: scale(1.1);
}

.btn-zap svg {
    fill: #ffffffbe;
}

@media (max-width: 768px) {
    .project-description {
        width: 300px;
        font-size: 14px;
    }

    header a span {
        display: none;
    }

    header a svg {
        display: block;
    }

    header h2 {
        font-size: 1.3em;
    }

    header div img {
        width: 30px;
    }

    .txt-input {
        display: none;
    }

    header a {
        padding: 5px;
        color: rgb(0, 0, 0);
        text-decoration: none;
        border: 2px solid rgb(0, 0, 0);
        border-bottom: 4px solid rgb(0, 0, 0);
        border-radius: 8px;
        transition: background-color 0.3s ease, transform 0.3s ease;
        font-weight: 600;
        transition: 0.3s;
    }

    .modal-content {
        width: 70%;
        max-width: 600px;
    }

    .container {
        padding: 10px;
    }

    .btn-zap {
        left: 10px;
    }

    .btn-zap svg {
        width: 35px;
        height: 35px;
    }
}

#slides-images {
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    position: relative;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 20px 25px 40px var(--card-shadow);
    transition: background-color 0.3s ease;
    border: 2px solid #50505036;
    border-bottom: 4px solid #50505036;
}

.slides-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.slides-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-primary);
    transition: opacity 0.6s ease-in-out;
    transition: all 0.4s;
}

.slide img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.3s;
}

.slide:hover {
    filter: brightness(0.9);
}

.slide-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border: 2px solid black;
    border-bottom: 4px solid black;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    border-radius: 5px;
    transition: background-color 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
}

.slide-prev {
    left: 10px;
}

.slide-next {
    right: 10px;
}

.slides-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(97, 97, 97, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid white;
}

.dot.active {
    background-color: rgb(73, 73, 73);
    transform: scale(1.2);
}

.dot:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-theme .slide-nav-button {
    background-color: rgba(255, 255, 255, 0.3);
}

body.dark-theme .slide-nav-button:hover {
    background-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 968px) {
    #slides-images {
        max-width: 99%;
        margin: 0 auto;
        border-radius: 0;
    }

    .slide-nav-button {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .slide-prev {
        left: 5px;
    }

    .slide-next {
        right: 5px;
    }

    .slides-dots {
        bottom: 10px;
        gap: 8px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 430px) {
    header h2 {
        font-size: 1.1em;
    }

    header div {
        gap: 10px;
    }
}

@media (max-width: 368px) {
    header h2 {
        font-size: 1em;
    }

    .slide-nav-button {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 380px) {
    header div img {
        display: none;
    }
}

/* ========== CATEGORIAS ========== */
#categories-section {
    width: 100%;
    background-color: var(--bg-primary);
    transition: background-color 0.3s ease;
}

.categories-header {
    text-align: center;
    margin-bottom: 30px;
}

.categories-header h2 {
    font-size: 1.8em;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.categories-header p {
    color: var(--text-tertiary);
    font-size: 1.05em;
    margin: 0;
}

.categories-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    background-color: var(--bg-primary);
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-decoration: none;
    color: white;
    box-shadow: 0 5px 15px var(--card-shadow);
    gap: 15px;
    min-height: 200px;
    position: relative;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #00000063, #0000004b);
    z-index: 0;
    transition: all 0.3s ease;
}

.category-card>* {
    position: relative;
    z-index: 1;
}

.category-card:hover::before {
    background: linear-gradient(135deg, #6d6d6d63, #dddddd4b);
    box-shadow: 0 10px 25px var(--card-shadow);
    border-color: white;
}

.category-name {
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    text-transform: capitalize;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-count {
    font-size: 0.9em;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ========== PÁGINA VIEW-PRODUCTS ========== */
.view-products-header {
    width: 100%;
    background: linear-gradient(175deg, var(--bg-tertiary), var(--button-bg));
    text-align: center;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
}

.view-products-header h1 {
    font-size: 2.2em;
    font-weight: 700;
}

.view-products-header p {
    font-size: 1.05em;
    margin: 0;
    margin-bottom: 15px;
    opacity: 0.9;
}

header a[href="index.html"] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .categories-container {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }

    .category-card {
        padding: 20px 15px;
        min-height: 180px;
    }

    .category-name {
        font-size: 0.95em;
    }

    .category-count {
        font-size: 0.85em;
    }

    .view-products-header h1 {
        font-size: 1.6em;
    }
}