/* =========================
   COMMON.CSS
   Estilos compartidos por TODAS las páginas del sitio
   (reset, tipografía, navbar base, logo, links, buscador, footer)
========================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #080808;
    overflow-x: hidden;
}
/* =========================
   NAVBAR (base, escritorio)
========================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.navbar {
    width: 100%;
    max-width: none;
    height: 90px;
    margin: auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 80px;
    box-sizing: border-box;

    background: #000;
}

.logo img {
    width: 170px;
    height: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.8px;

    color: #cfc9bd;
    text-decoration: none;

    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #d8c394;
}

.nav-link.active {
    color: #d8c394;
}

.search-button {
    width: 18px;
    height: 18px;

    padding: 0;
    margin-left: 2px;

    border: none;
    background: transparent;

    color: #cfc9bd;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
}

.search-button:hover {
    color: #d8c394;
}

.cart-nav-button {
    position: relative;
    width: 18px;
    height: 18px;

    padding: 0;
    margin-left: 2px;

    border: none;
    background: transparent;

    color: #cfc9bd;
    text-decoration: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: color 0.2s ease;
}

.cart-nav-button svg {
    width: 16px;
    height: 16px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.cart-nav-button:hover {
    color: #d8c394;
}

/* Badge numérico sobre el ícono del carrito */
.cart-badge {
    display: none;
    position: absolute;
    top: -7px;
    right: -9px;

    min-width: 15px;
    height: 15px;
    padding: 0 3px;

    align-items: center;
    justify-content: center;

    background: #c9ad76;
    border-radius: 50%;

    font-family: Montserrat, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    color: #1a1a1a;
}

/* =========================
   FOOTER (compartido en todo el sitio)
========================= */

.footer {
    width: 100%;
    background: #080808;
    border-top: 1px solid #292929;
}

.footer-main {
    width: 100%;
    padding: 38px 12% 32px;

    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr;
    gap: 70px;
}

.footer-brand h2 {
    margin: 0 0 12px;

    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    color: #eee5d2;
}

.footer-brand h2 span {
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    margin-left: 5px;
    color: #c9ad76;
}

.footer-brand p {
    max-width: 320px;
    margin: 0;

    font-family: Montserrat, sans-serif;
    font-size: 9px;
    line-height: 1.7;
    color: #aaa398;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h3 {
    margin: 0 0 8px;

    font-family: Montserrat, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1.2px;

    color: #c9ad76;
}

.footer-column a,
.footer-column p {
    margin: 0;

    font-family: Montserrat, sans-serif;
    font-size: 9px;
    line-height: 1.5;

    color: #aaa398;
    text-decoration: none;
}

.footer-column a:hover {
    color: #eee5d2;
}

.footer-bottom {
    padding: 15px 12%;
    border-top: 1px solid #292929;
}

.footer-bottom p {
    margin: 0;

    font-family: Montserrat, sans-serif;
    font-size: 8px;
    color: #77736c;
    text-align: center;
}

/* FOOTER — móvil (comparte breakpoint 768px con todo el sitio) */
/* =========================
   MENÚ MÓVIL (compartido en todo el sitio)
========================= */

.mobile-menu,
.cart-button {
    display: none;
}

.mobile-nav {
    display: none;
}

.mobile-nav-close {
    position: absolute;
    top: 18px;
    right: 15px;
    border: none;
    background: transparent;
    color: #c9ad76;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
}

.mobile-nav-logo {
    position: absolute;
    top: 25px;
    left: 20px;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-decoration: none;
}

.mobile-nav-logo-script {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #eee5d2;
}

.mobile-nav-logo-sub {
    font-family: Montserrat, sans-serif;
    font-size: 8px;
    letter-spacing: 1px;
    color: #c9ad76;
}

@media (max-width: 768px) {

    .mobile-nav {
        position: fixed;
        top: 12px;
        left: 0;
        width: 230px;
        height: calc(100vh - 24px);
        background: #111;
        display: none;
        flex-direction: column;
        padding: 100px 0 0;
        box-sizing: border-box;
        border-radius: 0 18px 18px 0;
        overflow: hidden;
        z-index: 100;
    }

    .mobile-nav-links {
        display: flex;
        flex-direction: column;
        padding: 0 10px;
    }

    .mobile-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 13px 10px;
        font-family: Montserrat, sans-serif;
        font-size: 10px;
        letter-spacing: 0.3px;
        color: #cfc9bd;
        text-decoration: none;
        background: #111;
    }

    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-nav-icon {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
        fill: none;
        stroke: #c9ad76;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-nav-chevron {
        width: 11px;
        height: 11px;
        flex-shrink: 0;
        fill: none;
        stroke: #77736c;
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .mobile-nav a:hover {
        color: #eee5d2;
    }

    .mobile-nav a:hover .mobile-nav-icon,
    .mobile-nav a:hover .mobile-nav-chevron {
        stroke: #d8c394;
    }

    .mobile-nav-links a+a {
        border-top: 1px solid #292929;
    }

    .mobile-nav.open {
        display: flex;
        animation: menuEntrada 0.45s ease forwards;
    }

    @keyframes menuEntrada {
        from { transform: translateX(-100%); }
        to { transform: translateX(0); }
    }

    .mobile-nav.closing {
        animation: menuSalida 0.45s ease forwards;
    }

    @keyframes menuSalida {
        from { transform: translateX(0); }
        to { transform: translateX(-100%); }
    }

    /* NAVBAR — versión móvil (compartida) */

    .navbar {
        position: relative;
        height: 72px;
        padding: 0 20px;
    }

    .nav-menu {
        display: none;
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .logo img {
        width: 125px;
    }

       .mobile-menu,
    .cart-button {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);

        border: none;
        background: transparent;
        color: #c9ad76;
        cursor: pointer;

        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        left: 20px;
        font-size: 20px;
        line-height: 1;
    }

    .cart-button {
        right: 20px;
        width: 20px;
        height: 20px;
    }

    .cart-button svg {
        width: 100%;
        height: 100%;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }
}
@media (max-width: 768px) {

    .footer-main {
        padding: 28px 18px 24px;
        grid-template-columns: 1fr 1fr;
        gap: 25px 20px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand h2 {
        font-size: 19px;
        margin-bottom: 9px;
    }

    .footer-brand h2 span {
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    .footer-brand p {
        max-width: 280px;
        font-size: 8px;
        line-height: 1.6;
    }

    .footer-column {
        gap: 6px;
    }

    .footer-column h3 {
        font-size: 8px;
        margin-bottom: 5px;
    }

    .footer-column a,
    .footer-column p {
        font-size: 8px;
    }

    .footer-bottom {
        padding: 12px 18px;
    }

    .footer-bottom p {
        font-size: 7px;
    }
}

/* =========================
   MODAL DEL CARRITO
========================= */

.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 300;
}

.cart-overlay.open {
    display: block;
}

.cart-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90vw;
    height: 100%;

    background: #111;
    border-left: 1px solid #292929;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 301;
}

.cart-modal.open {
    transform: translateX(0);
}

.cart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 22px;
    border-bottom: 1px solid #292929;
}

.cart-modal-header span {
    font-family: Georgia, serif;
    font-size: 17px;
    color: #eee5d2;
}

.cart-modal-close {
    border: none;
    background: transparent;
    color: #aaa398;
    font-size: 20px;
    cursor: pointer;
}

.cart-modal-close:hover {
    color: #eee5d2;
}

.cart-modal-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 22px;
}

.cart-modal-empty {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    color: #77736c;
    text-align: center;
    padding: 40px 0;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #222;
}

.cart-item img {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    color: #eee5d2;
    margin-bottom: 4px;
}

.cart-item-price {
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    color: #c9ad76;
    margin-bottom: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    border: 1px solid #333;
    border-radius: 4px;
}

.cart-item-qty button {
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: #cfc9bd;
    font-size: 12px;
    cursor: pointer;
}

.cart-item-qty span {
    width: 22px;
    text-align: center;
    font-family: Montserrat, sans-serif;
    font-size: 10px;
    color: #eee5d2;
}

.cart-item-remove {
    border: none;
    background: transparent;
    color: #77736c;
    font-size: 10px;
    text-decoration: underline;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: #d8514f;
}

.cart-modal-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid #292929;
}

.cart-modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.cart-modal-total span {
    font-family: Montserrat, sans-serif;
    font-size: 11px;
    color: #aaa398;
}

.cart-modal-total strong {
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    color: #eee5d2;
}

.cart-modal-checkout {
    width: 100%;
    height: 42px;

    background: #25d366;
    color: #0d1a0d;
    border: none;
    border-radius: 4px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: Montserrat, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;

    transition: background 0.2s ease;
}

.cart-modal-checkout:hover {
    background: #1ebe5a;
}

.cart-modal-checkout:disabled {
    background: #333;
    color: #666;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .cart-modal {
        width: 100%;
        max-width: 100vw;
    }
}