* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body,
button,
input,
textarea,
select,
a,
span,
p,
h1,
h2,
h3,
h4,
div {
    font-family: 'Poppins', Arial, sans-serif !important;
}

:root {
    --yellow: #ffc812;
    --yellow-dark: #e2ad00;
    --black: #000000;
    --white: #ffffff;
    --soft-gray: #f5f6f8;
    --border-gray: #e5e7eb;
    --text-gray: #444444;
    --light-yellow: #fff7d6;
}

body {
    background: var(--white);
    color: #111;
    overflow-x: hidden;
}

/* =========================
   CARRITO
========================= */

.cart-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 46px 22px 70px;
    background: var(--white);
}

.cart-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 38px;
}

.cart-title img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.cart-title h1 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--black);
}

/* =========================
   OPCIONES DE ENTREGA
========================= */

.delivery-choice {
    background: var(--black);
    color: var(--white);
    padding: 24px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.delivery-choice p {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 18px;
}

.delivery-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.delivery-btn {
    background: var(--yellow);
    color: var(--black);
    border: 1px solid var(--yellow);
    border-radius: 8px;
    padding: 13px 22px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    transition: 0.2s ease;
}

.delivery-btn span {
    color: var(--black);
    font-weight: 500;
}

.delivery-btn:hover {
    background: var(--yellow-dark);
    border-color: var(--yellow-dark);
    color: var(--black);
}

.delivery-btn:hover span {
    color: var(--black);
}

.delivery-btn.active {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.delivery-btn.active span {
    color: var(--black);
}

.delivery-btn.active img {
    filter: none;
}

.delivery-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.shipping-message {
    margin-top: 16px;
    margin-bottom: 0 !important;
    font-size: 14px;
    font-weight: 400;
    color: var(--yellow);
}

.delivery-time-box {
    margin-top: 14px;
    padding: 13px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--yellow);
    color: var(--white);

    display: flex;
    flex-direction: column;
    gap: 4px;
}

.delivery-time-box strong {
    font-size: 14px;
    font-weight: 500;
    color: var(--yellow);
}

.delivery-time-box span {
    font-size: 13px;
    font-weight: 400;
    color: var(--white);
}

/* =========================
   CONTENIDO DEL CARRITO
========================= */

.cart-content {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 34px;
    align-items: start;
}

.cart-products {
    width: 100%;
}

.cart-products-header {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 20px;
    padding: 0 0 12px;
    border-bottom: 2px solid var(--yellow);
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}

.cart-products-header span:last-child {
    text-align: right;
}

/* =========================
   PRODUCTO
========================= */

.cart-item {
    display: grid;
    grid-template-columns: 145px 1fr 150px;
    gap: 24px;
    align-items: center;
    padding: 26px 0;
    border-bottom: 1px solid var(--border-gray);
}

.item-image {
    width: 145px;
    height: 125px;
    background: #fafafa;
    border: 1px solid var(--border-gray);
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    max-width: 132px;
    max-height: 112px;
    object-fit: contain;
    display: block;
}

.item-info h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--black);
    margin-bottom: 8px;
    text-transform: uppercase;
    line-height: 1.3;
}

.item-option {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
}

.item-option strong {
    font-weight: 500;
}

.quantity-text {
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--black);
    font-weight: 400;
}

.quantity-control {
    width: fit-content;
    background: var(--yellow);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--yellow);
}

.quantity-control a,
.quantity-control span {
    width: 38px;
    height: 34px;
    color: var(--black);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-control a:hover {
    background: var(--yellow-dark);
}

.remove-link {
    display: block;
    font-size: 12px;
    color: #b91c1c;
    text-decoration: none;
    width: fit-content;
    font-weight: 400;
}

.remove-link:hover {
    text-decoration: underline;
}

.item-subtotal {
    text-align: right;
}

.item-subtotal p {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    font-weight: 400;
}

.item-subtotal strong {
    font-size: 18px;
    font-weight: 500;
    color: var(--black);
}

/* =========================
   RESUMEN
========================= */

.total-box {
    background: var(--soft-gray);
    border-radius: 10px;
    padding: 24px 22px;
    border: 1px solid var(--border-gray);
    position: sticky;
    top: 20px;
}

.total-box h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 22px;
    text-transform: uppercase;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--text-gray);
}

.summary-row span {
    font-weight: 400;
}

.summary-row strong {
    color: var(--black);
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.delivery-summary-time strong {
    color: var(--black);
    font-weight: 500;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 30px;
    padding-top: 18px;
    border-top: 2px solid var(--yellow);
}

.total-row span {
    font-weight: 500;
}

.total-row strong {
    font-size: 21px;
    color: var(--black);
    font-weight: 600;
}

.pay-btn {
    width: 100%;
    display: block;
    background: var(--yellow);
    color: var(--black);
    text-decoration: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    transition: 0.2s ease;
}

.pay-btn:hover {
    background: var(--yellow-dark);
}

.continue-link {
    display: block;
    margin-top: 15px;
    color: var(--black);
    font-size: 13px;
    text-align: center;
    text-decoration: none;
    font-weight: 400;
}

.continue-link:hover {
    text-decoration: underline;
}

/* =========================
   CARRITO VACÍO
========================= */

.empty-cart {
    text-align: center;
    padding: 80px 20px;
}

.empty-cart h2 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.empty-cart p {
    margin-bottom: 28px;
    color: var(--text-gray);
    font-weight: 400;
}

.empty-cart a {
    background: var(--yellow);
    color: var(--black);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.empty-cart a:hover {
    background: var(--yellow-dark);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1000px) {
    .cart-content {
        grid-template-columns: 1fr;
    }

    .total-box {
        position: static;
    }
}

@media (max-width: 700px) {
    .cart-page {
        padding: 35px 14px 55px;
    }

    .cart-title {
        gap: 12px;
        margin-bottom: 32px;
    }

    .cart-title img {
        width: 38px;
        height: 38px;
    }

    .cart-title h1 {
        font-size: 28px;
    }

    .delivery-choice {
        padding: 18px 16px;
        border-radius: 10px;
    }

    .delivery-buttons {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .delivery-btn {
        font-size: 14px;
        padding: 12px 18px;
    }

    .delivery-btn img {
        width: 28px;
        height: 28px;
    }

    .cart-products-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
        padding: 28px 0;
        border-bottom: 2px solid var(--yellow);
    }

    .item-image {
        width: 100%;
        height: 160px;
    }

    .item-image img {
        max-width: 190px;
        max-height: 150px;
    }

    .item-info h3 {
        font-size: 15px;
    }

    .quantity-control {
        margin-left: auto;
        margin-right: auto;
    }

    .remove-link {
        margin: 0 auto;
    }

    .item-subtotal {
        text-align: center;
    }

    .total-box {
        padding: 24px 18px;
    }

    .total-box h2 {
        text-align: center;
        font-size: 21px;
    }
}

@media (max-width: 390px) {
    .cart-title h1 {
        font-size: 24px;
    }

    .empty-cart h2 {
        font-size: 26px;
    }
}

/* =========================
   BUSCADOR EN NEGRO - CARRITO
========================= */

.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 #000000 !important;
    border-right: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 14px !important;
    outline: none !important;
}

.search-bar input::placeholder {
    color: #000000 !important;
    opacity: 0.75 !important;
}

.search-bar input:focus {
    border-color: #000000 !important;
    box-shadow: none !important;
}

.search-btn {
    width: 60px !important;
    height: 44px !important;
    background: #000000 !important;
    border: 2px solid #000000 !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: #ffffff;
    border: 2px solid #000000 !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: #111;
    border-bottom: 1px solid #eeeeee;
}

.suggestion-item:hover {
    background: #000000 !important;
    color: #ffc812 !important;
}

.suggestion-title {
    font-weight: bold;
    display: block;
}

.suggestion-category {
    font-size: 12px;
    opacity: 0.75;
}

/* =========================
   MI CARRITO EN NEGRO
========================= */

.header-link {
    color: #000000 !important;
}

.header-link span {
    color: #000000 !important;
}

.header-icon {
    width: 29px;
    height: 29px;
    object-fit: contain;
}

/* =========================
   RESPONSIVE BUSCADOR
========================= */

@media (max-width: 1100px) {
    .search-wrapper {
        justify-self: center;
        max-width: 600px;
    }
}

@media (max-width: 700px) {
    .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;
    }
}

/* =========================
   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;
    }
}
.quote-btn {
    width: 100%;
    display: block;
    text-align: center;

    margin-top: 14px;
    padding: 14px 20px;

    background: #ffffff;
    color: #000000;

    border: 2px solid #ffc812;
    border-radius: 999px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 800;

    transition: 0.25s ease;
}

.quote-btn:hover {
    background: #ffc812;
    color: #000000;
    transform: translateY(-2px);
}