/* =========================
   RESET Y FUENTE GENERAL
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
button,
input,
textarea,
select,
a,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
div {
    font-family: 'Poppins', Arial, sans-serif !important;
}

/* =========================
   VARIABLES
========================= */

:root {
    --yellow: #ffc812;
    --yellow-dark: #e2ad00;
    --black: #000000;
    --white: #ffffff;
    --border-gray: #e5e7eb;
    --text-dark: #111111;
    --text-gray: #555555;
}

/* =========================
   TÍTULO DE CATEGORÍA
========================= */

.category-title-banner {
    width: 100%;
    background: var(--black);
    color: var(--yellow);
    text-align: center;
    padding: 20px 24px;
    margin-bottom: 55px;
}

.category-title-banner h1 {
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: 42px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.1;
    color: var(--yellow);
    font-style: normal !important;
}

/* =========================
   CONTENEDOR DE PRODUCTOS
========================= */

.category-products-container {
    width: 92%;
    max-width: 1140px;
    margin: 0 auto 75px;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 38px;
    row-gap: 60px;
    align-items: start;
}

/* =========================
   TARJETAS DE PRODUCTO
========================= */

.category-product-card {
    background: var(--white);
    box-shadow: none;
    border: none;
    text-align: center;
    padding: 18px 10px;
    transition: 0.2s ease;
}

.category-product-card:hover {
    transform: translateY(-3px);
}

.category-product-card .product-image-box {
    width: 100%;
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.category-product-card .product-image-box img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

.category-product-card h3 {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    min-height: 46px;
    margin-bottom: 10px;
}

.category-product-card .price {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 18px;
}

/* =========================
   BOTÓN OPCIONES
========================= */

.category-product-card .btn-more {
    display: inline-block;
    background: var(--yellow);
    color: var(--white);
    border: 2px solid var(--yellow);
    border-radius: 999px;
    padding: 10px 26px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.category-product-card .btn-more:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
}

/* =========================
   OPCIONES DE PRODUCTO
========================= */

.category-product-card .options-box {
    margin-top: 14px;
    background: var(--white);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.category-product-card .option-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-gray);
    font-size: 13px;
    text-align: left;
}

.category-product-card .option-row:last-child {
    border-bottom: none;
}

.category-product-card .option-name {
    font-weight: 500;
    color: var(--text-dark);
}

.category-product-card .option-price {
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.category-product-card .btn-buy {
    background: var(--black);
    color: var(--yellow);
    padding: 8px 13px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.2s ease;
}

.category-product-card .btn-buy:hover {
    background: var(--yellow);
    color: var(--black);
}

.no-options {
    font-size: 13px;
    color: var(--text-gray);
    text-align: center;
    margin: 8px 0;
}

.empty-category {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    margin: 70px 0;
}

/* =========================
   BUSCADOR COMPLETO EN NEGRO
========================= */

.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 470px;
    justify-self: end;
}

.search-wrapper .search-bar {
    width: 100%;
    max-width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    height: 44px;
}

.search-bar input {
    height: 44px !important;
    border: 2px solid var(--black) !important;
    border-right: none !important;
    background: var(--white) !important;
    color: var(--black) !important;
    font-size: 14px !important;
    outline: none !important;
}

.search-bar input::placeholder {
    color: var(--black) !important;
    opacity: 0.75 !important;
}

.search-bar input:focus {
    border-color: var(--black) !important;
    box-shadow: none !important;
}

.search-btn {
    width: 60px !important;
    height: 44px !important;
    background: var(--black) !important;
    border: 2px solid var(--black) !important;
    cursor: pointer;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-btn img {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    object-fit: contain !important;
    display: block !important;
}

/* =========================
   SUGERENCIAS DEL BUSCADOR
========================= */

.suggestions-box {
    position: absolute;
    top: 46px;
    left: 0;
    width: 100%;
    background: var(--white);
    border: 2px solid var(--black) !important;
    border-top: none !important;
    z-index: 9999;
    display: none;
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-dark);
    border-bottom: 1px solid #eeeeee;
}

.suggestion-item:hover {
    background: var(--black) !important;
    color: var(--yellow) !important;
}

.suggestion-title {
    font-weight: 600;
    display: block;
}

.suggestion-category {
    font-size: 12px;
    opacity: 0.75;
}

/* =========================
   MI CARRITO EN NEGRO
========================= */

.header-link {
    color: var(--black) !important;
}

.header-link span {
    color: var(--black) !important;
    font-weight: 500 !important;
}

.header-icon {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* =========================
   BARRA DE CATEGORÍAS MÁS DELGADA
========================= */

.category-bar .category-item {
    font-weight: 300 !important;
    font-size: 12px !important;
    letter-spacing: 0.2px !important;
}

.category-bar .category-item span {
    font-weight: 300 !important;
    font-size: 12px !important;
}

.category-bar .category-item img {
    width: 22px !important;
    height: 22px !important;
    object-fit: contain !important;
}

/* =========================
   REDES SOCIALES FOOTER
========================= */

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.social-links a {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;

    border-radius: 50%;
    background: var(--yellow);

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    text-decoration: none;
    transition: 0.2s ease;
}

.social-links a:hover {
    background: var(--yellow-dark);
    transform: translateY(-2px);
}

.social-links img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1100px) {
    .category-products-container {
        width: 94%;
        max-width: 920px;
    }

    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 35px;
        row-gap: 55px;
    }

    .category-title-banner h1 {
        font-size: 38px;
    }

    .category-product-card .product-image-box {
        height: 200px;
    }

    .category-product-card .product-image-box img {
        max-height: 190px;
    }

    .search-wrapper {
        justify-self: center;
        max-width: 600px;
    }
}

/* =========================
   CELULAR
========================= */

@media (max-width: 700px) {
    .category-title-banner {
        padding: 16px 18px;
        margin-bottom: 38px;
    }

    .category-title-banner h1 {
        font-size: 28px;
        letter-spacing: 2px;
        font-style: normal !important;
    }

    .category-products-container {
        width: 100%;
        padding: 0 14px;
        margin: 0 auto 55px;
    }

    .category-products-grid {
        grid-template-columns: 1fr;
        row-gap: 38px;
    }

    .category-product-card {
        padding: 16px 8px;
    }

    .category-product-card .product-image-box {
        height: 190px;
    }

    .category-product-card .product-image-box img {
        max-height: 180px;
    }

    .category-product-card h3 {
        font-size: 16px;
        min-height: auto;
    }

    .category-product-card .price {
        font-size: 20px;
    }

    .category-product-card .btn-more {
        padding: 10px 24px;
        font-size: 14px;
    }

    .category-product-card .option-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 7px;
    }

    .category-product-card .option-name {
        text-align: center;
    }

    .category-product-card .btn-buy {
        width: 100%;
        display: block;
    }

    .search-wrapper {
        width: 100%;
        max-width: 100%;
        justify-self: center;
    }

    .search-bar {
        width: 100%;
        height: 40px;
    }

    .search-bar input {
        height: 40px !important;
        font-size: 13px !important;
    }

    .search-btn {
        width: 50px !important;
        height: 40px !important;
    }

    .search-btn img {
        width: 28px !important;
        height: 28px !important;
        max-width: 28px !important;
        max-height: 28px !important;
    }

    .suggestions-box {
        top: 42px;
    }

    .suggestion-item {
        font-size: 13px;
    }

    .category-bar .category-item {
        font-size: 12px !important;
        font-weight: 300 !important;
    }

    .category-bar .category-item span {
        font-size: 12px !important;
        font-weight: 300 !important;
    }

    .category-bar .category-item img {
        width: 19px !important;
        height: 19px !important;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }

    .social-links img {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
}

/* =========================
   CELULARES MUY PEQUEÑOS
========================= */

@media (max-width: 390px) {
    .category-title-banner h1 {
        font-size: 24px;
    }

    .category-product-card .product-image-box {
        height: 170px;
    }

    .category-product-card .product-image-box img {
        max-height: 160px;
    }

    .category-product-card h3 {
        font-size: 15px;
    }

    .category-product-card .price {
        font-size: 18px;
    }
}

/* =========================
   FOOTER NUEVO ESTILO TIENDA
========================= */

.new-footer {
    margin-top: 70px;
    background: #f5f5f5;
    border-top: 5px solid #ffc812;
    padding: 0;
    color: #111;
}

.footer-main {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 24px 34px;

    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 38px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 170px;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    max-width: 310px;
}

.footer-column h4,
.footer-payments h4 {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #000;
    position: relative;
}

.footer-column h4::after,
.footer-payments h4::after {
    content: "";
    width: 42px;
    height: 3px;
    background: #ffc812;
    display: block;
    margin-top: 8px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column a {
    color: #222;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: 0.2s ease;
}

.footer-column a:hover {
    color: #d4a300;
    padding-left: 4px;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    margin-bottom: 6px;
}

.footer-map-link {
    width: fit-content;
    margin-top: 10px;
    background: #000;
    color: #ffc812 !important;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px !important;
}

.footer-map-link:hover {
    background: #ffc812;
    color: #000 !important;
    padding-left: 16px !important;
}

.footer-payments {
    max-width: 1180px;
    margin: 0 auto;
    padding: 26px 24px;
    border-top: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-payments h4 {
    margin-bottom: 0;
}

.footer-payments img {
    max-width: 360px;
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #555;
}

.admin-btn {
    background: #000;
    color: #ffc812;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    transition: 0.2s ease;
}

.admin-btn:hover {
    background: #ffc812;
    color: #000;
}

/* Redes sociales dentro del footer nuevo */
.new-footer .social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.new-footer .social-links a {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;

    border-radius: 50%;
    background: #ffc812;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    text-decoration: none;
    transition: 0.2s ease;
}

.new-footer .social-links a:hover {
    background: #e2ad00;
    transform: translateY(-2px);
}

.new-footer .social-links img {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    object-fit: contain !important;
    display: block !important;
}

/* =========================
   RESPONSIVE FOOTER
========================= */

@media (max-width: 1000px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 34px;
    }

    .footer-payments {
        flex-direction: column;
        text-align: center;
    }

    .footer-payments h4::after {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .new-footer {
        margin-top: 45px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 38px 20px 28px;
        gap: 30px;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-logo {
        width: 150px;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-column {
        align-items: center;
    }

    .footer-column h4::after {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-map-link {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-payments {
        padding: 24px 20px;
    }

    .footer-payments img {
        max-width: 280px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 22px 20px 28px;
    }

    .new-footer .social-links {
        justify-content: center;
    }
}

/* =========================
   BOTÓN WHATSAPP FLOTANTE
========================= */

.whatsapp-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 9px;

    background: #1fc83a;
    color: #ffffff;
    text-decoration: none;

    padding: 12px 24px 12px 18px;
    border-radius: 999px;

    font-size: 15px;
    font-weight: 600;

    box-shadow:
        0 0 0 20px rgba(31, 200, 58, 0.13),
        0 8px 18px rgba(0, 0, 0, 0.25);

    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 0 23px rgba(31, 200, 58, 0.18),
        0 10px 22px rgba(0, 0, 0, 0.32);
}

.whatsapp-icon {
    width: 22px;
    height: 22px;
    border: 2px solid #ffffff;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 700;
}

.whatsapp-dot {
    position: absolute;
    top: -2px;
    right: 8px;

    width: 10px;
    height: 10px;

    background: #ff1f1f;
    border-radius: 50%;
}

/* CELULAR */
@media (max-width: 600px) {
    .whatsapp-float {
        right: 14px;
        bottom: 16px;

        font-size: 12px;
        padding: 10px 16px 10px 13px;

        box-shadow:
            0 0 0 13px rgba(31, 200, 58, 0.13),
            0 8px 18px rgba(0, 0, 0, 0.25);
    }

    .whatsapp-icon {
        width: 19px;
        height: 19px;
        font-size: 10px;
    }
}

/* =========================
   CATEGORÍAS EN NEGRITAS
========================= */

.category-bar .category-item,
.category-bar .category-item span {
    font-weight: 800 !important;
}

.category-bar .category-item {
    font-size: 13px !important;
}

.category-bar .category-item span {
    font-size: 13px !important;
}