/* Unicharm Pet — behaviour + polish styles layered over the original Elementor CSS. */

/* ---------------------------------------------------------- safety net */
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: #1b2a8f; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.2); }

/* ---------------------------------------------------------- navigation */
.elementor-nav-menu--main .menu-item-has-children { position: relative; }
.elementor-nav-menu--main .menu-item-has-children > .sub-menu { display: none; position: absolute; z-index: 9999; min-width: 220px; }
.elementor-nav-menu--main .menu-item-has-children.ucp-open > .sub-menu { display: block !important; top: 100%; left: 0; }
.elementor-nav-menu--dropdown .menu-item-has-children > .sub-menu { display: none; }
.elementor-nav-menu--dropdown .menu-item-has-children.ucp-open > .sub-menu { display: block; }
nav.elementor-nav-menu--dropdown.elementor-nav-menu__container { display: none; }
nav.elementor-nav-menu--dropdown.elementor-nav-menu--active { display: block; }
@media (max-width: 1024px) { .elementor-widget-nav-menu .elementor-nav-menu--main { display: none; } }
@media (min-width: 1025px) { .elementor-widget-nav-menu .elementor-menu-toggle, nav.elementor-nav-menu--dropdown { display: none !important; } }
.elementor-menu-toggle:focus-visible { outline: 2px solid #1b2a8f; outline-offset: 2px; }

/* ---------------------------------------------------------- article cards (fix the tall empty gap under thumbnails) */
.elementor-posts--skin-cards .elementor-post__thumbnail { padding-bottom: 56.25% !important; height: auto !important; overflow: hidden; }
.elementor-posts--skin-cards .elementor-post__thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.elementor-posts--skin-cards .elementor-post__thumbnail__link { display: block; margin-bottom: 0 !important; }
.elementor-posts--skin-cards .elementor-post__card { border-radius: 12px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.elementor-posts--skin-cards .elementor-post__card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(27, 42, 143, .10); }
.elementor-posts--skin-cards .elementor-post__text { padding: 18px 20px 22px; }
.elementor-posts--skin-cards .elementor-post__title { margin: 0 0 8px; }
.elementor-posts--skin-cards .elementor-post__excerpt p { margin: 0 0 12px; }
@media (max-width: 767px) { .elementor-posts--skin-cards.elementor-grid { row-gap: 28px !important; } }

/* ---------------------------------------------------------- product cards & catalog */
.e-loop-item .elementor-widget-theme-post-featured-image .elementor-widget-container { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.e-loop-item .elementor-widget-theme-post-featured-image a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.e-loop-item .elementor-widget-theme-post-featured-image img { width: auto; max-width: 100%; max-height: 100%; height: auto; object-fit: contain; transition: transform .3s ease; }
.e-loop-item:hover .elementor-widget-theme-post-featured-image img { transform: scale(1.05); }
.e-loop-item .product_title a { text-decoration: none; }
.e-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 6px; margin: 8px 0 24px; }
.e-filter .e-filter-item { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #e3e5ef; background: #fff; color: #4b4f66; font-size: 14px; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.e-filter .e-filter-item:hover { border-color: #f4a11d; color: #1b2a8f; }
.e-filter .e-filter-item[aria-current="page"] { background: #1b2a8f; border-color: #1b2a8f; color: #fff; }
.elementor-pagination { margin-top: 32px; }
.elementor-pagination .page-numbers { display: inline-block; min-width: 36px; padding: 6px 8px; margin: 2px; border-radius: 8px; text-align: center; }
.elementor-pagination .page-numbers.current { background: #1b2a8f; color: #fff; }
@media (max-width: 767px) { .elementor-pagination .page-numbers:not(.prev):not(.next):not(.current) { display: none; } .elementor-pagination .page-numbers.prev, .elementor-pagination .page-numbers.next { padding: 8px 14px; border: 1px solid #e3e5ef; } }

/* ---------------------------------------------------------- article page */
.elementor-widget-theme-post-content img { border-radius: 10px; }
.elementor-widget-theme-post-content a:not(.elementor-button) { color: #e0287a; text-decoration: underline; text-underline-offset: 2px; }
.elementor-widget-theme-post-content a:not(.elementor-button):hover { color: #1b2a8f; }
.elementor-widget-theme-post-content h2, .elementor-widget-theme-post-content h3 { scroll-margin-top: 96px; }
@media (max-width: 767px) {
  .elementor-widget-theme-post-content h2 { font-size: 1.55em !important; line-height: 1.25; }
  .elementor-widget-theme-post-content h3 { font-size: 1.25em !important; line-height: 1.3; }
  .elementor-widget-theme-post-title h1 { font-size: 1.9em !important; line-height: 1.2; }
  .elementor-widget-theme-post-featured-image img { border-radius: 10px; }
}
.elementor-post-navigation { gap: 16px; }
.elementor-post-navigation__link a { text-decoration: none; }

/* table of contents (rendered at build time; starts collapsed on tablet/mobile via CSS so nothing shifts) */
.elementor-widget-table-of-contents .elementor-toc__toggle-button--expand { display: none !important; }
@media (max-width: 1024px) {
  .elementor-toc--minimized-on-tablet:not(.ucp-toc-open) .elementor-toc__body { display: none; }
  .elementor-toc--minimized-on-tablet:not(.ucp-toc-open) .elementor-toc__toggle-button--collapse { display: none !important; }
  .elementor-toc--minimized-on-tablet:not(.ucp-toc-open) .elementor-toc__toggle-button--expand { display: inline-flex !important; }
}
.elementor-widget-table-of-contents.ucp-toc-closed .elementor-toc__body { display: none; }
.elementor-widget-table-of-contents.ucp-toc-closed .elementor-toc__toggle-button--collapse { display: none !important; }
.elementor-widget-table-of-contents.ucp-toc-closed .elementor-toc__toggle-button--expand { display: inline-flex !important; }
.elementor-toc__header-title { font-weight: 600; }
.elementor-toc__body { padding: 10px 0; }
.elementor-toc__toggle-button { min-width: 28px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.e-loop-item .product_title a, .e-loop-item .elementor-widget-theme-post-featured-image a { display: block; padding: 4px 0; }
.elementor-toc__list-item { margin: 4px 0; }
.elementor-toc__list-item-text { display: inline-block; padding: 2px 0; }

/* ---------------------------------------------------------- product page */
.woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0; flex-wrap: wrap; }
.woocommerce-product-gallery .flex-control-thumbs img { width: 70px; height: 70px; object-fit: cover; cursor: pointer; opacity: .6; border-radius: 6px; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active { opacity: 1; outline: 2px solid #f4a11d; }
.woocommerce-product-gallery__trigger { display: none; }
.woocommerce-product-gallery__image:not(:first-child) { display: none; }
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-product-gallery__image img { border-radius: 12px; }
.product_meta a { text-decoration: none; }

/* ---------------------------------------------------------- marketing pages: mobile tidy-up */
@media (max-width: 767px) {
  .elementor-widget-heading .elementor-widget-container { transform: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .elementor-widget-image .elementor-widget-container { margin-left: 0 !important; margin-right: 0 !important; }
  .elementor-widget-image .elementor-widget-container img { max-width: 100% !important; width: auto; }
}

/* ---------------------------------------------------------- scroll-reveal animation (marketing pages, added by site.js) */
.ucp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1); will-change: opacity, transform; }
.ucp-reveal.ucp-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ucp-reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------------------------------------------------- forms */
.elementor-message { margin-top: 12px; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.elementor-message-success { background: #e6f6ea; color: #1d6b32; }
.elementor-message-danger { background: #fdeaea; color: #9b2222; }
.ucp-hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.elementor-field:focus { outline: 2px solid #f4a11d; outline-offset: 1px; }

/* ---------------------------------------------------------- contact page */
.ucp-contact-page .e-con, .ucp-contact-page .e-con-inner { --display: flex; display: flex; flex-direction: column; width: 100%; }
.ucp-contact-page > .e-con-boxed { padding: 48px 20px 64px; }
.ucp-contact-page > .e-con-boxed > .e-con-inner { max-width: 1140px; margin: 0 auto; }
.ucp-contact-page .elementor-widget { margin-bottom: 24px; }
.ucp-contact-page h1.elementor-heading-title { color: var(--e-global-color-primary, #1b2a8f); font-size: 2.4em; }
.ucp-contact-page .ucp-contact-company { margin-top: 0; font-size: 1.5em; }
.ucp-contact-page .ucp-contact a:not(.elementor-button) { text-decoration: underline; text-underline-offset: 2px; }
.ucp-contact-page .elementor-field-label { display: block; margin-bottom: 4px; }
.ucp-contact-page .elementor-button { background: var(--e-global-color-accent, #f4a11d); }
.ucp-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 767px) { .ucp-contact { grid-template-columns: 1fr; } .ucp-contact-page > .e-con-boxed { padding: 28px 16px 48px; } .ucp-contact-page h1.elementor-heading-title { font-size: 1.9em; } }
.ucp-contact .elementor-field-group { margin-bottom: 14px; }
.ucp-contact textarea.elementor-field { min-height: 140px; }
.ucp-contact-card { background: #f7f8fc; border-radius: 14px; padding: 28px; }

/* ---------------------------------------------------------- 404 */
.ucp-404 { --display: flex; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 56px 20px 72px; max-width: 760px; margin: 0 auto; }
.ucp-404 img { width: min(100%, 520px); height: auto; margin-bottom: 12px; }
.ucp-404 .ucp-404-code { font-size: clamp(64px, 14vw, 120px); font-weight: 700; line-height: 1; color: #1b2a8f; letter-spacing: -.02em; }
.ucp-404 h1 { margin: 8px 0 12px; color: #1b2a8f; }
.ucp-404 p { max-width: 520px; color: #555a6e; }
.ucp-404 .ucp-404-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.ucp-404 .elementor-button { border-radius: 999px; padding: 12px 24px; background: #f4a11d; color: #fff; text-decoration: none; }
.ucp-404 .elementor-button.ucp-ghost { background: #fff; color: #1b2a8f; border: 1px solid #d9dcec; }

/* ---------------------------------------------------------- article meta + share */
.ucp-article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 14px; font-size: 14px; color: #6b6f85; }
.ucp-article-meta a { color: #1b2a8f; font-weight: 600; text-decoration: none; }
.ucp-article-meta .ucp-cat { background: #eef0fb; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.ucp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 28px 0 8px; padding-top: 18px; border-top: 1px solid #ececf3; }
.ucp-share > span { font-size: 14px; color: #6b6f85; margin-right: 4px; }
.ucp-share a, .ucp-share button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid #e3e5ef; background: #fff; color: #1b2a8f; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
.ucp-share a:hover, .ucp-share button:hover { border-color: #1b2a8f; }
.ucp-share svg { width: 16px; height: 16px; fill: currentColor; }
.ucp-share .is-done { background: #e6f6ea; color: #1d6b32; border-color: #bfe6c9; }

/* ---------------------------------------------------------- WhatsApp button */
.ucp-wa { position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 12px; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(37, 211, 102, .35); transition: transform .2s; }
.ucp-wa:hover { transform: translateY(-2px); color: #fff; }
.ucp-wa svg { width: 26px; height: 26px; fill: #fff; }
@media (max-width: 767px) { .ucp-wa span { display: none; } .ucp-wa { padding: 12px; } }

/* ---------------------------------------------------------- search */
.ucp-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; color: #1b2a8f; margin-left: 4px; }
.ucp-search-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
#ucp-search { position: fixed; inset: 0; z-index: 10000; background: rgba(20, 22, 40, .55); backdrop-filter: blur(3px); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; }
#ucp-search[hidden] { display: none; }
.ucp-search-box { width: min(680px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.25); overflow: hidden; }
.ucp-search-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #ececf3; }
.ucp-search-head svg { width: 20px; height: 20px; stroke: #6b6f85; fill: none; stroke-width: 2; flex: none; }
.ucp-search-head input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 17px; padding: 8px 0; }
.ucp-search-head button { border: 0; background: #f1f2f7; border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; color: #4b4f66; }
.ucp-search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.ucp-search-hint { padding: 18px; margin: 0; color: #6b6f85; font-size: 14px; text-align: center; }
.ucp-search-item { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.ucp-search-item:hover, .ucp-search-item:focus { background: #f4f5fb; }
.ucp-search-item img, .ucp-search-noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #eef0fb; flex: none; }
.ucp-search-item small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #f4a11d; font-weight: 700; }
.ucp-search-item strong { display: block; color: #1b2a8f; font-size: 15px; line-height: 1.3; }
.ucp-search-item em { display: block; font-style: normal; font-size: 13px; color: #6b6f85; line-height: 1.35; }
body.ucp-search-open { overflow: hidden; }

/* ---------------------------------------------------------- category intro */
.ucp-cat-intro { max-width: 760px; margin: 0 auto 10px; color: #555a6e; }
