/* =========================================================
   REDSTORE — Rediseño estilo retail (referencia: briganti.com.ar)
   Tokens
   ink     #111111   texto principal / bloques
   paper   #ffffff   fondo base
   bone    #f5f4ef   fondo secciones alternas
   line    #e6e3da   líneas finas, bordes
   flame   #ff3b1f   acento (CTA, badges de descuento)
   grey    #6f6f6f   texto secundario
========================================================= */

:root {
    --ink: #111111;
    --paper: #ffffff;
    --bone: #f5f4ef;
    --line: #e6e3da;
    --flame: #ff3b1f;
    --grey: #6f6f6f;
    --display: 'Anton', 'Arial Narrow', sans-serif;
    --body: 'Inter', sans-serif;
    --nav-font: 'Poppins', sans-serif;
    --nav-links-font: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
}

.wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ================= TOPBAR ================= */
.topbar {
    background: var(--ink);
    color: #fff;
    text-align: center;
}

.topbar p {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 20px;
}

/* ================= NAV ================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.25s;
}

.has-dropdown.open .dropdown-toggle {
    transform: rotate(180deg);
}

.mega-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: min(980px, 92vw);
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: none;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    padding: 30px 34px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 40;
}

.has-dropdown-narrow {
    position: relative;
}

.mega-panel-narrow {
    width: min(420px, 92vw);
    left: 0;
    transform: translateX(0) translateY(6px);
    grid-template-columns: repeat(2, 1fr);
}

.has-dropdown.open .mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.has-dropdown.open .mega-panel-narrow {
    transform: translateX(0) translateY(0);
}

@media (min-width: 761px) {
    .has-dropdown:hover .mega-panel,
    .has-dropdown:focus-within .mega-panel {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .has-dropdown:hover .mega-panel-narrow,
    .has-dropdown:focus-within .mega-panel-narrow {
        transform: translateX(0) translateY(0);
    }

    .has-dropdown:hover .dropdown-toggle {
        transform: rotate(180deg);
    }
}

.mega-col h5 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--flame);
    margin-bottom: 14px;
}

.mega-col ul li {
    margin-bottom: 11px;
}

.mega-col ul li a {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-transform: none;
    letter-spacing: normal;
    border-bottom: none;
}

.mega-col ul li a:hover {
    color: var(--flame);
}

.nav-top {
    padding: 28px 32px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    font-family: var(--display);
    font-size: 24px;
    letter-spacing: 1px;
    white-space: nowrap;
}

.logo span {
    color: var(--flame);
}

/* ---- search bar, centrada ---- */
.nav-search {
    flex: 1;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 4px 18px;
}

.nav-search input {
    flex: 1;
    border: none;
    background: none;
    font-family: var(--nav-font);
    font-size: 14px;
    padding: 9px 0;
    outline: none;
}

.nav-search input::placeholder {
    color: var(--grey);
}

.nav-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: none;
    color: var(--grey);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}

.nav-search button:hover {
    color: var(--flame);
}

/* ---- cuenta / carrito ---- */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
}

.icon-link {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
    white-space: nowrap;
}

.icon-link:hover {
    color: var(--flame);
}

.icon-btn {
    display: inline-flex;
    position: relative;
    color: inherit;
}

.cart-count {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-icon {
    display: none;
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 4px;
}

/* ---- fila inferior de navegación ---- */
.primary-nav {
    border-top: none;
}

.primary-nav .wrap {
    display: flex;
    justify-content: center;
}

#MenuItems {
    display: flex;
    gap: 34px;
    padding: 20px 0 26px;
}

#MenuItems li a {
    font-family: var(--nav-links-font);
    font-weight: 400;
    font-size: 19px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.25s, color 0.25s;
}

#MenuItems li a.sale-link {
    color: var(--flame);
}

.mobile-only {
    display: none;
}

/* ================= HERO ================= */
/* ================= BOTONES ================= */
.btn {
    display: inline-block;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 15px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
}

.btn-primary:hover {
    background: var(--flame);
    transform: translateY(-2px);
}

.btn-ghost {
    border: 2px solid var(--ink);
    background: transparent;
    padding: 13px 30px;
}

.btn-ghost:hover {
    background: var(--ink);
    color: #fff;
}

/* ================= PROMO BANNERS ================= */
.promo-banners {
    padding: 8px 0 0;
}

.promo-card {
    display: block;
    border-radius: 4px;
    overflow: hidden;
}

.promo-card-single {
    max-width: 1180px;
    margin: 0 auto;
}

.promo-photo-single {
    display: block;
    width: 100%;
    height: auto;
}

/* ================= CATEGORIES ================= */
.categories {
    padding: 64px 0;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cat-card {
    position: relative;
    min-height: 260px;
    border-radius: 4px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: transform 0.35s;
}

.cat-card:hover {
    transform: translateY(-5px);
}

.cat-men {
    background: linear-gradient(160deg, #1a1a1a, #3a3a3a);
}

.cat-women {
    background: linear-gradient(160deg, var(--flame), #a8210a);
}

.cat-access {
    background: linear-gradient(160deg, #4d4d4d, var(--ink));
}

.cat-name {
    font-family: var(--display);
    font-size: 28px;
    text-transform: uppercase;
    color: #fff;
}

.cat-link {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* ================= PRODUCTS ================= */
.products {
    padding: 64px 0;
}

.products.alt {
    background: var(--bone);
    border-radius: 4px;
}

.section-head {
    text-align: center;
    margin-bottom: 44px;
}

.section-kicker {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--flame);
    margin-bottom: 8px;
}

.section-head h2 {
    font-family: var(--display);
    font-size: 36px;
    text-transform: uppercase;
}

.section-head p {
    margin-top: 10px;
    color: var(--grey);
}

.section-head-simple {
    padding: 40px 0 36px;
    margin-bottom: 40px;
}

.section-title-simple {
    font-family: var(--nav-font);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    display: inline-block;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    display: block;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-media {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
    background: var(--bone);
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.product-card:hover .product-media img {
    transform: scale(1.04);
}

.off-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--flame);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 5px 9px;
    border-radius: 3px;
    transform: rotate(-3deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.new-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.product-card h4 {
    font-family: var(--nav-links-font);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 4px;
}

.reviews {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 8px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-sale {
    font-family: var(--nav-links-font);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.7px;
    color: var(--flame);
}

.price-old {
    font-family: var(--nav-links-font);
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--grey);
    text-decoration: line-through;
}

/* ================= CTA BAND ================= */
.cta-band {
    background: var(--ink);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.cta-inner h2 {
    font-family: var(--display);
    font-size: clamp(34px, 5.5vw, 54px);
}

.cta-inner p {
    color: #b8b8b8;
    max-width: 460px;
    margin: 14px auto 30px;
}

.signup {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.signup input {
    background: #fff;
    border: none;
    border-radius: 100px;
    padding: 15px 22px;
    width: 280px;
    font-family: var(--body);
    font-size: 14px;
}

.signup input:focus {
    outline: 2px solid var(--flame);
}

/* ================= FOOTER ================= */
.footer {
    background: var(--bone);
    padding: 64px 0 26px;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1 1 180px;
}

.footer-brand {
    flex: 1 1 240px;
}

.logo-footer {
    display: inline-block;
    margin-bottom: 12px;
}

.footer-col p {
    color: var(--grey);
    font-size: 14px;
}

.social-row {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-row .icon-btn {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
}

.social-row .icon-btn:hover {
    border-color: var(--ink);
}

.footer-col h3 {
    font-family: var(--display);
    font-size: 15px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--grey);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--ink);
}

.footer hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin-bottom: 20px;
}

.copyright {
    text-align: center;
    font-size: 13px;
    color: var(--grey);
}

/* ================= WHATSAPP FLOAT ================= */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    z-index: 60;
    transition: transform 0.25s;
}

.whatsapp-float:hover {
    transform: scale(1.06);
}

/* ================= POPUP NEWSLETTER ================= */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
    padding: 20px;
}

.popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.popup-card {
    position: relative;
    background: var(--paper);
    border-radius: 6px;
    padding: 44px 36px;
    max-width: 380px;
    width: 100%;
    text-align: center;
    transform: translateY(12px);
    transition: transform 0.3s;
}

.popup-overlay.visible .popup-card {
    transform: translateY(0);
}

.popup-card h3 {
    font-family: var(--display);
    font-size: 26px;
    line-height: 1.1;
    margin: 10px 0 12px;
}

.popup-card p {
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 20px;
}

.popup-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.popup-card input {
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 13px 18px;
    font-family: var(--body);
    font-size: 14px;
}

.popup-card input:focus {
    outline: 2px solid var(--flame);
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--grey);
}

.popup-close:hover {
    color: var(--ink);
}

/* ================= FOCUS ================= */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--flame);
    outline-offset: 2px;
}

.nav-search input:focus-visible {
    outline: none;
}

/* ================= DRAWER MOBILE ================= */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(17, 17, 17, 0.5);
    z-index: 190;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.drawer-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: min(78%, 340px);
    background: #fff;
    z-index: 200;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-top {
    display: flex;
    padding: 18px 20px 4px;
}

.drawer-close {
    background: none;
    border: none;
    color: var(--ink);
    cursor: pointer;
    padding: 6px;
}

.drawer-search {
    padding: 10px 24px 20px;
}

.drawer-search input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 2px;
    font-family: var(--nav-font);
    font-size: 15px;
}

.drawer-search input:focus {
    outline: none;
    border-color: var(--flame);
}

.drawer-list {
    padding: 0 24px;
}

.drawer-item {
    border-bottom: 1px solid var(--line);
}

.drawer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-row a {
    flex: 1;
    padding: 16px 0;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.drawer-row a.sale-link {
    color: var(--flame);
}

.drawer-arrow {
    background: none;
    border: none;
    color: var(--ink);
    padding: 16px 4px;
    cursor: pointer;
    transition: transform 0.25s;
}

.drawer-item.open .drawer-arrow {
    transform: rotate(90deg);
}

.drawer-sub {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
}

.drawer-item.open .drawer-sub {
    max-height: 300px;
}

.drawer-sub a {
    padding: 10px 0 10px 14px;
    font-family: var(--nav-font);
    font-size: 14px;
    color: var(--grey);
}

.drawer-footer {
    margin-top: auto;
    padding: 20px 24px 28px;
    border-top: 1px solid var(--line);
}

.drawer-account {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .menu-icon {
        display: block;
    }

    .mobile-only {
        display: block;
    }

    .nav-top {
        padding: 14px 16px;
        gap: 0;
        justify-content: space-between;
    }

    .logo {
        flex: 1;
        text-align: center;
    }

    .nav-search,
    .account-link {
        display: none;
    }

    .nav-icons {
        gap: 14px;
    }

    .icon-label {
        display: none;
    }

    .primary-nav {
        display: none;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        width: 50px;
        height: 50px;
    }
}

/* =========================================================
   LOGIN / SIGNUP — formulario simple centrado
========================================================= */
.simple-auth {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 24px 100px;
}

.simple-auth-card {
    width: 100%;
    max-width: 420px;
}

.simple-auth-card h1 {
    font-family: var(--display);
    font-size: 30px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 32px;
}

.auth-field-row {
    display: flex;
    gap: 14px;
}

.auth-field-row .auth-field {
    flex: 1;
}

.auth-field {
    display: block;
    margin-bottom: 20px;
}

.auth-field span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-family: var(--nav-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 7px;
}

.auth-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 100px;
    padding: 13px 20px;
    font-family: var(--body);
    font-size: 14px;
    background: var(--paper);
    transition: border-color 0.2s;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--flame);
}

.auth-link {
    font-size: 11px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--grey);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link:hover {
    color: var(--flame);
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13px;
    color: var(--grey);
    cursor: pointer;
}

.auth-check input {
    margin-top: 2px;
    accent-color: var(--flame);
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.auth-terms {
    margin-bottom: 22px;
}

.auth-terms a {
    color: var(--ink);
    font-weight: 600;
}

.auth-submit {
    width: 100%;
    text-align: center;
}

.simple-auth-card .btn-primary.auth-submit {
    margin-bottom: 20px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.auth-divider span {
    position: relative;
    background: var(--paper);
    padding: 0 14px;
    font-size: 12px;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 420px) {
    .auth-field-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 560px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .signup input,
    .popup-card {
        width: 100%;
    }
}

/* =========================================================
   DETALLE DE PRODUCTO
========================================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 22px 32px 0;
    font-size: 13px;
    color: var(--grey);
}

.breadcrumb a:hover {
    color: var(--flame);
}

.breadcrumb-current {
    color: var(--ink);
    font-weight: 600;
}

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    padding: 32px 32px 80px;
}

/* ---- galería ---- */
.pd-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-main-image {
    position: relative;
    aspect-ratio: 4/3.4;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bone);
}

.pd-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pd-off-tag {
    top: 16px;
    left: 16px;
}

.pd-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pd-thumb {
    aspect-ratio: 1/1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    background: var(--bone);
    transition: border-color 0.2s;
}

.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pd-thumb.active,
.pd-thumb:hover {
    border-color: var(--ink);
}

/* ---- info ---- */
.pd-info {
    max-width: 480px;
}

.pd-category {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey);
    margin-bottom: 10px;
}

.pd-info h1 {
    font-family: var(--display);
    font-size: 34px;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 14px;
}

.pd-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.rating-stars {
    color: var(--flame);
    font-size: 15px;
    letter-spacing: 2px;
}

.rating-stars .dim {
    color: #d8d8d8;
}

.pd-rating a {
    font-size: 13px;
    color: var(--grey);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-rating a:hover {
    color: var(--flame);
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.pd-price-row .price-sale {
    font-family: var(--display);
    font-size: 30px;
}

.pd-price-row .price-old {
    font-size: 16px;
}

.pd-off-pill {
    background: var(--flame);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 4px 10px;
    border-radius: 100px;
}

.pd-financing {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 28px;
}

.pd-financing strong {
    color: var(--ink);
}

.pd-option {
    margin-bottom: 22px;
}

.pd-option-label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
}

.pd-option-label span {
    text-transform: none;
    font-weight: 500;
    color: var(--grey);
}

.pd-option-label a {
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: var(--grey);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pd-option-label a:hover {
    color: var(--flame);
}

.pd-swatches {
    display: flex;
    gap: 10px;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: 0 0 0 1px var(--line);
    cursor: pointer;
    padding: 0;
}

.swatch.active {
    border-color: var(--paper);
    box-shadow: 0 0 0 2px var(--ink);
}

.pd-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-chip {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.size-chip:hover {
    border-color: var(--ink);
}

.size-chip.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.size-chip.disabled {
    color: #c8c8c8;
    text-decoration: line-through;
    cursor: not-allowed;
    background: var(--bone);
}

.pd-qty-row .pd-option-label {
    margin-bottom: 10px;
}

.pd-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 100px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--paper);
    font-size: 18px;
    cursor: pointer;
    color: var(--ink);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bone);
}

.pd-qty span {
    width: 36px;
    text-align: center;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 14px;
}

.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 28px 0 26px;
}

.pd-add,
.pd-buy {
    width: 100%;
    text-align: center;
}

.pd-trust {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 30px;
}

.pd-trust li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--grey);
}

.pd-trust svg {
    color: var(--ink);
    flex-shrink: 0;
}

/* ---- acordeón ---- */
.pd-accordion {
    margin-bottom: 40px;
}

.pd-accordion details {
    border-bottom: 1px solid var(--line);
}

.pd-accordion summary {
    padding: 16px 0;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-accordion summary::-webkit-details-marker {
    display: none;
}

.pd-accordion summary::after {
    content: '+';
    font-family: var(--body);
    font-size: 18px;
    font-weight: 400;
    color: var(--grey);
}

.pd-accordion details[open] summary::after {
    content: '−';
}

.pd-accordion-body {
    padding-bottom: 18px;
    color: var(--grey);
    font-size: 14px;
    line-height: 1.7;
}

/* ---- reseñas ---- */
.pd-reviews-summary h3 {
    font-family: var(--display);
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.pd-review {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.pd-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.pd-review-head strong {
    font-size: 13px;
}

.pd-review p {
    font-size: 14px;
    color: var(--grey);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .pd-info {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .breadcrumb {
        padding: 18px 20px 0;
        font-size: 12px;
    }

    .product-detail {
        padding: 24px 20px 60px;
    }

    .pd-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================================
   CATEGORÍA (listado + filtros)
========================================================= */
.cat-banner {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--ink);
}

.cat-banner-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 17, 17, 0.82) 0%, rgba(17, 17, 17, 0.45) 60%, rgba(17, 17, 17, 0.2) 100%);
}

.cat-banner-copy {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.cat-banner-copy .section-kicker {
    color: var(--flame);
}

.cat-banner-copy h1 {
    font-family: var(--display);
    font-size: clamp(34px, 5vw, 52px);
    text-transform: uppercase;
    line-height: 1;
    margin: 8px 0 8px;
}

.cat-banner-copy p {
    font-size: 14px;
    color: #d8d6d0;
}

/* ---- layout general ---- */
.category-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    padding: 40px 32px 90px;
    align-items: start;
}

/* ---- filtros ---- */
.filters {
    position: sticky;
    top: 100px;
}

.filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.filters-head h3 {
    font-family: var(--display);
    font-size: 18px;
    text-transform: uppercase;
}

.filters-clear {
    background: none;
    border: none;
    color: var(--grey);
    font-size: 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.filters-clear:hover {
    color: var(--flame);
}

.filters-accordion {
    margin-bottom: 22px;
}

.filter-check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: var(--ink);
    padding: 6px 0;
    cursor: pointer;
}

.filter-check input {
    accent-color: var(--flame);
    width: 15px;
    height: 15px;
}

.filter-check span {
    color: var(--grey);
    font-size: 12px;
}

.filter-sizes,
.filter-swatches {
    padding-top: 4px;
}

.filter-price-row {
    display: flex;
    gap: 12px;
}

.filter-price-row label {
    flex: 1;
    font-size: 12px;
    color: var(--grey);
}

.filter-price-row input {
    display: block;
    width: 100%;
    margin-top: 6px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font-family: var(--body);
    font-size: 13px;
}

.filter-price-row input:focus {
    outline: none;
    border-color: var(--flame);
}

.filters-apply {
    width: 100%;
    text-align: center;
}

/* ---- toolbar de resultados ---- */
.category-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.category-count {
    font-size: 13px;
    color: var(--grey);
}

.sort-dropdown {
    position: relative;
}

.sort-dropdown summary {
    list-style: none;
    cursor: pointer;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--ink);
    padding: 8px 4px;
}

.sort-dropdown summary::-webkit-details-marker {
    display: none;
}

.sort-dropdown summary span {
    color: var(--flame);
}

.sort-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    min-width: 180px;
    padding: 8px 0;
    z-index: 10;
}

.sort-options li a {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    color: var(--ink);
}

.sort-options li a:hover {
    background: var(--bone);
    color: var(--flame);
}

.category-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- paginación ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 50px;
}

.page-num,
.page-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    border: 1px solid transparent;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.page-num:hover,
.page-arrow:hover {
    border-color: var(--line);
}

.page-num.active {
    background: var(--ink);
    color: #fff;
}

@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
        padding: 32px 24px 70px;
    }

    .filters {
        position: static;
        border-bottom: 1px solid var(--line);
        padding-bottom: 24px;
        margin-bottom: 8px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .cat-banner {
        height: 170px;
    }

    .category-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .sort-dropdown {
        align-self: stretch;
    }

    .sort-options {
        right: auto;
        left: 0;
    }
}

/* =========================================================
   CHECKOUT
========================================================= */
.checkout-page {
    padding: 30px 32px 90px;
}

.checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

/* ---- cards numeradas ---- */
.checkout-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.checkout-card:last-of-type {
    margin-bottom: 0;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
}

.card-header-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-family: var(--nav-font);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flame);
    flex-shrink: 0;
}

.card-header-title {
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-header-title .opt {
    font-weight: 400;
    text-transform: none;
    color: var(--grey);
    font-size: 12px;
}

.card-body {
    padding: 22px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--nav-font);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.form-label .req {
    color: var(--flame);
}

.form-input,
.form-textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 15px;
    font-family: var(--body);
    font-size: 14px;
    background: var(--paper);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--flame);
}

.form-textarea {
    resize: vertical;
    min-height: 90px;
}

/* ---- zona de envío ---- */
.shipping-zone-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.zona-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.zona-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--paper);
}

.zona-row:hover {
    border-color: var(--ink);
}

.zona-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: transparent;
    transition: all 0.2s;
}

.zona-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.zona-title {
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
}

.zona-sub {
    font-size: 12px;
    color: var(--grey);
}

.zona-price {
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.zona-radio:checked + .zona-check {
    background: var(--flame);
    border-color: var(--flame);
    color: #fff;
}

.zona-radio:checked ~ .zona-info .zona-title {
    color: var(--flame);
}

label.zona-row:has(.zona-radio:checked) {
    border-color: var(--flame);
    background: hsl(12, 100%, 97%);
}

.zona-gratis-msg {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #1a8a4a;
    margin-top: 10px;
}

.pending-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #a35b00;
    background: #fff4e6;
    border: 1px solid #f0d5ad;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 18px;
}

/* ---- medios de pago ---- */
.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.payment-radio {
    display: none;
}

.payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 10px;
    border: 2px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    height: 84px;
    color: var(--grey);
}

.payment-label span {
    font-family: var(--nav-font);
    font-size: 12px;
    font-weight: 600;
}

.payment-label:hover {
    border-color: var(--ink);
}

.payment-radio:checked + .payment-label {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* ---- resumen del pedido ---- */
.order-summary-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.order-summary-header {
    padding: 16px 22px;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.order-summary-body {
    padding: 20px 22px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.order-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.order-item-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--line);
    flex-shrink: 0;
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.order-item-meta {
    display: block;
    font-size: 11px;
    color: var(--grey);
}

.order-item-price {
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.order-divider {
    border: none;
    border-top: 1px solid var(--line);
    margin: 16px 0;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
    font-size: 13px;
}

.order-row-label {
    color: var(--grey);
}

.order-row-value {
    font-weight: 600;
}

.order-row-value.free {
    color: #1a8a4a;
}

.order-row-value.pendiente-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a35b00;
    font-weight: 600;
    font-size: 12px;
}

.order-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 2px solid var(--ink);
    margin-top: 8px;
}

.order-total-label {
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.order-total-value {
    font-family: var(--display);
    font-size: 24px;
    color: var(--flame);
}

/* ---- botón confirmar ---- */
.confirm-btn {
    width: 100%;
    background: var(--flame);
    color: #fff;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 15px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s, opacity 0.2s;
    margin-top: 20px;
}

.confirm-btn:hover {
    background: var(--ink);
}

.confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.confirm-btn:disabled:hover {
    background: var(--flame);
}

.btn-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: none;
}

.confirm-btn.loading .btn-spinner {
    display: block;
}

.confirm-btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.order-summary-body .confirm-btn {
    margin-top: 20px;
}

.edit-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--grey);
    margin-top: 14px;
    transition: color 0.2s;
}

.edit-cart-link:hover {
    color: var(--flame);
}

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    color: var(--grey);
    margin-top: 16px;
}

.secure-note svg {
    color: #1a8a4a;
}

@media (min-width: 570px) {
    .form-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .checkout-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .checkout-form-col {
        flex: 1;
        min-width: 0;
    }

    .checkout-sidebar-col {
        width: 340px;
        flex-shrink: 0;
    }
}

@media (max-width: 560px) {
    .checkout-page {
        padding: 20px 20px 70px;
    }

    .payment-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .payment-label {
        padding: 12px 6px;
        height: 76px;
    }
}

/* =========================================================
   MI PERFIL
========================================================= */
.profile-page {
    padding: 30px 32px 90px;
}

.profile-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---- sidebar ---- */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-avatar-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
}

.avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--flame);
    color: #fff;
    font-family: var(--display);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.profile-name {
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: 15px;
}

.profile-email {
    font-size: 12px;
    color: var(--grey);
    margin-top: 3px;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--display);
    font-size: 18px;
}

.stat-label {
    font-size: 10px;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.profile-nav {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.profile-nav-item:last-child {
    border-bottom: none;
}

.profile-nav-item svg {
    flex-shrink: 0;
    color: var(--grey);
    transition: color 0.2s;
}

.nav-arrow {
    margin-left: auto;
    color: var(--grey) !important;
}

.profile-nav-item:hover {
    background: var(--bone);
}

.profile-nav-item.active {
    background: var(--ink);
    color: #fff;
}

.profile-nav-item.active svg {
    color: #fff;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 13px;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 600;
    color: var(--grey);
    transition: border-color 0.2s, color 0.2s;
}

.logout-btn:hover {
    border-color: var(--flame);
    color: var(--flame);
}

/* ---- contenido principal ---- */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.profile-section {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    scroll-margin-top: 90px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    background: var(--bone);
    border-bottom: 1px solid var(--line);
}

.section-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--nav-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-header-title svg {
    color: var(--flame);
}

.edit-section-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.edit-section-btn:hover {
    color: var(--flame);
}

.section-body {
    padding: 22px;
}

.section-body.no-pad {
    padding: 0;
}

/* ---- tabla de pedidos ---- */
.orders-table-wrap {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.orders-table th {
    text-align: left;
    font-family: var(--nav-font);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--grey);
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
}

.orders-table td {
    padding: 16px 22px;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.order-id {
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 12px;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 100px;
    text-transform: capitalize;
}

.order-status.delivered {
    background: #e6f6ec;
    color: #1a8a4a;
}

.order-status.shipped {
    background: #e8f0fe;
    color: #1a56c4;
}

.order-status.processing {
    background: #fff4e6;
    color: #a35b00;
}

.order-status.cancelled {
    background: #fde8e8;
    color: #c62828;
}

.view-order-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.view-order-btn:hover {
    color: var(--flame);
}

/* ---- seguridad ---- */
.security-item {
    display: flex;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.security-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.security-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--bone);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--flame);
    flex-shrink: 0;
}

.security-title {
    font-size: 14px;
    font-weight: 600;
}

.security-desc {
    font-size: 12px;
    color: var(--grey);
    margin-top: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-input-wrap {
    position: relative;
}

.form-input-wrap .form-input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--grey);
    cursor: pointer;
    display: flex;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover,
.toggle-password.showing {
    color: var(--flame);
}

.field-error {
    font-size: 12px;
    color: #c62828;
    margin-top: 6px;
    display: none;
}

.field-error.visible {
    display: block;
}

.form-actions {
    margin-top: 22px;
}

.save-btn {
    background: var(--ink);
    color: #fff;
    font-family: var(--nav-font);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 13px 30px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.save-btn:hover {
    background: var(--flame);
}

.save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.save-btn:disabled:hover {
    background: var(--ink);
}

@media (min-width: 570px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-grid .form-group:first-child {
        grid-column: 1/-1;
    }
}

@media (min-width: 900px) {
    .profile-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }

    .profile-sidebar {
        width: 280px;
        flex-shrink: 0;
        position: sticky;
        top: 20px;
    }

    .profile-main {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .profile-page {
        padding: 20px 20px 70px;
    }

    .section-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* =========================================================
   CARRITO
========================================================= */
.cart-page {
    padding: 30px 32px 90px;
}

.cart-title {
    font-family: var(--display);
    font-size: 30px;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.cart-layout {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cart-items-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 76px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-img {
    display: block;
    width: 76px;
    height: 76px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bone);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    min-width: 0;
}

.cart-item-name {
    display: block;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-name:hover {
    color: var(--flame);
}

.cart-item-meta {
    font-size: 12px;
    color: var(--grey);
    margin-bottom: 8px;
}

.cart-item-remove {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    font-size: 12px;
    color: var(--grey);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #c62828;
}

.cart-item-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 100px;
    overflow: hidden;
}

.cart-qty-value {
    width: 32px;
    text-align: center;
    font-family: var(--nav-font);
    font-weight: 600;
    font-size: 13px;
}

.cart-item-price {
    text-align: right;
    white-space: nowrap;
}

.cart-item-price-value {
    display: block;
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: 14px;
}

.cart-item-price-unit {
    display: block;
    font-size: 11px;
    color: var(--grey);
    margin-top: 2px;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    align-self: flex-start;
}

.continue-shopping:hover {
    color: var(--flame);
}

.cart-checkout-btn {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.cart-empty {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 20px;
    color: var(--grey);
}

.cart-empty svg {
    margin-bottom: 16px;
    color: var(--line);
}

.cart-empty p {
    font-size: 15px;
    margin-bottom: 20px;
}

@media (min-width: 1024px) {
    .cart-layout {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    .cart-items-col {
        flex: 1;
        min-width: 0;
    }

    .cart-summary-col {
        width: 340px;
        flex-shrink: 0;
    }
}

@media (max-width: 640px) {
    .cart-page {
        padding: 20px 20px 60px;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        grid-template-areas:
            "img info"
            "img qty"
            "img price";
        row-gap: 10px;
    }

    .cart-item-img {
        grid-area: img;
        width: 60px;
        height: 60px;
    }

    .cart-item-info {
        grid-area: info;
    }

    .cart-item-qty {
        grid-area: qty;
        justify-self: start;
    }

    .cart-item-price {
        grid-area: price;
        text-align: left;
    }
}