@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;1,9..144,300;1,9..144,400&family=Outfit:wght@300;400;500&display=swap');
body:has(#sh-product) { margin: 0 !important; }

/* =========================================================
   2. VARIABLES
   ========================================================= */

.sh-site {
    --sh-bg: #F9F8F6;
    --sh-text: #0C0B0A;
    --sh-muted: #EBEBEA;
    --sh-muted-text: #8A8680;
    --sh-border: #E2E0DB;

    width: 100vw;
    margin-left: calc(50% - 50vw);

    background: var(--sh-bg);
    color: var(--sh-text);

    font-family: "Outfit", system-ui, sans-serif;

    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

.sh-site *,
.sh-site *::before,
.sh-site *::after {
    box-sizing: border-box;
}

.sh-site img {
    display: block;
    width: 100%;
}

.sh-site a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   3. BARRA SUPERIOR
   ========================================================= */

.sh-announcement {
    width: 100%;

    background: #0C0B0A;
    color: #F9F8F6;

    text-align: center;
    text-transform: uppercase;

    font-size: 11px;
    letter-spacing: .12em;
    line-height: 1;

    padding: 10px 20px;
}


/* =========================================================
   4. HEADER
   ========================================================= */

.sh-header {
    position: sticky;
    top: 0;

    z-index: 999;

    width: 100%;

    background: rgba(249,248,246,.97);

    border-bottom: 1px solid transparent;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.admin-bar .sh-header {
    top: 32px;
}

.sh-header-inner {
    width: 100%;
    max-width: 1440px;

    height: 56px;

    margin: 0 auto;
    padding: 0 48px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sh-nav-link {
    font-family: "Outfit", sans-serif;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: .10em;

    text-transform: uppercase;

    opacity: .70;

    transition: opacity .25s ease;
}

.sh-nav-link:hover {
    opacity: 1;
}

.sh-logo {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    font-family: "Fraunces", Georgia, serif;

    font-size: 18px;
    font-weight: 300;

    letter-spacing: .25em;

    text-transform: uppercase;

    white-space: nowrap;

    transition: opacity .25s ease;
}

.sh-logo:hover {
    opacity: .65;
}

.sh-header-right {
    display: flex;
    align-items: center;

    gap: 20px;
}


/* Carrito */

.sh-cart {
    width: 18px;
    height: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: opacity .25s ease;
}

.sh-cart:hover {
    opacity: .55;
}

.sh-cart svg {
    width: 18px;
    height: 18px;
}


/* Idiomas */

.sh-languages {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-left: 2px;
}

.sh-language {
    font-family: "Outfit", sans-serif;

    font-size: 10px;
    font-weight: 400;

    letter-spacing: .08em;

    text-transform: uppercase;

    opacity: .40;

    transition: opacity .2s ease;
}

.sh-language:hover,
.sh-language.is-active {
    opacity: 1;
}


/* =========================================================
   MENÚ MÓVIL
   ========================================================= */

.sh-menu-checkbox {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.sh-hamburger {
    display: none;

    width: 24px;
    height: 20px;

    cursor: pointer;

    flex-direction: column;
    justify-content: center;

    gap: 6px;
}

.sh-hamburger span {
    display: block;

    width: 20px;
    height: 1px;

    background: #0C0B0A;
}

.sh-mobile-menu {
    position: absolute;

    inset: 0 0 auto;
    width: 100%;
    height: min(78vh, 620px);
    height: min(78dvh, 620px);

    z-index: 2000;

    background: var(--sh-bg);
    border-bottom: 1px solid var(--sh-border);
    box-shadow: 0 18px 40px rgb(12 11 10 / .12);

    padding: 28px 28px 32px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.sh-menu-checkbox:checked ~ .sh-mobile-menu {
    opacity: 1;
    visibility: visible;
}

.sh-mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 28px;
}

.sh-mobile-logo {
    font-family: "Fraunces", Georgia, serif;

    font-size: 18px;
    font-weight: 300;

    letter-spacing: .25em;
}

.sh-mobile-close {
    font-size: 28px;
    font-weight: 300;

    cursor: pointer;
}

.sh-mobile-nav {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.sh-site .sh-mobile-nav > a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--sh-border);
    color: var(--sh-text) !important;
    font: 400 16px/1.35 "Outfit", sans-serif !important;
    letter-spacing: .10em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}



/* =========================================================
   11. FOOTER
   ========================================================= */

.sh-footer {
    padding: 64px 48px 40px;

    border-top: 1px solid var(--sh-border);

    background: var(--sh-bg);
}

.sh-footer-inner {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;
}

.sh-footer-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 32px;
}

.sh-footer-logo {
    display: inline-block;

    margin-bottom: 20px;

    font-family: "Fraunces", Georgia, serif;

    font-size: 20px;
    font-weight: 300;

    letter-spacing: .25em;

    text-transform: uppercase;
}

.sh-footer-copy,
.sh-footer-list {
    color: var(--sh-muted-text);

    font-size: 13px;

    line-height: 1.9;
}

.sh-footer-copy p {
    margin: 0;
}

.sh-footer-title {
    margin: 0 0 20px;

    font-size: 11px;

    letter-spacing: .10em;

    text-transform: uppercase;
}

.sh-footer-list {
    list-style: none;

    margin: 0;
    padding: 0;
}

.sh-footer-list a {
    transition: color .2s ease;
}

/* Evita los marcadores que puede añadir el tema de WordPress. */
.sh-site .sh-footer-list li {
    list-style: none !important;
}
.sh-site .sh-footer-list li::marker {
    content: "" !important;
}
.sh-site .sh-footer-list li::before,
.sh-site .sh-footer-list a::before {
    content: none !important;
    display: none !important;
}

.sh-footer-list a:hover {
    color: var(--sh-text);
}

.sh-footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin-top: 64px;
    padding-top: 32px;

    border-top: 1px solid var(--sh-border);

    color: var(--sh-muted-text);

    font-size: 11px;

    letter-spacing: .05em;
}



/* Bolsa lateral del prototipo */
.sh-site button.sh-cart,
.sh-site button.sh-cart-close {
    appearance: none;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent !important;
    color: inherit !important;
    cursor: pointer;
    line-height: 0;
}
.sh-site button.sh-cart { width: 18px; height: 18px; min-width: 18px; min-height: 18px; }
.sh-site button.sh-cart:focus-visible,
.sh-site button.sh-cart-close:focus-visible,
.sh-site .sh-cart-checkout:focus-visible,
.sh-site .sh-cart-error-link:focus-visible {
    outline: 2px solid #0C0B0A;
    outline-offset: 4px;
}
.sh-site .sh-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}
.sh-site .sh-cart-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.sh-site .sh-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 3001;
    display: flex;
    flex-direction: column;
    width: min(100%, 420px);
    height: 100vh;
    height: 100dvh;
    background: #F9F8F6;
    color: #0C0B0A;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .4s cubic-bezier(.32,.72,0,1), visibility .4s;
}
.sh-site .sh-cart-drawer.is-open { transform: translateX(0); visibility: visible; }
.sh-site .sh-cart-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid #E2E0DB;
}
.sh-site .sh-cart-drawer-title {
    margin: 0;
    font-family: "Outfit", sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.sh-site button.sh-cart-close {
    display: flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    transition: opacity .2s ease;
}
.sh-site button.sh-cart-close:hover { opacity: .5; }
.sh-site .sh-cart-close svg { display: block; width: 18px; height: 18px; }
.sh-site .sh-cart-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 32px;
}
.sh-site .sh-cart-drawer-body.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.sh-site .sh-cart-message,
.sh-site .sh-cart-error-link {
    margin: 0;
    color: #8A8680;
    font: 400 13px/1.6 "Outfit", sans-serif;
}
.sh-site .sh-cart-error-link { display: inline-block; margin-top: 12px; text-decoration: underline; }
.sh-site .sh-cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0,1fr);
    gap: 16px;
    margin-bottom: 24px;
    font: 400 13px/1.5 "Outfit", sans-serif;
}
.sh-site .sh-cart-item-image { width: 80px; height: 112px; background: #EBEBEA; overflow: hidden; }
.sh-site .sh-cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.sh-site .sh-cart-item-info { min-width: 0; }
.sh-site .sh-cart-item-name { display: block; margin-bottom: 4px; }
.sh-site .sh-cart-item-meta { display: block; color: #8A8680; font-size: 12px; margin-bottom: 4px; }
.sh-site .sh-cart-item-price { display: block; margin-top: 12px; }
.sh-site .sh-cart-summary { padding: 24px 32px; border-top: 1px solid #E2E0DB; font: 400 13px "Outfit", sans-serif; }
.sh-site .sh-cart-summary[hidden] { display: none !important; }
.sh-site .sh-cart-subtotal { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sh-site .sh-cart-shipping { display: block; margin-bottom: 16px; color: #8A8680; font-size: 11px; letter-spacing: .05em; }
.sh-site .sh-cart-checkout {
    display: block;
    padding: 16px;
    background: #0C0B0A;
    color: #F9F8F6 !important;
    text-align: center;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .12em;
    transition: background .2s ease;
}
.sh-site .sh-cart-checkout:hover { background: #2a2926; }
@media (max-width: 480px) {
    .sh-site .sh-cart-drawer-head,
    .sh-site .sh-cart-drawer-body,
    .sh-site .sh-cart-summary { padding-left: 24px; padding-right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .sh-site .sh-cart-backdrop,
    .sh-site .sh-cart-drawer { transition-duration: .01ms; }
}

/* La ficha utiliza las mismas fuentes, márgenes y colores del prototipo. */
#sh-product .sh-detail-main {
    width: 100%;
    max-width: 1440px;
    min-height: 60vh;
    margin: 0 auto;
    padding: 40px 48px 112px;
}
#sh-product .sh-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 40px;
    font: 400 12px/1.5 "Outfit", sans-serif;
}
#sh-product .sh-detail-breadcrumb a,
#sh-product .sh-detail-breadcrumb > span:nth-child(2) { color: var(--sh-muted-text); }
#sh-product .sh-detail-breadcrumb a { text-transform: uppercase; letter-spacing: .05em; }
#sh-product .sh-detail-breadcrumb a:hover { color: var(--sh-text); }
#sh-product .sh-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 64px;
}
#sh-product .sh-detail-gallery,
#sh-product .sh-detail-info { min-width: 0; }
#sh-product .sh-detail-main-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #EBEBEA;
}
#sh-product .sh-detail-main-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#sh-product .sh-detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#sh-product button.sh-detail-thumb {
    appearance: none;
    display: block;
    width: 64px;
    height: 80px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: #EBEBEA;
    cursor: pointer;
}
#sh-product button.sh-detail-thumb.is-active { border-bottom-color: #0C0B0A; }
#sh-product button.sh-detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
#sh-product .sh-detail-info { position: sticky; top: 96px; }
#sh-product [data-sh-product-lang][hidden] { display: none !important; }
#sh-product .sh-detail-name {
    margin: 0 0 12px;
    color: var(--sh-text);
    font: 300 clamp(24px, 3vw, 40px)/1.1 "Fraunces", Georgia, serif;
    letter-spacing: -.01em;
}
#sh-product .sh-detail-price {
    margin-bottom: 32px;
    color: var(--sh-text);
    font: 300 20px/1.4 "Outfit", sans-serif;
}
#sh-product .sh-detail-price .price { color: inherit; font: inherit; }
#sh-product .sh-detail-price del { color: var(--sh-muted-text); margin-right: 8px; }
#sh-product .sh-detail-price ins { text-decoration: none; }

/* Formulario aislado de los botones y plantillas del tema. */
#sh-product .sh-purchase-form { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; box-sizing: border-box; }
#sh-product .sh-attribute { width: 100%; margin: 0 0 20px; }
#sh-product .sh-attribute:last-of-type { margin-bottom: 0; }
#sh-product .sh-attribute label,
#sh-product .sh-product-attributes dt {
    display: block; margin: 0 0 10px; color: var(--sh-text);
    font: 400 12px/1.4 "Outfit", sans-serif; letter-spacing: .08em; text-transform: uppercase;
}
#sh-product .sh-attribute select {
    appearance: none; -webkit-appearance: none;
    display: block; width: 100% !important; max-width: none !important; min-height: 56px;
    margin: 0 !important; padding: 0 48px 0 18px !important; box-sizing: border-box;
    border: 1px solid var(--sh-border); border-radius: 0;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23232220' stroke-width='1.2'/%3E%3C/svg%3E");
    background-position: right 18px center; background-repeat: no-repeat;
    color: var(--sh-text); font: 400 13px/1.4 "Outfit", sans-serif;
    cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease;
}
#sh-product .sh-attribute select:hover { border-color: #605d58; }
#sh-product .sh-attribute select:focus-visible,
#sh-product button.sh-add-to-bag:focus-visible { outline: 2px solid #8A302C; outline-offset: 3px; }
#sh-product .sh-attribute select[aria-invalid="true"] { border-color: #8A302C; }
#sh-product .sh-detail-add .sh-visually-hidden {
    position: absolute !important; width: 1px !important; height: 1px !important;
    margin: -1px !important; padding: 0 !important; overflow: hidden !important;
    clip-path: inset(50%); white-space: nowrap;
}
#sh-product .sh-product-attributes { margin: 0; }
#sh-product .sh-product-attributes dd { margin: 0 0 24px; font: 400 13px/1.6 "Outfit", sans-serif; }
#sh-product button.sh-add-to-bag {
    appearance: none; display: block !important; float: none; clear: both;
    width: 100% !important; max-width: none !important; min-height: 54px;
    margin: 24px 0 0 !important; padding: 16px !important; box-sizing: border-box;
    border: 0; border-radius: 0;
    background: #0C0B0A; color: #F9F8F6; box-shadow: none;
    font: 400 12px/1.5 "Outfit", sans-serif; letter-spacing: .14em;
    text-align: center; text-transform: uppercase; cursor: pointer;
}
#sh-product button.sh-add-to-bag:hover { background: #2a2926; color: #F9F8F6; }
#sh-product button.sh-add-to-bag:disabled { opacity: .5; cursor: not-allowed; }
#sh-product .sh-purchase-status { margin: 12px 0 0; color: #8A302C; font: 400 13px/1.5 "Outfit", sans-serif; }
#sh-product .sh-purchase-status[hidden] { display: none !important; }
#sh-product .sh-detail-add .woocommerce-notices-wrapper { font: 400 13px/1.5 "Outfit", sans-serif; }
#sh-product .sh-detail-add .woocommerce-message,
#sh-product .sh-detail-add .woocommerce-error { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--sh-border); background: #fff; color: var(--sh-text); list-style: none; }
#sh-product .sh-detail-add .woocommerce-error { border-color: #8A302C; color: #8A302C; }

#sh-product .sh-detail-shipping {
    clear: both;
    margin: 16px 0 40px;
    color: var(--sh-muted-text);
    font: 400 12px/1.5 "Outfit", sans-serif;
    letter-spacing: .05em;
    text-align: center;
}
#sh-product .sh-detail-accordion { margin: 0; border-top: 1px solid var(--sh-border); }
#sh-product .sh-detail-accordion:last-child { border-bottom: 1px solid var(--sh-border); }
#sh-product .sh-detail-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 16px 0;
    list-style: none;
    color: var(--sh-text);
    font: 400 12px/1.5 "Outfit", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
#sh-product .sh-detail-accordion summary::-webkit-details-marker { display: none; }
#sh-product .sh-detail-accordion summary::marker { content: ""; }
#sh-product .sh-detail-plus { position: relative; width: 14px; height: 14px; flex: none; }
#sh-product .sh-detail-plus::before,
#sh-product .sh-detail-plus::after { content: ""; position: absolute; background: currentColor; }
#sh-product .sh-detail-plus::before { width: 14px; height: 1px; left: 0; top: 7px; }
#sh-product .sh-detail-plus::after { width: 1px; height: 14px; left: 7px; top: 0; transition: transform .2s; }
#sh-product .sh-detail-accordion[open] .sh-detail-plus::after { transform: rotate(90deg); }
#sh-product .sh-detail-accordion-copy {
    padding: 0 0 20px;
    color: var(--sh-muted-text);
    font: 400 13px/1.7 "Outfit", sans-serif;
}
#sh-product .sh-detail-accordion-copy p { margin: 0 0 12px; }
#sh-product .sh-detail-accordion-copy p:last-child { margin-bottom: 0; }
#sh-product .sh-detail-notices:empty { display: none; }
#sh-product .sh-detail-notices { font: 400 13px/1.6 "Outfit", sans-serif; }
#sh-product .sh-detail-notices a { text-decoration: underline; }
#sh-product .sh-detail-notices ul { list-style: none; padding-left: 0; }

/* Menú y pie con las mismas medidas móviles que las tres páginas actuales. */
@media (max-width: 900px) {
    #sh-product .sh-header-inner { height: 56px; padding: 0 24px; }
    #sh-product .sh-nav-left,
    #sh-product .sh-about-header-link,
    #sh-product .sh-header-right > .sh-languages { display: none; }
    #sh-product .sh-hamburger { display: flex; }
    #sh-product .sh-header-right { margin-left: auto; gap: 14px; }
    #sh-product .sh-logo { font-size: 17px; }
    #sh-product .sh-footer { padding: 48px 28px 32px; }
    #sh-product .sh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
    #sh-product .sh-footer-grid > * { min-width: 0; }
    #sh-product .sh-footer-bottom { flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-top: 36px; }
    #sh-product .sh-detail-main { padding: 32px 28px 96px; }
    #sh-product .sh-detail-grid { gap: 32px; }
}
@media (max-width: 767px) {
    #sh-product .sh-detail-grid { grid-template-columns: 1fr; }
    #sh-product .sh-detail-info { position: static; }
    #sh-product .sh-detail-breadcrumb { margin-bottom: 32px; }
}
@media (max-width: 600px) {
    #sh-product .sh-detail-main { padding: 32px 20px 80px; }
    #sh-product .sh-footer { padding: 40px 20px 26px; }
    #sh-product .sh-footer-grid { gap: 32px 18px; }
    #sh-product .sh-footer-logo { margin-bottom: 12px; font-size: 17px; letter-spacing: .18em; }
    #sh-product .sh-footer-copy,
    #sh-product .sh-footer-list { font-size: 12px; line-height: 1.65; }
    #sh-product .sh-footer-copy a { overflow-wrap: anywhere; }
    #sh-product .sh-footer-title { margin-bottom: 12px; }
    #sh-product .sh-footer-bottom { margin-top: 32px; padding-top: 18px; font-size: 10px; line-height: 1.5; }
}
#sh-product .sh-header:has(.sh-menu-checkbox:checked) { backdrop-filter: none; -webkit-backdrop-filter: none; }
#sh-product .sh-mobile-menu { overflow-y: auto; }
#sh-product .sh-hamburger::before,
#sh-product .sh-hamburger::after,
#sh-product .sh-mobile-close::before,
#sh-product .sh-mobile-close::after { content: none !important; display: none !important; }
#sh-product .sh-languages-mobile { display: flex; gap: 16px; margin: 40px 0 0; }
#sh-product .sh-languages-mobile .sh-language { font-size: 13px; min-width: 44px; }
#sh-product button.sh-language {
    appearance: none;
    background: transparent;
    color: inherit;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 0;
    margin: 0;
    min-width: 22px;
    min-height: 44px;
    line-height: 1;
    cursor: pointer;
}
#sh-product button:focus-visible,
#sh-product a:focus-visible,
#sh-product summary:focus-visible,
#sh-product select:focus-visible,
#sh-product .sh-hamburger:focus-visible,
#sh-product .sh-mobile-close:focus-visible { outline: 2px solid #0C0B0A; outline-offset: 3px; }
@media (max-width: 782px) {
    body.admin-bar #sh-product .sh-header { top: 46px; }
}
@media (max-width: 600px) {
    body.admin-bar #sh-product .sh-header { top: 0; }
}
