/* Focus, readability and predictable controls. */
.hp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid #ffd200 !important; outline-offset: 4px; }
button,summary { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input,select,textarea { font: inherit; }
.hp-page { overflow-wrap: anywhere; }
.hp-page :where(p,li) { line-height: 1.8; }
.hp-page :where(p,li) a { color: #ffde57; text-decoration: underline; text-underline-offset: 3px; }
.hp-account-menu:focus-within .hp-account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.hp-account-dropdown { z-index: 100; }
.admin-bar .hp-header { top: 32px; }
.hp-prelaunch .hp-topbar { font-size: 10px; letter-spacing: .025em; }
.hp-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: #b6b6c1; }
.hp-welcome-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.hp-invalid-link,a.hp-whatsapp[href*="TUNUMERO"] { display: none !important; }

/* Keep WooCommerce's own gallery layout and slider measurements. */
.woocommerce-product-gallery__wrapper { display: block; margin: 0; }
.woocommerce-product-gallery__image:first-child { width: auto; margin-bottom: 0; }
.woocommerce-product-gallery__image:not(:first-child) { width: auto; }
.single-product .flex-control-thumbs { display: flex; gap: 10px; padding: 0; list-style: none; margin-block: 14px 0; }
.single-product .flex-control-thumbs li { flex: 1; max-width: 25%; border-radius: 10px; overflow: hidden; }
.single-product .flex-control-thumbs img { cursor: pointer; }
.single-product .woocommerce-product-gallery { min-width: 0; }
.single-product .hp-woo-shell { width: 100%; }
.woocommerce-breadcrumb { padding-block: 12px 24px; color: #b2b2bd !important; font-size: 12px !important; }
.woocommerce-breadcrumb a { color: #e9e9f0 !important; }

/* The original carousel now has an explicit pause control. */
.hp-slide-content h2 { max-width: none; margin: 14px 0 10px; font-size: clamp(36px,5vw,64px); line-height: .98; letter-spacing: -2px; }
.hp-slider-pause { position: absolute; z-index: 5; right: 28px; bottom: 24px; color: #fff; border: 1px solid #ffffff60; background: #0b0b0dc9; padding: 10px 14px; border-radius: 10px; font-size: 12px; }
.hp-hero:focus-within .hp-dot.is-active span { animation-play-state: paused; }
.hp-hero.is-paused .hp-dot.is-active span { animation-play-state: paused; }

/* Catalog forms preserve the context, including price and ordering. */
.hp-order-form,.hp-mobile-order-form { display: flex; align-items: center; gap: 7px; }
.hp-order-form select { min-width: 160px; }
.hp-order-submit { padding: 10px 12px; border-radius: 9px; background: #ffd200; color: #0b0b0d; border: 0; font-size: 11px; font-weight: 750; min-height: 40px; }
.hp-catalog-button .hp-button-plus { display: none !important; }
.hp-catalog-grid.view-list .hp-catalog-card { display: grid !important; grid-template-columns: 220px minmax(0,1fr); height: auto !important; }
.hp-catalog-grid.view-list .hp-catalog-image { min-height: 220px; height: 100%; }
.hp-catalog-grid.view-list .hp-catalog-card h2 { min-height: 0; }
.hp-filter-overlay { border: 0; border-radius: 0; padding: 0; }
.hp-catalog-title h1 { overflow-wrap: anywhere; }
.hp-price-inputs label { min-width: 0; }
.hp-price-inputs input { min-width: 0; }
.hp-no-products :where(p,a) { line-height: 1.8; }

/* Information pages have useful content even without WordPress pages. */
.hp-info-page { max-width: 1040px; margin-inline: auto; padding-block: 65px 80px; }
.hp-info-eyebrow { font-size: 11px; letter-spacing: .15em; color: #ffde57; font-weight: 700; }
.hp-info-page h1 { max-width: 840px; font-size: clamp(34px,4.5vw,56px); letter-spacing: -.045em; line-height: 1.15; margin-bottom: 25px; }
.hp-info-lead { font-size: 17px; max-width: 760px; color: #bdbdca; margin-bottom: 36px; }
.hp-info-panel { padding: 26px 30px; background: #15151a; border: 1px solid #ffffff18; border-radius: 18px; margin-block: 20px; }
.hp-info-panel h2 { margin-block: 0 14px; font-size: 22px; letter-spacing: -.025em; }
.hp-info-panel p { color: #b4b4c0; font-size: 14px; }
.hp-info-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 28px; background: #ffd200; color: #0b0b0d; border-radius: 12px; padding: 16px 20px; font-size: 13px; font-weight: 800; }
.hp-info-actions { display: flex; align-items: center; gap: 25px; flex-wrap: wrap; margin-block: 30px 0; font-size: 14px; }
.hp-info-questions { max-width: 850px; }
.hp-info-questions details { border-bottom: 1px solid #ffffff20; }
.hp-info-questions summary { padding: 23px 25px 23px 0; font-size: 17px; list-style: none; position: relative; }
.hp-info-questions summary::-webkit-details-marker { display: none; }
.hp-info-questions summary::after { content: '+'; color: #ffd200; right: 0; position: absolute; }
.hp-info-questions details[open] summary::after { content: '−'; }
.hp-info-questions p { color: #b6b6c3; padding-bottom: 18px; }

@media (max-width: 782px) { .admin-bar .hp-header { top: 46px; } }
@media (max-width: 760px) {
    .hp-catalog-grid.view-list .hp-catalog-card { grid-template-columns: 1fr; }
    .hp-catalog-grid.view-list .hp-catalog-image { min-height: 0; }
    .hp-mobile-order-form { gap: 0; }
    .hp-mobile-order-form select { min-width: 0; flex: 1; font-size: 11px; padding-inline: 10px 24px; background-position: calc(100% - 17px) 25px,calc(100% - 11px) 25px; }
    .hp-mobile-order-form .hp-order-submit { padding: 9px 6px; border-radius: 0; min-width: 52px; min-height: 58px; font-size: 10px; }
    .hp-mobile-catalog-actions { grid-template-columns: .7fr 1.3fr; }
    .hp-filter-open { overflow: hidden; }
    .hp-filters { visibility: hidden; }
    .hp-filters.is-open { visibility: visible; }
    .hp-info-page { padding: 40px 20px 65px; }
    .hp-info-panel { padding: 22px; }
    .hp-info-button { overflow-wrap: anywhere; max-width: 100%; }
    .hp-preview-notice { margin-inline: 16px; font-size: 12px; }
    .hp-info-questions summary { font-size: 15px; }
    .hp-slide-content h2 { font-size: 36px; }
    .hp-slider-pause { right: 18px; bottom: 18px; padding: 8px 10px; font-size: 10px; }
    .hp-no-js .hp-filters { position: static; width: 100%; transform: none; visibility: visible; padding: 20px; margin-bottom: 24px; border-radius: 16px; box-shadow: none; }
    .hp-no-js .hp-mobile-filter-btn,.hp-no-js [data-filter-close] { display: none; }
    .hp-no-js .hp-mobile-catalog-actions { grid-template-columns: 1fr; }
}
.hp-no-js .hp-slider-pause,.hp-no-js .hp-dots { display: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .hp-ticker { transform: none !important; animation: none !important; }
}
