@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Joan&display=swap');

@font-face {
    font-family: 'Moga';
    src: url('/media/wysiwyg/fonts/Moga.otf') format('opentype');
    font-weight: 400 700;
    font-display: swap;
}

/* Estilos Generales */
.data-\[open\=true\]\:block[data-open=true] {
    display: block;
}
/* "WhatsApp" */
#wachat a {
    position: fixed;
    z-index: 9999;
    right: 20px !important;
    float: right;
    background: transparent !important;
    bottom: 15% !important;
}
#wachat img {
    min-width: 50px;
    min-height: 50px;
}
/* Categoria */
.catalog-category-view .page-title {
    margin-bottom: 0;
}
.catalog-category-view #filters-heading span {
    font-size: 18px;
}

.row-categoria {
    background: #fff;
    border: 1px solid #ecece4;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 40px);
}

.cat-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.cat-title .bar {
    width: 3px;
    height: 20px;
    background-color: #243d10;
}
.cat-title span {
    font-family: 'Cairo';
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 1px;
    color: #243d10;
    text-transform: uppercase;
}

/* Minicart */
#cart-drawer .btn.btn-primary {
    background-color: #243d10;
}

#cart-drawer .btn.btn-secondary {
    border-color: #243d10;
	color: #243d10;
}


#cart-drawer .btn.btn-secondary:hover {
    background-color: #243d10;
	color: #fff;
}

/* Cart  */
#checkout-link-button {
    background-color: #243d10;
	color: #fff;
}


/* ===================================================================
   ILLARI — HEADER  (Figma nodo 3559:1541)
   Fila 1: topbar (bloque CMS header-topbar-banner)
   Fila 2: logo | buscador | cuenta + carrito
   Fila 3: menú de categorías centrado
   =================================================================== */
:root {
    --illari-green-dark: #243d10;
    --illari-green: #59693b;
    --illari-green-btn: #243d10;
    --illari-orange: #c6702b;
    --illari-hd-border: #e6e3da;
}

#header.illari-header {
    position: relative;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid var(--illari-hd-border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}
.illari-header__inner {
    max-width: 1400px;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: nowrap;
}

/* ---- Logo + palabra "ILLARI GOURMET" (Figma 3559:1541) ---- */
.illari-header__logo {
    flex: 1 1 0;
    min-width: 0;
}
.illari-header__logo a,
.illari-header__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.illari-header__logo img,
.illari-header__logo-img {
    width: auto;
    height: auto;
    max-height: 52px;
    display: block;
    flex: 0 0 auto;
}
.illari-header__wordmark {
    font: 400 22px/1 'Joan', Georgia, 'Times New Roman', serif;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--illari-green-dark);
    white-space: nowrap;
    transform: translateY(1px);
}

/* ---- Buscador (centrado en el header, Figma 3559:1541) ---- */
.illari-header__search {
    flex: 0 0 auto;
    width: clamp(340px, 36vw, 545px);
    margin-inline: auto;
}
.illari-header__search > .container,
.illari-header__search [x-data="initMiniSearch"] {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.illari-header__search form.minisearch {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}
.illari-header__search .input-group.relative,
.illari-header__search .input-group.grow {
    flex: 1 1 auto;
}
/* Buscador = color único #243D10 (Figma): input, borde y botón */
#header .illari-header__search #search.form-input,
#header .illari-header__search #search {
    width: 100%;
    height: 40px;
    border: 1px solid var(--illari-green-dark);
    border-color: var(--illari-green-dark);
    border-right: 0;
    border-radius: 5px 0 0 5px;
    padding: 0 15px;
    font: 400 14px/1 'Cairo', sans-serif;
    color: var(--illari-green-dark);
    background: #fff;
    outline: none;
    box-shadow: none;
}
.illari-header__search #search::placeholder {
    color: #9a9a90;
    opacity: 1;
}
#header .illari-header__search #search:focus {
    border-color: var(--illari-green-dark);
    box-shadow: inset 0 0 0 1px rgba(36, 61, 16, .35);
}
.illari-header__search kbd {
    display: none !important;
}
#header .illari-header__search form.minisearch > button[type="submit"] {
    flex: 0 0 auto;
    min-width: 104px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid var(--illari-green-btn);
    border-radius: 0 5px 5px 0;
    background: var(--illari-green-btn);
    color: #fff;
    font: 600 16px/1 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease;
}
.illari-header__search form.minisearch > button[type="submit"] svg {
    display: none;
}
.illari-header__search form.minisearch > button[type="submit"]::after {
    content: "Buscar";
}
@media (hover: hover) {
    #header .illari-header__search form.minisearch > button[type="submit"]:hover {
        background: #1b2e0c;
    }
}
/* dropdown de sugerencias al ancho del input */
.illari-header__search nav[aria-label] {
    position: absolute;
    left: 0;
    right: 100px;
    z-index: 40;
    background: #fff;
    border: 1px solid var(--illari-hd-border);
    box-shadow: 0 12px 26px rgba(0, 0, 0, .12);
}

/* ---- Acciones (derecha) — misma anchura que el logo para centrar el buscador ---- */
.illari-header__actions {
    flex: 1 1 0;
    min-width: 0;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
.illari-header__icon-btn {
    background: transparent;
    border: 0;
    padding: 4px;
    cursor: pointer;
    color: var(--illari-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.illari-header__icon-btn svg {
    width: 24px;
    height: 24px;
    color: var(--illari-green-dark);
}
.illari-header__account {
    display: flex;
    align-items: center;
    gap: 8px;
}
#customer-menu svg,
#customer-menu .lucide,
.illari-header__account #customer-menu button svg {
    color: var(--illari-green-dark);
    width: 24px;
    height: 24px;
}
.illari-header__auth {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
}
.illari-header__auth-link {
    text-decoration: none;
    font: 600 14px/1.3 'Cairo', sans-serif;
}
.illari-header__auth-line1 {
    color: var(--illari-green-dark);
}
.illari-header__auth-line2 {
    color: var(--illari-orange);
}
@media (hover: hover) {
    .illari-header__auth-line1:hover {
        color: var(--illari-green);
    }
    .illari-header__auth-line2:hover {
        text-decoration: underline;
    }
}
.illari-header__cart {
    position: relative;
}
.illari-header__cart svg {
    width: 24px;
    height: 26px;
}
.illari-header__cart-count {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--illari-orange);
    color: #fff;
    font: 700 10px/16px 'Cairo', sans-serif;
    text-align: center;
}

/* ---- Fila de navegación ---- */
.illari-header__navrow {
    border-top: 1px solid var(--illari-hd-border);
}
.illari-header__navrow > .container {
    max-width: 1400px;
}
#header .illari-header__navrow .navigation {
    margin: 0;
}
/* El menú desktop (.navigation = `hidden lg:flex` de Hyva) solo a >=1024px;
   en móvil manda el hamburguesa de menu.mobile. NO forzar display en móvil. */
@media (min-width: 1024px) {
    #header .illari-header__navrow .navigation {
        width: 100%;
    }
    #header .illari-header__navrow .navigation > div {
        display: block !important;
        width: 100%;
        padding: 0 !important;
    }
    #header .illari-header__navrow .navigation nav {
        width: 100%;
    }
    #header .illari-header__navrow .navigation nav > ul {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 4px clamp(14px, 2.4vw, 34px) !important;
        padding: 5px 0 !important;
    }
}
#header .illari-header__navrow .navigation a.level-0 {
    font: 400 15px/1 'Cairo', sans-serif;
    color: var(--illari-green-dark);
    letter-spacing: .005em;
    padding: 10px 2px;
}
#header .illari-header__navrow .navigation li.level-0 {
    border-bottom: 2px solid transparent;
}
#header .illari-header__navrow .navigation button.group svg {
    color: var(--illari-green-dark);
    width: 16px;
    height: 16px;
}
@media (hover: hover) {
    #header .illari-header__navrow .navigation li.level-0:hover,
    #header .illari-header__navrow .navigation li.level-0[data-active] {
        border-color: var(--illari-green);
    }
    #header .illari-header__navrow .navigation a.level-0:hover {
        color: var(--illari-green);
    }
    #header .illari-header__navrow .navigation button.group[aria-expanded="true"] svg {
        color: var(--illari-green);
    }
}
#header .illari-header__navrow .navigation li.level-0 > ul {
    border-top: 2px solid var(--illari-green);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
    background: #fff;
}
#header .illari-header__navrow .navigation li.level-0 > ul a {
    font: 400 14.5px/1 'Cairo', sans-serif;
    color: var(--illari-green-dark);
    padding: 12px 18px;
}
@media (hover: hover) {
    #header .illari-header__navrow .navigation li.level-0 > ul a:hover {
        color: var(--illari-green);
        background: #f5f3ec;
    }
}

/* ---- Hamburguesa (solo <1024px) — el botón toggle, NO el contenido del drawer ---- */
.illari-header__burger {
    display: none;
}
.illari-mnav > button {
    padding: 4px;
    color: var(--illari-green-dark);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.illari-mnav > button svg {
    width: 26px;
    height: 26px;
    color: var(--illari-green-dark);
}

/* ---- Responsive ---- */
@media (max-width: 1023px) {
    .illari-header__inner {
        gap: 6px 10px;
        flex-wrap: wrap;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* Fila 1 (Figma 3563:5217): hamburguesa | logo centrado | carrito + cuenta */
    .illari-header__burger {
        display: flex;
        align-items: center;
        flex: 1 1 0;
        order: 1;
    }
    .illari-header__logo {
        flex: 0 0 auto;
        order: 2;
        margin: 0;
    }
    .illari-header__logo img {
        max-height: 44px;
    }
    .illari-header__actions {
        flex: 1 1 0;
        order: 3;
        margin-left: 0;
        justify-content: flex-end;
        gap: 12px;
    }
    /* Fila 2: buscador a todo el ancho del contenido, con los márgenes
       laterales del header (px-4 = 16px) — Figma móvil 2846:372 */
    .illari-header__search {
        order: 5;
        flex: 1 1 100%;
        width: auto;
        max-width: none;
        display: block;
        margin: 10px 0 0;
    }
    /* Figma móvil (3563:5217): solo el emblema centrado, sin palabra */
    .illari-header__logo .illari-header__wordmark {
        display: none;
    }
    .illari-header__auth {
        display: none;
    }
    /* El menú de categorías vive en el hamburguesa en móvil */
    .illari-header__navrow {
        display: none;
    }
}

/* ===================================================================
   ILLARI — MENÚ MÓVIL (drawer)  (Figma 3356:8978)
   Se conserva la lógica Alpine de Hyvä; solo se re-estiliza.
   =================================================================== */
.illari-mnav__dialog {
    inset: 0;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: var(--illari-green-dark);
    font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}
.illari-mnav__dialog::backdrop {
    background: rgba(20, 30, 10, .45);
}
.illari-mnav__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--illari-hd-border);
}
.illari-mnav__brand {
    display: inline-flex;
    align-items: center;
}
.illari-mnav__brand img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.illari-mnav__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 0;
    color: var(--illari-green-dark);
    cursor: pointer;
}
.illari-mnav__close svg {
    width: 24px;
    height: 24px;
}
.illari-mnav__body {
    padding: 4px 0 24px;
}
.illari-mnav__list,
.illari-mnav__panel {
    list-style: none;
    margin: 0;
    padding: 0;
}
.illari-mnav__item {
    margin: 0;
}
.illari-mnav__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #eeece4;
    font: 400 15px/1.3 'Cairo', sans-serif;
    color: var(--illari-green-dark);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.illari-mnav__row:disabled {
    opacity: 1;
}
@media (hover: hover) {
    .illari-mnav__row:hover {
        background: #f6f4ee;
    }
}
.illari-mnav__chev {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d9d5c8;
    border-radius: 8px;
    color: var(--illari-green);
}
.illari-mnav__chev svg {
    width: 16px;
    height: 16px;
}
.illari-mnav__back {
    justify-content: flex-start;
    gap: 8px;
    font-weight: 700;
    background: #f6f4ee;
}
.illari-mnav__back svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}
.illari-mnav__row--sub {
    padding-left: 34px;
    font-size: 14.5px;
    color: #4a4a42;
}

/* ===================================================================
   Quitar el margin-block de .page-main (regla Hyva/Tailwind:
   .page-main{margin-block:calc(var(--spacing)*8)} — venía del
   tailwind del child, no se puede recompilar sin npm en el server).
   hotsale-custom.css carga DESPUÉS de styles.css → esto gana.
   =================================================================== */
.page-main {
    margin-block: 0;
}

/* ===================================================================
   ILLARI — CATÁLOGO / LISTADO DE CATEGORÍA  (Figma 3360:6386)
   Tarjeta: imagen izq · nombre MAYÚS verde · presentación gris ·
   precio verde · botón "Agregar" (outline naranja). Panel blanco
   redondeado sobre fondo gris; título con barra de acento verde.
   =================================================================== */
body.catalog-category-view {
    background: #f4f3ef;
}
/* Sin breadcrumbs en la categoría (Figma) */
body.catalog-category-view .breadcrumbs {
    display: none;
}
/* Aire entre el header y el título de categoría (compensa .page-main{margin-block:0}) */
body.catalog-category-view .page-main {
    padding-top: clamp(28px, 4.5vw, 56px);
}
body.catalog-category-view .page-title-wrapper .page-title,
body.catalog-category-view .column.main > .page-title-wrapper .base,
body.catalog-category-view .page-title {
    font-family: 'Moga', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--illari-green-dark, #243d10);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.1;
    border-left: 5px solid var(--illari-green, #59693b);
    padding-left: 14px;
    margin-bottom: clamp(20px, 3vw, 34px);
}

/* Sin barra de orden / modos / limitador (Figma). Solo el paginador si hay varias páginas. */
#product-list .toolbar-products .toolbar-sorter,
#product-list .toolbar-products .modes,
#product-list .toolbar-products .limiter,
#product-list .toolbar-products .toolbar-amount,
#product-list .toolbar-products .field.limiter {
    display: none !important;
}
#product-list .toolbar-products:not(:has(.pages)) {
    display: none;
}
#product-list .toolbar-products .pages {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

#product-list .illari-plp-wrap {
    background: #fff;
    border: 1px solid #ecece4;
    border-radius: 18px;
    padding: clamp(18px, 3vw, 40px);
}
#product-list .illari-plp-grid {
    padding: 0;
    margin: 0;
    list-style: none;
}

.illari-plp-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    height: 100%;
    background: #fff;
    border: 1px solid #eee7d9;
    border-radius: 14px;
    padding: 14px;
    font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}
.illari-plp-card__photo {
    flex: 0 0 118px;
    width: 118px;
    display: block;
}
.illari-plp-card__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}
.illari-plp-card__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.illari-plp-card__name {
    font: 700 14px/1.25 'Cairo', sans-serif;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--illari-green-dark, #243d10);
    text-decoration: none;
}
@media (hover: hover) {
    .illari-plp-card__name:hover {
        color: var(--illari-green, #59693b);
    }
}
.illari-plp-card__pres {
    font: 400 13px/1.35 'Cairo', sans-serif;
    color: #8a8a80;
}
.illari-plp-card__price {
    margin-top: 2px;
}
.illari-plp-card__price .price,
.illari-plp-card__price .price-wrapper,
.illari-plp-card__price .price-container .price {
    font: 700 17px/1.2 'Cairo', sans-serif;
    color: var(--illari-green-dark, #243d10);
}
.illari-plp-card__price .old-price .price {
    font-size: 13px;
    color: #9a9a90;
    text-decoration: line-through;
}
.illari-plp-card__actions {
    margin-top: auto;
    padding-top: 10px;
}
.illari-plp-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 16px;
    border: 1.5px solid var(--illari-orange, #c6702b);
    border-radius: 7px;
    background: transparent;
    color: var(--illari-orange, #c6702b);
    font: 600 13px/1 'Cairo', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
@media (hover: hover) {
    .illari-plp-card__btn:hover {
        background: var(--illari-orange, #c6702b);
        color: #fff;
    }
}
.illari-plp-card__oos {
    font: 600 13px/1 'Cairo', sans-serif;
    color: #a33a2a;
}

/* Ocultar wishlist / compare / rating / descripción corta del template base */
#product-list .illari-plp-card .product-reviews-summary,
#product-list .illari-plp-card .rating-summary,
#product-list .illari-plp-card [data-addto="compare"],
#product-list .illari-plp-card .towishlist,
#product-list .illari-plp-card .product-item-description,
#product-list .illari-plp-card .swatch-opt {
    display: none;
}

/* --- Móvil: 2 columnas, tarjeta vertical centrada (Figma 3342:1961) --- */
@media (max-width: 767px) {
    body.catalog-category-view .page-main {
        padding-top: 18px;
    }
    body.catalog-category-view .page-title {
        font-size: 17px;
        border-left-width: 3px;
        padding-left: 10px;
        margin-bottom: 14px;
    }
    #product-list .illari-plp-wrap {
        padding: 12px;
        border-radius: 12px;
    }
    #product-list .illari-plp-grid {
        gap: 12px;
    }
    .illari-plp-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 10px 10px 14px;
    }
    .illari-plp-card__photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 140px;
    }
    .illari-plp-card__info {
        align-items: center;
        width: 100%;
        gap: 3px;
    }
    .illari-plp-card__name {
        font-size: 12px;
        line-height: 1.3;
    }
    .illari-plp-card__pres {
        font-size: 11.5px;
    }
    .illari-plp-card__price .price,
    .illari-plp-card__price .price-wrapper,
    .illari-plp-card__price .price-container .price {
        font-size: 15px;
    }
    .illari-plp-card__actions {
        width: 100%;
        margin-top: 6px;
        padding-top: 8px;
    }
    .illari-plp-card__btn {
        width: 100%;
        padding: 8px 12px;
        font-size: 12.5px;
    }
}

/* ===================================================================
   ILLARI — PDP / VISTA DE PRODUCTO  (Figma 2832:1927)
   Galería con caja bordeada + miniaturas · info: título verde + hairline,
   desc corta gris, precio naranja + stock, "Agregar al carrito" verde
   ancho completo + wishlist cuadrado verde · pestañas Detalles/Información.
   =================================================================== */
body.catalog-product-view {
    background: #fff;
}
body.catalog-product-view .breadcrumbs {
    display: none;
}
body.catalog-product-view .page-main {
    padding-top: clamp(22px, 3.5vw, 44px);
    padding-bottom: clamp(52px, 7vw, 100px);
}
body.catalog-product-view section[aria-label="Product Info"] {
    max-width: 1240px;
    margin: 0 auto;
    gap: clamp(20px, 4vw, 48px);
}

/* ---- Galería ---- */
body.catalog-product-view #gallery {
    border: 1px solid #e6e3da;
    border-radius: 16px;
    background: #fff;
    padding: clamp(14px, 2vw, 26px);
    align-items: flex-start;
}
body.catalog-product-view #gallery [role="tablist"],
body.catalog-product-view #gallery .snap-slider__pagination {
    gap: 10px;
}
body.catalog-product-view #gallery [role="tablist"] button,
body.catalog-product-view #gallery [role="tablist"] a {
    border: 1px solid #e6e3da;
    border-radius: 10px;
    overflow: hidden;
    padding: 4px;
    background: #fff;
}
body.catalog-product-view #gallery [role="tablist"] [aria-selected="true"],
body.catalog-product-view #gallery [role="tablist"] .active {
    border-color: var(--illari-green, #59693b);
}
body.catalog-product-view #gallery img {
    object-fit: contain;
}

/* ---- Card de info: quitar chrome de Hyva ---- */
body.catalog-product-view .illari-pdp__card {
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
    font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}
body.catalog-product-view .illari-pdp__card .page-title,
body.catalog-product-view .illari-pdp__card [data-ui-id="page-title-wrapper"],
body.catalog-product-view .illari-pdp__card h1 {
    margin: 0;
    font: 700 clamp(22px, 2.9vw, 30px)/1.25 'Cairo', sans-serif;
    color: var(--illari-green-dark, #243d10);
    text-align: left;
}
body.catalog-product-view .illari-pdp__rule {
    border: 0;
    border-top: 1px solid #e6e3da;
    margin: 14px 0 16px;
}
body.catalog-product-view .illari-pdp__short {
    font: 400 15.5px/1.65 'Cairo', sans-serif;
    color: #7a7a72;
    text-align: justify;
    margin: 0 0 18px;
}
body.catalog-product-view .illari-pdp__pricerow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
body.catalog-product-view .illari-pdp__price .price,
body.catalog-product-view .illari-pdp__price .price-wrapper,
body.catalog-product-view .illari-pdp__price [data-price-type="finalPrice"] .price {
    font: 700 clamp(21px, 2.7vw, 27px)/1 'Cairo', sans-serif;
    color: var(--illari-orange, #c6702b);
}
body.catalog-product-view .illari-pdp__price .old-price .price {
    font-size: 14px;
    color: #a8a89e;
}
body.catalog-product-view .illari-pdp__stock {
    font: 600 13.5px/1 'Cairo', sans-serif;
    color: #6f6f66;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
body.catalog-product-view .illari-pdp__attrs {
    display: none;
}

/* ---- Fila de compra ---- */
body.catalog-product-view .illari-pdp__buyrow {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 6px;
}
body.catalog-product-view .illari-pdp__buyrow .field.qty,
body.catalog-product-view .illari-pdp__buyrow .box-tocart .field.qty,
body.catalog-product-view .illari-pdp__buyrow [x-data*="Qty"],
body.catalog-product-view .illari-pdp__buyrow .control.qty {
    display: none;
}
body.catalog-product-view #product-addtocart-button {
    flex: 1 1 auto;
    min-height: 48px;
    border-radius: 8px;
    background: var(--illari-green, #59693b);
    border: 1px solid var(--illari-green, #59693b);
    color: #fff;
    font: 700 16px/1 'Cairo', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.catalog-product-view #product-addtocart-button svg {
    display: none;
}
body.catalog-product-view #product-addtocart-button span {
    display: none;
}
body.catalog-product-view #product-addtocart-button::after {
    content: "Agregar al carrito";
}
@media (hover: hover) {
    body.catalog-product-view #product-addtocart-button:hover {
        background: #45532c;
    }
}
body.catalog-product-view #add-to-wishlist,
body.catalog-product-view [data-addto="wishlist"] {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    background: #3d4a24;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
body.catalog-product-view #add-to-wishlist svg {
    width: 20px;
    height: 20px;
}
@media (hover: hover) {
    body.catalog-product-view #add-to-wishlist:hover {
        background: #303c1c;
    }
}
/* Hyva mete el wishlist en su propia fila `justify-end`; lo subimos a la buyrow */
body.catalog-product-view .illari-pdp__buyrow > .flex.mt-4,
body.catalog-product-view .illari-pdp__buyrow > div.flex {
    display: contents;
}

/* ---- Pestañas ---- */
body.catalog-product-view .illari-pdp-tabs {
    max-width: 1240px;
    margin: clamp(18px, 3vw, 36px) auto clamp(36px, 5vw, 64px);
    border: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}
body.catalog-product-view .illari-pdp-tabs__bar {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #e6e3da;
}
body.catalog-product-view .illari-pdp-tabs__btn {
    background: transparent;
    border: 0;
    padding: 12px 2px;
    margin-bottom: -1px;
    font: 600 15.5px/1 'Cairo', sans-serif;
    color: #9a9a90;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
body.catalog-product-view .illari-pdp-tabs__btn.is-active {
    color: var(--illari-green-dark, #243d10);
    border-bottom-color: var(--illari-green-dark, #243d10);
}
body.catalog-product-view .illari-pdp-tabs__panel {
    padding: 24px 2px 14px;
    font: 400 15.5px/1.75 'Cairo', sans-serif;
    color: #5f5f57;
    max-width: none;
}
body.catalog-product-view .illari-pdp-tab__dl > div {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f0ede4;
}
body.catalog-product-view .illari-pdp-tab__dl dt {
    min-width: 140px;
    font-size: 15px;
    font-weight: 700;
    color: var(--illari-green-dark, #243d10);
}
body.catalog-product-view .illari-pdp-tab__dl .illari-pdp-tab__full {
    display: block;
    border-bottom: 0;
}

/* ---- Productos relacionados ---- */
body.catalog-product-view .block.related,
body.catalog-product-view .products-related {
    background: #f4f3ef;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(28px, 4vw, 52px) clamp(16px, 5vw, 60px);
}
body.catalog-product-view .block.related > .block-title strong,
body.catalog-product-view .block.related .block-title,
body.catalog-product-view .products-related .block-title {
    font: 400 clamp(18px, 2.4vw, 26px)/1.1 'Moga', Georgia, serif;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--illari-green-dark, #243d10);
    max-width: 1240px;
    margin: 0 auto 18px;
    display: block;
}
body.catalog-product-view .block.related .product-item,
body.catalog-product-view .products-related .product-item {
    background: #fff;
    border: 1px solid #eee7d9;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
body.catalog-product-view .block.related .product-item-name a,
body.catalog-product-view .block.related .product-item-link {
    font: 400 13px/1.3 'Cairo', sans-serif;
    color: #8a8a80;
}
body.catalog-product-view .block.related .price,
body.catalog-product-view .products-related .price {
    font: 700 15px/1 'Cairo', sans-serif;
    color: var(--illari-orange, #c6702b);
}
body.catalog-product-view .block.related [data-addto="cart"],
body.catalog-product-view .products-related [data-addto="cart"] {
    border: 1.5px solid var(--illari-orange, #c6702b);
    color: var(--illari-orange, #c6702b);
    background: transparent;
    border-radius: 7px;
    font: 600 12px/1 'Cairo', sans-serif;
    padding: 7px 14px;
}
body.catalog-product-view .block.related [data-addto="cart"] svg {
    display: none;
}

@media (max-width: 767px) {
    /* Título visible en móvil = el <h1 page-title> (md:sr-only); Figma lo quiere
       alineado a la izquierda, verde, Cairo, más compacto. */
    body.catalog-product-view .page-title {
        text-align: left;
        font: 700 clamp(19px, 5.4vw, 23px)/1.25 'Cairo', ui-sans-serif, sans-serif;
        color: var(--illari-green-dark, #243d10);
        margin-bottom: 14px;
    }
    body.catalog-product-view section[aria-label="Product Info"] {
        gap: 16px;
    }
    body.catalog-product-view #gallery {
        padding: 12px;
    }
    /* Botón + wishlist en la MISMA fila (Figma), no apilados */
    body.catalog-product-view .illari-pdp__buyrow {
        flex-wrap: nowrap;
        gap: 10px;
    }
    body.catalog-product-view #product-addtocart-button {
        flex: 1 1 auto;
        min-width: 0;
        min-height: 52px;
        font-size: 15px;
    }
    body.catalog-product-view #add-to-wishlist,
    body.catalog-product-view [data-addto="wishlist"] {
        flex: 0 0 52px;
        width: 52px;
        height: 52px;
    }
    body.catalog-product-view .illari-pdp__pricerow {
        align-items: center;
        margin-bottom: 14px;
    }
}
