/*
 * Lavprisfolie.dk redesign
 * Clean, responsive and performance-focused. No decorative animations.
 */

:root {
  --lp-yellow: #ffc30e;
  --lp-yellow-dark: #e0aa00;
  --lp-ink: #1f1f1f;
  --lp-muted: #656565;
  --lp-line: #dedede;
  --lp-soft: #f6f6f4;
  --lp-white: #ffffff;
  --lp-green: #367f20;
  --lp-radius: 8px;
  --lp-shell: 1440px;
}

html { scroll-behavior: auto !important; }
*, *::before, *::after { box-sizing: border-box; animation: none !important; transition: none !important; }
body { margin: 0; background: #fff; color: var(--lp-ink); font-family: Arial, Helvetica, sans-serif; }
img { max-width: 100%; }
button, input { font: inherit; }
.lp-shell { width: min(100% - 40px, var(--lp-shell)); margin-inline: auto; }
.lp-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

/* Header */
.lp-header { position: relative; z-index: 1000; width: 100%; background: var(--lp-white); border-bottom: 1px solid var(--lp-line); }
.lp-topbar { background: var(--lp-ink); color: #fff; }
.lp-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.lp-benefits, .lp-contact { display: flex; align-items: center; gap: 24px; }
.lp-benefits span, .lp-contact a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; white-space: nowrap; }
.lp-benefits i, .lp-contact i { color: var(--lp-yellow); }
.lp-main-header { padding: 20px 0; background: #fff; }
.lp-header-grid { display: grid; grid-template-columns: minmax(190px, 250px) minmax(320px, 1fr) auto; align-items: center; gap: 28px; }
.lp-logo { display: block; line-height: 0; }
.lp-logo img { display: block; width: 100%; max-width: 230px; max-height: 72px; object-fit: contain; object-position: left center; }
.lp-search-form { min-width: 0; margin: 0; }
.header_search.lp-search { position: relative; display: grid; min-width: 0; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; width: 100%; min-height: 52px; border: 2px solid var(--lp-ink); border-radius: var(--lp-radius); background: #fff; }
.lp-search-icon { grid-column: 1; text-align: center; color: #555; }
.header_search.lp-search .header_search_field { grid-column: 2; width: 100%; min-width: 0; height: 48px; padding: 0 12px 0 0; border: 0; outline: 0; background: transparent; color: var(--lp-ink); font-size: 16px; }
.header_search.lp-search .header_search_field::placeholder { color: #777; }
.header_search.lp-search .header_search_field:focus { box-shadow: none; }
.lp-search-button { align-self: stretch; width: auto; height: auto; min-width: 92px; padding: 0 24px; border: 0; border-left: 2px solid var(--lp-ink); border-radius: 0 5px 5px 0; background: var(--lp-yellow); color: var(--lp-ink); font-weight: 800; cursor: pointer; }
.lp-search-button:hover, .lp-search-button:focus-visible { background: var(--lp-yellow-dark); }
.lp-header-actions { display: flex; align-items: stretch; gap: 10px; }
.lp-action, .lp-mobile-trigger { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; color: var(--lp-ink); text-decoration: none; font-weight: 700; cursor: pointer; white-space: nowrap; }
.lp-action:hover, .lp-action:focus-visible { border-color: var(--lp-ink); color: var(--lp-ink); }
.lp-cart { border: 2px solid var(--lp-ink); background: var(--lp-yellow); }
.lp-cart:hover, .lp-cart:focus-visible { background: var(--lp-yellow-dark); }
.lp-cart-count { display: inline-flex; min-width: 23px; height: 23px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; background: var(--lp-ink); color: #fff; font-size: 12px; line-height: 1; }
.lp-cart-count::after { content: none !important; display: none !important; }
.lp-mobile-trigger { display: none; border: 2px solid var(--lp-ink); background: #fff; }

/* Autocomplete */
.header_search.lp-search #results-container { position: absolute; top: calc(100% + 7px); left: 0; right: 0; z-index: 1200; display: none; max-height: 480px; overflow: auto; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); background: #fff; width: auto; padding: 0; box-shadow: 0 12px 28px rgba(0,0,0,.14); }
.header_search.lp-search #results-container:empty { display: none !important; }
.header_search.lp-search #results-container .result { margin: 0; border: 0; border-bottom: 1px solid #ececec; border-radius: 0; }
.header_search.lp-search #results-container .result:last-child { border-bottom: 0; }

/* Desktop navigation */
.lp-desktop-nav { background: var(--lp-yellow); border-top: 1px solid rgba(0,0,0,.12); }
.lp-nav-list { position: relative; display: flex; align-items: stretch; gap: 0; min-height: 56px; margin: 0; padding: 0; list-style: none; }
.lp-nav-list > li { position: static; display: flex; align-items: stretch; }
.lp-nav-list > li > a { display: flex; align-items: center; padding: 0 24px; color: var(--lp-ink); text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: .015em; }
.lp-nav-list > li > a:hover, .lp-nav-list > li > a:focus-visible, .lp-nav-list > li:focus-within > a { background: rgba(255,255,255,.58); color: #000; }
.lp-nav-dropdown > button { width: 34px; padding: 0 12px 0 0; border: 0; background: transparent; color: var(--lp-ink); cursor: pointer; }
.lp-nav-dropdown:hover, .lp-nav-dropdown:focus-within { background: rgba(255,255,255,.58); }
.lp-nav-account { margin-left: auto; border-left: 1px solid rgba(0,0,0,.2); }
.lp-nav-account a { gap: 9px; }
.lp-mega { position: absolute; top: 100%; left: 0; right: 0; z-index: 1100; display: none; width: 100%; padding: 28px; border: 1px solid var(--lp-line); border-top: 4px solid var(--lp-ink); border-radius: 0 0 10px 10px; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.15); }
.lp-nav-dropdown:hover > .lp-mega, .lp-nav-dropdown:focus-within > .lp-mega, .lp-nav-dropdown.lp-force-open > .lp-mega { display: grid; }
.lp-mega-machines { grid-template-columns: minmax(240px, 270px) minmax(0, 1fr); gap: 30px; }
.lp-mega-materials { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 30px; }
.lp-mega-accessories { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 30px; }
.lp-mega-intro, .lp-mega-feature { padding: 24px; border-radius: var(--lp-radius); background: var(--lp-soft); }
.lp-eyebrow { display: block; margin-bottom: 8px; color: #7a5b00; font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.lp-mega h2, .lp-mega h3 { margin: 0 0 10px; color: var(--lp-ink); line-height: 1.2; }
.lp-mega h2 { font-size: 24px; }
.lp-mega h3 { padding-bottom: 10px; border-bottom: 2px solid var(--lp-yellow); font-size: 16px; }
.lp-mega p { margin: 0 0 18px; color: var(--lp-muted); line-height: 1.55; }
.lp-mega-cta { display: inline-flex !important; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px !important; border: 2px solid var(--lp-ink); border-radius: 6px; background: var(--lp-yellow); color: var(--lp-ink) !important; font-weight: 800 !important; text-decoration: none; }
.lp-mega-links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.lp-mega-links > a { display: flex; align-items: center; gap: 13px; min-height: 74px; padding: 12px 14px; border: 1px solid #e7e7e7; border-radius: 6px; color: var(--lp-ink); text-decoration: none; }
.lp-mega-links > a:hover, .lp-mega-links > a:focus-visible { border-color: var(--lp-ink); background: #fafafa; }
.lp-mega-links i { width: 24px; color: #8b6800; text-align: center; font-size: 19px; }
.lp-mega-links span { display: flex; flex-direction: column; gap: 4px; }
.lp-mega-links strong { font-size: 14px; }
.lp-mega-links small { color: var(--lp-muted); font-size: 12px; }
.lp-mega-column { display: flex; flex-direction: column; align-items: stretch; }
.lp-mega-column > a { padding: 7px 0; color: #3a3a3a; text-decoration: none; font-size: 14px; line-height: 1.25; }
.lp-mega-column > a:hover, .lp-mega-column > a:focus-visible { color: #000; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lp-mega-feature { background: var(--lp-ink); color: #fff; }
.lp-mega-feature h3 { color: #fff; }
.lp-mega-feature p { color: #ddd; }

/* Mobile navigation */
.lp-mobile-nav { border-top: 1px solid var(--lp-line); background: #fff; }
.lp-mobile-nav[hidden] { display: none !important; }
.lp-mobile-nav-inner { padding: 8px 20px 20px; }
.lp-mobile-group, .lp-mobile-direct { border-bottom: 1px solid var(--lp-line); }
.lp-mobile-row { display: grid; grid-template-columns: 1fr 54px; align-items: stretch; }
.lp-mobile-row > a, .lp-mobile-direct { display: flex; min-height: 54px; align-items: center; color: var(--lp-ink); text-decoration: none; font-weight: 800; }
.lp-mobile-row > button { border: 0; border-left: 1px solid var(--lp-line); background: #fff; color: var(--lp-ink); cursor: pointer; }
.lp-mobile-group ul { margin: 0; padding: 4px 0 12px 16px; list-style: none; border-top: 1px solid #eee; background: #fafafa; }
.lp-mobile-group ul[hidden] { display: none !important; }
.lp-mobile-group li a { display: block; padding: 10px 12px; color: #333; text-decoration: none; font-size: 14px; }
.lp-mobile-account { gap: 10px; border: 2px solid var(--lp-ink); border-radius: 6px; margin-top: 14px; padding: 0 16px; background: var(--lp-yellow); }

/* Content */
.site_main { margin: 0; padding: 22px 0 52px; }
.content_container { width: min(100% - 40px, var(--lp-shell)); }
.content_wrapper { margin: 0; }
.custom_breadcrumb { margin: 0 0 22px; padding: 0; }
.breadcrumb_label .breadcrumbs_links a { color: #4d4d4d; }
.breadcrumb_label .breadcrumbs_links a:last-of-type, .breadcrumb_label .breadcrumbs_links a[aria-current="page"] { color: #765900; }
.white-box { border-radius: var(--lp-radius); }

/* Strong, consistent CTA buttons without movement effects */
.addToBasket, .btn_addToBasket, .btn-primary-action, #loginbtn, .newsletter_button, button.checkout-btn, input[type="submit"].btn-primary {
  border: 2px solid var(--lp-ink) !important;
  border-radius: 6px !important;
  background: var(--lp-yellow) !important;
  color: var(--lp-ink) !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  transform: none !important;
}
.addToBasket:hover, .btn_addToBasket:hover, .btn-primary-action:hover, #loginbtn:hover, .newsletter_button:hover { background: var(--lp-yellow-dark) !important; color: #000 !important; transform: none !important; }
.read_more_btn { border-radius: 6px; background: var(--lp-ink); }
.category-card:hover, .single-product:hover, .related-products > .slick-list > .slick-track > .single-product > .single-product-container:hover, #checkoutActionContainer a:hover img { transform: none !important; }

/* Footer */
.footer_container { align-items: stretch; background: var(--lp-ink); color: #fff; }
.footer_newsletter { min-height: 112px; padding: 24px 20px; background: var(--lp-yellow); color: var(--lp-ink); }
.footer_newsletter > div { width: min(100%, var(--lp-shell)); justify-content: center; }
.footer_newsletter .newsletter_button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; background: var(--lp-ink) !important; color: #fff !important; text-decoration: none; }
.footer_newsletter .newsletter_button:hover { background: #000 !important; color: #fff !important; }
.footer_flex { width: min(100% - 40px, var(--lp-shell)); margin: 0 auto; padding: 52px 0; gap: 46px; color: #fff; }
.footer_left { gap: 42px; }
.footer_container .footer_title { color: #fff; }
.footer_container .footer_title::after { background: var(--lp-yellow); }
.footer_container a, .footer_container p, .footer_container address, .footer_container strong { color: #e8e8e8; }
.footer_container a:hover { color: var(--lp-yellow); }
.footer_right svg, .footer_icon { fill: var(--lp-yellow); color: var(--lp-yellow); }
.footer-link { width: 100%; margin: 0; padding: 24px 20px 32px; border-top: 1px solid #3c3c3c; background: #171717; text-align: center; }
.footer-link p { margin-top: 0; }
.footer-link > div { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-link img { max-height: 38px; width: auto; }

/* Remove expensive decorative effects from inherited templates */
.product-card, .category-card, .single-product, .related_product, .result, .DM_ProductImage { box-shadow: none; }
.fa-spin, .searchbar-loader i { animation: none !important; }

@media (max-width: 1180px) {
  .lp-topbar-inner { justify-content: center; }
  .lp-benefits span:nth-child(2) { display: none; }
  .lp-header-grid { grid-template-columns: 190px minmax(260px,1fr) auto; gap: 18px; }
  .lp-action { padding-inline: 13px; }
  .lp-account span { display: none; }
  .lp-nav-list > li > a { padding-inline: 18px; }
}

@media (max-width: 960px) {
  .lp-shell { width: min(100% - 28px, var(--lp-shell)); }
  .lp-topbar { display: none; }
  .lp-main-header { padding: 14px 0; }
  .lp-header-grid { grid-template-columns: minmax(150px, 1fr) auto; gap: 12px; }
  .lp-logo img { max-width: 205px; max-height: 58px; }
  .lp-search-form { grid-column: 1 / -1; grid-row: 2; }
  .lp-header-actions { grid-column: 2; grid-row: 1; }
  .lp-account { display: none; }
  .lp-mobile-trigger { display: inline-flex; }
  .lp-desktop-nav { display: none; }
  .site_main { padding-top: 18px; }
  .content_container { width: min(100% - 28px, var(--lp-shell)); }
}

@media (max-width: 620px) {
  .lp-header-grid { grid-template-columns: minmax(120px,1fr) auto; }
  .lp-logo img { max-width: 170px; }
  .lp-action, .lp-mobile-trigger { min-height: 46px; padding-inline: 12px; }
  .lp-cart > span { display: none; }
  .header_search.lp-search { grid-template-columns: 38px minmax(0,1fr) auto; min-height: 48px; }
  .header_search.lp-search .header_search_field { height: 44px; font-size: 15px; }
  .lp-search-button { min-width: 70px; padding-inline: 15px; }
  .lp-mobile-nav-inner { padding-inline: 14px; }
  .content_container { width: min(100% - 22px, var(--lp-shell)); }
  .footer_flex { width: min(100% - 28px, var(--lp-shell)); padding: 38px 0; }
}

@media (max-width: 380px) {
  .lp-logo img { max-width: 145px; }
  .lp-cart { padding-inline: 9px; }
  .lp-mobile-trigger span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Mega-menu: match the complete inner navigation width. */
.lp-desktop-nav > .lp-shell {
  position: relative !important;
}

.lp-desktop-nav .lp-nav-list,
.lp-desktop-nav .lp-nav-list > li {
  position: static !important;
}

.lp-desktop-nav .lp-nav-list > li > .lp-mega,
.lp-desktop-nav .lp-nav-list > li > .lp-mega-machines,
.lp-desktop-nav .lp-nav-list > li > .lp-mega-materials,
.lp-desktop-nav .lp-nav-list > li > .lp-mega-accessories {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
