/*
Theme Name: Centro Hierros Tienda
Description: Diseño de Centro Hierros para WordPress y WooCommerce.
Version: 1.0.7
Text Domain: centro-hierros-tienda
Requires at least: 6.3
Requires PHP: 7.4
*/
:root {
  --navy: #102353;
  --dark: #091837;
  --blue: #244998;
  --muted: #4c5972;
  --yellow: #ffd431;
  --yellow-light: #fff5cd;
  --line: #dee4ef;
  --dock-inset: 1.25rem;
  --dock-bottom: max(var(--dock-inset), env(safe-area-inset-bottom));
  --light: #f2f5fb;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 1rem/1.55 var(--body); color: var(--navy); background: #fff; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1; }
h2, h3 { font-family: var(--display); font-weight: 700; }
h2 { font-size: clamp(2.4rem, 5vw, 4.15rem); letter-spacing: -.015em; }
h3 { font-size: 1.85rem; }
:focus-visible { outline: 3px solid #4875dc; outline-offset: 4px; }
section[id], div[id] { scroll-margin-top: 6.75rem; }
.wrap { width: min(1240px, calc(100% - 100px)); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: .5rem; left: .5rem; padding: .6rem 1rem; background: var(--yellow); z-index: 10; transform: translateY(-150%); }
.skip:focus { transform: none; }
.utility { background: var(--dark); color: #dce5f9; font-size: .875rem; }
.utility-inner, .utility-info, .utility-social { display: flex; align-items: center; }
.utility-inner { justify-content: space-between; gap: .75rem; min-height: 40px; }
.utility-info { gap: clamp(.6rem, 2vw, 1.4rem); flex-wrap: wrap; }
.utility a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; }
.utility .utility-info a, .utility .utility-social a { color: #e8efff; }
.utility a:hover { text-decoration: underline; }
.utility .utility-info .utility-phone { font-weight: 800; color: #fff; white-space: nowrap; }
.utility-address { border-left: 1px solid #8ea3cf50; padding-left: .85rem; }
.utility-social { flex: none; gap: .35rem; }
.utility-social a { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #8ea3cf65; border-radius: 50%; }
.utility .utility-social a:hover { color: var(--yellow); border-color: var(--yellow); }
.header-icon { width: 15px; height: 15px; flex: none; }
.pin { display: inline-block; width: .68rem; height: .68rem; margin: 0 .12rem .16rem; border: 2px solid var(--yellow); transform: rotate(-45deg); border-radius: 55% 55% 55% 0; flex: none; }
.site-header { position: sticky; z-index: 3; top: 0; background: #fff; border-bottom: 1px solid var(--line); }
.nav-shell { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 78px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: inherit; text-decoration: none; white-space: nowrap; }
.brand img { object-fit: contain; border-radius: 8px; background: #142866; }
.brand span { font: 800 1.65rem/.95 var(--display); text-transform: uppercase; }
.brand small { display: block; font: 700 .75rem/1.3 var(--body); letter-spacing: .045em; margin-top: .25rem; }
.home-header { background: var(--navy); color: #fff; border-bottom: 2px solid var(--yellow); }
.home-header .nav-shell { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; min-height: 72px; }
.home-header .brand { justify-self: start; color: #fff; }
.home-header .brand small { color: #dce5f9; }
#primary-nav, .header-actions { display: flex; align-items: center; }
#primary-nav { gap: clamp(.3rem, .9vw, .85rem); }
.header-actions { justify-self: end; gap: .55rem; }
.home-header .nav-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .32rem .65rem; font: 700 1.12rem/1 var(--display); color: #fff; border: 1px solid transparent; border-radius: 6px; background: transparent; text-transform: uppercase; text-decoration: none; letter-spacing: .03em; }
.home-header .products-toggle { border-color: #8197c6; }
.home-header .nav-link:hover, .home-header .nav-link:focus-visible, .home-header .nav-link[aria-expanded="true"] { color: var(--yellow); background: #20376c; border-color: #8197c6; }
.nav-chevron { width: .42rem; height: .42rem; margin-top: -.15rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.products-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(225deg); margin-top: .2rem; }
.menu-toggle { display: none; }
.home-header .header-search-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #8197c6; border-radius: 7px; background: #20376c; color: #fff; }
.home-header .header-search-toggle:hover, .home-header .header-search-toggle:focus-visible, .home-header .header-search-toggle[aria-expanded="true"] { border-color: var(--yellow); background: #20376c; color: var(--yellow); }
.products-panel, .header-search { position: absolute; top: 100%; z-index: 1; background: #fff; color: var(--navy); border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: 0 0 10px 10px; box-shadow: 0 16px 30px #09183736; }
.products-panel { left: 0; right: 0; display: grid; grid-template-columns: 1.25fr repeat(3,minmax(0,1fr)); gap: clamp(1rem, 3vw, 2.1rem); padding: clamp(1rem, 3vw, 2rem); }
.products-panel h2 { font-size: 1.45rem; line-height: 1.1; margin-bottom: .2rem; }
.home-header .products-panel a { color: var(--navy); text-decoration: none; text-underline-offset: .18em; }
.products-panel a:hover { text-decoration: underline; }
.catalog-callout, .catalog-menu-group { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.catalog-callout { justify-content: center; border-left: 4px solid var(--yellow); border-radius: 0 7px 7px 0; background: var(--yellow-light); padding: 1.1rem; }
.catalog-callout h2 { font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.catalog-callout a { font-size: .9rem; font-weight: 700; }
.home-header .catalog-menu-group > a { font-size: .95rem; color: var(--muted); }
.header-search { right: 0; width: min(460px,100%); padding: .85rem; display: flex; gap: .55rem; }
.home-header .header-search input { flex: 1; min-width: 0; border: 1px solid #b5c0d6; border-radius: 6px; padding: .55rem; color: var(--navy); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .65rem 1.2rem; border: 1px solid transparent; border-radius: 8px; text-decoration: none; font-weight: 800; line-height: 1.2; }
.button.yellow { background: var(--yellow); color: var(--dark); }
.button.yellow:hover, .button.yellow:focus-visible { background: #ffe273; color: var(--dark); }
.quote-shortcut { flex: none; min-height: 44px; gap: .5rem; padding: .4rem .8rem; border-radius: 999px; color: var(--navy); }
.quote-shortcut svg { flex: none; }
.button.outline { color: #fff; border-color: #93a7d5; }
.outline:hover { background: #fff2; }
.button.outline-dark { border-color: #b5c0d6; background: #fff; color: var(--navy); }
.outline-dark:hover { background: var(--light); }
.hero { background: var(--navy); background-image: repeating-linear-gradient(126deg,transparent 0 45px,#d7e1ff0c 46px,transparent 47px), radial-gradient(ellipse at 80% 0%, #263d75 0, transparent 64%); color: #fff; border-bottom: 5px solid var(--yellow); }
.hero-grid { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); align-items: center; gap: clamp(1.5rem,4vw,4.25rem); padding-block: clamp(2.5rem,5.2vw,4.75rem); }
.eyebrow { display: flex; align-items: center; gap: .65rem; font-size: .88rem; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; }
.eyebrow span { width: 24px; height: 3px; background: var(--yellow); }
.hero h1 { margin: .8rem 0 1.15rem; font: 800 clamp(4rem,7.2vw,7.1rem)/.83 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.hero h1 em { display: block; font-style: normal; color: var(--yellow); }
.hero-description { margin: 1.35rem 0 1.55rem; max-width: 33ch; font-size: clamp(1.05rem,1.65vw,1.25rem); color: #eef2ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.whatsapp-button { min-height: 60px; gap: .65rem; padding-inline: 1.5rem; font-size: 1.15rem; }
.whatsapp-button svg { flex: none; }
.whatsapp-button.whatsapp-float { position: fixed; left: var(--dock-inset); bottom: var(--dock-bottom); z-index: 5; background: #137a44; color: #fff; border: 2px solid #0d6336; border-radius: 999px; box-shadow: 0 6px 22px #07153045; }
.whatsapp-button.whatsapp-float:hover { background: #0d6336; color: #fff; }
.hero-image { position: relative; overflow: hidden; border: 1px solid var(--yellow); border-radius: 12px; box-shadow: .55rem .55rem 0 #071530; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; object-position: 50% 52%; }
.hero-image figcaption { position: absolute; bottom: .9rem; left: .9rem; }
.hero-image figcaption a { display: flex; align-items: center; gap: .45rem; border: 1px solid var(--yellow); border-radius: 6px; background: #091837ee; color: #fff; padding: .6rem .75rem; font-size: .9rem; font-weight: 700; text-decoration: none; }
.hero-image figcaption a:hover { background: var(--navy); text-decoration: underline; }
.partners { background: var(--yellow-light); border-bottom: 1px solid #f1dfa0; }
.partner-list { display: grid; grid-template-columns: 1.8fr repeat(4, 1fr); align-items: center; justify-items: center; gap: 1rem; min-height: 100px; }
.partner-list p { justify-self: start; color: var(--muted); font-weight: 800; font-size: .88rem; letter-spacing: .055em; text-transform: uppercase; }
.partner-list img { width: min(100%, 122px); height: auto; }
.media-gallery { background: var(--light); border-bottom: 1px solid var(--line); }
.media-gallery .section { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.media-card { min-width: 0; border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 10px; overflow: hidden; background: #fff; }
.media-player { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--dark); object-fit: contain; }
.media-details { padding: .9rem 1rem 1rem; }
.media-details a { display: inline-block; margin-top: .5rem; font-weight: 700; text-underline-offset: .2em; }
.section-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.section-top p, .quote-section p { color: var(--muted); margin-top: .7rem; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.25rem; }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button, .chat-options button { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .75rem; background: #fff; color: var(--navy); font-size: .875rem; font-weight: 700; }
.filters button:hover, .chat-options button:hover { background: var(--light); }
.filters button[aria-pressed="true"] { background: var(--yellow); border-color: #dfb919; color: var(--navy); }
.catalog-tools .search { display: flex; align-items: center; gap: .5rem; border: 1px solid #b5c0d6; border-radius: 8px; padding: .4rem .7rem; color: var(--navy); }
.catalog-tools .search input { border: 0; min-width: 0; color: inherit; background: none; width: 100%; }
.magnifier { display: inline-block; width: .75rem; height: .75rem; border: 2px solid; border-radius: 50%; position: relative; flex: none; margin: 0 .2rem .2rem 0; }
.magnifier::after { content: ""; position: absolute; width: .38rem; height: 2px; background: currentColor; transform: rotate(45deg); bottom: -.18rem; right: -.3rem; }
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.product-grid > .product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.product-photo { display: grid; place-items: center; aspect-ratio: 1.5; background: var(--light); overflow: hidden; }
.product-photo img { width: 90%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 1.05rem; }
.product-body p { color: var(--muted); margin: .45rem 0 .9rem; }
.product-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .45rem; margin-top: auto; font-size: .875rem; font-weight: 800; }
.product-actions a { text-underline-offset: .2em; }
.quote-product { padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 5px; color: var(--navy); background: var(--yellow-light); font-weight: 800; }
.quote-product:hover { background: var(--yellow); }
.no-results { padding: 1.1rem; background: var(--light); border-radius: 8px; }
.about { background: var(--navy); color: #fff; }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(1.75rem,5vw,5.5rem); padding-block: clamp(3.5rem,6vw,5.8rem); }
.about h2 { margin: .65rem 0 1rem; }
.about-grid > div > p:not(.eyebrow) { max-width: 43ch; color: #e3ebff; margin-bottom: 1.25rem; }
.visit { background: #fff; color: var(--navy); padding: clamp(1.1rem,3vw,2rem); border-radius: 10px; }
address { font-style: normal; margin-top: .45rem; }
.visit dl div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: .1rem .65rem; padding: .38rem 0; border-bottom: 1px solid var(--line); }
.visit dd { margin: 0; color: var(--muted); }
.visit a, .quote-section a { font-weight: 800; text-underline-offset: .2em; }
.quote-section { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,6vw,6rem); }
.quote-section p { margin-bottom: 1rem; max-width: 41ch; }
.quote-section form { display: grid; align-content: start; justify-items: start; gap: .6rem; }
.quote-section label { font-weight: 800; }
textarea { width: 100%; border: 1px solid #b5c0d6; border-radius: 8px; padding: .75rem; resize: vertical; color: var(--navy); }
.footer { background: var(--dark); color: #fff; border-top: 4px solid var(--yellow); padding-block: clamp(2.2rem, 5vw, 4rem) calc(var(--dock-bottom) + 4.4rem); }
.chat-launch { position: fixed; right: var(--dock-inset); bottom: var(--dock-bottom); display: flex; align-items: center; gap: .6rem; padding: .4rem .85rem .4rem .4rem; color: var(--dark); background: var(--yellow); border: 2px solid var(--navy); border-radius: 999px; font-size: .875rem; font-weight: 800; z-index: 5; box-shadow: 0 6px 22px #07153045; }
.chat-launch img { width: 36px; height: 36px; flex: none; }
.chat-launch-compact { display: none; }
@media (max-width: 370px) {
  .chat-launch-label { display: none; }
  .chat-launch-compact { display: inline; }
}
.chat-launch:hover { background: #ffe273; }
.chat-launch img, .chat-header img { border-radius: 50%; object-fit: cover; }
.chat { position: fixed; right: var(--dock-inset); bottom: calc(var(--dock-bottom) + 3.65rem); width: min(390px,calc(100vw - 2.5rem)); max-height: min(540px,calc(100dvh - var(--dock-bottom) - 4.5rem)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; z-index: 5; box-shadow: 0 14px 55px #07153055; }
.chat-header { display: flex; align-items: center; gap: .65rem; background: var(--navy); color: #fff; padding: .8rem; border-bottom: 3px solid var(--yellow); }
.chat-header h2 { font-size: 1.8rem; }
.chat-header p { font-size: .875rem; }
.chat-close { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.7rem; width: 42px; height: 42px; }
.messages { min-height: 100px; overflow-y: auto; overscroll-behavior: contain; padding: .85rem; background: var(--light); }
.message { width: fit-content; max-width: 92%; padding: .55rem .65rem; border-radius: 9px; background: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.message + .message { margin-top: .5rem; }
.message.user { margin-left: auto; background: #ffea9a; }
.message a { display: block; font-weight: 800; margin-top: .3rem; }
.chat-options { display: flex; flex-wrap: wrap; gap: .35rem; padding: .65rem .7rem .25rem; }
#chat-form { display: flex; padding: .6rem .7rem .7rem; gap: .35rem; }
#chat-input { flex: 1; min-width: 0; padding: .4rem .5rem; border: 1px solid #b5c0d6; border-radius: 5px; }
#chat-form button { padding: .4rem .55rem; color: var(--navy); font-weight: 800; border: 0; background: var(--yellow); border-radius: 5px; }
@media (max-width: 1000px) { .wrap { width: calc(100% - 56px); } .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 880px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .utility-info .utility-hours { display: none; }
  .home-header .nav-shell { display: flex; min-height: 66px; }
  .header-actions { margin-left: auto; }
  .home-header .menu-toggle { display: grid; gap: 4px; place-content: center; width: 44px; height: 44px; background: #20376c; border: 1px solid #8197c6; border-radius: 7px; }
  .menu-toggle span { width: 17px; height: 2px; background: #fff; }
  .home-header .menu-toggle:hover, .home-header .menu-toggle:focus-visible, .home-header .menu-toggle[aria-expanded="true"] { background: #20376c; border-color: var(--yellow); }
  #primary-nav { display: none; position: absolute; z-index: 1; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; max-height: calc(100dvh - 112px); overflow-y: auto; padding: .4rem 1rem; background: var(--navy); border: 1px solid #7e93c576; border-top: 2px solid var(--yellow); border-radius: 0 0 9px 9px; box-shadow: 0 12px 28px #09183740; }
  #primary-nav.open { display: flex; }
  .products-panel { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); box-shadow: none; margin-bottom: .45rem; border-radius: 7px; }
}
@media (max-width: 480px) {
  .utility-info .utility-address { display: none; }
  .home-header .nav-shell { gap: .45rem; }
  .header-actions { gap: .35rem; }
  .products-panel { grid-template-columns: 1fr; }
  .quote-shortcut { padding-inline: .55rem; }
}
@media (max-width: 440px) {
  .home-header .quote-shortcut { width: 44px; }
  .home-header .quote-shortcut span { display: none; }
  .home-header .brand { gap: .4rem; }
  .home-header .brand span { font-size: 1rem; }
}
@media (max-width: 380px) {
  .home-header .brand span { display: none; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 36px); }
  .nav-shell { min-height: 64px; gap: .55rem; }
  .brand img { width: 43px; height: 40px; }
  .brand span { font-size: 1.32rem; }
  .brand small { font-size: .68rem; }
  .hero-grid, .about-grid, .quote-section { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(3.5rem,12vw,5.8rem); }
  .hero-image img { aspect-ratio: 1.56; }
  .partner-list { gap: .2rem .55rem; padding-top: .75rem; grid-template-columns: repeat(4,1fr); }
  .partner-list p { grid-column: 1/-1; justify-self: center; }
  .partner-list img { width: min(100%,96px); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
  .product-body { padding: .7rem; }
  .product-body h3 { font-size: 1.55rem; }
  .catalog-tools .search { width: 100%; }
}
@media (max-width: 540px) { .media-grid { grid-template-columns: 1fr; } }
@media (max-width: 410px) {
  :root { --dock-inset: .65rem; }
  .whatsapp-float { min-height: 52px; font-size: 1rem; gap: .35rem; padding-inline: .65rem; }
  .whatsapp-float svg { width: 19px; height: 19px; }
  .chat { width: calc(100vw - 1.3rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hero h1 { overflow-wrap: anywhere; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .85fr 1.15fr; gap: clamp(1rem, 3vw, 2.8rem); }
.footer-grid h2 { font-size: 1.5rem; padding-bottom: .7rem; margin-bottom: .65rem; border-bottom: 1px solid #ffffff38; color: var(--yellow); }
.footer-grid ul { display: grid; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.footer-grid address { margin-bottom: .45rem; }
.footer-grid a:not(.brand), .footer-bottom a { color: #e2e9fa; text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a.footer-access { color: var(--yellow); font-weight: 700; }
.footer-grid a:hover, .footer-bottom a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer-about p { margin: .8rem 0; color: #e2e9fa; }
.footer-social { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-social a { font-size: .875rem; font-weight: 700; border: 1px solid #ffffff45; border-radius: 999px; padding: .3rem .65rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; border-top: 1px solid #ffffff38; padding-top: 1.1rem; margin-top: 2rem; color: #e2e9fa; font-size: .9rem; }
.portal-hero { background: var(--navy); color: #fff; border-bottom: 4px solid var(--yellow); }
.portal-hero-grid { display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: clamp(1.2rem, 6vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.7rem); }
.portal-hero h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: .95; margin: .55rem 0 .9rem; text-transform: none; }
.portal-hero p:not(.eyebrow) { max-width: 40ch; }
.portal-account { padding: clamp(1rem, 4vw, 1.65rem); border-radius: 10px; border-top: 4px solid var(--yellow); background: #fff; color: var(--navy); }
.portal-account h2 { font-size: 2.1rem; }
.portal-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: .95rem 0 .75rem; }
.portal-account p { color: var(--muted); }
.portal-products .button { min-height: 42px; }
.portal-footer { background: var(--dark); color: #fff; padding-block: 1.2rem; }
.portal-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; }

@media (max-width: 850px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 740px) { .portal-hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }
/* WordPress pages and WooCommerce. */
body.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
body.ch-redesign #vch-widget,
body.ch-redesign #qlwapp,
body.ch-redesign > .qlwapp { display: none !important; }
.wp-main { padding-block: clamp(2rem, 5vw, 4rem); min-height: 40vh; }
.wp-page-title { border-bottom: 3px solid var(--yellow); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.wp-page-title h1, .ch-woo-content h1 { font: 800 clamp(2.65rem, 6vw, 4.9rem)/.98 var(--display); }
.wp-entry .entry-content > * + * { margin-top: 1em; }
.wp-entry .entry-content img { height: auto; }
.wp-entry .entry-content .aligncenter { margin-inline: auto; }
.wp-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.wp-post-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 1rem; }
.wp-post-grid h2 { font-size: 2.15rem; margin-block: .65rem; }
.wp-comments { margin-top: 2rem; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); }
.woocommerce .woocommerce-breadcrumb a { color: var(--navy); }
.woocommerce ul.products li.product { border: 1px solid var(--line); border-radius: 9px; padding: .75rem; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 700 1.6rem/1.05 var(--display); color: var(--navy); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--navy); font-weight: 700; }
.ch-woo-content a.button, .ch-woo-content button.button,
.ch-woo-content a.button.alt, .ch-woo-content button.button.alt { background: var(--yellow); color: var(--dark); }
.ch-woo-content a.button:hover, .ch-woo-content button.button:hover,
.ch-woo-content a.button.alt:hover, .ch-woo-content button.button.alt:hover { background: #ffe273; color: var(--dark); }
.wp-main .woocommerce a.button, .wp-main .woocommerce button.button, .wp-main .woocommerce input.button,
.wp-main .woocommerce a.button.alt, .wp-main .woocommerce button.button.alt, .wp-main .woocommerce input.button.alt,
.wc-block-components-button:not(.is-link) { background: var(--yellow); color: var(--dark); border-radius: 8px; }
.wp-main .woocommerce a.button:hover, .wp-main .woocommerce button.button:hover, .wp-main .woocommerce input.button:hover,
.wp-main .woocommerce a.button.alt:hover, .wp-main .woocommerce button.button.alt:hover, .wp-main .woocommerce input.button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: #ffe273; color: var(--dark); }
.woocommerce form.login, .woocommerce form.register, .woocommerce .woocommerce-account-fields { border-color: var(--line); }
.woocommerce input.input-text, .woocommerce textarea { border: 1px solid #a9b6cf; border-radius: 6px; padding: .55rem; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: .45rem .65rem; border-bottom: 1px solid var(--line); }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { border-left: 3px solid var(--yellow); font-weight: 700; }
@media (max-width: 600px) { body.admin-bar .site-header { top: 0; } }

.home-catalog-layout { display: grid; align-items: start; grid-template-columns: minmax(11rem, 14rem) minmax(0, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.home-category-panel { padding: .95rem; background: var(--light); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: 8px; }
.home-category-panel h3 { margin-bottom: .55rem; }
.home-category-panel ul { display: grid; gap: .2rem; list-style: none; padding: 0; margin: 0; }
.home-category-panel a { display: block; padding: .45rem .5rem; border-radius: 5px; color: var(--navy); font-size: .95rem; font-weight: 700; text-decoration: none; }
.home-category-panel a:hover, .home-category-panel a:focus-visible { background: var(--yellow-light); text-decoration: underline; text-underline-offset: .18em; }
.home-catalog-items { min-width: 0; }
@media (max-width: 1100px) { .home-catalog-items .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 880px) {
  .home-catalog-layout { grid-template-columns: 1fr; }
  .home-category-panel ul { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }
}
@media (max-width: 740px) { .home-catalog-items .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Victoria's Product and Price table. */
.message.price-message { width: 100%; max-width: 100%; white-space: pre-line; }
.victoria-price-table {
  width: 100%;
  margin-block: .45rem;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  table-layout: fixed;
  font-size: .875rem;
  line-height: 1.35;
}
.victoria-price-table th { background: var(--navy); color: #fff; font-weight: 700; }
.victoria-price-table th, .victoria-price-table td { padding: .48rem .55rem; overflow-wrap: anywhere; vertical-align: top; }
.victoria-price-table tbody tr + tr td { border-top: 1px solid var(--line); }
.victoria-price-table tbody tr:nth-child(even) td { background: var(--light); }
.victoria-price-table th:last-child, .victoria-price-table td:last-child { width: 37%; text-align: right; font-weight: 800; }
.victoria-price-table small { display: block; margin-top: .15rem; color: var(--muted); font-size: .875em; font-weight: 500; }
