/* ============================================================
   accessories.css — Accessories page
   Load AFTER css/style.css. Everything is scoped to .ac-* / body.ac-page
   (own prefix, so it can never collide with classes in style.css or careers.css).
   Mobile-first; tablet >=768px; desktop >=1024px.
   No <header>/<section>/<footer> elements are used in the page (style.css styles those tags globally).
   ============================================================ */

body.ac-page{
  --ac-green:#17804F;
  --ac-grey:#F2F2F0;
  --ac-muted:#7F7F78;
  --ac-line:#E8E8E5;
  --ac-header-h:70px;
  background:#ECECEC;
  padding-bottom:0;
}
body.ac-modal-open{overflow:hidden;}
.ac-page [hidden]{display:none !important;}
.ac-main *,.ac-main *::before,.ac-main *::after,.ac-modal *,.ac-modal *::before,.ac-modal *::after{box-sizing:border-box;}
.ac-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* ---------- Header: same .header-v2-overlay as every page + a dark band behind it ---------- */
.ac-main{position:relative;padding:calc(var(--ac-header-h) + 26px) 16px 56px;}
.ac-main::before{content:'';position:absolute;top:0;left:0;right:0;height:var(--ac-header-h);background:var(--green-dark,#0A2318);}
.ac-wrap{max-width:1280px;margin:0 auto;}
.ac-title{margin:0;font-family:var(--display);font-weight:800;font-size:2.3rem;line-height:1.05;color:#16181B;}
.ac-sub{margin:10px 0 0;font-size:1rem;color:var(--ac-muted);}

/* ---------- Hero ---------- */
.ac-hero{
  position:relative;overflow:hidden;margin-top:26px;border-radius:22px;min-height:230px;
  background:linear-gradient(120deg,#1B1F1D 0%,#2B312E 100%);color:#fff;display:flex;align-items:flex-end;
}
.ac-hero-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:60% 55%;}
.ac-hero::after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;
  background:linear-gradient(0deg,rgba(18,20,19,.94) 0%,rgba(18,20,19,.7) 42%,rgba(18,20,19,0) 85%);}
.ac-hero-copy{position:relative;z-index:2;padding:22px 20px;}
.ac-hero-copy h2{margin:0;font-family:var(--display);font-weight:800;font-size:1.9rem;line-height:1.02;text-transform:uppercase;}
.ac-hero-copy p{margin:8px 0 0;font-size:.95rem;}

/* ---------- Filter chips ---------- */
.ac-bar{margin-top:20px;}
.ac-chips{display:flex;flex-wrap:wrap;margin:0 -4px;}
.ac-chips + .ac-divider + .ac-chips{margin-top:8px;}
.ac-divider{display:none;}
.ac-chip{margin:0 4px 8px;padding:15px 24px;border-radius:14px;background:var(--ac-grey);border:1px solid var(--ac-line);font-weight:700;font-size:.95rem;color:#16181B;cursor:pointer;}
.ac-chip.is-active{background:var(--yellow);border-color:var(--yellow);}
.ac-chip:hover{filter:brightness(.97);}
.ac-chip:focus-visible,.ac-enquire:focus-visible,.ac-submit:focus-visible,.ac-x:focus-visible{outline:2.5px solid #16181B;outline-offset:2px;}

/* ---------- Product cards ---------- */
.ac-grid{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr;gap:16px;}
.ac-card{background:#fff;border-radius:26px;padding:16px 16px 20px;display:flex;flex-direction:column;align-items:flex-start;}
.ac-img{position:relative;width:100%;height:0;padding-bottom:58%;border-radius:18px;background:#DFE3EA;overflow:hidden;}   /* 1.72 : 1 box, works in every browser */
.ac-img span{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;font-size:.9rem;color:#6E7480;}
.ac-img img{position:absolute;top:0;left:0;display:block;width:100%;height:100%;object-fit:cover;}
.ac-name{margin:16px 0 0;font-family:var(--display);font-weight:700;font-size:1.3rem;line-height:1.2;color:#16181B;}
.ac-price{margin:8px 0 0;font-family:var(--display);font-weight:700;font-size:1.55rem;line-height:1.1;color:var(--ac-green);}
.ac-fits{margin:4px 0 0;font-size:.9rem;color:var(--ac-muted);}
.ac-enquire{display:inline-block;margin-top:14px;padding:12px 38px;border-radius:14px;background:var(--yellow);font-weight:700;font-size:.95rem;color:#16181B;}
.ac-enquire:hover{filter:brightness(.97);}
.ac-empty{margin:26px 4px;font-size:1rem;line-height:1.5;color:var(--ac-muted);}
.ac-empty a{text-decoration:underline;color:#16181B;}

/* ---------- Enquiry pop-up ---------- */
.ac-modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center;}
.ac-backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(10,14,12,.62);}
.ac-dialog{position:relative;width:100%;max-width:460px;max-height:92vh;overflow-y:auto;background:#fff;border-radius:26px 26px 0 0;padding:26px 20px 24px;}
.ac-dialog:focus{outline:none;}
.ac-x{position:absolute;top:14px;right:14px;width:36px;height:36px;border-radius:50%;background:var(--ac-grey);border:1px solid var(--ac-line);font-size:1.4rem;line-height:1;color:#16181B;cursor:pointer;}
.ac-dialog-title{margin:0;padding-right:40px;font-family:var(--display);font-weight:700;font-size:1.45rem;line-height:1.2;color:#16181B;}
.ac-dialog-product{margin:6px 0 18px;font-size:.98rem;color:var(--ac-muted);}
.ac-field{margin-bottom:12px;}
.ac-field input[type=text],.ac-field input[type=tel],.ac-field input[type=email],.ac-field select{
  display:block;width:100%;height:56px;padding:0 20px;border:1px solid var(--ac-line);border-radius:14px;background:var(--ac-grey);
  font-family:inherit;font-size:.98rem;color:#16181B;-webkit-appearance:none;appearance:none;
}
.ac-field select{padding-right:46px;cursor:pointer;}
.ac-field input::placeholder{color:#8F8F88;}
.ac-field input:focus,.ac-field select:focus{outline:2.5px solid #16181B;outline-offset:2px;}
.ac-field .is-invalid{outline:2px solid #B3261E;}
.ac-select{position:relative;}
.ac-select::after{content:'';position:absolute;right:20px;top:50%;width:9px;height:9px;margin-top:-7px;pointer-events:none;border-right:2px solid #7A7A74;border-bottom:2px solid #7A7A74;transform:rotate(45deg);}
.ac-error{margin:6px 0 0 4px;font-size:.78rem;line-height:1.3;color:#B3261E;}
.ac-error a{text-decoration:underline;}
.ac-error-form{margin:10px 0 0;padding:10px 12px;background:#FBEAE8;border-radius:10px;}
.ac-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;}

.ac-check{position:relative;display:flex;align-items:flex-start;margin:6px 0 4px;cursor:pointer;font-size:.84rem;line-height:1.4;color:#6B6B64;}
.ac-check input{position:absolute;top:0;left:0;width:26px;height:26px;margin:0;opacity:0;cursor:pointer;}
.ac-check-box{position:relative;flex:0 0 26px;width:26px;height:26px;margin-right:12px;border-radius:7px;border:2px solid #B9B9B2;background:#fff;box-sizing:border-box;}
.ac-check input:checked + .ac-check-box{background:var(--ac-green);border-color:var(--ac-green);}
.ac-check input:checked + .ac-check-box::after{content:'';position:absolute;left:7px;top:2px;width:7px;height:12px;border:solid #fff;border-width:0 2.5px 2.5px 0;transform:rotate(45deg);}
.ac-check input:focus-visible + .ac-check-box{outline:2.5px solid #16181B;outline-offset:3px;}
.ac-check-text{padding-top:2px;}
.ac-check-text a{text-decoration:underline;color:#16181B;}
.ac-submit{display:block;width:100%;height:58px;line-height:58px;margin-top:14px;border-radius:16px;background:var(--yellow);color:#16181B;font-weight:700;font-size:1.02rem;text-align:center;cursor:pointer;}
.ac-submit:hover{filter:brightness(.97);}
.ac-submit[disabled]{opacity:.6;cursor:wait;}
.ac-success:focus{outline:none;}
.ac-success-lead{margin:10px 0 12px;font-size:.98rem;line-height:1.5;color:#3A3A36;}
.ac-ref{margin:0 0 6px;font-size:.95rem;}
.ac-ref strong{display:inline-block;margin-left:6px;padding:4px 10px;border-radius:8px;background:var(--yellow);font-size:1rem;letter-spacing:.04em;}

/* ============================================================
   TABLET (>=768px)
   ============================================================ */
@media (min-width:768px){
  .ac-main{padding-left:32px;padding-right:32px;}
  .ac-title{font-size:3rem;}
  .ac-sub{font-size:1.1rem;}
  .ac-hero{min-height:260px;border-radius:26px;align-items:center;}
  .ac-hero::after{background:linear-gradient(90deg,rgba(18,20,19,.92) 0%,rgba(18,20,19,.6) 36%,rgba(18,20,19,0) 72%);}
  .ac-hero-copy{padding:34px 44px;}
  .ac-hero-copy h2{font-size:2.7rem;max-width:380px;}
  .ac-hero-copy p{font-size:1.1rem;max-width:520px;}
  .ac-grid{grid-template-columns:repeat(2,1fr);gap:18px;}
  .ac-card{padding:18px 18px 22px;border-radius:30px;}
  .ac-modal{align-items:center;}
  .ac-dialog{border-radius:26px;padding:30px 28px 28px;}
}

/* ============================================================
   DESKTOP (>=1024px)
   ============================================================ */
@media (min-width:1024px){
  body.ac-page{--ac-header-h:132px;}
  .ac-main{padding:calc(var(--ac-header-h) + 34px) 40px 80px;}
  .ac-title{font-size:3.5rem;}
  .ac-hero{min-height:330px;border-radius:28px;margin-top:40px;}
  .ac-hero-copy{padding:40px 48px;}
  .ac-hero-copy h2{font-size:3.6rem;max-width:420px;}
  .ac-hero-copy p{font-size:1.25rem;}
  .ac-bar{display:flex;align-items:center;flex-wrap:wrap;margin-top:34px;}
  .ac-chips + .ac-divider + .ac-chips{margin-top:0;}
  .ac-divider{display:block;flex:0 0 1px;height:34px;margin:0 16px 0 12px;background:#C9C9C4;}
  .ac-chip{margin-bottom:0;}
  .ac-grid{grid-template-columns:repeat(4,1fr);gap:22px;margin-top:26px;}
  .ac-card{border-radius:30px;}
}
