:root{--yellow:#FFD400;--yellow-d:#E6BF00;--ink:#111;--ink-2:#2a2a2a;--white:#fff;--g50:#f5f5f4;--g100:#ececea;--g300:#d2d2cf;--g600:#5f5f5b;--danger:#b3261e;--ok:#1b6e3a;--s1:8px;--s2:16px;--s3:24px;--s4:40px;--s5:64px;--r:4px;--font:"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:80px}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.5;-webkit-text-size-adjust:100%}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{line-height:1.15;margin:0;letter-spacing:-.01em}
p{margin:0}
.wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 var(--s2)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:0;background:var(--yellow);padding:var(--s1) var(--s2);z-index:100;font-weight:700}
.skip:focus{left:var(--s1);top:var(--s1)}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.section-grey :focus-visible,.section :focus-visible{outline-color:var(--ink)}
.site-header :focus-visible,.hero :focus-visible,.site-footer :focus-visible{outline-color:var(--yellow)}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:var(--ink);color:var(--white);border-bottom:3px solid var(--yellow)}
.header-row{display:flex;align-items:center;gap:var(--s2);min-height:60px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;margin-right:auto}
.brand-text{display:flex;flex-direction:column;line-height:1}
.brand-text strong{font-size:1.4rem;font-weight:900;letter-spacing:.06em;font-style:italic}
.brand-text small{font-size:.6rem;letter-spacing:.32em;color:var(--yellow);margin-top:4px;font-weight:600}
.nav{display:flex;gap:8px;margin-right:var(--s1);padding-right:var(--s3);border-right:1px solid #333}
.nav a{padding:20px 12px 17px;text-decoration:none;font-size:.9rem;font-weight:600;border-bottom:3px solid transparent;color:#ddd}
.nav a:hover{color:var(--white);border-bottom-color:var(--yellow)}
.nav a.active{color:var(--yellow);border-bottom-color:var(--yellow)}
.cart-btn,.menu-btn{background:none;border:1px solid #444;color:var(--white);height:44px;border-radius:var(--r);cursor:pointer;display:flex;align-items:center;gap:8px;padding:0 12px;font:inherit;font-weight:600;font-size:.9rem}
.cart-btn:hover,.menu-btn:hover{border-color:var(--yellow)}
.badge{background:var(--yellow);color:var(--ink);min-width:24px;height:24px;border-radius:12px;display:inline-grid;place-items:center;font-size:.8rem;font-weight:800;padding:0 6px}
.menu-btn{display:none;width:44px;justify-content:center;padding:0}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 var(--s3);border-radius:var(--r);font:inherit;font-weight:700;font-size:.95rem;text-decoration:none;cursor:pointer;border:2px solid transparent;text-align:center}
.btn-primary{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.btn-primary:hover{background:var(--yellow-d);border-color:var(--yellow-d)}
.btn-dark{background:var(--ink);color:var(--white);border-color:var(--ink)}
.btn-dark:hover{background:var(--ink-2)}
.btn-outline-light{border-color:#777;color:var(--white)}
.btn-outline-light:hover{border-color:var(--yellow);color:var(--yellow)}
.btn-ghost{background:var(--white);border-color:var(--g300);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink)}
.btn[disabled]{opacity:.5;cursor:not-allowed}

/* Hero */
.hero{background:var(--ink);color:var(--white);overflow:hidden;position:relative;background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);background-size:48px 48px}
.hero::after{content:'';display:block;height:10px;background:repeating-linear-gradient(-45deg,var(--yellow) 0 14px,var(--ink) 14px 28px)}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:var(--s4);align-items:center;padding-top:var(--s4);padding-bottom:var(--s4)}
.eyebrow{color:var(--yellow);font-weight:700;text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;margin-bottom:var(--s2)}
.hero h1{font-size:clamp(2rem,4.6vw,3.4rem);font-weight:900;max-width:14ch}
.lead{margin:var(--s2) 0 var(--s3);color:#d4d4d0;max-width:52ch;font-size:1.05rem}
.cta-row{display:flex;flex-wrap:wrap;gap:12px}
.hero-tag{margin-top:var(--s3);display:flex;align-items:center;gap:12px;font-style:italic;color:var(--yellow);font-weight:700;font-size:1.05rem}.hero-tag span{width:40px;height:3px;background:var(--yellow)}
.hero-visual{justify-self:end;width:100%;max-width:520px;display:grid;gap:12px}
.hero-main{margin:0;background:var(--white);border-left:8px solid var(--yellow);position:relative}
.hero-main img{width:100%;height:clamp(240px,34vw,360px);object-fit:contain;padding:var(--s2)}
.hero-main figcaption{position:absolute;left:0;bottom:0;background:var(--ink);color:var(--white);font-size:.78rem;padding:6px 12px}
.hero-main figcaption b{color:var(--yellow);margin-right:6px;font-family:Consolas,"Courier New",monospace}
.hero-thumbs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.hero-thumbs a{display:block;background:var(--white);color:var(--ink);text-decoration:none;border-bottom:4px solid var(--yellow)}
.hero-thumbs a:hover{border-bottom-color:var(--white)}
.hero-thumbs img{width:100%;height:84px;object-fit:contain;padding:8px}
.hero-thumbs span{display:block;padding:6px 8px 8px;font-size:.78rem;font-weight:700;line-height:1.25;border-top:1px solid var(--g100)}
.hero-thumbs small{display:block;font-weight:500;color:var(--g600);font-family:Consolas,"Courier New",monospace}

/* Sections */
.section{padding:56px 0}
.section-grey{background:var(--g50);border-block:1px solid var(--g100)}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px var(--s2);margin-bottom:var(--s3);padding-bottom:12px;border-bottom:1px solid var(--g300)}
.section-head h2{font-size:clamp(1.5rem,3vw,2rem);font-weight:800;border-left:6px solid var(--yellow);padding-left:12px;text-transform:uppercase;letter-spacing:.02em}
.section-head p{color:var(--g600);font-size:.9rem}

/* Toolbar */
.toolbar{display:grid;gap:12px;margin-bottom:var(--s3)}
.search input{width:100%;height:48px;padding:0 16px 0 46px;background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center/20px no-repeat;font:inherit;border:2px solid var(--ink);border-radius:var(--r);background:var(--white)}
.search input:focus-visible{outline:3px solid var(--yellow);outline-offset:0}
.toolbar>*{min-width:0}
.chips-wrap{position:relative;min-width:0}
.chips-wrap::after{content:'';position:absolute;right:0;top:0;bottom:6px;width:40px;background:linear-gradient(90deg,transparent,var(--g50));pointer-events:none}
.chips{display:flex;gap:8px;overflow-x:auto;padding:0 40px 8px 0;scrollbar-width:thin;scroll-snap-type:x proximity}
.chips .chip{scroll-snap-align:start}
.chip{flex:none;min-height:40px;padding:0 14px;border:1px solid var(--g300);background:var(--white);border-radius:var(--r);font:inherit;font-size:.85rem;font-weight:600;cursor:pointer;white-space:nowrap}
.chip:hover{border-color:var(--ink)}
.chip[aria-pressed="true"]{background:var(--ink);color:var(--yellow);border-color:var(--ink)}

/* Product grid */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px;align-items:stretch}
.card{background:var(--white);border:1px solid var(--g300);border-radius:var(--r);display:flex;flex-direction:column;overflow:hidden}
.card:hover{border-color:var(--ink)}
.card-img{height:190px;flex:none;background:var(--white);padding:14px;border-bottom:1px solid var(--g100)}
.card-img img{width:100%;height:100%;object-fit:contain}
.card-body{padding:12px;display:flex;flex-direction:column;gap:4px;flex:1}
.card-cat{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--g600);font-weight:700}
.card h3{font-size:.95rem;font-weight:700;line-height:1.3;min-height:2.6em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.model{font-size:.82rem;color:var(--g600)}
.model b{color:var(--ink);font-family:Consolas,"Courier New",monospace;font-size:.88rem}
.price{font-size:.85rem;font-weight:700;margin-top:2px}
.card details{font-size:.8rem;color:var(--ink-2);border-top:1px solid var(--g100);margin-top:4px;padding-top:6px}
.card summary{cursor:pointer;font-weight:600;padding:4px 0}
.card details ul{margin:6px 0 0;padding-left:16px}
.card .buy{margin-top:auto;padding-top:10px}
.card .model{min-height:1.3em}
.card:hover{box-shadow:0 3px 0 var(--yellow)}
.buy .btn{width:100%;min-height:44px}
.stepper{display:flex;align-items:center;border:2px solid var(--ink);border-radius:var(--r);height:44px}
.stepper button{width:48px;height:100%;border:0;background:var(--yellow);font-size:1.3rem;font-weight:800;cursor:pointer;color:var(--ink)}
.stepper button:hover{background:var(--yellow-d)}
.stepper output{flex:1;text-align:center;font-weight:800}
.more{text-align:center;margin-top:var(--s3)}
.fineprint{margin-top:var(--s3);font-size:.8rem;color:var(--g600);max-width:70ch}

/* Services / about / contact */
.svc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--s2)}
.svc-n{display:block;font-size:2rem;font-weight:900;color:var(--yellow);-webkit-text-stroke:1px var(--ink);margin-bottom:8px;line-height:1}
.svc-grid article{border:1px solid var(--g300);border-top:4px solid var(--yellow);padding:var(--s3) var(--s2)}
.svc-grid h3{font-size:1.1rem;margin-bottom:8px}
.svc-grid p{color:var(--ink-2);font-size:.95rem}
.about{display:grid;grid-template-columns:1fr 1.4fr;gap:var(--s4);align-items:start}
.about h2{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:var(--s2);text-transform:uppercase;border-left:6px solid var(--yellow);padding-left:12px}
.about .tag{padding-left:18px;font-size:1.1rem}
.facts{display:flex;gap:var(--s3);margin:var(--s3) 0 0;padding-top:var(--s2);border-top:1px solid var(--g300)}
.facts dt{font-size:2rem;font-weight:900;line-height:1}
.facts dd{margin:4px 0 0;font-size:.85rem;color:var(--g600)}
.about p+p{margin-top:var(--s2)}
.tag{font-style:italic;font-weight:700}
.contact{display:grid;grid-template-columns:1.2fr 1fr;gap:var(--s3);align-items:stretch}
.contact-card{border:1px solid var(--g300);border-top:4px solid var(--yellow);padding:var(--s3)}
.contact h2{font-size:clamp(1.5rem,3vw,2rem);margin-bottom:var(--s1);text-transform:uppercase}
.contact-list a[href^=tel]{font-size:1.1rem}
.contact-list{list-style:none;margin:var(--s2) 0 0;padding:0}
.contact-list li{display:grid;grid-template-columns:130px 1fr;padding:12px 0;border-top:1px solid var(--g100)}
.contact-list li>span:first-child{font-weight:700;color:var(--g600);font-size:.85rem;text-transform:uppercase;letter-spacing:.06em}
.contact-list a{font-weight:700;margin-right:12px}
.tbc{color:var(--g600)}
.contact-cta{background:var(--ink);color:var(--white);padding:var(--s3);border-left:6px solid var(--yellow);display:grid;gap:12px;justify-items:start;align-content:center}
.contact-cta p{color:#d4d4d0}
.site-footer{background:var(--ink);color:#bbb;font-size:.85rem;padding:var(--s3) 0;border-top:3px solid var(--yellow)}
.foot-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}

/* Drawer (cart + enquiry) */
.drawer{margin:0 0 0 auto;max-width:100%;height:100%;max-height:100%;width:min(480px,100%);border:0;padding:0;background:var(--white);color:var(--ink);flex-direction:column}
.drawer[open]{display:flex}
.drawer::backdrop{background:rgba(17,17,17,.6)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:var(--s2);background:var(--ink);color:var(--white);border-bottom:3px solid var(--yellow)}
.drawer-head h2{font-size:1.15rem}
.icon-btn{width:44px;height:44px;background:none;border:1px solid #555;color:var(--white);font-size:1.6rem;line-height:1;cursor:pointer;border-radius:var(--r)}
.icon-btn:hover{border-color:var(--yellow)}
.drawer-body{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.lines{list-style:none;margin:0;padding:0 var(--s2);flex:1}
.line{display:grid;grid-template-columns:64px 1fr;gap:12px;padding:var(--s2) 0;border-bottom:1px solid var(--g100)}
.line img{width:64px;height:64px;object-fit:contain;border:1px solid var(--g100);padding:4px}
.line h3{font-size:.92rem;font-weight:700}
.line .model{margin-bottom:8px}
.line-ctl{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.line .stepper{width:132px;height:40px}
.line .stepper button{width:40px}
.link-btn{background:none;border:0;padding:8px 0;font:inherit;font-size:.85rem;text-decoration:underline;cursor:pointer;color:var(--danger);min-height:40px}
.drawer-foot{padding:var(--s2);border-top:1px solid var(--g300);background:var(--g50);display:grid;gap:12px}
.drawer-foot .total{display:flex;justify-content:space-between;font-weight:700}
.drawer-empty,.drawer-pad{padding:var(--s3) var(--s2);display:grid;gap:var(--s2);align-content:start}
form.enq{display:grid;gap:var(--s2);padding:var(--s2)}
.field{display:grid;gap:6px}
.field label{font-weight:700;font-size:.9rem}
.field input,.field textarea{font:inherit;padding:12px;border:2px solid var(--g300);border-radius:var(--r);width:100%;background:var(--white)}
.field input:focus,.field textarea:focus{border-color:var(--ink);outline:3px solid var(--yellow);outline-offset:0}
.field.invalid input{border-color:var(--danger)}
.err{color:var(--danger);font-size:.82rem;min-height:1.1em}
.summary{border:1px solid var(--g300);background:var(--g50);padding:12px;font-size:.88rem}
.summary ol{margin:8px 0 0;padding-left:20px}
.note{font-size:.82rem;color:var(--g600)}
.success{border-left:6px solid var(--ok);background:#eef7f1;padding:var(--s2)}
.btn-wa{background:var(--ink);color:var(--white);border-color:var(--ink)}
@media (max-width:900px){
  .menu-btn{display:flex}
  .nav{position:absolute;left:0;right:0;top:100%;background:var(--ink);flex-direction:column;padding:8px var(--s2) var(--s2);border-bottom:3px solid var(--yellow);display:none}
  .nav.open{display:flex}
  .nav a{padding:14px 4px;border-bottom:1px solid #333}
  .nav{border-right:0;margin:0;padding-right:0}
  .nav a{padding:14px 4px}
  .hero-grid{grid-template-columns:1fr;gap:var(--s3)}
  .hero-visual{justify-self:stretch;max-width:none}
  .hero-main img{height:240px}
  .svc-grid{grid-template-columns:1fr}
  .about,.contact{grid-template-columns:1fr;gap:var(--s3)}
}
@media (max-width:520px){
  .cart-label{display:none}
  .section{padding:var(--s4) 0}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .card-img{height:150px;padding:10px}
  .card-body{padding:10px}
  .card h3{font-size:.88rem}
  .buy .btn{font-size:.85rem;padding:0 8px}
  .hero-thumbs img{height:64px}
  .hero-thumbs span{font-size:.7rem;padding:4px 6px 6px}
  .contact-card,.contact-cta{padding:var(--s2)}
  .contact-list li{grid-template-columns:1fr;gap:2px}
  .cta-row .btn{flex:1 1 100%}
}
@media (max-width:360px){.grid{grid-template-columns:1fr}.brand-text strong{font-size:1.25rem}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}

/* Step 1 catalogue UX polish */
.card{min-width:0;min-height:100%}
.card-img{display:grid;place-items:center;overflow:hidden}
.card-img img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center}
.card-body{min-width:0}
.card h3{overflow-wrap:anywhere}
.model{overflow-wrap:anywhere}

/* Step 2: Hero section visual polish */
.hero{isolation:isolate;background-color:#101010;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px),radial-gradient(ellipse at 78% 35%,rgba(255,212,0,.085),transparent 42%);background-size:40px 40px,40px 40px,auto}
.hero-grid{grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);gap:clamp(28px,4vw,64px);padding-top:clamp(36px,5vw,72px);padding-bottom:clamp(36px,5vw,64px)}
.hero-copy{max-width:570px;position:relative;z-index:1}
.hero .eyebrow{display:flex;align-items:center;gap:10px;margin-bottom:18px;font-size:.76rem;letter-spacing:.16em}
.hero .eyebrow::before{content:"";width:24px;height:3px;background:var(--yellow);display:inline-block;flex:none}
.hero h1{font-size:clamp(2.35rem,4.3vw,4.25rem);line-height:1.02;letter-spacing:-.045em;max-width:11ch;text-wrap:balance}
.hero .lead{margin:22px 0 26px;max-width:49ch;color:#d6d6d2;font-size:clamp(.98rem,1.15vw,1.08rem);line-height:1.72}
.hero .cta-row{gap:12px}
.hero .btn{min-height:48px;padding-inline:20px;transition:transform .18s ease,background-color .18s ease,border-color .18s ease}
.hero .btn:hover{transform:translateY(-2px)}
.hero .hero-tag{margin-top:28px;font-size:.98rem;letter-spacing:.01em}
.hero .hero-tag span{width:34px;height:2px;flex:none}
.hero-visual{max-width:560px;gap:12px;justify-self:stretch}
.hero-main{border:0;border-left:6px solid var(--yellow);box-shadow:0 18px 48px rgba(0,0,0,.22);overflow:hidden;background:#fff}
.hero-main img{height:clamp(270px,34vw,410px);padding:clamp(12px,2vw,24px);object-position:center}
.hero-main figcaption{background:#101010;color:#fff;padding:8px 12px;font-size:.76rem;letter-spacing:.015em}
.hero-main figcaption b{font-size:.75rem}
.hero-thumbs{gap:10px}
.hero-thumbs a{border:1px solid #deded9;border-bottom:3px solid var(--yellow);min-width:0;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.hero-thumbs a:hover{transform:translateY(-3px);border-color:var(--yellow);box-shadow:0 8px 20px rgba(0,0,0,.18)}
.hero-thumbs img{height:clamp(68px,8vw,92px);padding:10px}
.hero-thumbs span{padding:8px 9px 10px;font-size:.78rem;min-height:52px}
.hero-thumbs small{margin-top:3px;font-size:.7rem;overflow-wrap:anywhere}
@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr;gap:28px;padding-top:36px;padding-bottom:34px}
  .hero-copy{max-width:680px}
  .hero h1{max-width:13ch;font-size:clamp(2.5rem,7vw,3.8rem)}
  .hero .lead{max-width:60ch}
  .hero-visual{max-width:680px}
  .hero-main img{height:clamp(250px,48vw,360px)}
  .hero-thumbs img{height:clamp(68px,13vw,88px)}
}
@media(max-width:520px){
  .hero-grid{padding-top:30px;padding-bottom:26px;gap:24px}
  .hero .eyebrow{font-size:.68rem;letter-spacing:.12em;margin-bottom:14px}
  .hero h1{font-size:clamp(2.2rem,10vw,3rem);max-width:12ch}
  .hero .lead{font-size:.95rem;line-height:1.65;margin:16px 0 20px}
  .hero .cta-row{display:grid;grid-template-columns:1fr}
  .hero .cta-row .btn{width:100%}
  .hero .hero-tag{margin-top:20px;font-size:.9rem}
  .hero-main{border-left-width:5px}
  .hero-main img{height:clamp(220px,66vw,300px);padding:12px}
  .hero-thumbs{gap:7px}
  .hero-thumbs img{height:66px;padding:6px}
  .hero-thumbs span{padding:6px;font-size:.69rem;min-height:48px}
  .hero-thumbs small{font-size:.63rem}
}
@media(prefers-reduced-motion:reduce){.hero .btn,.hero-thumbs a{transition:none}.hero .btn:hover,.hero-thumbs a:hover{transform:none}}

/* Product detail links */
.card-product-link{display:block;color:inherit;text-decoration:none}.card-title-link{color:inherit;text-decoration:none}.card-title-link:hover{text-decoration:underline;text-decoration-color:#e3b900}.card-product-link:focus-visible,.card-title-link:focus-visible{outline:3px solid #e3b900;outline-offset:2px}

/* Neutral placeholders until verified product photography is added through the admin catalogue. */
.product-image-placeholder, .catalogue-image-placeholder, .hero-product-placeholder { display:flex; align-items:center; justify-content:center; text-align:center; box-sizing:border-box; width:100%; min-height:120px; padding:1rem; background:#ecebe7; color:#68665f; font-size:.85rem; font-weight:600; }
.product-image-placeholder { aspect-ratio:1 / 1; }
.product-image-placeholder.small { width:64px; min-width:64px; min-height:64px; aspect-ratio:1 / 1; font-size:.65rem; padding:.25rem; }
.product-image-placeholder.detail-placeholder { min-height:320px; }
.hero-product-placeholder { min-height:320px; }
.catalogue-image-placeholder { width:120px; min-width:120px; min-height:120px; }

/* Placeholders until verified product images are added via admin. */
.product-image-placeholder,.category-placeholder{display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;width:100%;min-height:120px;padding:1rem;background:#ecebe7;color:#68665f;font-size:.85rem;font-weight:600}.product-image-placeholder{aspect-ratio:1/1}.category-placeholder{min-height:126px;aspect-ratio:4/3}.product-image-placeholder.detail-placeholder{min-height:320px}

/* Related product card image and details */
.related-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.related-image-frame {
  width: 100%;
  height: 260px;
  background: #f5f4f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.related-image-frame img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.related-product-info {
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.related-product-info span {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.related-product-info small {
  font-size: 13px;
  color: #666;
}



.related-image-wrap {
  width: 100%;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f5f4f1;
}

.related-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.related-image-wrap .product-image-placeholder {
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}



.related-image-wrap {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #f5f4f1;
}

.related-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  box-sizing: border-box;
}

.related-image-wrap .product-image-placeholder:not([hidden]) {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f4f1;
}


/* Product images in enquiry drawer and category cards */
.line-image-wrap{width:64px;height:64px;min-width:64px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f5f4f1;border:1px solid var(--g100);box-sizing:border-box}
.line-image-wrap img{display:block;width:100%;height:100%;object-fit:contain;border:0;padding:3px;box-sizing:border-box}
.line-image-wrap .product-image-placeholder.small{width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:auto;border:0}

/* ==========================================================================
   Phase 4: header search, categories, search states, loading states
   ========================================================================== */
[hidden]{display:none!important}
.brand img{flex:none}

/* ---- Header ---- */
.header-row{position:relative;gap:12px}
.header-product-search{position:relative;flex:0 1 300px;min-width:180px;margin-left:auto}
.header-product-search + .cart-btn{margin-left:0}
.search-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:none;border:1px solid #444;border-radius:var(--r);color:var(--white);cursor:pointer}
.search-toggle:hover,.search-toggle[aria-expanded="true"]{border-color:var(--yellow);color:var(--yellow)}
.search-panel{position:relative}
.search-field{position:relative}
.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#9a9a96;pointer-events:none}
.header-product-search input{width:100%;height:42px;border:1px solid #4b4b4b;border-radius:var(--r);padding:0 38px 0 38px;background:#1c1c1c;color:#fff;font:inherit;font-size:.9rem;outline:none}
.header-product-search input:focus{border-color:var(--yellow);box-shadow:0 0 0 2px rgba(255,212,0,.2)}
.header-product-search input::placeholder{color:#a9a9a5}
.header-product-search input:disabled{opacity:.7;cursor:progress}
.search-clear{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:none;color:#cfcfcb;font-size:1.4rem;line-height:1;cursor:pointer;border-radius:var(--r)}
.search-clear:hover{color:var(--yellow)}
.header-search-results{position:absolute;top:calc(100% + 8px);right:0;width:min(380px,92vw);max-height:min(70vh,440px);overflow:auto;background:#fff;color:#171717;border:1px solid #deded9;border-radius:var(--r);box-shadow:0 14px 32px rgba(0,0,0,.22);z-index:100}
.header-search-result{display:flex;align-items:center;gap:12px;padding:10px 12px;text-decoration:none;color:inherit;border-bottom:1px solid #eee}
.header-search-result:hover,.header-search-result.is-active{background:#fff8cc}
.header-search-result:focus-visible{outline:2px solid var(--ink);outline-offset:-2px}
.hs-thumb{flex:0 0 48px;width:48px;height:48px;border:1px solid #eee;border-radius:var(--r);background:#fff;display:block;overflow:hidden}
.hs-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}
.hs-ph{display:block;width:100%;height:100%;background:#ecebe7}
.hs-text{min-width:0;display:flex;flex-direction:column;gap:2px}
.hs-text strong{font-size:.86rem;line-height:1.3;overflow-wrap:anywhere}
.hs-text small{font-size:.76rem;color:#666;overflow-wrap:anywhere}
.search-result-arrow{margin-left:auto;color:#806900;flex:none}
.hs-all{display:block;padding:12px;text-align:center;font-weight:700;font-size:.88rem;text-decoration:none;background:var(--g50)}
.hs-all:hover,.hs-all.is-active{background:#fff8cc}
.hs-empty{padding:14px;display:grid;gap:10px}
.hs-empty p{font-size:.88rem}
.hs-empty .btn{min-height:42px;font-size:.88rem;padding:0 14px}
.cart-btn .badge{flex:none}

@media(max-width:1100px){
  .nav a{padding-inline:8px}
  .nav{padding-right:var(--s2);gap:2px}
  .header-product-search{flex-basis:230px;min-width:150px}
  .cart-label{display:none}
}
@media(max-width:650px){
  .header-row{min-height:56px;gap:8px}
  .brand img{width:36px;height:36px}
  .brand-text strong{font-size:1.2rem}
  .brand{gap:10px}
  .header-product-search{position:static;flex:none;min-width:0;margin-left:0}
  .search-toggle{display:flex}
  .search-panel{display:none;position:absolute;left:0;right:0;top:100%;background:var(--ink);padding:10px var(--s2) 12px;border-bottom:3px solid var(--yellow);box-shadow:0 12px 24px rgba(0,0,0,.3)}
  .search-open .search-panel{display:block}
  .header-product-search input{height:46px;font-size:1rem}
  .header-search-results{position:static;width:auto;margin-top:8px;max-height:60vh}
  .search-icon{left:12px}
}

/* ---- Categories ---- */
.cat-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.cat-grid li{min-width:0;display:flex}
.cat-card{display:flex;flex-direction:column;width:100%;text-align:left;background:var(--white);border:1px solid var(--g300);border-bottom:3px solid var(--g300);border-radius:var(--r);padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.cat-card:hover{border-color:var(--ink);border-bottom-color:var(--yellow);box-shadow:0 6px 16px rgba(17,17,17,.08)}
.cat-card:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.cat-media{display:block;height:108px;background:var(--white);border-bottom:1px solid var(--g100);flex:none}
.cat-media img{width:100%;height:100%;object-fit:contain;padding:10px}
.cat-fallback{display:grid;place-items:center;width:100%;height:100%;background:var(--g50);color:#8a8a85}
.cat-name{display:flex;flex-direction:column;justify-content:space-between;gap:4px;padding:10px 12px 12px;font-weight:700;font-size:.88rem;line-height:1.25;flex:1;min-height:60px}
.cat-name small{color:var(--g600);font-weight:600;font-size:.75rem}
@media(max-width:1000px){.cat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cat-media{height:96px}.cat-name{padding:8px 10px 10px;font-size:.84rem}}

/* ---- Search box in the catalogue ---- */
.search{position:relative}
.search input{padding-right:44px}
.search input:disabled{background-color:var(--g50);cursor:progress}
.search .search-clear{color:var(--ink);right:6px}
.search .search-clear:hover{background:var(--g100);color:var(--ink)}

/* ---- Search / loading states (compact, no large panels) ---- */
.inline-note{margin:0 0 var(--s2);padding:10px 14px;background:var(--white);border:1px solid var(--g100);border-left:3px solid var(--g300);border-radius:var(--r);font-size:.9rem;color:var(--g600)}
.inline-note a{font-weight:700;color:var(--ink)}
.link-action{background:none;border:0;padding:6px 0;font:inherit;font-weight:700;text-decoration:underline;cursor:pointer;color:var(--ink);min-height:36px}
.link-action:hover{text-decoration-thickness:2px}
.no-match,.load-error{display:grid;gap:8px;justify-items:start;padding:16px 18px;margin-bottom:var(--s2);background:var(--white);border:1px solid var(--g300);border-left:4px solid var(--yellow);border-radius:var(--r)}
.load-error{border-left-color:var(--danger)}
.no-match-title{font-weight:700;font-size:1.02rem}
.no-match-term{color:var(--g600);font-size:.9rem}
.no-match-term q{color:var(--ink);font-weight:700;quotes:"\201C" "\201D";overflow-wrap:anywhere}
.no-match-actions{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;margin-top:4px}
.btn-wa-main{background:var(--yellow);color:var(--ink);border-color:var(--yellow);gap:10px}
.btn-wa-main:hover{background:var(--yellow-d);border-color:var(--yellow-d)}
.btn-wa-main::before{content:"";width:18px;height:18px;flex:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-12.4 7.4L3 20.5l1.7-5.4A8.5 8.5 0 1 1 21 11.5z'/%3E%3C/svg%3E") center/contain no-repeat}
.no-match-alt-title{margin-top:6px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--g600)}
.alt-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.alt-list a{display:inline-block;padding:8px 12px;border:1px solid var(--g300);border-radius:var(--r);text-decoration:none;font-size:.85rem;font-weight:600;background:var(--white)}
.alt-list a:hover{border-color:var(--ink);box-shadow:0 2px 0 var(--yellow)}
.alt-list small{color:var(--g600);font-family:Consolas,"Courier New",monospace;margin-left:4px}
@media(max-width:520px){.no-match-actions .btn,.load-error .btn{width:100%}}

.skel{background:var(--g100);border-radius:var(--r);animation:kobe-pulse 1.1s ease-in-out infinite alternate}
.skel-cat{height:168px;list-style:none}
.skel-card{height:320px}
@keyframes kobe-pulse{to{opacity:.5}}

/* ---- Product cards ---- */
.card{border-radius:var(--r)}
.card-img .product-image-placeholder{min-height:0;height:100%;aspect-ratio:auto}
.hero-thumbs li{min-width:0}

/* ---- Header: tighter fit on mid and very narrow screens (no clipping, no horizontal scroll) ---- */
.menu-btn,.cart-btn,.search-toggle{flex:none}
.brand{min-width:0}
@media(min-width:901px) and (max-width:1000px){
  .nav a{padding-inline:6px;font-size:.84rem}
  .nav{padding-right:8px;margin-right:0;gap:0}
  .header-row{gap:8px}
  .header-product-search{flex-basis:200px;min-width:140px}
}
@media(max-width:400px){
  .wrap{padding:0 12px}
  .header-row{gap:6px}
  .brand{gap:8px}
  .brand-text small{letter-spacing:.18em;font-size:.55rem}
  .search-toggle,.menu-btn{width:40px;height:40px}
  .cart-btn{height:40px;padding:0 8px}
  .search-panel{padding-inline:12px}
}
@media(max-width:340px){
  .brand img{width:30px;height:30px}
  .brand-text strong{font-size:1.05rem}
  .brand-text small{letter-spacing:.1em;font-size:.5rem}
}

/* ---- Header layout: brand left, nav beside it, search + enquiry list right ---- */
.brand{margin-right:0}
@media(min-width:901px){
  .nav{margin-left:var(--s3);margin-right:auto;padding-right:0;border-right:0}
  .header-product-search{margin-left:0}
}
@media(max-width:900px){.header-product-search{margin-left:auto}}

/* Catalogue search icon (an earlier rule overrode the icon with a plain background) */
.search input{background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center/20px no-repeat}
.search input:disabled{background-color:var(--g50)}

/* Service card WhatsApp button */
.svc-wa{margin-top:var(--s2);min-height:48px}
@media(max-width:520px){.svc-wa{width:100%}}
