/* ============ PALETA (los colores se sobrescriben desde Ajustes) ============ */
:root {
    --pc-bg: #fbf7f2;
    --pc-accent: #cd4665;
    --pc-accent-soft: rgba(205,70,101,.08);
    --pc-contrast: #2d4a3e;
    --pc-gold: #c9a96a;
    --pc-line: rgba(205,70,101,.20);
    --pc-card: #ffffff;
    --pc-radius: 22px;
    --pc-shadow: 0 10px 34px rgba(205,70,101,.09);
    --pc-shadow-hover: 0 18px 44px rgba(205,70,101,.18);
}

/* ============ FONDO ============ */
body.woocommerce,
body.woocommerce-page { background-color: var(--pc-bg) !important; }

body.woocommerce::before,
body.woocommerce-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(900px 500px at 0% 0%, var(--pc-accent-soft), transparent 60%),
        radial-gradient(800px 500px at 100% 100%, rgba(45,74,62,.06), transparent 60%),
        var(--pc-bg);
}
body.woocommerce .site-content,
body.woocommerce-page .site-content,
body.woocommerce #primary,
body.woocommerce-page #primary,
body.woocommerce #content,
body.woocommerce-page #content,
body.woocommerce .ast-container,
body.woocommerce-page .ast-container { background: transparent !important; }

/* ============ QUITAR BREADCRUMB Y TÍTULO DE ASTRA ============ */
.woocommerce-breadcrumb,
.ast-breadcrumbs-wrapper,
.ast-breadcrumbs-inner,
.woocommerce-products-header,
.ast-archive-description,
.ast-woo-shop-archive .ast-archive-title { display: none !important; }

/* ============ LAYOUT: banner a ancho completo + contenido centrado ============ */
body.woocommerce-shop .ast-container,
body.tax-product_cat .ast-container { display: block !important; }

body.woocommerce-shop,
body.tax-product_cat { overflow-x: hidden; }

body.woocommerce-shop #primary,
body.tax-product_cat #primary {
    width: 100% !important;
    max-width: 1240px;
    margin: 0 auto !important;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ============ BANNER ============ */
.mc-banner {
    position: relative;
    isolation: isolate;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    min-height: var(--ewv-h, 420px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #2d4a3e, #4a2433);
    margin-bottom: 40px;
}
.mc-banner-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: var(--ewv-x, 50%) var(--ewv-y, 50%);
    transform: scale(var(--ewv-zoom, 1));
    transform-origin: var(--ewv-x, 50%) var(--ewv-y, 50%);
    z-index: -2;
}
.mc-banner::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(28,42,35,calc(var(--ewv-ov, .65) * 1.35)) 0%, rgba(28,42,35,calc(var(--ewv-ov, .65) * .9)) 50%, rgba(28,42,35,calc(var(--ewv-ov, .65) * .2)) 100%);
}
.mc-banner-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 24px;
    box-sizing: border-box;
}
.mc-eyebrow-pill {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: .75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}
.mc-banner h1 {
    margin: 20px 0 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.1;
    font-weight: 600;
}
.mc-line {
    display: block;
    width: 72px; height: 3px;
    background: var(--pc-accent);
    border-radius: 3px;
    margin: 22px 0;
}
.mc-sub {
    margin: 0 0 30px;
    max-width: 560px;
    color: rgba(255,255,255,.9);
    font-size: 1.1rem;
    line-height: 1.6;
}
.mc-wa {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px;
    background: #25a05a;
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none;
    letter-spacing: .5px;
    font-weight: 500;
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
    transition: transform .25s, background .25s;
}
.mc-wa:hover { background: #1d8749; transform: translateY(-2px); }

/* Alineación del banner (se elige en el panel) */
.mc-banner--center .mc-banner-inner { text-align: center; }
.mc-banner--center h1,
.mc-banner--center .mc-sub { margin-left: auto; margin-right: auto; }
.mc-banner--center .mc-line { margin-left: auto; margin-right: auto; }
.mc-banner--center::before { background: linear-gradient(180deg, rgba(28,42,35,calc(var(--ewv-ov, .65) * .95)), rgba(28,42,35,calc(var(--ewv-ov, .65) * 1.1))); }

.mc-banner--right .mc-banner-inner { text-align: right; }
.mc-banner--right h1,
.mc-banner--right .mc-sub { margin-left: auto; margin-right: 0; }
.mc-banner--right .mc-line { margin-left: auto; margin-right: 0; }
.mc-banner--right::before { background: linear-gradient(270deg, rgba(28,42,35,calc(var(--ewv-ov, .65) * 1.35)) 0%, rgba(28,42,35,calc(var(--ewv-ov, .65) * .9)) 50%, rgba(28,42,35,calc(var(--ewv-ov, .65) * .2)) 100%); }

/* ============ CATEGORÍAS NAVEGABLES (slider con flechas) ============ */
.mc-cats-wrap { margin: 0 0 34px; }
body.tax-product_cat .mc-cats-wrap { margin: 60px 0 10px; }

.mc-eyebrow {
    margin: 0 0 18px;
    text-align: center;
    font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--pc-contrast); opacity: .8;
}
.mc-slider { position: relative; }

.mc-cats {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 22px;
}
.mc-cats::-webkit-scrollbar { display: none; }
/* centra las tarjetas cuando caben todas; si no caben, empieza a la izquierda */
.mc-cats > .mc-cat:first-child { margin-left: auto; }
.mc-cats > .mc-cat:last-child  { margin-right: auto; }

.mc-cat {
    position: relative;
    isolation: isolate;
    flex: 0 0 210px;
    scroll-snap-align: start;
    aspect-ratio: 3 / 4;
    display: flex; align-items: flex-end; justify-content: center;
    text-align: center;
    overflow: hidden;
    border-radius: var(--pc-radius);
    border: 1px solid var(--pc-line);
    background: var(--pc-accent-soft);
    box-shadow: var(--pc-shadow);
    text-decoration: none;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.mc-cat:hover { transform: translateY(-4px); box-shadow: var(--pc-shadow-hover); border-color: var(--pc-accent); }

.mc-cat-img {
    position: absolute; inset: 0; z-index: -2;
    display: flex; align-items: center; justify-content: center;
    color: var(--pc-accent); font-size: 2.6rem;
}
.mc-cat .mc-cat-img img {
    width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important;
    margin: 0;
    object-fit: cover;
    object-position: var(--cx, 50%) var(--cy, 50%);
    transform: scale(var(--cz, 1.15));
    transform-origin: var(--cx, 50%) var(--cy, 50%);
    transition: transform .7s ease;
}
.mc-cat:hover .mc-cat-img img { transform: scale(calc(var(--cz, 1.15) + .11)); }

.mc-cat::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(20,32,26,0) 35%, rgba(20,32,26,.85) 100%);
}
.mc-cat-txt {
    display: flex; flex-direction: column; align-items: center;
    padding: 0 14px 22px;
}
.mc-cat strong {
    color: #fff;
    font-size: 1.35rem; line-height: 1.2; font-weight: 700;
    letter-spacing: .2px;
    text-shadow: 0 2px 12px rgba(0,0,0,.55);
}

/* tarjeta sin foto ("Todos" o categorías sin imagen): flor arriba, título abajo */
.mc-cat-noimg { align-items: center; }
.mc-cat-noimg::after { display: none; }
.mc-cat-noimg .mc-cat-img { align-items: flex-start; padding-top: 28%; }
.mc-cat-noimg .mc-cat-txt { padding-top: 78px; }
.mc-cat-noimg strong { color: var(--pc-contrast); text-shadow: none; }

.mc-cat.is-active {
    border-color: var(--pc-accent);
    box-shadow: 0 0 0 2px var(--pc-accent), var(--pc-shadow-hover);
}

/* Flechas */
.mc-arrow {
    position: absolute; top: calc(50% - 12px); transform: translateY(-50%);
    z-index: 5;
    width: 46px; height: 46px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50% !important;
    border: 1px solid var(--pc-line) !important;
    background: #fff !important;
    color: var(--pc-accent) !important;
    box-shadow: var(--pc-shadow);
    cursor: pointer;
    transition: all .25s;
}
.mc-arrow:hover { background: var(--pc-accent) !important; color: #fff !important; border-color: var(--pc-accent) !important; }
.mc-prev { left: -14px; }
.mc-next { right: -14px; }

/* ============ PANEL DE FILTROS ============ */
.mc-panel {
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: 28px;
    padding: 26px 30px 18px;
    margin-bottom: 36px;
    box-shadow: var(--pc-shadow);
}
.mc-label {
    margin: 0 0 14px;
    font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--pc-accent); font-weight: 600;
}
.mc-label span { margin-right: 8px; }

.mc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.mc-chip {
    padding: 10px 20px;
    border: 1px solid var(--pc-line);
    border-radius: 999px;
    color: var(--pc-contrast);
    text-decoration: none;
    font-size: .92rem;
    background: #fff;
    transition: all .25s;
}
.mc-chip:hover { border-color: var(--pc-accent); color: var(--pc-accent); }
.mc-chip.is-active { background: var(--pc-accent); border-color: var(--pc-accent); color: #fff; }
.mc-chip-clear { border-style: dashed; color: #8a8a8a; }

/* Slider doble */
.mc-slider-form { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.mc-range { position: relative; flex: 0 1 380px; min-width: 220px; height: 28px; }
.mc-track {
    position: absolute; left: 0; right: 0; top: 12px; height: 4px;
    background: var(--pc-line); border-radius: 4px;
}
.mc-fill { position: absolute; top: 0; bottom: 0; background: var(--pc-accent); border-radius: 4px; }
.mc-range input[type=range],
.mc-range input[type=range]:focus,
.mc-range input[type=range]:hover,
.mc-range input[type=range]:active {
    position: absolute; left: 0; top: 0; width: 100%; height: 28px;
    margin: 0; padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: 0 !important;
    pointer-events: none;
    -webkit-appearance: none; appearance: none;
}
.mc-range input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 28px; border: 0; box-shadow: none; }
.mc-range input[type=range]::-moz-range-track { background: transparent; }
.mc-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto;
    width: 22px; height: 22px; margin-top: 3px;
    border-radius: 50%; background: #fff;
    border: 2px solid var(--pc-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    cursor: pointer;
}
.mc-range input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 18px; height: 18px;
    border-radius: 50%; background: #fff;
    border: 2px solid var(--pc-accent); cursor: pointer;
}
.mc-range-label { color: var(--pc-contrast); font-size: .95rem; white-space: nowrap; }
.mc-slider-form button {
    padding: 11px 28px; border: 0; border-radius: 999px;
    background: var(--pc-contrast); color: #fff;
    letter-spacing: 1px; cursor: pointer; transition: background .25s;
}
.mc-slider-form button:hover { background: var(--pc-accent); }

/* Barra inferior: contador + orden */
.mc-bar {
    overflow: visible;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-top: 20px; padding-top: 16px;
    border-top: 1px solid var(--pc-line);
}
.mc-count { color: var(--pc-contrast); }
.mc-order { display: flex; align-items: center; gap: 12px; margin: 0; }
.mc-order label { color: var(--pc-contrast); opacity: .75; font-size: .9rem; white-space: nowrap; margin: 0; }
.mc-order select {
    -webkit-appearance: none; appearance: none;
    min-width: 230px;
    padding: 11px 46px 11px 22px !important;
    border: 1px solid var(--pc-line) !important;
    border-radius: 999px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23cd4665' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 14px 9px !important;
    color: var(--pc-contrast);
    box-shadow: none !important;
    cursor: pointer;
}
.mc-order select:focus { border-color: var(--pc-accent) !important; outline: 0; }

/* ============ GRILLA Y TARJETAS DE PRODUCTO ============ */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

ul.products li.product {
    width: auto !important; margin: 0 !important; float: none !important;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius);
    padding: 14px 14px 20px !important;
    text-align: center;
    box-shadow: var(--pc-shadow);
    transition: transform .3s, box-shadow .3s;
    overflow: hidden;
}
ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--pc-shadow-hover); }
ul.products li.product img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
    border-radius: 14px; margin-bottom: 14px !important;
    transition: transform .5s;
}
ul.products li.product:hover img { transform: scale(1.04); }

ul.products li.product .ast-woo-product-category,
ul.products li.product .ast-woo-shop-product-category { display: none !important; }

ul.products li.product .woocommerce-loop-product__title {
    color: var(--pc-contrast); font-size: 1.05rem; font-weight: 600; padding: 0 !important;
}
ul.products li.product .price { color: var(--pc-accent) !important; font-weight: 700; font-size: 1.05rem; }
ul.products li.product .button {
    background: transparent !important;
    color: var(--pc-accent) !important;
    border: 1px solid var(--pc-accent) !important;
    border-radius: 999px !important;
    padding: 10px 24px !important;
    font-size: .85rem; letter-spacing: 1px;
    transition: all .25s;
}
ul.products li.product .button:hover { background: var(--pc-accent) !important; color: #fff !important; }

/* ============ PAGINACIÓN ============ */
body nav.woocommerce-pagination { margin-top: 44px; text-align: center; }
body nav.woocommerce-pagination ul,
body nav.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body nav.woocommerce-pagination ul li {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
}
body nav.woocommerce-pagination ul li a,
body nav.woocommerce-pagination ul li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 1rem !important;
    text-align: center;
    text-decoration: none !important;
    border: 1px solid var(--pc-line) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--pc-contrast) !important;
    transition: all .25s;
}
body nav.woocommerce-pagination ul li span.dots {
    width: auto !important;
    border-color: transparent !important;
    background: transparent !important;
}
body nav.woocommerce-pagination ul li a:hover,
body nav.woocommerce-pagination ul li span.current {
    background: var(--pc-accent) !important;
    border-color: var(--pc-accent) !important;
    color: #fff !important;
}

/* ============ DESCRIPCIÓN SEO ============ */
.mc-seo {
    margin-top: 50px; padding: 36px;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: var(--pc-radius);
    box-shadow: var(--pc-shadow);
    line-height: 1.8; color: #444;
}
.mc-seo h2, .mc-seo h3 { color: var(--pc-contrast); }

/* ============ FICHA DE PRODUCTO (landing) ============ */
body.single-product div.product {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px 44px;
    align-items: start;
    background: transparent;
}
body.single-product div.product > * { grid-column: 1 / -1; }
body.single-product div.product > .woocommerce-product-gallery { grid-column: 1; }
body.single-product div.product > .summary { grid-column: 2; }

body.single-product .woocommerce-product-gallery {
    width: auto !important; float: none !important; margin: 0 !important;
    position: sticky; top: 30px; align-self: start;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: 26px;
    padding: 14px;
    box-shadow: var(--pc-shadow);
}
body.single-product .woocommerce-product-gallery img { border-radius: 16px; }

body.single-product .summary {
    width: auto !important; float: none !important; margin: 0 !important;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: 26px;
    padding: 36px;
    box-shadow: var(--pc-shadow);
}
body.single-product .ast-woo-product-category,
body.single-product .ast-woo-product-category a {
    color: var(--pc-accent) !important;
    font-size: .78rem; letter-spacing: 3px; text-transform: uppercase; text-decoration: none;
}
body.single-product .product_title {
    color: var(--pc-contrast); font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15;
    margin: 8px 0 14px;
}
body.single-product .summary .price {
    color: var(--pc-accent) !important;
    font-size: 2rem; font-weight: 700; margin: 0 0 16px;
}
body.single-product .summary .price del { opacity: .5; font-size: 1.1rem; }
body.single-product .summary .price ins { text-decoration: none; }
body.single-product .woocommerce-product-details__short-description { color: #555; line-height: 1.75; margin-bottom: 22px; }

/* Cantidad + botón */
body.single-product form.cart:not(.variations_form),
body.single-product .woocommerce-variation-add-to-cart {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    margin: 0 0 4px;
}
body.single-product .quantity .qty {
    width: 84px; height: 54px; text-align: center;
    border: 1px solid var(--pc-line) !important;
    border-radius: 999px !important;
    background: #fff; color: var(--pc-contrast);
}
body.single-product .single_add_to_cart_button {
    flex: 1 1 200px;
    background: var(--pc-accent) !important; color: #fff !important;
    border-radius: 999px !important; padding: 16px 36px !important; letter-spacing: 1px;
    transition: background .25s, transform .25s;
}
body.single-product .single_add_to_cart_button:hover { background: var(--pc-contrast) !important; transform: translateY(-2px); }
body.single-product table.variations select {
    border: 1px solid var(--pc-line); border-radius: 999px; padding: 10px 18px; background: #fff;
}
body.single-product .mc-shake { animation: mcshake .5s; }
@keyframes mcshake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-6px)} 75%{transform:translateX(6px)} }

/* Botón WhatsApp ancho completo */
.summary .mc-wa-full {
    display: flex; justify-content: center; width: 100%; box-sizing: border-box;
    margin-top: 14px;
}

/* Beneficios */
.mc-benefits { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.mc-benefits li { position: relative; padding-left: 28px; color: var(--pc-contrast); font-size: .95rem; }
.mc-benefits li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--pc-accent-soft); color: var(--pc-accent);
    display: flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700;
}

/* Widgets: marca, color, etiquetas, pagos */
.mc-pd, .mc-pay { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--pc-line); }
.mc-pd-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.mc-pd-label {
    flex: 0 0 auto; min-width: 78px;
    font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--pc-contrast); opacity: .7; padding-top: 7px;
}
.mc-pay .mc-pd-label { display: block; margin-bottom: 10px; padding-top: 0; }
.mc-pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-pd-chip {
    display: inline-block; padding: 6px 14px;
    border: 1px solid var(--pc-line); border-radius: 999px;
    background: #fff; color: var(--pc-contrast) !important;
    font-size: .85rem; text-decoration: none;
    transition: all .25s;
}
a.mc-pd-chip:hover { border-color: var(--pc-accent); color: var(--pc-accent) !important; }
.mc-pay-chip { background: var(--pc-accent-soft); border-color: transparent; }

body.single-product .product_meta { border-top: 1px solid var(--pc-line); padding-top: 14px; margin-top: 20px; font-size: .9rem; }
body.single-product .product_meta a { color: var(--pc-accent); }

/* Pestañas -> secciones */
body.single-product .woocommerce-tabs ul.tabs { display: none !important; }
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    display: block !important;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: 26px;
    padding: 34px !important;
    margin: 0 0 20px;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: var(--pc-shadow);
    line-height: 1.8;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2 {
    color: var(--pc-contrast); font-size: 1.3rem; margin-top: 0;
}
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 { text-align: center; color: var(--pc-contrast); margin: 40px 0 24px; }

/* Barra fija de compra (solo móvil) */
.mc-sticky { display: none; }

/* ============ CARRITO (compacto) ============ */
body.woocommerce-cart .entry-title,
body.woocommerce-cart h1.entry-title { color: var(--pc-contrast); font-size: 2rem; font-weight: 700; margin-bottom: 18px; }

body.woocommerce-cart .woocommerce {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}
body.woocommerce-cart .woocommerce > * { grid-column: 1 / -1; }
body.woocommerce-cart .woocommerce > form.woocommerce-cart-form { grid-column: 1; grid-row: 2; }
body.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 2; grid-row: 2; position: sticky; top: 30px; }

body.woocommerce-cart table.shop_table {
    border: 1px solid var(--pc-line) !important;
    border-collapse: separate; border-spacing: 0;
    border-radius: 22px; overflow: hidden;
    background: var(--pc-card);
    box-shadow: var(--pc-shadow);
    margin: 0;
}
body.woocommerce-cart table.cart th {
    background: transparent !important;
    padding: 14px 16px !important;
    font-size: .72rem; letter-spacing: 2px; text-transform: uppercase;
    color: var(--pc-contrast); opacity: .75; font-weight: 600;
    border: 0 !important; border-bottom: 1px solid var(--pc-line) !important;
}
body.woocommerce-cart table.cart td {
    padding: 12px 16px !important;
    border: 0 !important; border-bottom: 1px solid rgba(0,0,0,.05) !important;
    vertical-align: middle;
}
body.woocommerce-cart table.cart td.product-thumbnail img {
    width: 64px; height: 64px; max-width: none; object-fit: cover; border-radius: 12px;
}
body.woocommerce-cart table.cart td.product-name a { color: var(--pc-contrast); font-weight: 600; text-decoration: none; }
body.woocommerce-cart table.cart td.product-name a:hover { color: var(--pc-accent); }
body.woocommerce-cart table.cart td.product-subtotal { color: var(--pc-accent); font-weight: 700; }
body.woocommerce-cart table.cart a.remove {
    width: 28px; height: 28px; line-height: 26px; text-align: center;
    border: 1px solid var(--pc-line); border-radius: 50% !important;
    background: #fff; color: var(--pc-accent) !important; font-size: 1.1rem;
}
body.woocommerce-cart table.cart a.remove:hover { background: var(--pc-accent); color: #fff !important; }
body.woocommerce-cart .quantity .qty {
    width: 68px; height: 42px; text-align: center;
    border: 1px solid var(--pc-line) !important; border-radius: 999px !important; background: #fff;
}

/* Cupón y actualizar */
body.woocommerce-cart table.cart td.actions { padding: 16px !important; border-bottom: 0 !important; }
body.woocommerce-cart td.actions .coupon { display: inline-flex; gap: 10px; align-items: center; float: left; }
body.woocommerce-cart td.actions .coupon label { display: none; }
body.woocommerce-cart td.actions #coupon_code {
    width: 190px; height: 44px; padding: 0 18px;
    border: 1px solid var(--pc-line) !important; border-radius: 999px !important; background: #fff;
}
body.woocommerce-cart td.actions button.button,
body.woocommerce-cart td.actions .button {
    height: 44px; padding: 0 24px !important;
    border-radius: 999px !important; letter-spacing: .5px; font-size: .9rem;
    transition: all .25s;
}
body.woocommerce-cart td.actions .coupon .button {
    background: var(--pc-contrast) !important; color: #fff !important; border: 0 !important;
}
body.woocommerce-cart td.actions .coupon .button:hover { background: var(--pc-accent) !important; }
body.woocommerce-cart td.actions > button[name="update_cart"] {
    float: right; background: transparent !important;
    color: var(--pc-accent) !important; border: 1px solid var(--pc-accent) !important;
}
body.woocommerce-cart td.actions > button[name="update_cart"]:hover:not(:disabled) { background: var(--pc-accent) !important; color: #fff !important; }
body.woocommerce-cart td.actions > button[name="update_cart"]:disabled { opacity: .45; }

/* Totales */
body.woocommerce-cart .cart_totals {
    float: none !important; width: 100% !important;
    background: var(--pc-card);
    border: 1px solid var(--pc-line);
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow: var(--pc-shadow);
}
body.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 12px; padding: 0; background: transparent !important; border: 0 !important;
    font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--pc-accent);
}
body.woocommerce-cart .cart_totals table.shop_table {
    border: 0 !important; box-shadow: none; border-radius: 0; background: transparent;
}
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
    background: transparent !important; padding: 10px 0 !important;
    border: 0 !important; border-bottom: 1px solid rgba(0,0,0,.06) !important;
}
body.woocommerce-cart .cart_totals .order-total td,
body.woocommerce-cart .cart_totals .order-total th { font-size: 1.1rem; color: var(--pc-contrast); border-bottom: 0 !important; }
body.woocommerce-cart .cart_totals .order-total td { color: var(--pc-accent); font-weight: 700; }
body.woocommerce-cart .wc-proceed-to-checkout { padding: 6px 0 0; }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    display: block; text-align: center; margin: 0;
    background: var(--pc-accent) !important; color: #fff !important;
    border-radius: 999px !important; padding: 16px 24px !important;
    letter-spacing: 1px; font-size: 1rem;
    transition: background .25s, transform .25s;
}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover { background: var(--pc-contrast) !important; transform: translateY(-2px); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .mc-banner { min-height: var(--ewv-mh, 340px); }
    .mc-banner .mc-banner-bg {
        object-position: var(--ewv-mx, 50%) var(--ewv-my, 50%);
        transform: scale(var(--ewv-mzoom, 1));
        transform-origin: var(--ewv-mx, 50%) var(--ewv-my, 50%);
    }
    .mc-banner::before { background: linear-gradient(180deg, rgba(28,42,35,calc(var(--ewv-ov, .65) * 1.08)), rgba(28,42,35,calc(var(--ewv-ov, .65) * 1.23))); }
    .mc-banner-inner { padding: 50px 20px; }
    .mc-sub { font-size: 1rem; }

    .mc-panel { padding: 20px 18px 14px; }
    .mc-bar { flex-direction: column; align-items: stretch; }
    .mc-order select { min-width: 0; flex: 1; }
    .mc-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
    .mc-chip { white-space: nowrap; }

    /* Categorías en móvil */
    .mc-cats { padding: 8px 2px 16px; }
    .mc-cat { flex: 0 0 170px; }
    .mc-cat strong { font-size: 1.2rem; }
    .mc-arrow { width: 38px; height: 38px; }
    .mc-prev { left: -4px; }
    .mc-next { right: -4px; }
    body.tax-product_cat .mc-cats-wrap { margin-top: 40px; }
}
@media (max-width: 480px) {
    ul.products li.product { padding: 10px 10px 16px !important; }
    ul.products li.product .button { padding: 9px 14px !important; }
}

/* ============ FICHA / CARRITO: RESPONSIVE ============ */
@media (max-width: 900px) {
    body.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    body.single-product div.product > .woocommerce-product-gallery,
    body.single-product div.product > .summary { grid-column: 1; }
    body.single-product .woocommerce-product-gallery { position: static; padding: 10px; }
    body.single-product .summary { padding: 24px 20px; }
    body.single-product .woocommerce-tabs .woocommerce-Tabs-panel { padding: 24px 20px !important; }

    body.woocommerce-cart .woocommerce { grid-template-columns: minmax(0, 1fr); }
    body.woocommerce-cart .woocommerce > form.woocommerce-cart-form,
    body.woocommerce-cart .woocommerce > .cart-collaterals { grid-column: 1; grid-row: auto; position: static; }
}
@media (max-width: 800px) {
    /* barra fija de compra */
    .mc-sticky {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.96);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid var(--pc-line);
        box-shadow: 0 -10px 30px rgba(0,0,0,.08);
    }
    .mc-sticky-price { display: flex; flex-direction: column; line-height: 1.15; color: var(--pc-accent); font-weight: 700; font-size: 1.05rem; }
    .mc-sticky-price small { color: #9a9a9a; font-size: .68rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; }
    .mc-sticky-price del { opacity: .5; font-size: .8rem; }
    .mc-sticky-price ins { text-decoration: none; }
    .mc-sticky-wa {
        flex: 0 0 48px; width: 48px; height: 48px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 50%; background: #25a05a; color: #fff !important;
    }
    .mc-sticky-btn {
        flex: 1; min-height: 48px; padding: 0 18px;
        display: flex; align-items: center; justify-content: center;
        border: 0; border-radius: 999px;
        background: var(--pc-accent); color: #fff !important;
        font-size: .95rem; letter-spacing: .5px; text-decoration: none; cursor: pointer;
    }
    body.single-product { padding-bottom: 86px; }

    /* carrito en móvil: cada producto es una tarjeta compacta */
    body.woocommerce-cart table.cart thead { display: none !important; }
    body.woocommerce-cart table.cart tr.cart_item {
        display: grid !important; grid-template-columns: 72px 1fr; gap: 2px 14px;
        position: relative; padding: 14px;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }
    body.woocommerce-cart table.cart tr.cart_item td {
        display: block !important; padding: 0 !important; border: 0 !important;
        text-align: left !important; width: auto !important;
    }
    body.woocommerce-cart table.cart tr.cart_item td::before { display: none !important; }
    body.woocommerce-cart table.cart td.product-remove { position: absolute; top: 10px; right: 10px; }
    body.woocommerce-cart table.cart td.product-thumbnail { grid-row: 1 / 5; }
    body.woocommerce-cart table.cart td.product-thumbnail img { width: 72px; height: 72px; }
    body.woocommerce-cart table.cart td.product-name { padding-right: 34px !important; }
    body.woocommerce-cart table.cart td.product-price { font-size: .9rem; color: #777; }
    body.woocommerce-cart table.cart td.product-quantity { margin-top: 6px; }
    body.woocommerce-cart table.cart td.product-subtotal { font-size: 1rem; margin-top: 4px; }
    body.woocommerce-cart table.cart td.product-subtotal::before { display: none !important; }

    body.woocommerce-cart td.actions .coupon { float: none; width: 100%; margin-bottom: 10px; }
    body.woocommerce-cart td.actions #coupon_code { flex: 1; width: auto; min-width: 0; }
    body.woocommerce-cart td.actions > button[name="update_cart"] { float: none; width: 100%; }
}


/* ============ PAGINACIÓN: variante de Astra (.ast-pagination) ============ */
body .ast-pagination { text-align: center; margin-top: 44px; }
body .ast-pagination .nav-links {
    display: flex !important; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px;
}
body .ast-pagination .page-numbers {
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    box-sizing: border-box !important; width: 46px !important; height: 46px !important; min-width: 46px !important;
    margin: 0 !important; padding: 0 !important; line-height: 1 !important;
    border: 1px solid var(--pc-line) !important; border-radius: 50% !important;
    background: #fff !important; color: var(--pc-contrast) !important; text-decoration: none !important;
}
body .ast-pagination .page-numbers.dots { border-color: transparent !important; background: transparent !important; width: auto !important; }
body .ast-pagination .page-numbers:hover,
body .ast-pagination .page-numbers.current {
    background: var(--pc-accent) !important; border-color: var(--pc-accent) !important; color: #fff !important;
}

/* ============ FICHA: TEXTOS DENTRO DEL RECUADRO ============ */
body.single-product .summary,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    overflow-wrap: anywhere; word-break: break-word; min-width: 0; box-sizing: border-box;
}
body.single-product .woocommerce-Tabs-panel img,
body.single-product .woocommerce-Tabs-panel iframe,
body.single-product .woocommerce-Tabs-panel video { max-width: 100%; height: auto; }
body.single-product .woocommerce-Tabs-panel table { display: block; max-width: 100%; overflow-x: auto; }
body.single-product .woocommerce-Tabs-panel p { margin: 0 0 1em; }
body.single-product .summary { padding-bottom: 32px; }

/* ============ MÉTODOS DE PAGO: LOGOS ============ */
.mc-pay-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.mc-pay-logo {
    display: block;
    width: 96px !important; height: 46px !important; max-width: none !important;
    object-fit: contain;
    padding: 7px 12px; box-sizing: border-box;
    background: #fff; border: 1px solid var(--pc-line); border-radius: 12px;
    margin: 0 !important;
}
.mc-pay-logo.mc-pay-wide {
    width: 100% !important; max-width: 100% !important; height: auto !important;
    padding: 0 !important; border: 0 !important; background: transparent !important;
    border-radius: 0 !important; object-fit: initial;
}

/* ============ RESEÑAS (minimalistas, tipo Google) ============ */
body.single-product #reviews { font-size: .95rem; }
body.single-product #reviews .woocommerce-Reviews-title {
    margin: 0 0 14px;
    font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--pc-accent); font-weight: 600;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel--reviews > h2:first-child { display: none; }

/* estrellas doradas */
body.single-product .star-rating::before { color: #e3e3e3 !important; }
body.single-product .star-rating span::before { color: #fbbc04 !important; }
body.single-product p.stars a::before { color: #fbbc04 !important; }

/* resumen */
.mc-rv-sum {
    display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
    padding: 4px 0 22px; margin-bottom: 8px;
    border-bottom: 1px solid var(--pc-line);
}
.mc-rv-score { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; }
.mc-rv-score strong { font-size: 3rem; line-height: 1; font-weight: 600; color: var(--pc-contrast); }
.mc-rv-score .star-rating { float: none !important; margin: 0 !important; font-size: 1rem; }
.mc-rv-score span { font-size: .82rem; color: #888; }
.mc-rv-bars { flex: 1; min-width: 220px; display: grid; gap: 7px; }
.mc-rv-bar { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: center; font-size: .78rem; color: #777; }
.mc-rv-bar i { height: 8px; border-radius: 99px; background: rgba(0,0,0,.07); overflow: hidden; display: block; }
.mc-rv-bar b { display: block; height: 100%; background: #fbbc04; border-radius: 99px; }

/* lista de reseñas */
body.single-product #reviews ol.commentlist { list-style: none; margin: 0; padding: 0; }
body.single-product #reviews ol.commentlist li {
    margin: 0; padding: 18px 0; list-style: none;
    border: 0; border-bottom: 1px solid rgba(0,0,0,.06);
}
body.single-product #reviews ol.commentlist li:last-child { border-bottom: 0; }
body.single-product #reviews .comment_container { display: flex; gap: 14px; align-items: flex-start; }
body.single-product #reviews img.avatar {
    position: static !important; float: none !important;
    flex: 0 0 44px; width: 44px !important; height: 44px !important;
    border: 0 !important; padding: 0 !important; border-radius: 50%; background: var(--pc-accent-soft);
}
body.single-product #reviews .comment-text {
    flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important;
}
body.single-product #reviews .comment-text .star-rating { float: none !important; margin: 0 0 6px !important; font-size: .85rem; }
body.single-product #reviews .comment-text p.meta { margin: 0 0 4px; font-size: .82rem; color: #888; }
body.single-product #reviews .comment-text .woocommerce-review__author { color: var(--pc-contrast); font-size: .95rem; font-weight: 600; }
body.single-product #reviews .comment-text .description p { margin: 0; color: #444; line-height: 1.65; }
body.single-product #reviews .woocommerce-noreviews { color: #888; margin: 0 0 6px; }

/* formulario discreto */
body.single-product #review_form_wrapper {
    margin-top: 18px; padding: 20px 0 0 !important;
    border: 0 !important; border-top: 1px solid var(--pc-line) !important; background: transparent !important;
}
body.single-product #reviews #reply-title,
body.single-product #reviews .comment-reply-title {
    display: block; margin: 0 0 12px; font-size: 1rem !important; font-weight: 600; color: var(--pc-contrast);
}
body.single-product #review_form label { font-size: .82rem; color: #777; font-weight: 500; }
body.single-product #review_form .comment-form-rating { margin-bottom: 12px; }
body.single-product #review_form textarea,
body.single-product #review_form input[type=text],
body.single-product #review_form input[type=email] {
    width: 100%; box-sizing: border-box;
    border: 1px solid var(--pc-line) !important; border-radius: 16px !important;
    padding: 12px 16px; background: #fff; box-shadow: none !important;
}
body.single-product #review_form textarea { min-height: 110px; }
body.single-product #review_form textarea:focus,
body.single-product #review_form input:focus { border-color: var(--pc-accent) !important; outline: 0; }
body.single-product #review_form .comment-form-cookies-consent { font-size: .8rem; color: #888; }
body.single-product #review_form .form-submit input#submit {
    border: 0 !important; border-radius: 999px !important;
    background: var(--pc-accent) !important; color: #fff !important;
    padding: 12px 30px !important; letter-spacing: .5px; cursor: pointer; transition: background .25s;
}
body.single-product #review_form .form-submit input#submit:hover { background: var(--pc-contrast) !important; }


/* ============ FILTROS SIN RECARGA ============ */
#ewv-results { transition: opacity .2s; }
#ewv-results.is-loading { opacity: .45; pointer-events: none; }

/* ============ CARRITO Y CHECKOUT: CONTENEDOR ============ */
body.woocommerce-cart .ast-container,
body.woocommerce-checkout .ast-container { display: block !important; }
body.woocommerce-cart #primary,
body.woocommerce-checkout #primary {
    width: 100% !important; max-width: 1240px; margin: 0 auto !important;
    padding: 0 24px; box-sizing: border-box;
}
body.woocommerce-checkout .entry-title,
body.woocommerce-checkout h1.entry-title { color: var(--pc-contrast); font-size: 2rem; font-weight: 700; margin-bottom: 18px; }

/* avisos compactos */
body.woocommerce-cart .woocommerce-info, body.woocommerce-checkout .woocommerce-info,
body.woocommerce-cart .woocommerce-message, body.woocommerce-checkout .woocommerce-message {
    background: var(--pc-accent-soft); border: 0; border-radius: 14px;
    color: var(--pc-contrast); padding: 12px 18px; margin-bottom: 18px;
}
body.woocommerce-cart .woocommerce-info::before, body.woocommerce-checkout .woocommerce-info::before,
body.woocommerce-cart .woocommerce-message::before, body.woocommerce-checkout .woocommerce-message::before { color: var(--pc-accent); }
body.woocommerce-checkout .woocommerce-info a { color: var(--pc-accent); }

/* carrito: totales con relleno y tabla más compacta */
body.woocommerce-cart .cart_totals { padding: 22px 24px !important; box-sizing: border-box; }
body.woocommerce-cart table.cart td { padding: 10px 14px !important; }
body.woocommerce-cart table.cart td.product-thumbnail img { width: 56px; height: 56px; }

/* ============ CHECKOUT (compacto) ============ */
body.woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 0 24px;
    align-items: start;
}
body.woocommerce-checkout form.checkout > * { grid-column: 1 / -1; }
body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-row: 1; }
body.woocommerce-checkout form.checkout > #customer_details { grid-column: 1; grid-row: 2 / span 2; }
body.woocommerce-checkout form.checkout > #order_review_heading { grid-column: 2; grid-row: 2; margin: 0 0 12px; align-self: end; }
body.woocommerce-checkout form.checkout > #order_review { grid-column: 2; grid-row: 3; position: sticky; top: 30px; }

body.woocommerce-checkout #customer_details,
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 {
    width: 100% !important; max-width: none !important; float: none !important; padding: 0 !important;
}
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review {
    background: var(--pc-card);
    padding: 22px 24px;
    margin: 0 0 20px;
    box-sizing: border-box;
}
body.woocommerce-checkout #order_review { margin-bottom: 0; }
body.woocommerce-checkout .woocommerce-billing-fields > h3,
body.woocommerce-checkout .woocommerce-shipping-fields > h3,
body.woocommerce-checkout .woocommerce-additional-fields > h3,
body.woocommerce-checkout #order_review_heading {
    margin: 0 0 16px;
    font-size: .8rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--pc-accent); font-weight: 600;
}
body.woocommerce-checkout .woocommerce-shipping-fields h3 label { font-size: inherit; }

/* campos en dos columnas */
body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px;
}
body.woocommerce-checkout form.checkout .form-row {
    grid-column: 1 / -1;
    width: 100% !important; float: none !important;
    margin: 0 0 12px !important; padding: 0 !important;
}
body.woocommerce-checkout form.checkout .form-row-first,
body.woocommerce-checkout form.checkout .form-row-last { grid-column: auto; }
body.woocommerce-checkout form.checkout .form-row label {
    display: block; margin: 0 0 4px; font-size: .8rem; line-height: 1.3; color: #777; font-weight: 500;
}
body.woocommerce-checkout form.checkout .form-row .required { color: var(--pc-accent); text-decoration: none; }
body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout select,
body.woocommerce-checkout form.checkout textarea {
    width: 100%; box-sizing: border-box; height: 46px; padding: 0 16px;
    border: 1px solid var(--pc-line) !important;
    border-radius: min(var(--pc-radius), 16px) !important;
    background: #fff; box-shadow: none !important; color: var(--pc-contrast);
}
body.woocommerce-checkout form.checkout textarea { height: auto; min-height: 90px; padding: 12px 16px; }
body.woocommerce-checkout form.checkout input.input-text:focus,
body.woocommerce-checkout form.checkout select:focus,
body.woocommerce-checkout form.checkout textarea:focus { border-color: var(--pc-accent) !important; outline: 0; }
body.woocommerce-checkout .select2-container .select2-selection--single {
    height: 46px !important;
    border: 1px solid var(--pc-line) !important;
    border-radius: min(var(--pc-radius), 16px) !important;
    background: #fff;
}
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 44px !important; padding-left: 16px !important; color: var(--pc-contrast); }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px !important; }

/* resumen del pedido */
body.woocommerce-checkout #order_review table.shop_table {
    border: 0 !important; margin: 0 0 14px; border-collapse: collapse; width: 100%; background: transparent; box-shadow: none;
}
body.woocommerce-checkout #order_review table.shop_table th,
body.woocommerce-checkout #order_review table.shop_table td {
    padding: 10px 0 !important; background: transparent !important;
    border: 0 !important; border-bottom: 1px solid rgba(0,0,0,.06) !important;
    font-size: .92rem; vertical-align: top;
}
body.woocommerce-checkout #order_review thead th {
    font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; color: #888; font-weight: 600;
}
body.woocommerce-checkout #order_review .product-name { color: var(--pc-contrast); }
body.woocommerce-checkout #order_review .product-total,
body.woocommerce-checkout #order_review tfoot td { text-align: right; }
body.woocommerce-checkout #order_review tfoot th { text-align: left; font-weight: 500; color: #666; }
body.woocommerce-checkout #order_review .order-total th,
body.woocommerce-checkout #order_review .order-total td { font-size: 1.1rem; color: var(--pc-contrast); border-bottom: 0 !important; }
body.woocommerce-checkout #order_review .order-total td { color: var(--pc-accent); font-weight: 700; }

/* métodos de pago del checkout */
body.woocommerce-checkout #payment { background: transparent !important; border-radius: 0; }
body.woocommerce-checkout #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0 !important; border: 0 !important; }
body.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0 0 8px; padding: 12px 14px;
    border: 1px solid var(--pc-line); border-radius: min(var(--pc-radius), 14px); background: #fff;
}
body.woocommerce-checkout #payment ul.payment_methods li label { font-weight: 600; color: var(--pc-contrast); cursor: pointer; }
body.woocommerce-checkout #payment div.payment_box {
    background: var(--pc-accent-soft) !important; color: #555;
    border-radius: min(var(--pc-radius), 12px); padding: 12px 14px; margin: 10px 0 0; font-size: .88rem;
}
body.woocommerce-checkout #payment div.payment_box::before { display: none; }
body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper,
body.woocommerce-checkout .woocommerce-privacy-policy-text { font-size: .8rem; color: #888; }
body.woocommerce-checkout #payment .place-order { padding: 0; margin: 0; }
body.woocommerce-checkout #place_order {
    width: 100%; float: none; border: 0;
    background: var(--pc-accent) !important; color: #fff !important;
    border-radius: 999px !important; padding: 16px 24px !important;
    font-size: 1rem; letter-spacing: 1px; transition: background .25s, transform .25s;
}
body.woocommerce-checkout #place_order:hover { background: var(--pc-contrast) !important; transform: translateY(-2px); }

/* ============ ESTILO DE CAJAS (configurable desde el panel) ============ */
.mc-cat,
.mc-panel,
ul.products li.product,
.mc-seo,
body.single-product .woocommerce-product-gallery,
body.single-product .summary,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review {
    border-width: var(--pc-bw) !important;
    border-style: solid !important;
    border-color: var(--pc-bc) !important;
    border-radius: var(--pc-radius-lg) !important;
}
.mc-panel,
.mc-seo,
ul.products li.product,
body.single-product .woocommerce-product-gallery,
body.single-product .summary,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel,
body.woocommerce-cart table.shop_table.cart,
body.woocommerce-cart .cart_totals,
body.woocommerce-checkout .woocommerce-billing-fields,
body.woocommerce-checkout .woocommerce-shipping-fields,
body.woocommerce-checkout .woocommerce-additional-fields,
body.woocommerce-checkout #order_review { box-shadow: var(--pc-shadow) !important; }
.mc-cat, ul.products li.product { border-radius: var(--pc-radius) !important; }
.mc-cat:hover, .mc-cat.is-active { border-color: var(--pc-accent) !important; }
ul.products li.product:hover { box-shadow: var(--pc-shadow-hover) !important; }
ul.products li.product img,
body.single-product .woocommerce-product-gallery img,
body.woocommerce-cart table.cart td.product-thumbnail img { border-radius: calc(var(--pc-radius) * .65) !important; }

/* ============ CARRITO / CHECKOUT: RESPONSIVE ============ */
@media (max-width: 900px) {
    body.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
    body.woocommerce-checkout form.checkout > #customer_details,
    body.woocommerce-checkout form.checkout > #order_review_heading,
    body.woocommerce-checkout form.checkout > #order_review { grid-column: 1; grid-row: auto; position: static; }
    body.woocommerce-checkout form.checkout > #order_review_heading { margin-top: 8px; }
    body.woocommerce-cart #primary, body.woocommerce-checkout #primary { padding: 0 16px; }
}
@media (max-width: 600px) {
    body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
    body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); }
    body.woocommerce-checkout form.checkout .form-row-first,
    body.woocommerce-checkout form.checkout .form-row-last { grid-column: 1 / -1; }
    body.woocommerce-checkout .woocommerce-billing-fields,
    body.woocommerce-checkout .woocommerce-shipping-fields,
    body.woocommerce-checkout .woocommerce-additional-fields,
    body.woocommerce-checkout #order_review { padding: 18px 16px; }
}


/* ============ ICONO DE CATEGORÍAS SIN IMAGEN ============ */
.mc-cat-img svg { width: 52px; height: 52px; }

/* ============ AVISOS MODERNOS (añadido al carrito, errores, info) ============ */
.woocommerce-notices-wrapper { margin: 0; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    position: relative;
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
    background: #fff !important; color: var(--pc-contrast) !important;
    border-width: var(--pc-bw) !important; border-style: solid !important; border-color: var(--pc-bc) !important;
    border-radius: var(--pc-radius-lg) !important;
    box-shadow: var(--pc-shadow) !important;
    padding: 14px 20px 14px 60px !important;
    margin: 0 0 18px !important;
    list-style: none;
    font-size: .95rem; line-height: 1.5;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    position: absolute !important; left: 20px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important; font-size: 1.4rem !important; line-height: 1 !important;
    color: var(--pc-accent) !important;
}
.woocommerce-error { flex-direction: column; align-items: flex-start; border-color: rgba(192,57,43,.35) !important; }
.woocommerce-error::before { color: #c0392b !important; }
.woocommerce-error li { margin: 0 !important; }
.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
    order: 2; float: none !important; margin: 0 0 0 auto !important;
    background: var(--pc-accent) !important; color: #fff !important;
    border: 0 !important; border-radius: 999px !important;
    padding: 9px 22px !important; font-size: .85rem; letter-spacing: .5px;
    transition: background .25s;
}
.woocommerce-message .button:hover { background: var(--pc-contrast) !important; }
.woocommerce-message a:not(.button),
.woocommerce-info a:not(.button) { color: var(--pc-accent) !important; font-weight: 600; }

/* ============ CHECKOUT: CORRECCIONES DE ANCHO ============ */
body.woocommerce-checkout form.checkout > #order_review_heading {
    width: 100% !important; float: none !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important;
    border-radius: 0 !important; padding: 0 !important;
}
body.woocommerce-checkout form.checkout > #order_review {
    width: 100% !important; max-width: none !important; float: none !important; margin-left: 0 !important;
}
body.woocommerce-checkout #order_review table.shop_table { table-layout: auto; width: 100% !important; }
body.woocommerce-checkout #order_review th.product-total { text-align: right; padding-left: 16px !important; }
body.woocommerce-checkout #payment,
body.woocommerce-checkout #payment ul.payment_methods,
body.woocommerce-checkout #payment ul.payment_methods li { width: 100% !important; box-sizing: border-box; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important; padding: 0 36px 0 16px !important;
}

/* ============ CARRITO: TOTALES ROBUSTOS ============ */
body.woocommerce-cart .cart_totals > h2 {
    margin: 0 0 12px !important; padding: 0 !important; width: auto !important;
    position: static !important; transform: none !important;
    background: transparent !important; border: 0 !important;
}
body.woocommerce-cart .cart_totals table.shop_table { margin: 0 !important; width: 100% !important; }
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td { padding-left: 0 !important; padding-right: 0 !important; }
body.woocommerce-cart .wc-proceed-to-checkout { padding: 8px 0 0 !important; }

body.woocommerce-cart .cart-collaterals { display: flex; flex-direction: column; gap: 20px; }
body.woocommerce-cart .cart-collaterals .cart_totals { order: 1; }
body.woocommerce-cart .cart-collaterals .cross-sells { order: 2; width: 100% !important; float: none !important; }
body.woocommerce-cart .cross-sells > h2 {
    margin: 0 0 12px; font-size: .8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--pc-accent);
}
body.woocommerce-cart .cross-sells ul.products { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 12px !important; }

/* cupón oculto desde el panel */
body.ewv-no-coupon.woocommerce-cart td.actions .coupon { display: none !important; }
body.ewv-no-coupon.woocommerce-cart td.actions > button[name="update_cart"] { float: none; width: 100%; }

/* ============ BARRA DE ENVÍO GRATIS Y BENEFICIOS ============ */
.mc-ship {
    background: #fff;
    border: var(--pc-bw) solid var(--pc-bc);
    border-radius: var(--pc-radius-lg);
    box-shadow: var(--pc-shadow);
    padding: 16px 20px; margin: 0 0 16px;
}
.mc-ship-msg { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--pc-contrast); font-size: .95rem; }
.mc-ship-msg svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--pc-accent); }
.mc-ship-msg strong { color: var(--pc-accent); }
.mc-ship-track { height: 8px; border-radius: 99px; background: var(--pc-accent-soft); overflow: hidden; }
.mc-ship-track span {
    display: block; height: 100%; border-radius: 99px;
    background: var(--pc-accent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--pc-accent) 55%, #fff), var(--pc-accent));
    transition: width .6s ease;
}
.mc-ship.is-done .mc-ship-track span { background: #25a05a; }
.mc-ship.is-done .mc-ship-msg svg { color: #25a05a; }

.mc-perks { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.mc-perk {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 16px;
    background: var(--pc-accent-soft); color: var(--pc-contrast);
    border-radius: calc(var(--pc-radius) * .7);
    font-size: .92rem; font-weight: 500; line-height: 1.3;
}
.mc-perk-ico { display: flex; color: var(--pc-accent); }
.mc-perk-ico svg { width: 20px; height: 20px; }

/* ============ SELECTOR DE CANTIDAD - / + ============ */
.mc-qty {
    display: inline-flex !important; align-items: center;
    border: 1px solid var(--pc-line); border-radius: 999px; background: #fff; overflow: hidden;
}
body.single-product .mc-qty .qty,
body.woocommerce-cart .mc-qty .qty {
    width: 44px !important; height: 40px !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    padding: 0 !important; box-shadow: none !important; text-align: center;
    -moz-appearance: textfield;
}
.mc-qty .qty::-webkit-outer-spin-button,
.mc-qty .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mc-qty-btn {
    width: 36px; height: 40px; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
    background: transparent !important; color: var(--pc-accent) !important;
    font-size: 1.2rem; line-height: 1; cursor: pointer;
}
.mc-qty-btn:hover { background: var(--pc-accent-soft) !important; }
body.single-product .mc-qty .qty { height: 52px !important; }
body.single-product .mc-qty-btn { height: 52px; }

/* ============ IMAGEN ANCHA DE MÉTODOS DE PAGO ============ */
.mc-pay-logo.mc-pay-wide {
    width: 100% !important; max-width: var(--ewv-pay-w, 480px) !important; height: auto !important;
    padding: 12px 16px !important; box-sizing: border-box;
    background: #fff !important; border: 1px solid var(--pc-line) !important;
    border-radius: calc(var(--pc-radius) * .65) !important;
    object-fit: contain;
}

@media (max-width: 600px) {
    .woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 14px 16px 14px 54px !important; }
    .woocommerce-message .button { margin-left: 0 !important; width: 100%; text-align: center; }
    .mc-perk { width: 100%; box-sizing: border-box; }
}


/* ============ BANNER: LA IMAGEN CUBRE TODO EL ALTO (también en móvil) ============ */
.mc-banner .mc-banner-bg {
    position: absolute; left: 0; top: 0;
    width: 100% !important; height: 100% !important;
    min-width: 100%; min-height: 100%;
    max-width: none !important; max-height: none !important;
    object-fit: cover;
}

/* ============ CHECKOUT: extras y caja vacía ============ */
.mc-extras { margin: 0 0 4px; }
body.woocommerce-checkout form.checkout > .mc-extras { grid-column: 1 / -1; grid-row: 2; }
body.woocommerce-checkout form.checkout > #customer_details { grid-row: 3 / span 2; }
body.woocommerce-checkout form.checkout > #order_review_heading { grid-row: 3; }
body.woocommerce-checkout form.checkout > #order_review { grid-row: 4; }
@media (max-width: 900px) {
    body.woocommerce-checkout form.checkout > .mc-extras { grid-row: auto; }
}
/* si "envío" no tiene campos, no se dibuja la caja vacía */
body.woocommerce-checkout .woocommerce-shipping-fields:empty { display: none !important; }
body.woocommerce-checkout .woocommerce-shipping-fields:not(:has(*)) { display: none !important; }
body.woocommerce-checkout #customer_details .col-2:empty { display: none !important; }
/* texto de los selectores bien centrado */
body.woocommerce-checkout form.checkout select { line-height: 1.2; padding-top: 0; padding-bottom: 0; }
body.woocommerce-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex !important; align-items: center; height: 100%; line-height: 1.2 !important;
}

/* ============ VALORACIONES OCULTAS ============ */
body.ewv-no-reviews .star-rating,
body.ewv-no-reviews .woocommerce-product-rating,
body.ewv-no-reviews .woocommerce-review-link,
body.ewv-no-reviews #reviews,
body.ewv-no-reviews .reviews_tab { display: none !important; }


/* ============ CHECKOUT EN MÓVIL: SIN SOLAPAMIENTOS ============ */
@media (max-width: 900px) {
    body.woocommerce-checkout form.checkout { display: block; }
    body.woocommerce-checkout form.checkout > #customer_details,
    body.woocommerce-checkout form.checkout > #order_review_heading,
    body.woocommerce-checkout form.checkout > #order_review,
    body.woocommerce-checkout form.checkout > .mc-extras,
    body.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
        grid-column: auto !important; grid-row: auto !important;
        position: static !important; width: 100% !important; float: none !important;
    }
    body.woocommerce-checkout form.checkout > #order_review_heading { margin: 8px 0 12px; }
    body.woocommerce-checkout form.checkout > #order_review { margin-top: 0; }
}

/* ============ TÍTULOS CENTRADOS (CARRITO Y CHECKOUT) ============ */
body.woocommerce-cart .entry-header,
body.woocommerce-checkout .entry-header { position: relative; text-align: center; margin: 0 0 26px; }
body.woocommerce-cart .entry-title,
body.woocommerce-checkout .entry-title,
body.woocommerce-cart h1.entry-title,
body.woocommerce-checkout h1.entry-title {
    text-align: center !important;
    margin: 0 !important;
    padding: 0 56px;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    letter-spacing: .5px;
    line-height: 1.2;
}
body.woocommerce-cart .entry-title::after,
body.woocommerce-checkout .entry-title::after {
    content: ""; display: block;
    width: 64px; height: 3px; border-radius: 3px;
    background: var(--pc-accent);
    margin: 14px auto 0;
}

/* ============ BOTÓN VOLVER ============ */
.mc-back {
    position: absolute; left: 0; top: 0;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--pc-line);
    color: var(--pc-accent) !important;
    box-shadow: var(--pc-shadow);
    text-decoration: none !important;
    transition: all .25s;
    z-index: 2;
}
.mc-back:hover { background: var(--pc-accent); color: #fff !important; border-color: var(--pc-accent); transform: translateX(-2px); }
@media (max-width: 600px) {
    .mc-back { width: 38px; height: 38px; }
    body.woocommerce-cart .entry-title,
    body.woocommerce-checkout .entry-title { padding: 0 48px; }
}


/* ============ ALINEACIÓN DE LA INFORMACIÓN DE LOS PRODUCTOS (desde el panel) ============ */
ul.products li.product,
ul.products li.product .astra-shop-summary-wrap,
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .ast-loop-product__link,
ul.products li.product .ast-woo-product-category,
ul.products li.product .price {
    text-align: var(--ewv-ta, left) !important;
}
ul.products li.product .astra-shop-summary-wrap {
    display: flex; flex-direction: column; align-items: var(--ewv-ai, flex-start);
}
ul.products li.product .star-rating {
    float: none !important;
    margin-left: var(--ewv-ml, 0) !important; margin-right: var(--ewv-mr, auto) !important;
}

/* ============ SHORTCODE [ewv_tienda] ============ */
.ewv-sc { width: 100%; }
.ewv-sc.ewv-cols-2 ul.products { grid-template-columns: repeat(2, 1fr) !important; }
.ewv-sc.ewv-cols-3 ul.products { grid-template-columns: repeat(3, 1fr) !important; }
.ewv-sc.ewv-cols-4 ul.products { grid-template-columns: repeat(4, 1fr) !important; }
.ewv-sc.ewv-cols-5 ul.products { grid-template-columns: repeat(5, 1fr) !important; }
@media (max-width: 1100px) {
    .ewv-sc.ewv-cols-4 ul.products,
    .ewv-sc.ewv-cols-5 ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 800px) {
    .ewv-sc.ewv-cols-3 ul.products,
    .ewv-sc.ewv-cols-4 ul.products,
    .ewv-sc.ewv-cols-5 ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}
.ewv-sc .woocommerce-info { margin-top: 10px; }


/* ============ PRODUCTOS RELACIONADOS EN SLIDER ============ */
body.ewv-rel-slider .related.products ul.products,
body.ewv-rel-slider .upsells.products ul.products {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 12px 8px 30px !important;
    margin: -12px -8px -16px !important;
}
body.ewv-rel-slider .related.products ul.products::-webkit-scrollbar,
body.ewv-rel-slider .upsells.products ul.products::-webkit-scrollbar { display: none; }
body.ewv-rel-slider .related.products ul.products li.product,
body.ewv-rel-slider .upsells.products ul.products li.product {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}
.mc-rel-slider { position: relative; }
.mc-rel-slider .mc-prev { left: -14px; }
.mc-rel-slider .mc-next { right: -14px; }
@media (max-width: 1100px) {
    body.ewv-rel-slider .related.products ul.products li.product,
    body.ewv-rel-slider .upsells.products ul.products li.product { flex-basis: calc((100% - 48px) / 3); }
}
@media (max-width: 800px) {
    body.ewv-rel-slider .related.products ul.products,
    body.ewv-rel-slider .upsells.products ul.products { gap: 14px; }
    body.ewv-rel-slider .related.products ul.products li.product,
    body.ewv-rel-slider .upsells.products ul.products li.product { flex-basis: calc((100% - 14px) / 2); }
    .mc-rel-slider .mc-prev { left: -4px; }
    .mc-rel-slider .mc-next { right: -4px; }
    .mc-rel-slider .mc-arrow { width: 38px; height: 38px; }
}


/* ============ ESTILOS DE TARJETAS DEL SLIDER DE CATEGORÍAS (elegibles en el panel) ============ */
:root { --pc-gold: #c9a96a; }

/* base común de los estilos 1 a 5 */
.ewv-cs .mc-cat {
    aspect-ratio: auto !important;
    flex: 0 0 200px;
    flex-direction: column;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible;
    padding: 22px 16px !important;
    text-align: center;
    box-shadow: none !important;
}
.ewv-cs .mc-cat::after { display: none !important; }
.ewv-cs .mc-cat .mc-cat-img {
    position: relative !important; inset: auto !important; z-index: auto !important;
    flex: 0 0 auto;
    width: 74px; height: 74px; margin: 0 auto 14px;
    border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 0 !important;
}
.ewv-cs .mc-cat .mc-cat-img svg { width: 34px; height: 34px; }
.ewv-cs .mc-cat .mc-cat-txt { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 !important; }
.ewv-cs .mc-cat-noimg .mc-cat-txt { padding-top: 0 !important; }
.ewv-cs .mc-cat strong { color: var(--pc-contrast) !important; text-shadow: none !important; font-size: 1rem; line-height: 1.2; font-weight: 600; }
.ewv-cs .mc-cat small { display: block; font-size: .76rem; letter-spacing: 0; text-transform: none; color: #7a6d70; }
.ewv-cs .mc-cat:hover { transform: translateY(-4px); }
.ewv-cs .mc-cat.is-active { border-color: var(--pc-accent) !important; box-shadow: 0 0 0 1px var(--pc-accent) !important; }

/* 1. Editorial botánico */
.ewv-cs-editorial { background: #fbf2f2; background: color-mix(in srgb, var(--pc-accent) 6%, #fff); border-radius: 24px; padding: 24px 16px 6px; }
.ewv-cs-editorial .mc-cat { background: #fff !important; border: 1px solid rgba(45,74,62,.35) !important; border: 1px solid color-mix(in srgb, var(--pc-contrast) 35%, transparent) !important; border-radius: 22px !important; }
.ewv-cs-editorial .mc-cat:hover { border-color: var(--pc-contrast) !important; box-shadow: 0 12px 24px rgba(45,74,62,.1) !important; }
.ewv-cs-editorial .mc-cat .mc-cat-img { background: #f3ecec; color: var(--pc-accent); }
.ewv-cs-editorial .mc-cat strong { font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; font-size: 1.35rem; line-height: 1.15; font-weight: 700; }

/* 2. Medallón flotante */
.ewv-cs-medallon { background: #fff; border: 1px solid #ece6e6; border-radius: 24px; padding: 22px 16px 6px; }
.ewv-cs-medallon .mc-cats { padding-top: 52px !important; }
.ewv-cs-medallon .mc-cat { background: #fcf9f9 !important; border: 1px solid #eadfe1 !important; border-radius: 20px !important; padding: 50px 16px 20px !important; }
.ewv-cs-medallon .mc-cat .mc-cat-img {
    position: absolute !important; top: -36px; left: 50%; transform: translateX(-50%);
    width: 72px; height: 72px; margin: 0;
    background: #fff; border: 2px solid var(--pc-gold); box-shadow: 0 6px 16px rgba(0,0,0,.08); color: var(--pc-accent);
}
.ewv-cs-medallon .mc-cat strong { font-size: .95rem; }
.ewv-cs-medallon .mc-cat small { display: inline-block; background: #f3e8ea; color: var(--pc-accent); padding: 3px 10px; border-radius: 999px; }

/* 3. Dark luxe */
.ewv-cs-dark { background: #161416; border-radius: 24px; padding: 24px 16px 6px; }
.ewv-cs-dark .mc-eyebrow { color: var(--pc-gold) !important; opacity: 1; }
.ewv-cs-dark .mc-cat { background: #211d20 !important; border: 1px solid rgba(201,169,106,.35) !important; border-radius: 18px !important; }
.ewv-cs-dark .mc-cat:hover, .ewv-cs-dark .mc-cat.is-active { border-color: var(--pc-gold) !important; box-shadow: 0 0 0 1px var(--pc-gold) !important; }
.ewv-cs-dark .mc-cat .mc-cat-img { background: radial-gradient(circle, #352b31, #1b181a); border: 1px solid var(--pc-gold); color: var(--pc-gold); }
.ewv-cs-dark .mc-cat strong { color: #fff !important; font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 700; }
.ewv-cs-dark .mc-cat small { color: var(--pc-gold); }
.ewv-cs-dark .mc-arrow { background: #211d20 !important; color: var(--pc-gold) !important; border-color: rgba(201,169,106,.4) !important; }
.ewv-cs-dark .mc-arrow:hover { background: var(--pc-gold) !important; color: #161416 !important; }

/* 4. Glass pastel */
.ewv-cs-glass { background: linear-gradient(135deg, #f9e8ec 0%, #eef5ef 100%); border-radius: 24px; padding: 24px 16px 6px; }
.ewv-cs-glass .mc-cat {
    background: rgba(255,255,255,.62) !important;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.85) !important;
    border-radius: 26px 8px 26px 8px !important;
}
.ewv-cs-glass .mc-cat:hover { background: rgba(255,255,255,.9) !important; }
.ewv-cs-glass .mc-cat .mc-cat-img { width: 70px; height: 70px; border-radius: 20px; background: #fff; color: var(--pc-accent); }

/* 5. Pill compacto */
.ewv-cs-pill { background: #fff; border: 1px solid #ece6e6; border-radius: 24px; padding: 20px 16px 4px; }
.ewv-cs-pill .mc-cat {
    flex: 0 0 auto !important; min-width: 230px;
    flex-direction: row !important; justify-content: flex-start !important; gap: 14px;
    padding: 12px 20px 12px 12px !important; text-align: left;
    background: #fff !important; border: 1px solid #e5dcd9 !important; border-radius: 999px !important;
}
.ewv-cs-pill .mc-cat:hover { background: #fdf7f8 !important; border-color: var(--pc-accent) !important; }
.ewv-cs-pill .mc-cat .mc-cat-img { width: 52px; height: 52px; margin: 0 !important; background: #f5ecee; color: var(--pc-accent); }
.ewv-cs-pill .mc-cat .mc-cat-img svg { width: 24px; height: 24px; }
.ewv-cs-pill .mc-cat .mc-cat-txt { align-items: flex-start !important; }
.ewv-cs-pill .mc-cat strong { font-size: .9rem; }

@media (max-width: 800px) {
    .ewv-cs .mc-cat { flex-basis: 170px; }
    .ewv-cs-pill .mc-cat { min-width: 210px; flex-basis: auto !important; }
    .ewv-cs-medallon .mc-cats { padding-top: 52px !important; }
}


/* ============ DESCRIPCIÓN AL FINAL ============ */
.mc-seo { margin-top: 44px; }
.mc-seo > :first-child { margin-top: 0; }
.mc-seo > :last-child { margin-bottom: 0; }
.mc-seo p { margin: 0 0 1em; }
.mc-seo h1, .mc-seo h2, .mc-seo h3, .mc-seo h4 { color: var(--pc-contrast); line-height: 1.25; margin: 1.4em 0 .5em; }
.mc-seo a { color: var(--pc-accent); }
.mc-seo ul, .mc-seo ol { margin: 0 0 1em 1.3em; }
.mc-seo img { max-width: 100%; height: auto; border-radius: calc(var(--pc-radius) * .6); }


/* ============ FICHA EN MÓVIL: LA GALERÍA NUNCA ENSANCHA LA PÁGINA ============ */
body.single-product div.product > * { min-width: 0; }
body.single-product .woocommerce-product-gallery { max-width: 100%; overflow: hidden; }
body.single-product .woocommerce-product-gallery img { max-width: 100%; height: auto; }
body.single-product .woocommerce-product-gallery .flex-viewport { max-width: 100%; }
body.woocommerce-cart .woocommerce > * { min-width: 0; }

/* ============ BARRA FIJA "FINALIZAR COMPRA" EN EL CARRITO ============ */
.mc-cartbar { display: none; }
@media (max-width: 900px) {
    body.woocommerce-cart .mc-cartbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
        display: flex; align-items: center; gap: 14px;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: rgba(255,255,255,.96);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        border-top: 1px solid var(--pc-line);
        box-shadow: 0 -10px 30px rgba(0,0,0,.08);
        transition: transform .3s ease;
    }
    body.woocommerce-cart .mc-cartbar.is-hidden,
    body.woocommerce-cart .mc-cartbar.is-off { transform: translateY(115%); pointer-events: none; }
    .mc-cartbar-total { display: flex; flex-direction: column; line-height: 1.15; color: var(--pc-accent); font-weight: 700; font-size: 1.05rem; }
    .mc-cartbar-total small { color: #9a9a9a; font-size: .68rem; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; }
    .mc-cartbar-total del { opacity: .5; font-size: .8rem; }
    .mc-cartbar-total ins { text-decoration: none; }
    .mc-cartbar-btn {
        flex: 1; min-height: 48px; padding: 0 18px;
        display: flex; align-items: center; justify-content: center;
        border-radius: 999px; background: var(--pc-accent); color: #fff !important;
        font-size: .95rem; letter-spacing: .5px; text-decoration: none !important;
    }
    body.woocommerce-cart { padding-bottom: 88px; }
}

/* protección extra: nada dentro de la ficha o del carrito puede ensanchar la página (clip no rompe el "sticky") */
body.single-product .site-content,
body.woocommerce-cart .site-content { overflow-x: clip; }
