:root {
    --moda-ink: #141414;
    --moda-paper: #f7f4ef;
    --moda-sand: #e5ddd0;
    --moda-line: #d7d0c6;
    --moda-muted: #6f6961;
    --moda-accent: #c9ad78;
    --moda-accent-soft: #eee3cd;
    --moda-accent-hover: #e2d1af;
    --moda-accent-ink: #5a4728;
}

body:has(.storefront-shell.theme-moda) { background: var(--moda-paper); color: var(--moda-ink); }
.storefront-shell.theme-moda { background: var(--moda-paper); color: var(--moda-ink); font-family: Arial, Helvetica, sans-serif; }
.storefront-shell.theme-moda .storefront-header { background: var(--moda-paper); box-shadow: none; }
.storefront-shell.theme-moda .storefront-servicebar { min-height: 32px; padding: 9px 5vw; background: var(--moda-ink); color: #ddd7cf; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.storefront-shell.theme-moda .storefront-mainbar { min-height: 88px; padding: 20px 5vw; border-bottom: 1px solid var(--moda-line); background: var(--moda-paper); }
.storefront-shell.theme-moda .storefront-logo-link { width: 190px; height: 48px; justify-content: flex-start; }
.storefront-shell.theme-moda .storefront-logo-link img { width: 190px; max-height: 48px; object-fit: contain; object-position: left center; }
.storefront-shell.theme-moda .storefront-search { max-width: 390px; border: 0; border-bottom: 1px solid var(--moda-ink); border-radius: 0; background: transparent; box-shadow: none; }
.storefront-shell.theme-moda .storefront-search input { min-height: 40px; padding: 8px 2px; background: transparent; color: var(--moda-ink); font-size: 14px; }
.storefront-shell.theme-moda .storefront-search button { width: 42px; min-width: 42px; border: 0; border-radius: 0; background: transparent; color: var(--moda-ink); }
.storefront-shell.theme-moda .storefront-search button span { display: none; }
.storefront-shell.theme-moda .storefront-icon-link { border: 1px solid var(--moda-ink); border-radius: 0; background: transparent; color: var(--moda-ink); }
.storefront-shell.theme-moda .storefront-cart-link span { background: var(--moda-accent-soft); color: var(--moda-accent-ink); }
.storefront-shell.theme-moda .storefront-nav { min-height: 52px; justify-content: center; gap: 42px; padding: 0 5vw; overflow: visible; border: 0; border-bottom: 1px solid var(--moda-line); background: var(--moda-paper); }
.storefront-shell.theme-moda .storefront-nav > a { min-height: 52px; padding: 18px 4px 14px; border-radius: 0; background: transparent !important; color: var(--moda-ink) !important; font-size: 14px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.storefront-shell.theme-moda .storefront-nav > a:hover { color: var(--moda-accent) !important; }

.storefront-shell.theme-moda .storefront-content { max-width: none; background: var(--moda-paper); }
.storefront-shell.theme-moda .store-home-slider { width: 54%; min-height: 590px; margin-left: 46%; background: #4b4049; }
.storefront-shell.theme-moda .store-home-slider .store-slide { min-height: 590px; }
.storefront-shell.theme-moda .store-home-slider img { height: 590px; object-fit: cover; }
.storefront-shell.theme-moda .store-home-slider .store-slide > span { display: none; }
.storefront-shell.theme-moda .store-home-copy { width: 46%; min-height: 590px; margin-top: -590px; padding: 92px 7vw 64px 10vw; align-items: flex-start; justify-content: center; background: var(--moda-paper); text-align: left; }
.storefront-shell.theme-moda .store-home-copy > p:first-child { margin: 0 0 22px; color: var(--moda-muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.storefront-shell.theme-moda .store-home-copy h1 { margin: 0 0 12px; color: var(--moda-ink); font-family: Georgia, serif; font-size: clamp(42px, 5vw, 72px); font-weight: 400; letter-spacing: -.04em; line-height: 1; }
.storefront-shell.theme-moda .store-home-copy h2 { max-width: 520px; margin: 10px 0 22px; color: var(--moda-accent); font-family: Georgia, serif; font-size: clamp(30px, 3.5vw, 52px); font-style: italic; font-weight: 400; line-height: 1.05; }
.storefront-shell.theme-moda .store-home-intro { max-width: 430px; color: #5d5851; font-size: 16px; line-height: 1.7; }
.storefront-shell.theme-moda .store-home-brand-grid,
.storefront-shell.theme-moda .store-home-categories { margin: 0; padding: 0; gap: 0; grid-template-columns: repeat(3, 1fr); }
.storefront-shell.theme-moda .store-home-brand-card,
.storefront-shell.theme-moda .store-home-category { min-height: 230px; border: 0; border-radius: 0; background: #1b1b1a; color: #fff; box-shadow: none; }
.storefront-shell.theme-moda .store-home-brand-card:nth-child(2),
.storefront-shell.theme-moda .store-home-category:nth-child(2) { background: #dfd3c0; color: var(--moda-ink); }
.storefront-shell.theme-moda .store-home-brand-media,
.storefront-shell.theme-moda .store-home-category img { border-radius: 0; }

.storefront-shell.theme-moda .storefront-catalog-shell { max-width: 1450px; margin: 0 auto; padding: 72px 4vw 90px; gap: 34px; grid-template-columns: 255px minmax(0, 1fr); }
.storefront-shell.theme-moda .storefront-category-rail { position: sticky; top: 145px; align-self: start; padding: 0; border: 0; border-top: 1px solid var(--moda-ink); border-radius: 0; background: transparent; box-shadow: none; }
.storefront-shell.theme-moda .storefront-category-rail > a,
.storefront-shell.theme-moda .storefront-category-branch > summary { min-height: 48px; padding: 14px 8px 10px 0; border: 0; border-bottom: 1px solid var(--moda-line); border-radius: 0; background: transparent; color: var(--moda-ink); font-size: 16px; font-weight: 600; cursor: pointer; }
.storefront-shell.theme-moda .storefront-category-branch > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; list-style: none; }
.storefront-shell.theme-moda .storefront-category-branch > summary::-webkit-details-marker { display: none; }
.storefront-shell.theme-moda .storefront-category-branch > summary::after { content: '+'; flex: 0 0 auto; color: var(--moda-accent); font-size: 20px; font-weight: 400; line-height: 1; }
.storefront-shell.theme-moda .storefront-category-branch[open] > summary::after { content: '\2212'; }
.storefront-shell.theme-moda .storefront-category-branch > summary small { color: var(--moda-muted); font-size: 12px; font-weight: 400; }
.storefront-shell.theme-moda .storefront-category-branch > summary::marker { color: var(--moda-accent); }
.storefront-shell.theme-moda .storefront-category-children { padding: 2px 0 12px 14px; }
.storefront-shell.theme-moda .storefront-category-children a { min-height: 38px; padding: 9px 5px; border: 0; color: var(--moda-muted); font-size: 14px !important; line-height: 1.4; }
.storefront-shell.theme-moda .storefront-category-children .storefront-category-overview { color: var(--moda-ink); font-weight: 600; }
.storefront-shell.theme-moda .storefront-category-children a:hover,
.storefront-shell.theme-moda .storefront-category-children a.active { color: var(--moda-ink); text-decoration: underline; text-decoration-color: var(--moda-accent); text-underline-offset: 4px; }
.storefront-shell.theme-moda .storefront-results-head p { color: var(--moda-muted); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.storefront-shell.theme-moda .storefront-results-head h1 { color: var(--moda-ink); font-family: Georgia, serif; font-size: clamp(38px, 4vw, 58px); font-weight: 400; letter-spacing: -.03em; }
.storefront-shell.theme-moda .storefront-catalog-controls { border: 0; border-radius: 0; background: #ede7de; box-shadow: none; }
.storefront-shell.theme-moda .storefront-catalog-controls label,
.storefront-shell.theme-moda .storefront-catalog-controls span { color: var(--moda-ink); font-size: 14px; }
.storefront-shell.theme-moda .storefront-catalog-controls input,
.storefront-shell.theme-moda .storefront-catalog-controls select {
    width: 100%;
    height: 46px;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid var(--moda-line);
    border-radius: 0;
    background: #fff;
    font-size: 14px;
    line-height: normal;
    box-sizing: border-box;
}
.storefront-shell.theme-moda .storefront-results-head > span {
    border: 1px solid var(--moda-accent);
    background: var(--moda-accent-soft);
    color: var(--moda-accent-ink);
}
.storefront-shell.theme-moda .storefront-catalog-controls button,
.storefront-shell.theme-moda .store-action-primary,
.storefront-shell.theme-moda .store-product-card-cta { border: 1px solid var(--moda-ink); border-radius: 0; background: var(--moda-ink); color: #fff; }
.storefront-shell.theme-moda .storefront-product-card { border: 0; border-radius: 0; background: #fff; box-shadow: none; }
.storefront-shell.theme-moda .storefront-product-card h2,
.storefront-shell.theme-moda .storefront-product-card strong { font-family: Georgia, serif; font-weight: 400; }
.storefront-shell.theme-moda .storefront-product-card img { background: #eee8df; object-fit: cover; }
.storefront-shell.theme-moda .storefront-product-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,20,20,.12); }
.storefront-shell.theme-moda .store-product-card {
    min-height: 0;
    height: auto;
    align-self: start;
}
.storefront-shell.theme-moda .store-product-info { flex: 0 0 auto; }
.storefront-shell.theme-moda .store-product-bottom { margin-top: 0; }
.storefront-shell.theme-moda .store-product-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 8px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}
.storefront-shell.theme-moda .storefront-footer { border: 0; background: #111; color: #aaa; }
.storefront-shell.theme-moda .storefront-footer h2,
.storefront-shell.theme-moda .storefront-footer a { color: #eee8df; }

/* Luxury Edit: los estados interactivos usan champán claro, nunca azul o naranja. */
.storefront-shell.theme-moda .storefront-menu-toggle,
.storefront-shell.theme-moda .storefront-category-rail a.active,
.storefront-shell.theme-moda .storefront-category-branch[open] > summary,
.storefront-shell.theme-moda .storefront-category-overview.active,
.storefront-shell.theme-moda .storefront-catalog-controls button,
.storefront-shell.theme-moda .store-action-primary,
.storefront-shell.theme-moda .store-product-card-cta,
.storefront-shell.theme-moda .store-detail-cart-controls button,
.storefront-shell.theme-moda .store-cart-actions button,
.storefront-shell.theme-moda .store-checkout-actions button:not(:disabled),
.storefront-shell.theme-moda .store-account-tabs button.active,
.storefront-shell.theme-moda .store-account-form > button,
.storefront-shell.theme-moda .store-address-card button,
.storefront-shell.theme-moda .store-inquiry-button,
.storefront-shell.theme-moda button[class*="primary"] {
    border-color: var(--moda-accent) !important;
    background: var(--moda-accent-soft) !important;
    color: var(--moda-accent-ink) !important;
}
.storefront-shell.theme-moda .storefront-menu-toggle:hover,
.storefront-shell.theme-moda .storefront-menu-toggle[aria-expanded="true"],
.storefront-shell.theme-moda .storefront-catalog-controls button:hover,
.storefront-shell.theme-moda .store-action-primary:hover,
.storefront-shell.theme-moda .store-product-card-cta:hover,
.storefront-shell.theme-moda .store-detail-cart-controls button:hover,
.storefront-shell.theme-moda .store-cart-actions button:hover,
.storefront-shell.theme-moda .store-account-tabs button:hover,
.storefront-shell.theme-moda .store-account-form > button:hover,
.storefront-shell.theme-moda .store-address-card button:hover,
.storefront-shell.theme-moda .store-inquiry-button:hover {
    border-color: var(--moda-accent) !important;
    background: var(--moda-accent-hover) !important;
    color: var(--moda-ink) !important;
}
.storefront-shell.theme-moda .storefront-category-rail a.active span,
.storefront-shell.theme-moda .storefront-category-rail a.active small,
.storefront-shell.theme-moda .storefront-category-branch[open] > summary span,
.storefront-shell.theme-moda .storefront-category-branch[open] > summary small,
.storefront-shell.theme-moda .storefront-category-branch > summary::after,
.storefront-shell.theme-moda input[type="checkbox"],
.storefront-shell.theme-moda input[type="radio"] {
    color: var(--moda-accent-ink) !important;
    accent-color: var(--moda-accent) !important;
}
.storefront-shell.theme-moda :is(input, select, textarea, button, a):focus-visible {
    outline: 2px solid var(--moda-accent) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(201, 173, 120, .2) !important;
}

@media (max-width: 900px) {
    .storefront-shell.theme-moda .storefront-mainbar { min-height: 76px; padding: 14px 5vw; }
    .storefront-shell.theme-moda .storefront-nav { display: none; }
    .storefront-shell.theme-moda .storefront-header.menu-open .storefront-nav { display: flex; gap: 0; padding: 8px 5vw 18px; }
    .storefront-shell.theme-moda .storefront-nav > a { width: 100%; font-size: 16px; }
    .storefront-shell.theme-moda .store-home-slider { width: 100%; min-height: 390px; margin-left: 0; }
    .storefront-shell.theme-moda .store-home-slider .store-slide,
    .storefront-shell.theme-moda .store-home-slider img { min-height: 390px; height: 390px; }
    .storefront-shell.theme-moda .store-home-copy { width: 100%; min-height: 0; margin-top: 0; padding: 48px 8vw; }
    .storefront-shell.theme-moda .storefront-catalog-shell { display: block; padding: 28px 5vw 70px; }
    .storefront-shell.theme-moda .storefront-category-rail {
        position: static;
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 0;
        max-height: none;
        margin-bottom: 38px;
        padding: 0;
        overflow: visible;
        border-top: 1px solid var(--moda-ink);
    }
    .storefront-shell.theme-moda .storefront-category-rail > a,
    .storefront-shell.theme-moda .storefront-category-branch > summary {
        width: 100%;
        min-height: 54px;
        padding: 0 12px;
        border-bottom: 1px solid var(--moda-line);
        font-size: 14px;
        line-height: 1.25;
        box-sizing: border-box;
    }
    .storefront-shell.theme-moda .storefront-category-rail > a.active,
    .storefront-shell.theme-moda .storefront-category-branch[open] > summary {
        border-color: var(--moda-accent);
        background: var(--moda-accent-soft) !important;
        color: var(--moda-accent-ink) !important;
    }
    .storefront-shell.theme-moda .storefront-category-branch > summary small,
    .storefront-shell.theme-moda .storefront-category-rail > a small {
        font-size: 13px;
    }
    .storefront-shell.theme-moda .storefront-category-children {
        gap: 0;
        margin: 0;
        padding: 6px 0 10px 16px;
        border-left: 2px solid var(--moda-accent-soft);
        background: #faf7f1;
    }
    .storefront-shell.theme-moda .storefront-category-children a {
        min-height: 44px;
        padding: 11px 12px;
        border-bottom: 1px solid rgba(201, 173, 120, .22);
        background: transparent;
        font-size: 14px !important;
    }
    .storefront-shell.theme-moda .storefront-catalog-controls {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 12px;
        padding: 16px;
        background: #f3ede3;
    }
    .storefront-shell.theme-moda .storefront-catalog-controls .catalog-filter-field {
        width: 100%;
        min-width: 0;
        font-size: 14px;
    }
    .storefront-shell.theme-moda .storefront-catalog-controls .catalog-filter-brand {
        grid-column: 1 / -1;
    }
    .storefront-shell.theme-moda .storefront-catalog-controls input,
    .storefront-shell.theme-moda .storefront-catalog-controls select {
        height: 48px;
        min-height: 48px;
        padding: 0 13px;
        line-height: normal;
    }
    .storefront-shell.theme-moda .catalog-filter-actions {
        grid-column: 1 / -1;
        width: 100%;
    }
    .storefront-shell.theme-moda .storefront-catalog-controls button,
    .storefront-shell.theme-moda .storefront-catalog-controls a {
        min-height: 48px;
    }
}

@media (max-width: 640px) {
    .storefront-shell.theme-moda .storefront-servicebar { font-size: 9px; letter-spacing: .08em; }
    .storefront-shell.theme-moda .storefront-logo-link,
    .storefront-shell.theme-moda .storefront-logo-link img { width: 145px; }
    .storefront-shell.theme-moda .store-home-brand-grid,
    .storefront-shell.theme-moda .store-home-categories { grid-template-columns: 1fr; }
    .storefront-shell.theme-moda .store-product-info { gap: 6px; padding: 12px; }
    .storefront-shell.theme-moda .store-product-bottom { padding-top: 4px; }
    .storefront-shell.theme-moda .store-product-card-cta { min-height: 44px; margin-top: 6px; }
}

@media (max-width: 420px) {
    .storefront-shell.theme-moda .storefront-catalog-shell { padding-inline: 16px; }
    .storefront-shell.theme-moda .storefront-catalog-controls { grid-template-columns: 1fr; }
    .storefront-shell.theme-moda .storefront-catalog-controls .catalog-filter-brand,
    .storefront-shell.theme-moda .catalog-filter-actions { grid-column: 1; }
}

/* Contraste solicitado para los enlaces comunes de Luxury Edit.
   Se excluyen tarjetas fotográficas, pie y controles que necesitan texto contrastado. */
.storefront-shell.theme-moda {
    --store-action: #07557b !important;
    --store-action-strong: #07557b !important;
}

.storefront-shell.theme-moda .storefront-nav > a:is(:link, :visited, :hover, :active),
.storefront-shell.theme-moda a:is(:link, :visited, :hover, :active):not(:is(
    .store-home-category,
    .store-product-card,
    .store-product-card-cta,
    .store-action-primary,
    .store-action-secondary,
    .store-inquiry-button,
    .storefront-icon-link,
    .storefront-cart-link,
    .storefront-menu-toggle,
    .storefront-category-rail a.active,
    .storefront-catalog-controls a,
    .store-detail-cart-controls a,
    .store-cart-actions a,
    .store-checkout-actions a,
    .store-address-card a,
    .store-account-form a,
    .storefront-footer a,
    [role="button"]
)) {
    color: #07557b !important;
}

.storefront-shell.theme-moda .storefront-category-rail a:hover:not(.active) {
    color: #fffaf0 !important;
}

.storefront-shell.theme-moda .store-home-category:is(:link, :visited, :hover, :active),
.storefront-shell.theme-moda .store-home-category:is(:link, :visited, :hover, :active) span,
.storefront-shell.theme-moda .store-home-category:is(:link, :visited, :hover, :active) small {
    color: #fffaf0 !important;
}

.storefront-shell.client-leluxury > #contacto.storefront-footer {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(24px, calc(50vw - 688px), 48vw);
    border-radius: 0;
    box-sizing: border-box;
}
