/* Global mobile interaction hardening. Keep this layer page-agnostic. */

@media (max-width: 767px) {
  html body.exe-mobile-panel-ready:not(.exe-mobile-panel-open) #exe-mobile-menu-panel,
  html body.exe-mobile-panel-ready:not(.exe-mobile-panel-open) #exe-mobile-menu-panel * {
    pointer-events: none !important;
  }

  html body.exe-mobile-panel-ready:not(.exe-mobile-panel-open) #exe-mobile-menu-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  html body.exe-mobile-panel-ready.exe-mobile-panel-open #exe-mobile-menu-panel {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
  }

  html body.exe-mobile-panel-open #exe-mobile-menu-panel a,
  html body.exe-mobile-panel-open #exe-mobile-menu-panel button,
  html body.exe-mobile-panel-open #exe-mobile-menu-panel summary {
    pointer-events: auto !important;
  }

  body header .dgwt-wcas-search-submit,
  body header .dgwt-wcas-search-input {
    min-height: 44px !important;
  }

  body header .dgwt-wcas-search-submit {
    min-width: 44px !important;
    width: 44px !important;
  }

  body header .header-links > a,
  body header .header-links .custom-cart-icon > a,
  body header .header-links .exelence-cart-toggle,
  body #mega-menu-wrap-primary_menu .mega-menu-toggle {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  html body header .col-content-wrapper.header-links > a.exelence-account-entry,
  html body header .col-content-wrapper.header-links > a.exelence-wishlist-entry,
  html body header .col-content-wrapper.header-links > .custom-cart-icon,
  html body header .col-content-wrapper.header-links > .custom-cart-icon > .exelence-cart-toggle {
    box-sizing: border-box !important;
    flex: 0 0 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    min-width: 44px !important;
    width: 44px !important;
  }

  body .tinvwl_add_to_wishlist_button,
  body .tinv-wishlist .tinvwl_add_to_wishlist_button,
  body button[aria-label*="ulubion" i] {
    min-height: 44px !important;
    min-width: 44px !important;
  }

  body .archive-filter-checkbox label,
  body .woocommerce-widget-layered-nav-list a,
  body .wc-layered-nav-term a {
    align-items: center;
    display: flex;
    min-height: 44px;
  }

  body footer.exe-site-footer .exe-footer-accordion-column > .column-title {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    margin: 0 !important;
    min-height: 52px;
    outline-offset: 3px;
    touch-action: manipulation;
  }

  body footer.exe-site-footer .exe-footer-accordion-column > .column-title::after {
    color: var(--exe-gold, #a87828);
    content: "+";
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    margin-left: 18px;
  }

  body footer.exe-site-footer .exe-footer-accordion-column.is-open > .column-title::after {
    content: "−";
  }

  html body footer.exe-site-footer.exe-footer-accordion-ready .exe-footer-accordion-column:not(.is-open) > .footer-links {
    display: none !important;
  }

  html body footer.exe-site-footer.exe-footer-accordion-ready .exe-footer-accordion-column.is-open > .footer-links {
    display: block !important;
  }

  body footer.exe-site-footer .exe-footer-accordion-column > .footer-links {
    margin-top: 6px !important;
    padding-bottom: 18px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation {
    position: relative;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    min-height: 48px !important;
  }
}

/* FiboSearch results must stay above the sticky header icons. */
html body .dgwt-wcas-suggestions-wrapp,
html body .dgwt-wcas-details-wrapp {
  z-index: 2147483647 !important;
}

/* The WordPress toolbar can wrap to two rows around tablet portrait widths. */
@media (min-width: 783px) and (max-width: 900px) {
  html body.admin-bar.logged-in.wp-theme-exellence header {
    margin-top: max(0px, calc(var(--exe-admin-toolbar-bottom, 32px) - 32px)) !important;
    top: var(--exe-admin-toolbar-bottom, 32px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body #exe-mobile-menu-panel,
  html body .dgwt-wcas-suggestions-wrapp {
    transition: none !important;
  }
}

/*
 * Legacy technical screens keep their native WooCommerce / wishlist logic,
 * but receive a consistent, semantic page heading and spacing.
 */
body.exe-modern-utility-page .exe-utility-page-header {
  width: min(100% - 40px, 1180px);
  margin: clamp(32px, 5vw, 72px) auto clamp(24px, 3.5vw, 48px);
  text-align: center;
}

body.exe-modern-utility-page .exe-utility-page-kicker {
  margin: 0 0 10px;
  color: #78531a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

body.exe-modern-utility-page .exe-utility-page-title {
  margin: 0;
  color: #211a14;
  font-family: var(--exe-font-display, Georgia, serif);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.02;
}

body.exe-modern-utility-page .exe-utility-page-lead {
  width: min(100%, 680px);
  margin: 16px auto 0;
  color: #5d5348;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
}

body.exe-modern-utility-page .woocommerce.tinv-wishlist,
body.exe-modern-utility-page .checkout-choice-container,
body.exe-modern-utility-page form.woocommerce-checkout,
body.exe-modern-utility-page .exe-login-content {
  margin-top: 0;
}

body.exe-modern-utility-page .tinv-wishlist > .tinv-header {
  display: none;
}

@media (max-width: 767px) {
  body.exe-modern-utility-page .exe-utility-page-header {
    width: min(100% - 28px, 1180px);
    margin-top: 28px;
    margin-bottom: 22px;
  }

  body.exe-modern-utility-page .exe-utility-page-lead {
    font-size: 1rem;
  }
}
/* P1-01: fulfilment promise at the buying decision. */
.exe-delivery-summary {
  margin: 18px 0 0;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(145, 105, 50, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, #fffdf9 0%, #f7f0e5 100%);
  color: #2d251d;
  box-shadow: 0 14px 34px rgba(68, 50, 30, 0.08);
}

.exe-delivery-summary__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.exe-delivery-summary__eyebrow {
  margin: 0;
  color: #8b672f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.exe-delivery-summary h2 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(18px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.2;
}

.exe-delivery-summary__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exe-delivery-summary__facts li {
  display: grid;
  grid-template-columns: minmax(96px, 0.7fr) 1.3fr;
  align-items: start;
  gap: 12px;
  min-width: 0;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.exe-delivery-summary__facts strong,
.exe-delivery-summary__facts span {
  display: block;
}

.exe-delivery-summary__facts strong {
  margin: 0;
  color: #6e4b1f;
  font-size: 14px;
}

.exe-delivery-summary__facts span,
.exe-delivery-summary__note,
.exe-delivery-summary__link {
  font-size: 12px;
  line-height: 1.55;
}

.exe-delivery-summary__facts span,
.exe-delivery-summary__note {
  color: #5f554a;
}

.exe-delivery-summary__note {
  margin: 14px 0 8px;
}

.exe-delivery-summary__link {
  display: inline-flex;
  color: #6e4b1f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(110, 75, 31, 0.35);
  text-underline-offset: 4px;
}

.exe-delivery-summary__link:hover,
.exe-delivery-summary__link:focus-visible {
  color: #3f2b12;
  text-decoration-color: currentColor;
}

@media (max-width: 780px) {
  .exe-delivery-summary__head {
    display: block;
  }

  .exe-delivery-summary h2 {
    margin-top: 5px;
  }

  .exe-delivery-summary__facts li {
    grid-template-columns: minmax(104px, 0.65fr) 1.35fr;
  }
}

@media (max-width: 420px) {
  .exe-delivery-summary__facts li {
    display: block;
  }

  .exe-delivery-summary__facts strong {
    margin-bottom: 4px;
  }
}

/* P1-03: helpful search recovery instead of a dead-end no-results message. */
.dgwt-wcas-suggestion-nores .exe-search-empty {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 5px 2px;
  color: #3e342a;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

.dgwt-wcas-suggestion-nores .exe-search-empty p {
  margin: 0 0 8px;
  padding: 0;
}

.dgwt-wcas-suggestion-nores .exe-search-empty p:first-child {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(145, 105, 50, 0.22);
  color: #211a14;
}

.dgwt-wcas-suggestion-nores .exe-search-empty__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.dgwt-wcas-suggestion-nores .exe-search-empty__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(145, 105, 50, 0.34);
  border-radius: 999px;
  color: #6e4b1f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  justify-content: center;
  text-align: center;
}

.dgwt-wcas-suggestion-nores .exe-search-empty__actions a:first-child {
  border-color: #7a5522;
  background: #7a5522;
  color: #fff;
}

.exe-catalog-empty-state {
  max-width: 760px;
  margin: clamp(28px, 5vw, 72px) auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(145, 105, 50, 0.22);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdf9 0%, #f7f0e5 100%);
  box-shadow: 0 18px 48px rgba(68, 50, 30, 0.08);
  color: #4d4237;
  text-align: center;
}

.exe-catalog-empty-state__eyebrow {
  margin: 0 0 9px;
  color: #8b672f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.exe-catalog-empty-state h2 {
  margin: 0 0 14px;
  color: #211a14;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.08;
}

.exe-catalog-empty-state > p:not(.exe-catalog-empty-state__eyebrow) {
  max-width: 580px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.7;
}

.exe-catalog-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.exe-catalog-empty-state__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid #7a5522;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.exe-catalog-empty-state__primary {
  background: #7a5522;
  color: #fff;
}

.exe-catalog-empty-state__secondary {
  background: transparent;
  color: #6e4b1f;
}

.exe-catalog-empty-state__actions a:hover,
.exe-catalog-empty-state__actions a:focus-visible {
  border-color: #3f2b12;
  background: #3f2b12;
  color: #fff;
}

@media (max-width: 520px) {
  .dgwt-wcas-suggestion-nores .exe-search-empty__actions,
  .exe-catalog-empty-state__actions {
    display: grid;
  }

  .dgwt-wcas-suggestion-nores .exe-search-empty__actions a,
  .exe-catalog-empty-state__actions a {
    width: 100%;
  }
}

/* P1-13: keyboard navigation, landmarks, contrast and reduced motion. */
.exe-skip-link {
  position: fixed;
  z-index: 1000001;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #211a14;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .16s ease;
}

.exe-skip-link:focus,
.exe-skip-link:focus-visible {
  color: #fff;
  outline: 3px solid #d6a94d;
  outline-offset: 2px;
  transform: translateY(0);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #1d5f74 !important;
  outline-offset: 3px !important;
  box-shadow: none;
}

header :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
footer :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline-color: #8a5b16 !important;
}

html body header #mega-menu-wrap-primary_menu #mega-menu-primary_menu > li.mega-menu-item > a.mega-menu-link:focus-visible {
  border-radius: 3px;
  outline: 3px solid #1d5f74 !important;
  outline-offset: 3px !important;
}

body.home .exe-hero-kicker {
  color: #78531a !important;
}

.exe-site-footer .exe-footer-legal,
.exe-site-footer .exe-footer-copyright,
.exe-site-footer .exe-footer-legal > span,
.exe-site-footer .exe-footer-legal a {
  color: #5d5348 !important;
}

.product-box .promo-badge.new,
.exe-catalog-products .promo-badge.new,
body.home .exe-products-section .promo-badge.new {
  background: #596846 !important;
  color: #fff !important;
}

body.page-template-kontakt header .top-bar,
body.page-template-kontakt header .top-bar a,
body.page-template-kontakt header .top-bar span {
  color: #3f2b12 !important;
}

.page-template-kontakt .text-col .exe-contact-title {
  font-size: 3rem;
}

.page-template-kontakt .form-wrapper .wpforms-submit,
.page-template-kontakt .form-wrapper button[type="submit"] {
  border-color: #6e4b1f !important;
  background: #6e4b1f !important;
  color: #fff !important;
}

.page-template-kontakt .form-wrapper .wpforms-submit:hover,
.page-template-kontakt .form-wrapper .wpforms-submit:focus-visible,
.page-template-kontakt .form-wrapper button[type="submit"]:hover,
.page-template-kontakt .form-wrapper button[type="submit"]:focus-visible {
  border-color: #3f2b12 !important;
  background: #3f2b12 !important;
  color: #fff !important;
}

@media (max-width: 767px) {
  .page-template-kontakt .text-col .exe-contact-title {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
