/* General Paz Header v1.0.6 */
.gph-site-header,
.gph-site-header * {
    box-sizing: border-box;
}

.gph-site-header {
    --gph-shadow: 0 8px 24px rgba(29, 53, 23, .10);
    --gph-soft-shadow: 0 8px 22px rgba(29, 53, 23, .12);
    --gph-border: rgba(48, 86, 37, .16);
    position: relative;
    z-index: 9990;
    width: 100%;
    background-color: var(--gph-white);
    color: var(--gph-dark);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.35;
    box-shadow: var(--gph-shadow);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.gph-site-header a,
.gph-site-header button,
.gph-site-header input,
.gph-site-header select {
    font-family: inherit;
}

.gph-site-header.gph-sticky {
    position: sticky;
    top: 0;
}

.admin-bar .gph-site-header.gph-sticky {
    top: 32px;
}

.gph-container {
    width: min(1320px, calc(100% - 44px));
    margin: 0 auto;
}

.gph-main-row {
    background-color: var(--gph-white);
    background-image: var(--gph-main-bg-image, none);
    background-position: center;
    background-repeat: var(--gph-main-bg-repeat, no-repeat);
    background-size: var(--gph-main-bg-size, cover);
}

.gph-main-grid {
    min-height: 88px;
    display: grid;
    grid-template-columns: 112px minmax(420px, 1fr) auto;
    align-items: center;
    gap: 28px;
    transition: min-height .22s ease, gap .22s ease;
}

.gph-logo {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    text-decoration: none;
}

.gph-logo img {
    display: block;
    width: var(--gph-logo-width);
    height: var(--gph-logo-width);
    max-width: none;
    object-fit: contain;
    transition: width .22s ease, height .22s ease, transform .22s ease;
}

.gph-logo:hover img {
    transform: scale(1.025);
}

/* Buscador */
.gph-search-shell {
    position: relative;
    width: 100%;
    min-width: 0;
}

.gph-search-form {
    min-height: 52px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 190px) 56px;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid rgba(48, 86, 37, .26);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(29, 53, 23, .055);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gph-search-form:hover {
    border-color: rgba(48, 86, 37, .42);
}

.gph-search-form:focus-within {
    border-color: var(--gph-green);
    box-shadow: 0 0 0 3px rgba(148, 188, 88, .20), 0 8px 20px rgba(29, 53, 23, .08);
    transform: translateY(-1px);
}

.gph-search-form.gph-search-no-category {
    grid-template-columns: minmax(0, 1fr) 56px;
}

.gph-search-input,
.gph-search-category {
    appearance: none;
    min-width: 0;
    border: 0 !important;
    outline: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--gph-dark);
    line-height: 1.2;
}

.gph-search-input {
    width: 100%;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 500;
}

.gph-search-input::placeholder {
    color: #697465;
    opacity: 1;
}

.gph-search-category {
    width: 100%;
    padding: 0 38px 0 16px;
    border-left: 1px solid rgba(48, 86, 37, .14) !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--gph-green) 50%),
        linear-gradient(135deg, var(--gph-green) 50%, transparent 50%) !important;
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50% !important;
    background-size: 5px 5px, 5px 5px !important;
    background-repeat: no-repeat !important;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

.gph-search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--gph-green);
    color: var(--gph-white);
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.gph-search-submit:hover,
.gph-search-submit:focus-visible {
    background: var(--gph-dark);
}

.gph-search-submit:active {
    transform: scale(.96);
}

.gph-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
}

.gph-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Resultados del buscador */
.gph-search-results {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 35;
    width: min(760px, 100%);
    overflow: hidden;
    max-height: min(560px, 72vh);
    border: 1px solid rgba(48, 86, 37, .15);
    border-radius: 18px;
    background: var(--gph-white);
    box-shadow: 0 22px 54px rgba(20, 43, 15, .20);
}

.gph-search-results[hidden] {
    display: none !important;
}

.gph-search-results-inner {
    max-height: min(500px, 64vh);
    overflow-y: auto;
    padding: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(48, 86, 37, .35) transparent;
}

.gph-search-result-group + .gph-search-result-group {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(48, 86, 37, .10);
}

.gph-search-result-heading {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 9px 5px;
    color: var(--gph-green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.gph-search-result-heading small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(207, 244, 210, .64);
    color: var(--gph-dark);
    font-size: 10px;
    letter-spacing: 0;
}

.gph-search-result-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 8px 10px;
    border-radius: 13px;
    color: var(--gph-dark);
    text-decoration: none;
    transition: background .16s ease, transform .16s ease;
}

.gph-search-result-item:hover,
.gph-search-result-item:focus-visible {
    background: rgba(207, 244, 210, .40);
    transform: translateX(2px);
    outline: none;
}

.gph-search-result-media {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid rgba(48, 86, 37, .10);
    border-radius: 11px;
    background: #f5f7f4;
}

.gph-search-result-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gph-search-result-placeholder {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(48, 86, 37, .12);
}

.gph-search-result-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.gph-search-result-copy small {
    max-width: 100%;
    overflow: hidden;
    color: var(--gph-green);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .055em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.gph-search-result-copy strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--gph-dark);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gph-search-stock {
    font-size: 10px;
    font-weight: 600;
}

.gph-search-stock.is-in-stock {
    color: #4d7842;
}

.gph-search-stock.is-out-of-stock {
    color: #8a4a43;
}

.gph-search-result-price {
    color: var(--gph-green);
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
}

.gph-search-result-price .amount,
.gph-search-result-price bdi {
    color: inherit;
    font-size: inherit;
}

.gph-search-result-arrow {
    color: var(--gph-gray-dark);
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
}

.gph-search-category-item {
    grid-template-columns: 40px minmax(0, 1fr) auto 18px;
    min-height: 58px;
}

.gph-search-category-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(207, 244, 210, .58);
    color: var(--gph-green);
    font-size: 18px;
    font-weight: 800;
}

.gph-search-view-all {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border-top: 1px solid rgba(48, 86, 37, .12);
    background: #f7faf6;
    color: var(--gph-dark);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.gph-search-view-all:hover,
.gph-search-view-all:focus-visible {
    background: var(--gph-mint);
}

.gph-search-state {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    color: #657062;
    text-align: center;
    font-size: 13px;
}

.gph-search-state-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gph-lime);
}

.gph-search-state.is-loading .gph-search-state-dot {
    animation: gph-pulse 1s ease-in-out infinite;
}

.gph-search-state.is-error .gph-search-state-dot {
    background: #a8544c;
}

@keyframes gph-pulse {
    0%, 100% { opacity: .35; transform: scale(.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Acciones */
.gph-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gph-account,
.gph-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    border-radius: 14px;
    color: var(--gph-dark);
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.gph-account {
    padding: 6px 12px;
}

.gph-account:hover,
.gph-account:focus-visible {
    background: rgba(207, 244, 210, .34);
}

.gph-cart {
    min-width: 145px;
    padding: 6px 13px;
    border: 1px solid rgba(48, 86, 37, .20);
    background: linear-gradient(135deg, rgba(207, 244, 210, .50), rgba(255, 255, 255, .98));
}

.gph-cart:hover,
.gph-cart:focus-visible {
    border-color: var(--gph-lime);
    box-shadow: var(--gph-soft-shadow);
    transform: translateY(-1px);
}

.gph-account > .gph-icon,
.gph-cart-icon-wrap > .gph-icon {
    width: 27px;
    height: 27px;
}

.gph-action-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.1;
}

.gph-action-copy strong {
    max-width: 112px;
    overflow: hidden;
    color: var(--gph-dark);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gph-action-copy small {
    margin-top: 4px;
    color: var(--gph-green);
    font-size: 10px;
    font-weight: 700;
}

.gph-cart-icon-wrap {
    position: relative;
    display: inline-flex;
}

.gph-cart-count {
    position: absolute;
    top: -10px;
    right: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid var(--gph-white);
    border-radius: 999px;
    background: var(--gph-green);
    color: var(--gph-white);
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
}

/* Navegación */
.gph-nav-row {
    position: relative;
    background-color: var(--gph-green);
    background-image: var(--gph-nav-bg-image, none), linear-gradient(90deg, var(--gph-green), #2b6825 50%, var(--gph-green));
    background-position: center, center;
    background-repeat: var(--gph-nav-bg-repeat, no-repeat), no-repeat;
    background-size: var(--gph-nav-bg-size, cover), auto;
    color: var(--gph-white);
}

.gph-nav-grid {
    min-height: 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.gph-categories-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 144px;
    min-height: 38px;
    justify-content: center;
    margin: 0;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(29, 53, 23, .48);
    color: var(--gph-white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .045em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.gph-categories-toggle:hover,
.gph-categories-toggle:focus-visible,
.gph-categories-toggle[aria-expanded="true"] {
    border-color: rgba(207, 244, 210, .32);
    background: var(--gph-dark);
}

.gph-categories-toggle .gph-icon {
    width: 19px;
    height: 19px;
}

.gph-categories-toggle .gph-chevron {
    width: 15px;
    height: 15px;
    margin-left: 4px;
    transition: transform .18s ease;
}

.gph-categories-toggle[aria-expanded="true"] .gph-chevron {
    transform: rotate(180deg);
}

.gph-desktop-nav {
    min-width: 0;
}

.gph-main-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 1.7vw, 30px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.gph-main-menu li {
    position: relative;
    margin: 0;
    padding: 0;
}

.gph-main-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--gph-white);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .025em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.gph-main-menu > li > a::after {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--gph-mint);
    content: '';
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .18s ease;
}

.gph-main-menu a:hover::after,
.gph-main-menu a:focus-visible::after,
.gph-main-menu .current-menu-item > a::after,
.gph-main-menu .current_page_item > a::after {
    transform: scaleX(1);
}

.gph-main-menu .sub-menu {
    position: absolute;
    top: calc(100% - 2px);
    left: 50%;
    z-index: 40;
    display: none;
    min-width: 230px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(48, 86, 37, .12);
    border-radius: 14px;
    background: var(--gph-white);
    box-shadow: 0 16px 38px rgba(29, 53, 23, .19);
    list-style: none;
    transform: translateX(-50%);
}

.gph-main-menu li:hover > .sub-menu,
.gph-main-menu li:focus-within > .sub-menu {
    display: block;
}

.gph-main-menu .sub-menu a {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 9px;
    color: var(--gph-dark);
    font-size: 12px;
    font-weight: 600;
    text-transform: none;
}

.gph-main-menu .sub-menu a:hover,
.gph-main-menu .sub-menu a:focus-visible {
    background: rgba(207, 244, 210, .48);
}

.gph-promotions-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 17px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 999px;
    background: var(--gph-white);
    color: var(--gph-green);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.gph-promotions-link .gph-icon {
    width: 16px;
    height: 16px;
    color: var(--gph-lime);
}

.gph-promotions-link:hover,
.gph-promotions-link:focus-visible {
    background: var(--gph-mint);
    color: var(--gph-dark);
    transform: translateY(-1px);
}

/* Mega menú */
.gph-categories-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    padding: 12px 0 22px;
    background: rgba(244, 248, 243, .98);
    color: var(--gph-dark);
    box-shadow: 0 20px 46px rgba(29, 53, 23, .16);
    backdrop-filter: blur(10px);
}

.gph-categories-panel[hidden] {
    display: none !important;
}

.gph-menu-panel-card {
    overflow: hidden;
    border: 1px solid rgba(48, 86, 37, .12);
    border-radius: 18px;
    background: var(--gph-white);
    box-shadow: 0 10px 30px rgba(29, 53, 23, .08);
}

.gph-menu-panel-head {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(48, 86, 37, .11);
    background: linear-gradient(90deg, rgba(207, 244, 210, .36), rgba(255, 255, 255, .98));
}

.gph-menu-panel-head > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gph-menu-panel-kicker {
    color: var(--gph-green);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.gph-menu-panel-head strong {
    color: var(--gph-dark);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
}

.gph-menu-panel-head > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(48, 86, 37, .18);
    border-radius: 11px;
    color: var(--gph-green);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.gph-menu-panel-head > a:hover,
.gph-menu-panel-head > a:focus-visible {
    background: var(--gph-mint);
}

.gph-menu-panel-head > a .gph-icon {
    width: 15px;
    height: 15px;
}

.gph-category-grid {
    display: grid;
    grid-template-columns: repeat(var(--gph-menu-columns, 4), minmax(0, 1fr));
    grid-auto-flow: dense;
    align-items: start;
    gap: 12px;
    max-height: min(570px, calc(100vh - 210px));
    overflow-y: auto;
    padding: 14px;
}

.gph-category-column {
    align-self: start;
    min-width: 0;
    height: auto;
    padding: 11px;
    border: 1px solid rgba(48, 86, 37, .10);
    border-radius: 14px;
    background: #fbfcfb;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gph-category-column:hover {
    border-color: rgba(148, 188, 88, .55);
    box-shadow: 0 7px 18px rgba(29, 53, 23, .08);
    transform: translateY(-1px);
}

.gph-category-parent {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    color: var(--gph-dark);
    text-decoration: none;
}

.gph-category-visual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 11px;
    background: rgba(207, 244, 210, .46);
    color: var(--gph-green);
}

.gph-category-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gph-category-visual .gph-icon {
    width: 21px;
    height: 21px;
}

.gph-category-parent-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.gph-category-parent-copy strong {
    overflow: hidden;
    color: var(--gph-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gph-category-parent-copy small {
    color: #74816f;
    font-size: 9.5px;
    font-weight: 600;
}

.gph-category-parent > .gph-icon {
    width: 15px;
    height: 15px;
    color: var(--gph-green);
}

.gph-category-column ul {
    margin: 9px 0 0 56px;
    padding: 8px 0 0;
    border-top: 1px solid rgba(48, 86, 37, .09);
    list-style: none;
}

.gph-category-column li {
    margin: 0;
    padding: 0;
}

.gph-category-column li a {
    display: block;
    overflow: hidden;
    padding: 4px 0;
    color: #586654;
    font-size: 11.5px;
    font-weight: 500;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gph-category-column li a:hover,
.gph-category-column li a:focus-visible {
    color: var(--gph-green);
}

.gph-category-column [hidden] {
    display: none !important;
}

.gph-category-more {
    margin-top: 5px !important;
    padding-top: 5px !important;
    border-top: 1px dashed rgba(48, 86, 37, .15);
}

.gph-category-more a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--gph-green) !important;
    font-weight: 750 !important;
}

.gph-category-more .gph-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.gph-category-grid-no-images .gph-category-parent {
    grid-template-columns: minmax(0, 1fr) 16px;
}

.gph-category-grid-no-images .gph-category-visual {
    display: none !important;
}

.gph-category-grid-no-images .gph-category-column ul {
    margin-left: 0;
}

.gph-category-grid-no-counts .gph-category-parent-copy small {
    display: none !important;
}

.gph-menu-empty {
    grid-column: 1 / -1;
    margin: 8px;
    padding: 24px;
    border: 1px dashed rgba(48, 86, 37, .18);
    border-radius: 12px;
    color: #647060;
    text-align: center;
}

/* Masonry progresivo: sin JavaScript conserva una grilla normal y tarjetas de alto automático. */
.gph-category-grid.gph-masonry-ready {
    grid-auto-rows: 8px;
    align-items: stretch;
}

.gph-category-grid.gph-masonry-ready .gph-category-column {
    align-self: stretch;
}

/* Estados y compatibilidad */
.gph-mobile-menu-toggle,
.gph-mobile-drawer,
.gph-overlay {
    display: none;
}

.gph-is-compact .gph-main-grid {
    min-height: 70px;
    gap: 24px;
}

.gph-is-compact .gph-logo img {
    width: 56px;
    height: 56px;
}

.gph-is-compact .gph-search-form {
    min-height: 46px;
}

body.gph-active.gph-hide-legacy-header .elementor-location-header,
body.gph-active.gph-hide-legacy-header [data-elementor-type="header"],
body.gph-active.gph-hide-legacy-header header#masthead,
body.gph-active.gph-hide-legacy-header .site-header:not(.gph-site-header),
body.gph-active.gph-hide-legacy-header .ast-primary-header-bar,
body.gph-active.gph-hide-legacy-header .ast-mobile-header-wrap {
    display: none !important;
}

body.gph-menu-open {
    overflow: hidden;
}

@media (max-width: 1240px) {
    .gph-container {
        width: min(100% - 32px, 1240px);
    }

    .gph-main-grid {
        grid-template-columns: 88px minmax(330px, 1fr) auto;
        gap: 20px;
    }

    .gph-account {
        padding-right: 5px;
        padding-left: 5px;
    }

    .gph-cart {
        min-width: 132px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .gph-main-menu {
        gap: 15px;
    }

    .gph-main-menu a {
        font-size: 10.5px;
    }

    .gph-nav-grid {
        gap: 14px;
    }
}

@media (max-width: 1080px) {
    .gph-search-category {
        display: none;
    }

    .gph-search-form {
        grid-template-columns: minmax(0, 1fr) 54px;
    }

    .gph-account .gph-action-copy {
        display: none;
    }

    .gph-account {
        width: 48px;
        justify-content: center;
    }

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

@media (max-width: 900px) {
    .gph-site-header,
    .gph-site-header.gph-sticky {
        top: 0;
    }

    .admin-bar .gph-site-header.gph-sticky {
        top: 46px;
    }

    .gph-container {
        width: calc(100% - 24px);
    }

    .gph-main-grid,
    .gph-is-compact .gph-main-grid {
        min-height: auto;
        grid-template-columns: 46px minmax(0, 1fr) 50px;
        grid-template-areas:
            "menu logo cart"
            "search search search";
        gap: 8px 12px;
        padding: 8px 0 10px;
    }

    .gph-mobile-menu-toggle {
        grid-area: menu;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: var(--gph-dark);
        cursor: pointer;
    }

    .gph-mobile-menu-toggle:hover,
    .gph-mobile-menu-toggle:focus-visible {
        background: rgba(207, 244, 210, .48);
    }

    .gph-logo {
        grid-area: logo;
        justify-self: center;
    }

    .gph-logo img,
    .gph-is-compact .gph-logo img {
        width: var(--gph-mobile-logo-width);
        height: var(--gph-mobile-logo-width);
    }

    .gph-search-shell {
        grid-area: search;
    }

    .gph-search-form,
    .gph-is-compact .gph-search-form {
        min-height: 45px;
        border-radius: 13px;
    }

    .gph-search-input {
        padding-right: 14px;
        padding-left: 14px;
        font-size: 13px;
    }

    .gph-search-submit {
        width: 50px;
    }

    .gph-actions {
        grid-area: cart;
        justify-self: end;
    }

    .gph-account {
        display: none;
    }

    .gph-cart {
        min-width: 46px;
        min-height: 42px;
        justify-content: center;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .gph-cart:hover,
    .gph-cart:focus-visible {
        background: rgba(207, 244, 210, .48);
        box-shadow: none;
        transform: none;
    }

    .gph-cart .gph-action-copy {
        display: none;
    }

    .gph-cart-icon-wrap > .gph-icon {
        width: 26px;
        height: 26px;
    }

    .gph-cart-count {
        top: -7px;
        right: -8px;
    }

    .gph-nav-row {
        display: none;
    }

    .gph-mobile-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 9995;
        display: flex;
        width: min(88vw, 390px);
        flex-direction: column;
        overflow-y: auto;
        background: var(--gph-white);
        box-shadow: 18px 0 50px rgba(29, 53, 23, .23);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .26s ease, visibility .26s ease;
    }

    .gph-mobile-drawer.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    .gph-mobile-drawer-head {
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 58px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 17px;
        background: linear-gradient(90deg, var(--gph-green), var(--gph-dark));
        color: var(--gph-white);
        font-size: 13px;
        font-weight: 800;
        letter-spacing: .05em;
        text-transform: uppercase;
    }

    .gph-mobile-menu-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--gph-white);
        cursor: pointer;
    }

    .gph-mobile-account-row {
        padding: 14px;
        border-bottom: 1px solid rgba(48, 86, 37, .11);
    }

    .gph-mobile-account-row a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        border-radius: 14px;
        background: rgba(207, 244, 210, .36);
        color: var(--gph-dark);
        text-decoration: none;
    }

    .gph-mobile-account-row span {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .gph-mobile-account-row strong {
        font-size: 13px;
    }

    .gph-mobile-account-row small {
        color: var(--gph-green);
        font-size: 10px;
    }

    .gph-mobile-nav {
        padding: 8px 12px 4px;
    }

    .gph-mobile-menu-list,
    .gph-mobile-menu-list .sub-menu,
    .gph-mobile-categories ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .gph-mobile-menu-list li {
        margin: 0;
    }

    .gph-mobile-menu-list a,
    .gph-mobile-categories a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 49px;
        padding: 0 10px;
        border-bottom: 1px solid rgba(48, 86, 37, .09);
        color: var(--gph-dark);
        font-size: 13px;
        font-weight: 700;
        text-decoration: none;
    }

    .gph-mobile-menu-list a:hover,
    .gph-mobile-categories a:hover {
        background: rgba(207, 244, 210, .30);
    }

    .gph-mobile-menu-list .sub-menu a {
        min-height: 42px;
        padding-left: 24px;
        color: #536250;
        font-size: 12px;
        font-weight: 600;
    }

    .gph-mobile-menu-list .gph-icon,
    .gph-mobile-categories .gph-icon {
        width: 16px;
        height: 16px;
        color: var(--gph-green);
    }

    .gph-mobile-categories {
        padding: 15px 12px 8px;
    }

    .gph-mobile-categories h3 {
        margin: 0 10px 7px;
        color: var(--gph-green);
        font-size: 10.5px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .gph-mobile-promo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 48px;
        margin: 12px 16px 22px;
        border-radius: 14px;
        background: var(--gph-mint);
        color: var(--gph-dark);
        font-size: 12px;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
    }

    .gph-mobile-promo .gph-icon {
        width: 18px;
        height: 18px;
        color: var(--gph-green);
    }

    .gph-overlay {
        position: fixed;
        inset: 0;
        z-index: 9994;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        border: 0;
        background: rgba(14, 27, 11, .56);
        backdrop-filter: blur(2px);
        cursor: pointer;
    }

    .gph-overlay[hidden] {
        display: none !important;
    }

    .gph-search-results {
        position: fixed;
        top: 112px;
        right: 12px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 126px);
        border-radius: 16px;
    }

    .gph-search-results-inner {
        max-height: calc(100vh - 185px);
    }
}

@media (max-width: 480px) {
    .gph-container {
        width: calc(100% - 18px);
    }

    .gph-main-grid,
    .gph-is-compact .gph-main-grid {
        grid-template-columns: 42px minmax(0, 1fr) 44px;
        gap: 7px;
    }

    .gph-mobile-menu-toggle {
        width: 40px;
        height: 40px;
    }

    .gph-cart {
        min-width: 42px;
    }

    .gph-search-results {
        right: 9px;
        left: 9px;
    }

    .gph-search-result-item {
        grid-template-columns: 48px minmax(0, 1fr) 15px;
        gap: 9px;
    }

    .gph-search-result-media {
        width: 48px;
        height: 48px;
    }

    .gph-search-result-price {
        grid-column: 2;
        justify-self: start;
        margin-top: 2px;
        font-size: 11.5px;
    }

    .gph-search-result-arrow {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .gph-search-category-item {
        grid-template-columns: 38px minmax(0, 1fr) 15px;
    }

    .gph-search-category-mark {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gph-site-header *,
    .gph-site-header *::before,
    .gph-site-header *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* v1.0.5: el mega menú deja visible la página alrededor del panel. */
@media (min-width: 901px) {
    .gph-categories-panel {
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        pointer-events: none;
    }

    .gph-categories-panel > .gph-container {
        pointer-events: none;
    }

    .gph-categories-panel .gph-menu-panel-card {
        pointer-events: auto;
    }
}

/* Un subtítulo personalizado siempre reemplaza visualmente al contador. */
.gph-category-grid-no-counts .gph-category-parent-copy small[data-gph-category-subtitle="1"] {
    display: block !important;
}

/* v1.0.12 — auditoría y endurecimiento responsive para teléfonos */
.gph-site-header,
.gph-site-header *{box-sizing:border-box}
.gph-site-header{max-width:100%;overflow-x:clip}
.gph-site-header img,.gph-site-header svg{max-width:100%}
.gph-main-grid>*,.gph-search-form>*,.gph-search-result-item>*{min-width:0}
.gph-search-result-title,.gph-search-result-meta,.gph-mobile-menu-list a,.gph-mobile-categories a{overflow-wrap:anywhere;word-break:normal}
@media(max-width:900px){
  .gph-container{max-width:100%;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
  .gph-logo img,.gph-is-compact .gph-logo img{width:min(var(--gph-mobile-logo-width),23vw,88px);height:auto;max-height:88px;object-fit:contain}
  .gph-search-shell,.gph-search-form,.gph-search-input{width:100%;max-width:100%;min-width:0}
  .gph-mobile-drawer{width:min(88vw,390px);max-width:100%;height:100vh;height:100dvh;padding-left:env(safe-area-inset-left);padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
  .gph-overlay{height:100vh;height:100dvh}
  .gph-mobile-drawer-head{padding-top:env(safe-area-inset-top)}
  .gph-search-results{max-width:calc(100% - 18px);max-height:calc(100vh - 126px);max-height:calc(100dvh - 126px);overflow:hidden;overscroll-behavior:contain}
  .gph-search-results-inner{max-height:calc(100vh - 185px);max-height:calc(100dvh - 185px);overflow-y:auto;overscroll-behavior:contain}
}
@media(max-width:380px){
  .gph-container{width:calc(100% - 12px)}
  .gph-main-grid,.gph-is-compact .gph-main-grid{grid-template-columns:40px minmax(0,1fr) 40px;column-gap:5px}
  .gph-logo img,.gph-is-compact .gph-logo img{width:min(var(--gph-mobile-logo-width),21vw,74px);max-height:74px}
  .gph-search-input{font-size:16px}
  .gph-mobile-drawer{width:100%}
}
@media(hover:none),(pointer:coarse){
  .gph-cart:hover,.gph-mobile-promo:hover,.gph-mobile-menu-list a:hover,.gph-mobile-categories a:hover{transform:none;box-shadow:none}
}

