/* Hidramat stage 2: complete public pages and harmonize inherited shop UI. */
:root { --hm-radius: 8px; }
.hm-hero { border-radius: 0 0 30px 30px; overflow: hidden; }
.hm-button, .hm-button--lime, .hm-button--outline, .hm-button--dark { border-radius: var(--hm-radius); }
.hm-button--dark { background: var(--hm-dark); color: #fff; }
.hm-button--dark:hover { background: #145b46; }
.hm-category-card { display: flex; flex-direction: column; }
.hm-category-media { box-sizing: border-box; overflow: hidden; }
.hm-category-media img { display: block; max-width: 100%; max-height: 100%; }
.hm-category-name { margin-top: auto; }
.hm-featured .hm-product-card { padding: 0 0 18px; border: 0; box-shadow: none; text-align: center; }
.hm-featured .hm-product-card:hover { box-shadow: none; }
.hm-featured .hm-product-card img { box-sizing: border-box; height: 300px; margin-bottom: 20px; padding: 25px; border-radius: 8px; background: #f0f4f2; mix-blend-mode: multiply; }
.hm-featured .hm-product-card:hover img { background: #dfece6; }
.hm-featured .hm-product-card strong { max-width: none; padding: 0 24px; }
.hm-featured .hm-product-card > svg { position: static; width: 38px; height: 38px; margin: 15px auto 0; padding: 9px; border-radius: 50%; background: var(--hm-dark); color: #fff; }
body .wp-block-button__link, body .wc-block-components-button:not(.is-link), body .single_add_to_cart_button, body .woocommerce button.button, body .woocommerce a.button, body .woocommerce input.button { background: var(--hm-dark) !important; border-color: var(--hm-dark) !important; border-radius: var(--hm-radius) !important; color: #fff !important; box-shadow: none !important; }
body .wp-block-button__link:hover, body .wc-block-components-button:not(.is-link):hover, body .woocommerce button.button:hover, body .woocommerce a.button:hover { background: #145b46 !important; }
body .woocommerce a, body .woocommerce-page a { accent-color: var(--hm-dark); }

/* Bring the Furni product-display rhythm into the live WooCommerce catalogue. */
body .hp-shop-page-shell { padding-top: 0 !important; }
body .hp-shop-page-shell > .hm-catalog-hero { margin-top: 0; border-radius: 0 0 28px 28px; }
body .hp-shop-catalog-layout { width: min(1320px, calc(100% - 64px)); max-width: none; margin-inline: auto; gap: 44px; }
body .hp-shop-filter-column { max-width: 240px; }
body .hp-shop-products-column { min-width: 0; }
body .hp-product-grid, body .products-block-post-template { column-gap: 22px !important; row-gap: 40px !important; }
body .hp-product-grid > li, body .hp-product-grid .wc-block-product, body .products-block-post-template > li { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0 0 20px !important; border: 0 !important; border-radius: 9px; background: transparent; text-align: center; box-shadow: none !important; }
body .hp-product-grid .wc-block-components-product-image, body .hp-product-grid .wp-block-woocommerce-product-image, body .hp-product-grid figure, body .products-block-post-template figure { display: grid; place-items: center; width: 100%; height: clamp(200px, 23vw, 320px); margin: 0 0 24px !important; padding: 18px; border-radius: 9px; background: #f0f4f2; transition: background .2s ease; }
body .hp-product-grid li:hover figure, body .hp-product-grid .wc-block-product:hover figure { background: #dfece6; }
body .hp-product-grid figure img, body .hp-product-grid .wc-block-components-product-image img { width: 100% !important; height: 100% !important; object-fit: contain !important; mix-blend-mode: multiply; transition: transform .25s ease; }
body .hp-product-grid li:hover figure img { transform: scale(1.045); }
body .hp-product-grid .wp-block-post-title, body .hp-product-grid .wc-block-components-product-name { min-height: 2.6em; margin: 0 8px 8px !important; color: var(--hm-text) !important; font-size: clamp(15px, 1.3vw, 18px) !important; font-weight: 700; line-height: 1.3; }
body .hp-product-grid .wp-block-post-title a { color: inherit !important; text-decoration: none; }
body .hp-product-grid .wc-block-components-product-price { margin: 0 auto 10px; color: var(--hm-text); font-size: 18px; font-weight: 800; }
body .hp-product-grid .wp-block-button { margin: 5px auto 0; }
body .hp-product-grid .wp-block-button__link { display: grid; width: 45px; min-width: 45px; height: 45px; min-height: 45px; place-items: center; padding: 0 !important; border-radius: 50% !important; font-size: 0 !important; }
body .hp-product-grid .wp-block-button__link::after { content: '+'; color: #fff; font-size: 27px; font-weight: 400; line-height: 1; }
body .hp-shop-filter-toggle { border-radius: var(--hm-radius) !important; }
body .hp-shop-toolbar { padding-bottom: 25px; border-bottom: 1px solid var(--hm-border); }
body .hp-pagination .current { border-radius: var(--hm-radius); }

/* Contact composition: an actual message form that continues on WhatsApp. */
.hm-home-contact { padding: 110px 0; background: #f2f6f3; }
.hm-home-contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(35px, 7vw, 110px); align-items: start; }
.hm-home-contact-grid > div:first-child { padding-top: 35px; }
.hm-home-contact h2, .hm-contact-form-layout h2 { max-width: 500px; margin: 24px 0 20px; font-size: clamp(40px, 4vw, 62px); line-height: 1.06; letter-spacing: -.055em; }
.hm-home-contact-grid > div:first-child p, .hm-contact-form-layout > div:first-child > p { max-width: 430px; color: var(--hm-muted); font-size: 17px; line-height: 1.6; }
.hm-lead-form { padding: clamp(24px, 3vw, 46px); border: 1px solid #e3eae5; border-radius: 10px; background: #fff; box-shadow: 0 22px 55px rgba(0,45,36,.06); }
.hm-lead-form-head h3 { margin: 15px 0 8px; font-size: 34px; line-height: 1.1; letter-spacing: -.045em; }
.hm-lead-form-head p { margin: 0 0 27px; color: var(--hm-muted); font-size: 15px; line-height: 1.5; }
.hm-lead-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 17px; }
.hm-lead-fields label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; }
.hm-lead-fields .hm-lead-full { grid-column: 1 / -1; }
.hm-lead-fields input, .hm-lead-fields textarea { box-sizing: border-box; width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #d7e2da; border-radius: 6px; outline: none; color: var(--hm-text); background: #fbfcfb; font: inherit; font-weight: 400; }
.hm-lead-fields textarea { min-height: 120px; resize: vertical; }
.hm-lead-fields input:focus, .hm-lead-fields textarea:focus { border-color: #5aaa39; box-shadow: 0 0 0 3px rgba(186,250,91,.22); }
.hm-lead-form button { margin-top: 22px; border: 0; cursor: pointer; }
.hm-lead-form small { display: block; margin-top: 13px; color: #697771; line-height: 1.45; }
.hm-contact-form-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(35px, 6vw, 90px); padding-block: 90px 110px; }
.hm-contact-form-layout .hm-contact-locations { margin: 32px 0 25px; }
.hm-contact-form-layout .hm-contact-locations article { padding: 22px 25px; }

/* Company and editorial pages get the section progression of the source theme. */
.hm-company-hero-v2 h1 em { color: var(--hm-lime); font-style: normal; }
.hm-company-hero-v2 .hm-button { margin-top: 18px; }
.hm-section-intro h2 { max-width: 730px; margin: 19px 0 38px; font-size: clamp(39px, 4vw, 60px); line-height: 1.08; letter-spacing: -.05em; }
.hm-company-sectors { padding: 95px 0 110px; background: #f2f6f3; }
.hm-sector-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.hm-sector-grid article { min-height: 220px; padding: 30px; border-radius: 9px; background: #fff; }
.hm-sector-grid article span { color: #54a82a; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.hm-sector-grid h3 { margin: 40px 0 10px; font-size: 28px; letter-spacing: -.04em; }
.hm-sector-grid p { max-width: 260px; margin: 0; color: var(--hm-muted); line-height: 1.5; }
.hm-company-cta { padding: 75px 0; background: var(--hm-lime); }
.hm-company-cta .hm-shell { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.hm-company-cta h2 { max-width: 650px; margin: 19px 0 0; font-size: clamp(38px, 4vw, 58px); line-height: 1.06; letter-spacing: -.05em; }
.hm-blog-hero-v2 { background: linear-gradient(90deg, #002d24 0%, rgba(0,45,36,.93) 45%, rgba(0,45,36,.25) 100%), url('./oficina-hidramat.png') center/cover; }
.hm-blog-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 6vw, 85px); align-items: center; padding-block: 90px; }
.hm-blog-feature-photo img { display: block; width: 100%; height: 390px; object-fit: cover; border-radius: 9px; }
.hm-blog-feature h2 { margin: 23px 0; font-size: clamp(35px, 3.5vw, 54px); line-height: 1.09; letter-spacing: -.05em; }
.hm-blog-feature p { color: var(--hm-muted); font-size: 17px; line-height: 1.55; }
.hm-blog-posts { padding-top: 70px; border-top: 1px solid var(--hm-border); }
.hm-blog-grid a { padding: 0 0 23px; border: 0; border-radius: 9px; overflow: hidden; background: #f4f7f5; }
.hm-blog-card-image img { width: 100%; height: 230px; object-fit: cover; }
.hm-blog-grid small, .hm-blog-grid h3, .hm-blog-grid span { margin-left: 19px; margin-right: 19px; }
.hm-blog-grid span { color: var(--hm-dark); }

/* Shop fallback and account routes work even before WooCommerce is configured. */
.hm-shop-hero-v2, .hm-account-hero { border-radius: 0 0 28px 28px; }
.hm-shop-body { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 58px; padding-block: 78px 110px; }
.hm-shop-sidebar h2 { margin: 18px 0 15px; font-size: 28px; letter-spacing: -.045em; }
.hm-shop-sidebar nav { display: grid; border-top: 1px solid var(--hm-border); }
.hm-shop-sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 0; border-bottom: 1px solid var(--hm-border); color: var(--hm-text); text-decoration: none; font-weight: 650; }
.hm-shop-sidebar nav svg { width: 16px; }
.hm-shop-help { display: grid; gap: 14px; margin-top: 40px; padding: 22px; border-radius: 8px; background: var(--hm-lime); }
.hm-shop-help a { display: inline-flex; gap: 8px; color: var(--hm-text); font-weight: 700; text-decoration: none; }
.hm-shop-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--hm-border); }
.hm-shop-heading h2 { max-width: 570px; margin: 17px 0 0; font-size: clamp(35px, 3vw, 48px); line-height: 1.1; letter-spacing: -.05em; }
.hm-shop-heading > span { white-space: nowrap; color: var(--hm-muted); font-size: 13px; }
.hm-shop-products { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 38px 20px; padding-top: 30px; }
.hm-shop-product { text-align: center; }
.hm-shop-product-photo { display: grid; place-items: center; height: 265px; padding: 18px; border-radius: 8px; background: #f0f4f2; transition: background .2s; }
.hm-shop-product:hover .hm-shop-product-photo { background: #dfece6; }
.hm-shop-product-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.hm-shop-product:hover img { transform: scale(1.05); }
.hm-shop-product-title { display: block; min-height: 48px; margin: 18px 5px 5px; color: var(--hm-text); font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.hm-shop-product-bottom { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 50px; font-size: 17px; font-weight: 800; }
.hm-shop-product-bottom a { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: var(--hm-dark); color: #fff; font-size: 26px; font-weight: 400; line-height: 1; text-decoration: none; }
.hm-shop-empty { padding-top: 22px; }
.hm-shop-empty > p { max-width: 650px; color: var(--hm-muted); line-height: 1.6; }
.hm-shop-empty .hm-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 24px; }
.hm-shop-pagination { margin-top: 40px; }
.hm-shop-pagination ul { display: flex; gap: 6px; list-style: none; padding: 0; }
.hm-shop-pagination a, .hm-shop-pagination span { display: grid; min-width: 36px; min-height: 36px; place-items: center; border-radius: 5px; text-decoration: none; }
.hm-shop-pagination .current { background: var(--hm-dark); color: #fff; }
.hm-account-content { min-height: 420px; padding-block: 75px 105px; }
.hm-account-unavailable { max-width: 700px; padding: 35px; border-radius: 9px; background: #f2f6f3; }
.hm-account-unavailable h2 { margin-top: 0; font-size: 33px; letter-spacing: -.04em; }
.hm-account-unavailable p { color: var(--hm-muted); line-height: 1.6; }
body.woocommerce-account:not(.logged-in) .hm-account-content, body.woocommerce-account:not(.logged-in) .hm-account-v2 { min-height: 0 !important; margin: auto !important; padding: 0 !important; }
body.woocommerce-account:not(.logged-in) .wp-site-blocks > main.hm-account-v2 { min-height: 0 !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.woocommerce-account:not(.logged-in) .hm-account-content { padding: 70px 0 100px !important; }
.hp-account-auth-shell { border-radius: 10px !important; }
.hp-account-auth-visual { background: linear-gradient(135deg, #002d24, #0d4939 70%, #2b6d4e) !important; }
.hp-account-auth-brand { font-style: normal !important; }
.hp-account-auth-content .woocommerce button.button, .hp-account-auth-content .woocommerce .woocommerce-button { background: var(--hm-dark) !important; border-radius: var(--hm-radius) !important; }
.woocommerce-account:not(.logged-in) .hm-account-hero { display: none; }
body.woocommerce-account:not(.logged-in) .hm-account-content { box-sizing: border-box; width: 100% !important; max-width: none !important; padding: 0 !important; }
body.woocommerce-account:not(.logged-in) .hp-account-auth-visual { background: linear-gradient(135deg, rgba(0,35,27,.92), rgba(0,45,36,.4)), url('./oficina-hidramat.png') center/cover no-repeat !important; }
body.woocommerce-account:not(.logged-in) .hp-account-auth-back { border-color: #d7eadb !important; background: #edf7ed !important; color: var(--hm-dark) !important; }
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-login .woocommerce-form-login__submit,
body.woocommerce-account:not(.logged-in) #customer_login .woocommerce-form-register .woocommerce-form-register__submit { border-radius: var(--hm-radius) !important; background: var(--hm-dark) !important; }
.woocommerce-MyAccount-navigation a { color: var(--hm-dark); }
.woocommerce-MyAccount-content a { color: #237342; }

/* Replace every visible blue cart layer with forest green. */
.hp-cart-status, .hp-cart-lead-card { background: linear-gradient(135deg,#0a5a43,#002d24) !important; border-radius: 9px !important; box-shadow: 0 14px 35px rgba(0,45,36,.22) !important; animation: none !important; }
.hp-cart-status:hover, .hp-cart-lead-card:hover { box-shadow: 0 18px 40px rgba(0,45,36,.27) !important; }
.hp-cart-status-icon, .hp-cart-lead-icon, .hp-cart-status b, .hp-cart-lead-next { color: var(--hm-dark) !important; }
.hp-cart-status b, .hp-cart-lead-next, .hp-cart-lead-form input { border-radius: 6px !important; }
.hp-cart-drawer-cta, .hp-cart-shipping button { background: var(--hm-dark) !important; border-radius: 7px !important; box-shadow: none !important; }
.hp-cart-drawer-cta:hover, .hp-cart-shipping button:hover { background: #145b46 !important; }
.hp-cart-drawer-total strong, .hp-cart-installments-toggle { color: var(--hm-dark) !important; }
.hp-cart-drawer-installments { background: #f2f8f3 !important; border-color: #d7e9d9 !important; }
.hp-cart-installments-toggle { border-color: var(--hm-dark) !important; border-radius: 6px !important; }
.hp-cart-shipping input:focus, .hp-cart-status:focus-visible { border-color: #67b34a !important; outline-color: var(--hm-lime) !important; box-shadow: 0 0 0 3px rgba(186,250,91,.25) !important; }
.hp-cart-drawer-next { border-color: var(--hm-dark) !important; border-radius: 7px !important; background: var(--hm-dark) !important; }
.hp-cart-drawer-next:hover { background: #145b46 !important; }
.hp-cart-drawer-heading h2, .hp-cart-drawer-steps button.is-current, .hp-cart-drawer-empty > span, .hp-cart-checkout-fallback, .hp-checkout-standalone-heading h1 { color: var(--hm-dark) !important; }
.hp-cart-drawer-steps button.is-current span { background: var(--hm-dark) !important; box-shadow: 0 0 0 4px rgba(186,250,91,.22) !important; }
.hp-cart-rate input { accent-color: var(--hm-dark) !important; }
.hp-checkout-standalone-steps > strong { border-color: var(--hm-dark) !important; color: var(--hm-dark) !important; }

@media (max-width: 900px) { .hm-home-contact-grid, .hm-contact-form-layout, .hm-blog-feature { grid-template-columns: 1fr; } .hm-shop-body { grid-template-columns: 1fr; gap: 30px; } .hm-shop-sidebar nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; } .hm-shop-products { grid-template-columns: repeat(2,minmax(0,1fr)); } .hm-sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hm-hero, .hm-shop-hero-v2, .hm-account-hero { border-radius: 0 0 18px 18px; } .hm-home-contact { padding: 65px 0; } .hm-lead-fields, .hm-sector-grid, .hm-shop-products { grid-template-columns: 1fr; } .hm-company-cta .hm-shell { display: block; } .hm-company-cta .hm-button { margin-top: 25px; } .hm-shop-sidebar nav { grid-template-columns: 1fr; } .hm-shop-empty .hm-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .hm-shop-body { padding-block: 55px 75px; } body .hp-shop-catalog-layout { width: calc(100% - 34px); } }
