/* EziTechHub site stylesheet for new CSS (STACK #37, #42): loaded on every page by eth-landing.php.
 * 1. Header fix (all pages)  2. Ad landing pages /black-friday/, /student-laptops/, /business/ + empty-search block.
 * Brand: navy #22243A, red #D63438. Buttons reuse .eth-btn from eth-launch-style. */

/* ---------- 1. Header (STACK #42) ----------
 * ezi-header-logo-polish.php sets "#top .main_menu { right: 150px !important }" on a position:relative menu, which
 * pulls the menu 150px over the logo; and the menu is display:block, so the cart (ul#menu-item-shop, Enfold's
 * .cart_dropdown with its left/right divider lines) wrapped onto a second line under the header. Two ids outrank
 * those rules: the menu sits right of the logo, one row, cart inside the header. */
@media only screen and (min-width: 990px) {
  #top #header .main_menu { right: auto !important; left: auto !important; display: flex !important; align-items: center !important;
    justify-content: flex-end !important; flex: 1 1 auto !important; min-width: 0 !important; margin-left: 24px !important; }
  #top #header .main_menu .avia-menu { float: none !important; flex: 0 1 auto !important; min-width: 0 !important; }
  #top #header .main_menu > .avia-menu > ul.av-main-nav { flex-wrap: nowrap !important; gap: 0 !important; }
  #top #header .main_menu > .avia-menu > ul.av-main-nav > li { flex: 0 0 auto !important; }
  /* STACK #46: the cart is one more icon in the menu row, right after search: no boxed column, no divider lines. */
  #top #header .main_menu .cart_dropdown { position: relative !important; flex: 0 0 auto !important; float: none !important; top: 0 !important;
    margin: 0 !important; padding: 0 !important; width: auto !important; height: 116px !important; line-height: 116px !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important; }
  #top #header .main_menu .cart_dropdown .cart_dropdown_first { border: 0 !important; background: transparent !important; }
  #top #header .main_menu .cart_dropdown .cart_dropdown_link { display: flex !important; align-items: center !important; justify-content: center !important;
    width: auto !important; min-width: 40px !important; height: 116px !important; padding: 0 10px !important; border: 0 !important;
    background: transparent !important; color: #22243A !important; }
  #top #header .main_menu .cart_dropdown .cart_dropdown_link:hover { color: #B8272D !important; }
  #top #header .main_menu #menu-item-search > a { border: 0 !important; padding-right: 8px !important; }
  #top #header .main_menu .cart_dropdown .av-cart-counter { top: 34px !important; right: 0 !important; left: auto !important; }
}
/* Item count on the cart icon (Enfold adds .av-active-counter when the cart has items), all widths */
#top #header .cart_dropdown .av-cart-counter { min-width: 18px; height: 18px; padding: 0 5px !important; border-radius: 9px !important;
  background: #B8272D !important; color: #fff !important; font-size: 11px !important; font-weight: 700 !important; line-height: 18px !important;
  text-align: center; box-sizing: border-box; }
#top #header .cart_dropdown .cart_dropdown_link, #top #header .cart_dropdown { border-left: 0 !important; border-right: 0 !important; }
@media only screen and (min-width: 990px) and (max-width: 1365px) {
  #top #header .main_menu > .avia-menu > ul.av-main-nav > li > a { padding-left: 12px !important; padding-right: 12px !important; font-size: 16px !important; }
}
:root {
  --eth-ad-navy: #22243A;
  --eth-ad-red: #D63438;
  --eth-ad-ink: #2b2d42;
  --eth-ad-muted: #6B6E80;
  --eth-ad-line: #e4e5ec;
  --eth-ad-soft: #f5f6fa;
  --eth-ad-ok: #1e7b4a;
  --eth-ad-radius: 10px;
}

.eth-ad-hero { background: var(--eth-ad-navy); color: #fff; border-radius: var(--eth-ad-radius); padding: 28px 24px; margin: 0 0 24px; }
.eth-ad-hero h1, .eth-ad-hero h2 { color: #fff; margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
.eth-ad-hero p { color: #e8e9f2; margin: 0 0 14px; font-size: 17px; max-width: 46em; }
.eth-ad-hero .eth-btn { margin: 4px 8px 0 0; }
.eth-ad-hero__tag { display: inline-block; background: var(--eth-ad-red); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 4px; padding: 3px 8px; margin-bottom: 10px; }

.eth-ad-promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.eth-ad-promises li { background: var(--eth-ad-soft); border: 1px solid var(--eth-ad-line); border-radius: var(--eth-ad-radius); padding: 14px 16px;
  margin: 0; font-size: 15px; line-height: 1.45; color: var(--eth-ad-ink); }
.eth-ad-promises strong { display: block; color: var(--eth-ad-navy); margin-bottom: 2px; }

.eth-ad-codes { border: 2px dashed var(--eth-ad-red); border-radius: var(--eth-ad-radius); padding: 16px 18px; margin: 0 0 28px; background: #fff; }
.eth-ad-codes p { margin: 0 0 6px; }
.eth-ad-codes__lead { font-weight: 700; color: var(--eth-ad-navy); font-size: 18px; }
.eth-ad-codes ul { margin: 6px 0; padding: 0; list-style: none; }
.eth-ad-codes li { margin: 0 0 6px; }
.eth-ad-codes code { font-size: 17px; font-weight: 700; background: var(--eth-ad-soft); color: var(--eth-ad-red); border-radius: 4px; padding: 2px 8px; }
.eth-ad-codes__small { font-size: 13px; color: var(--eth-ad-muted); }

.eth-ad-section-title { color: var(--eth-ad-navy); margin: 28px 0 12px; }
.eth-ad-empty { background: var(--eth-ad-soft); border-radius: var(--eth-ad-radius); padding: 14px 16px; color: var(--eth-ad-ink); }

.eth-ad-band { margin: 0 0 28px; }
.eth-ad-band h2 { color: var(--eth-ad-navy); border-bottom: 2px solid var(--eth-ad-line); padding-bottom: 6px; margin: 0 0 14px; }
.eth-ad-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.eth-ad-jump li { margin: 0; }
.eth-ad-jump a { display: inline-block; border: 1px solid var(--eth-ad-navy); color: var(--eth-ad-navy); border-radius: 999px; padding: 6px 14px;
  text-decoration: none; font-weight: 600; font-size: 14px; }
.eth-ad-jump a:hover, .eth-ad-jump a:focus { background: var(--eth-ad-navy); color: #fff; }
.eth-ad-tips { background: var(--eth-ad-soft); border-left: 4px solid var(--eth-ad-red); border-radius: 0 var(--eth-ad-radius) var(--eth-ad-radius) 0;
  padding: 14px 18px; margin: 0 0 24px; }
.eth-ad-tips ul { margin: 6px 0 0 18px; }

.eth-ad-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; }
.eth-ad-tiles li { margin: 0; }
.eth-ad-tiles a { display: block; height: 100%; box-sizing: border-box; border: 1px solid var(--eth-ad-line); border-radius: var(--eth-ad-radius);
  padding: 16px; text-decoration: none; color: var(--eth-ad-ink); background: #fff; }
.eth-ad-tiles a:hover, .eth-ad-tiles a:focus { border-color: var(--eth-ad-navy); box-shadow: 0 2px 10px rgba(33, 34, 58, .08); }
.eth-ad-tiles strong { display: block; color: var(--eth-ad-navy); font-size: 17px; margin-bottom: 4px; }
.eth-ad-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 24px; }
.eth-ad-who > div { border-top: 3px solid var(--eth-ad-red); background: var(--eth-ad-soft); border-radius: 0 0 var(--eth-ad-radius) var(--eth-ad-radius); padding: 14px 16px; }
.eth-ad-who h3 { margin: 0 0 4px; color: var(--eth-ad-navy); font-size: 17px; }
.eth-ad-who p { margin: 0; }

.eth-quote { background: #fff; border: 1px solid var(--eth-ad-line); border-radius: var(--eth-ad-radius); padding: 20px; margin: 0 0 28px; max-width: 860px; }
.eth-quote__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.eth-quote p { margin: 0 0 12px; }
.eth-quote label { display: block; font-weight: 600; font-size: 14px; color: var(--eth-ad-ink); margin-bottom: 4px; }
.eth-quote input[type="text"], .eth-quote input[type="email"], .eth-quote input[type="tel"], .eth-quote input[type="number"],
.eth-quote input[type="date"], .eth-quote textarea { width: 100%; box-sizing: border-box; border: 1px solid #cfd1dc; border-radius: 6px;
  padding: 10px 12px; font-size: 16px; background: #fff; color: var(--eth-ad-ink); margin: 0; }
.eth-quote input:focus, .eth-quote textarea:focus { outline: 2px solid var(--eth-ad-navy); outline-offset: 1px; }
.eth-quote__consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.eth-quote__consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.eth-quote__privacy { font-size: 12px; color: var(--eth-ad-muted); }
.eth-quote__hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.eth-quote__status { min-height: 1.4em; font-weight: 600; }
.eth-quote__status.is-ok { color: var(--eth-ad-ok); }
.eth-quote__status.is-error { color: var(--eth-ad-red); }
.eth-quote button[disabled] { opacity: .6; cursor: wait; }

.eth-ad-source { background: var(--eth-ad-soft); border: 1px solid var(--eth-ad-line); border-radius: var(--eth-ad-radius); padding: 16px 18px; margin: 18px 0; }
.eth-ad-source p { margin: 0 0 8px; }
.eth-ad-source .eth-btn { margin: 4px 8px 0 0; }

@media (max-width: 767px) {
  .eth-ad-hero { padding: 20px 16px; }
  .eth-ad-hero h1, .eth-ad-hero h2 { font-size: 24px; }
  .eth-ad-hero p { font-size: 16px; }
  .eth-ad-hero .eth-btn, .eth-ad-source .eth-btn { display: block; width: 100%; text-align: center; margin: 8px 0 0; box-sizing: border-box; }
  .eth-quote { padding: 16px; }
  .eth-quote__grid { grid-template-columns: 1fr; }
  .eth-quote button[type="submit"] { width: 100%; }
}

/* Enfold colours headings and bullets lists inside .entry-content-wrapper with id-level selectors: match them here. */
#top .eth-ad-hero h1, #top .eth-ad-hero h2 { color: #fff; }
#top .eth-ad-hero p { color: #e8e9f2; }
#top .entry-content-wrapper ul.eth-ad-promises, #top .entry-content-wrapper ul.eth-ad-tiles, #top .entry-content-wrapper ul.eth-ad-jump,
#top .entry-content-wrapper .eth-ad-codes ul { list-style: none; margin-left: 0; padding-left: 0; }
#top .entry-content-wrapper ul.eth-ad-promises > li, #top .entry-content-wrapper ul.eth-ad-tiles > li, #top .entry-content-wrapper ul.eth-ad-jump > li,
#top .entry-content-wrapper .eth-ad-codes li { list-style: none; margin-left: 0; }
#top .eth-ad-promises li::before, #top .eth-ad-tiles li::before, #top .eth-ad-jump li::before { content: none; display: none; }

/* ---------- 2b. Landing pages in the shop's container (STACK #42): same max width and side padding as /shop/ ---------- */
body.eth-landing #main > .container_wrap > .container,
body.eth-landing #main .container_wrap_first > .container { max-width: 1280px !important; width: 100% !important; box-sizing: border-box !important;
  padding-left: 24px !important; padding-right: 24px !important; margin-left: auto !important; margin-right: auto !important; }
body.eth-landing #main .entry-content-wrapper { padding-left: 0 !important; padding-right: 0 !important; }
body.eth-landing .eth-ad-hero { margin-top: 24px; }
body.eth-landing .eth-ad-section-title { margin: 36px 0 16px; }
body.eth-landing .eth-ad-codes, body.eth-landing .eth-ad-deals, body.eth-landing .eth-ad-promises, body.eth-landing .eth-ad-bands,
body.eth-landing .eth-ad-tiles, body.eth-landing .eth-ad-who, body.eth-landing .eth-quote { margin-bottom: 32px; }
#top .eth-ad-promises strong, #top .eth-ad-tiles strong, #top .eth-ad-who h3, #top .eth-ad-codes__lead { color: #22243A !important; }
@media (max-width: 767px) {
  body.eth-landing #main > .container_wrap > .container, body.eth-landing #main .container_wrap_first > .container { padding-left: 16px !important; padding-right: 16px !important; }
  body.eth-landing .eth-ad-hero { margin-top: 16px; }
}
#top .entry-content-wrapper ul.eth-ad-promises > li { padding: 14px 16px !important; }
#top .entry-content-wrapper ul.eth-ad-tiles > li > a { padding: 16px !important; }

/* ---------- 3. Product cards (STACK #46) ----------
 * Whole image, never cropped: square white box, object-fit: contain, centred, small inner padding; every card's box is the
 * same size so rows line up. Shop/category grids (Enfold .thumbnail_container) get the same box; the older zz-premium /
 * zz-image-stage rules set fixed pixel heights, and "body#top:not(#eth)" (two ids) outranks them. */
body#top:not(#eth) ul.products li.product .thumbnail_container { height: auto !important; min-height: 0 !important; max-height: none !important;
  aspect-ratio: 1 / 1; width: 100% !important; padding: 12px !important; margin: 0 0 14px !important; background: #fff !important;
  border: 1px solid #F0ECEE; border-radius: 14px !important; display: flex !important; align-items: center !important; justify-content: center !important;
  overflow: hidden !important; box-sizing: border-box !important; }
body#top:not(#eth) ul.products li.product .thumbnail_container img { width: 100% !important; height: 100% !important; max-width: 100% !important;
  max-height: 100% !important; object-fit: contain !important; object-position: center !important; margin: 0 !important; padding: 0 !important;
  background: transparent !important; border-radius: 0 !important; }
/* Home "Featured" cards (zz-ezi-home-controlled-products) */
body#top:not(#eth) .ezi-ctrl-image { height: auto !important; aspect-ratio: 1 / 1; padding: 12px !important; background: #fff !important;
  border: 1px solid #F0ECEE; border-radius: 14px !important; box-sizing: border-box; }
body#top:not(#eth) .ezi-ctrl-image img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important;
  object-fit: contain !important; }

/* Deal cards on /black-friday/ and /student-laptops/ (eth_ad_card) */
#top .eth-deals-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
#top .eth-deals-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#top .entry-content-wrapper ul.eth-deals-grid > li { list-style: none; margin: 0; }
#top .eth-deals-grid > li::before { content: none; display: none; }
#top .eth-deal { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #ECE7EA; border-radius: 16px;
  padding: 12px 12px 16px; box-sizing: border-box; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
#top .eth-deal:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(34, 36, 58, .12); border-color: rgba(122, 31, 36, .25); }
#top .eth-deal:focus-within { outline: 3px solid #B8272D; outline-offset: 2px; }
#top .eth-deal__media { aspect-ratio: 1 / 1; background: #fff; border: 1px solid #F0ECEE; border-radius: 12px; padding: 12px; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; overflow: hidden; margin: 0 0 12px; }
#top .eth-deal__media img { width: 100%; height: 100%; object-fit: contain; object-position: center; margin: 0; border-radius: 0; }
#top .eth-deal h3.eth-deal__title { font-size: 15px; line-height: 1.35; font-weight: 700; letter-spacing: 0; text-transform: none; color: #22243A;
  margin: 0 0 8px; min-height: calc(1.35em * 3); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#top .eth-deal__link { color: inherit; text-decoration: none; }
#top .eth-deal__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 16px; }
#top .eth-deal__link:focus { outline: none; }
#top .eth-deal__price { font-size: 18px; font-weight: 800; color: #7A1F24; margin: 0 0 8px; line-height: 1.3; }
#top .eth-deal__price del { color: #6B6E80; font-size: 14px; font-weight: 500; margin-right: 6px; opacity: 1; }
#top .eth-deal__price ins { text-decoration: none; color: #B8272D; }
#top .eth-deal__stock { align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
#top .eth-deal__stock.is-in { background: #E7F6EE; color: #1E7B4A; }
#top .eth-deal__stock.is-low { background: #FFF4DE; color: #8A5A00; }
#top .eth-deal__stock.is-out { background: #F3F4F6; color: #6B6E80; }
#top .eth-deal__actions { margin-top: auto; padding-top: 12px; position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#top .eth-deal__actions--view { position: static; z-index: auto; }
#top .eth-deal .eth-deal__btn { display: block; flex: 1 1 100%; box-sizing: border-box; text-align: center; padding: 10px 12px; margin: 0;
  border-radius: 999px; border: 2px solid #7A1F24; background: #7A1F24; color: #fff; font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none; transition: background .15s ease, border-color .15s ease; }
#top .eth-deal .eth-deal__btn:hover, #top .eth-deal .eth-deal__btn:focus-visible { background: #B8272D; border-color: #B8272D; color: #fff; }
#top .eth-deal .eth-deal__btn:focus-visible { outline: 3px solid #22243A; outline-offset: 2px; }
#top .eth-deal .eth-deal__btn--view { background: #fff; color: #7A1F24; }
#top .eth-deal:hover .eth-deal__btn--view { background: #7A1F24; color: #fff; }
#top .eth-deal .eth-deal__btn.loading { opacity: .6; cursor: progress; }
#top .eth-deal .eth-deal__btn.added::after { content: " \2713"; }
#top .eth-deal .added_to_cart { flex: 1 1 100%; text-align: center; font-size: 13px; font-weight: 700; color: #22243A; text-decoration: underline; }
@media (max-width: 989px) { #top .eth-deals-grid, #top .eth-deals-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  #top .eth-deals-grid, #top .eth-deals-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  #top .eth-deal { padding: 8px 8px 12px; border-radius: 12px; }
  #top .eth-deal__media { padding: 8px; }
  #top .eth-deal h3.eth-deal__title { font-size: 13px; }
  #top .eth-deal__price { font-size: 15px; }
  #top .eth-deal .eth-deal__btn { padding: 9px 8px; font-size: 13px; }
}

/* ---------- 4. Promise tiles on the landing pages ([eth_promises], STACK #46) ---------- */
#top .eth-promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 32px; }
#top a.eth-promise { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid #ECE7EA; border-left: 4px solid #7A1F24;
  border-radius: 14px; padding: 16px 18px; text-decoration: none; color: #4B4E60; text-align: left;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
#top a.eth-promise:hover, #top a.eth-promise:focus-visible { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(34, 36, 58, .12);
  border-left-color: #B8272D; color: #4B4E60; }
#top a.eth-promise:focus-visible { outline: 3px solid #B8272D; outline-offset: 3px; }
#top .eth-promise__icon { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: #FBE9EC; display: flex; align-items: center; justify-content: center; }
#top .eth-promise__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#top .eth-promise__title { color: #22243A; font-weight: 700; font-size: 16px; line-height: 1.3; }
#top .eth-promise__text { font-size: 14px; line-height: 1.45; }
@media (max-width: 767px) { #top .eth-promises { grid-template-columns: 1fr; gap: 12px; } }
@media (prefers-reduced-motion: reduce) {
  #top .eth-deal, #top a.eth-promise { transition: none; }
  #top .eth-deal:hover, #top a.eth-promise:hover, #top a.eth-promise:focus-visible { transform: none; }
}
