/* Londus Mart V3000 — route-based storefront architecture. */

/* Native, predictable text-entry behaviour. */
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
textarea,
[contenteditable="true"]{
  cursor:text!important;
  caret-color:#10222c!important;
}
input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
textarea,
select,
.search-box,
.search-box input{
  background:#fff!important;
}

/* A shorter, calmer global header with five primary destinations. */
.header-main{min-height:92px;grid-template-columns:176px minmax(280px,1fr) auto;gap:22px}
.brand img{width:154px;height:82px;object-fit:contain}
.nav-inner{min-height:44px;gap:38px}
.nav-inner a{position:relative;padding:12px 2px;font-size:13px}
.nav-inner a[aria-current="page"],
.nav-inner a:hover{color:var(--blue)}
.nav-inner a[aria-current="page"]::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:var(--orange)
}
.contact-shortcut.desktop-only:not(.whatsapp-chat-button){display:none}

/* The homepage is a launchpad, not a duplicate catalogue or contact page. */
body.home-page-v3000 #shop,
body.home-page-v3000 #contact{display:none!important}
.hero{min-height:470px}
.section{padding-block:62px}
.featured-section .featured-grid{grid-template-columns:repeat(3,1fr)}
.featured-section .product-card:nth-child(n+7){display:none}
.featured-section .card-actions button:disabled{display:none}
.featured-section .card-actions:has(button:disabled){grid-template-columns:1fr}
.wholesale-banner{margin-top:64px}

/* Public catalogue pages are normal pages, never modal content. */
.standalone-page .topbar[hidden],
.standalone-page .site-header[hidden],
.standalone-page footer[hidden],
.standalone-page .shop-results-controls[hidden]{display:block!important}
.standalone-page .site-header[hidden]{display:block!important}
.standalone-page footer[hidden]{display:block!important}
.standalone-page .shop-results-controls[hidden]{display:flex!important}
.standalone-main{min-height:55vh;padding:52px 0 76px}
.standalone-title-row{margin-bottom:24px}
.page-close-button,.product-header-close{display:none!important}
.standalone-title-row>div{max-width:760px}

/* Categories belong in Shop and clearly show the active selection. */
.shop-category-nav{
  display:flex;gap:8px;flex-wrap:wrap;
  margin-block:0 24px;
  margin-inline:auto;
}
.shop-category-nav a{
  min-height:38px;padding:8px 13px;display:inline-flex;align-items:center;border:1px solid var(--line);
  border-radius:999px;background:#fff;color:var(--ink);font-size:12px;font-weight:750
}
.shop-category-nav a:hover,.shop-category-nav a.active{
  border-color:var(--blue);background:var(--blue-soft);color:var(--blue);box-shadow:inset 0 0 0 1px var(--blue)
}
.shop-results-controls{
  align-items:center;justify-content:flex-start;gap:18px;
  margin-bottom:22px;padding:0;border:0;border-radius:0;background:transparent
}
.shop-results-controls .order-mode{width:220px;flex:0 0 220px;margin:0}
.shop-mode-notice{max-width:760px;margin:0}
.standalone-product-section{padding-top:4px}
.standalone-product-section .product-image img{
  width:88%;height:84%;padding:0;object-fit:contain;object-position:center
}
.standalone-product-section .product-info h3{min-height:2.7em}
.standalone-product-section .pack{min-height:3.2em}
.shop-loading-card{min-height:390px;padding:14px;pointer-events:none}
.shop-loading-image,.shop-loading-line{
  display:block;border-radius:9px;background:linear-gradient(100deg,#eceae5 20%,#f8f7f4 40%,#eceae5 60%);
  background-size:220% 100%;animation:shop-loading 1.25s ease-in-out infinite
}
.shop-loading-image{height:220px;margin-bottom:18px}
.shop-loading-line{height:13px;margin:10px 0}
.shop-loading-line.short{width:35%}
.shop-loading-line.medium{width:68%}
@keyframes shop-loading{to{background-position-x:-220%}}

/* Product pages retain the complete storefront context. */
.product-page-main{padding-top:34px}
.product-breadcrumbs{margin-bottom:20px}
.product-page-panel{box-shadow:0 18px 48px rgba(35,45,52,.08)}
.product-page-facts div:has(#productAvailabilityText){display:none}
.product-page-facts:has(div:only-child){grid-template-columns:1fr}
.product-page-secondary-actions .button.secondary{display:none}
.product-page-mode-note{max-width:620px}
#productAddButton[hidden]{display:none!important}
.payment-result-card{max-width:720px;margin:40px auto;padding:48px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:var(--shadow)}
.payment-result-card h1{margin:10px 0 12px;font:700 clamp(38px,5vw,58px)/1.05 Georgia,"Times New Roman",serif}
.payment-result-card p{color:var(--muted)}

/* Do not publish internal stock language. Every card retains a useful action. */
.stock-pill{display:none!important}
.card-actions button:disabled{display:none}
.card-actions:has(button:disabled){grid-template-columns:1fr}

/* Retire every remnant of the iframe/modal-page architecture. */
.londus-page-modal,.londus-page-modal-frame,.londus-page-modal-toolbar{display:none!important}
html.londus-page-modal-open,html.londus-page-modal-open body{overflow:auto!important}

@media(max-width:1050px){
  .featured-section .featured-grid{grid-template-columns:repeat(2,1fr)}
  .header-main{grid-template-columns:145px minmax(250px,1fr) auto}
}
@media(max-width:850px){
  .header-main{min-height:76px;grid-template-columns:42px minmax(0,1fr) auto;gap:8px}
  .header-main .search-box{grid-column:1/-1;margin-bottom:12px}
  .brand img{width:128px;height:70px}
  .main-nav .nav-inner{justify-content:flex-start;gap:0}
  .main-nav .nav-inner a{padding:12px 20px}
  .standalone-main{padding-top:34px}
}
@media(max-width:640px){
  .topbar{display:none}
  .featured-section .featured-grid{grid-template-columns:1fr}
  .hero{min-height:auto}
  .shop-category-nav{flex-wrap:nowrap;overflow-x:auto;padding:2px 2px 8px}
  .shop-category-nav a{white-space:nowrap}
  .shop-results-controls{align-items:stretch;flex-direction:column}
  .shop-results-controls .order-mode{width:100%;flex-basis:auto}
  .standalone-product-section .product-info h3,
  .standalone-product-section .pack{min-height:0}
}

/* V3000.5: state-safe catalogue controls and a compact, action-led checkout flow */
.checkout-dialog{
  width:min(820px,calc(100vw - 28px));
  max-width:calc(100vw - 28px);
  max-height:calc(100dvh - 18px);
  padding:26px;
  overscroll-behavior:contain;
}
.checkout-heading,.checkout-layout{width:100%;max-width:720px;margin-inline:auto}
.checkout-heading{padding-right:46px}
.checkout-heading h2{margin:5px 0 6px;font-size:clamp(30px,4vw,36px);line-height:1.08}
.checkout-heading p{margin-bottom:18px}
.checkout-layout{display:block}
#checkoutForm{gap:14px}
.checkout-section{padding:18px;gap:13px;box-shadow:0 5px 18px rgba(27,42,51,.035)}
.checkout-primary-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.checkout-primary-details label,
.checkout-optional-details label{align-content:start}
.checkout-field-label{display:block;min-height:15px}
.checkout-field-label small{margin-left:5px;color:var(--muted);font-weight:600}
.checkout-optional-details{border-top:1px solid var(--line);padding-top:10px}
.checkout-optional-details summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-height:28px;color:var(--blue);font-size:11px;font-weight:800;cursor:pointer;list-style:none
}
.checkout-optional-details summary::-webkit-details-marker{display:none}
.checkout-optional-details summary::after{content:"+";font-size:18px;font-weight:500;line-height:1}
.checkout-optional-details[open] summary::after{content:"−"}
.checkout-optional-details summary span{margin-left:auto;color:var(--muted);font-size:10px;font-weight:600}
.checkout-optional-details .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;margin-top:12px;gap:14px}
.fulfilment-fieldset.fulfilment-toggle{
  display:grid;grid-template-columns:1fr 1fr;gap:7px;padding:5px;
  border:1px solid var(--line);border-radius:12px;background:#f5f4f1
}
.fulfilment-toggle .choice{
  position:relative;display:grid!important;grid-template-columns:1fr!important;
  place-items:center!important;min-height:64px;padding:11px!important;text-align:center;
  border:1px solid transparent;border-radius:9px;background:transparent;cursor:pointer
}
.fulfilment-toggle .choice input{position:absolute;opacity:0;pointer-events:none}
.fulfilment-toggle .choice span{align-items:center}
.fulfilment-toggle .choice b{font-size:13px}
.fulfilment-toggle .choice:has(input:checked){
  border-color:#b8cbd8;background:#fff;box-shadow:0 2px 8px rgba(18,45,61,.08);color:var(--blue)
}
.fulfilment-toggle .choice:has(input:focus-visible){outline:3px solid rgba(14,93,146,.2);outline-offset:2px}
.delivery-address-fields{display:grid;gap:10px}
.collection-location{padding:15px 16px;border:1px solid #bfd4c6;border-radius:11px;background:#f2f8f4}
.collection-location>span{display:block;color:#3e7250;font-size:9px;font-weight:850;letter-spacing:.11em}
.collection-location strong{display:block;margin:4px 0 2px;color:#173d27;font-size:18px;letter-spacing:.04em}
.collection-location p{margin:0;color:#53655a;font-size:11px;line-height:1.5}
.form-help-split{display:flex;justify-content:space-between;gap:12px}
.checkout-payment-section .checkout-summary{position:static;top:auto;padding:16px;border:1px solid var(--line);background:#f7f5f1}
.checkout-payment-section .checkout-summary summary{
  display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none;
  color:var(--ink);font-size:14px;font-weight:800
}
.checkout-payment-section .checkout-summary summary::-webkit-details-marker{display:none}
.checkout-payment-section .checkout-summary summary::after{content:"+";order:3;color:var(--blue);font-size:18px;line-height:1}
.checkout-payment-section .checkout-summary[open] summary::after{content:"−"}
.checkout-payment-section .checkout-summary summary small{margin-left:auto;color:var(--muted);font-size:11px;font-weight:700}
#checkoutItems{max-height:160px;margin-top:11px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.checkout-submit-dock{
  position:sticky;bottom:-26px;z-index:4;margin:0 -1px -26px;padding:12px 18px 18px;
  border-top:1px solid var(--line);border-radius:14px 14px 0 0;background:rgba(255,255,255,.97);
  box-shadow:0 -12px 28px rgba(27,42,51,.09);backdrop-filter:blur(8px)
}
.checkout-actions{grid-template-columns:1fr 1fr;gap:10px}
.checkout-actions:has(#emailOrderButton[hidden]){grid-template-columns:1fr}
.checkout-actions .button{min-height:48px;margin:0}
.checkout-submit-dock .form-status{margin:8px 0 0}
.basket-footer #basketHelper.wholesale-progress{
  padding:10px 11px;border:1px solid #c8d9e5;border-radius:9px;background:#f0f7fb;color:#174867;font-weight:750;line-height:1.45
}

@media(max-width:680px){
  .checkout-dialog{width:calc(100vw - 12px);max-width:calc(100vw - 12px);padding:20px 13px}
  .checkout-section{padding:14px}
  .checkout-primary-details,
  .checkout-optional-details .form-grid{grid-template-columns:1fr}
  .checkout-actions{grid-template-columns:1fr}
  .checkout-submit-dock{bottom:-20px;margin-bottom:-20px;padding:10px 12px 13px}
  #checkoutItems{max-height:130px}
}
