*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#20242a;background:#f4f5f7}a{color:inherit;text-decoration:none}.wrap{max-width:1240px;margin:auto;padding:0 18px}.top{background:#fff;border-bottom:1px solid #e1e3e6}.top-row{min-height:84px;display:flex;align-items:center;gap:30px}.brand{font-size:30px;font-weight:900;letter-spacing:-1px}.brand:before{content:"";display:inline-block;width:8px;height:30px;background:#d71920;margin-right:9px;vertical-align:-4px}.brand span{display:block;font-size:10px;letter-spacing:3px;font-weight:700;margin-left:18px;color:#6d7278}.search{flex:1;display:flex}.search input{width:100%;height:46px;border:1px solid #cfd3d8;border-right:0;padding:0 16px;font-size:15px}.search button,.tyre-form button{border:0;background:#d71920;color:#fff;font-weight:800;padding:0 24px}.head-actions{display:flex;gap:18px;font-size:13px;font-weight:700}.nav{background:#252a31;color:#fff}.nav .wrap{display:flex;gap:0;align-items:center}.nav a,.nav span{padding:15px 18px;font-size:14px;font-weight:700}.nav a:hover{background:#d71920}.future{margin-left:auto;color:#aeb4bc}.test-note{margin:18px 0 12px;background:#fff3cd;border:1px solid #ffe69c;padding:9px 13px;font-size:12px;font-weight:800}.hero-grid{display:grid;grid-template-columns:300px 1fr;gap:18px}.category-box{background:#fff;border:1px solid #e0e2e5}.category-title{background:#d71920;color:#fff;font-weight:900;padding:17px}.category-box a{display:flex;justify-content:space-between;padding:12px 15px;border-bottom:1px solid #eee;font-size:14px}.category-box a:hover{background:#f5f5f5;color:#d71920}.hero-main{display:grid;gap:14px}.finder{background:#fff;padding:28px;border-top:4px solid #d71920;box-shadow:0 1px 2px #00000010}.finder-kicker,.section-head small,.parts-placeholder small{font-size:11px;letter-spacing:1.7px;color:#d71920;font-weight:900}.finder h2{font-size:30px;margin:6px 0}.finder p{color:#697078;margin:0 0 22px}.tyre-form{display:grid;grid-template-columns:repeat(4,1fr) 160px;gap:10px}.tyre-form label{font-size:11px;font-weight:800;color:#686e75}.tyre-form select{display:block;width:100%;height:44px;margin-top:6px;border:1px solid #ccd0d5;background:#fff;padding:0 10px}.tyre-form button{margin-top:17px}.finder-link{display:inline-block;margin-top:18px;font-weight:800;font-size:13px;color:#d71920}.parts-placeholder{background:#e9ebee;border:1px dashed #bdc2c8;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;color:#737981}.parts-placeholder h3{margin:3px 0;color:#4c5259}.parts-placeholder p{margin:0;font-size:13px}.parts-placeholder>span{font-size:11px;font-weight:900;border:1px solid #c2c6cb;padding:6px 8px}.section-head{margin:38px 0 15px;display:flex;justify-content:space-between;align-items:end}.section-head h2{font-size:26px;margin:4px 0}.cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.cat-card{background:#fff;border:1px solid #e1e3e6;min-height:145px;padding:20px;transition:.15s}.cat-card:hover{border-color:#d71920;transform:translateY(-2px)}.cat-card h3{font-size:16px;margin:12px 0 20px}.cat-card span{font-size:12px;color:#d71920;font-weight:800}.cat-icon{width:32px;height:32px;border-radius:50%;background:#f1f2f4;color:#d71920;display:grid;place-items:center;font-size:22px}.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.product-card{background:#fff;border:1px solid #e1e3e6;padding:14px;display:flex;flex-direction:column;min-height:370px}.product-image{height:185px;display:grid;place-items:center;background:#fff;margin-bottom:10px}.product-image img{max-width:100%;max-height:175px;object-fit:contain}.product-image span,.detail-image span{font-weight:900;color:#d8dade;font-size:22px}.stock{font-size:11px;color:#a16a00;margin:5px 0}.stock.ok{color:#178447}.product-name{font-size:14px;line-height:1.35;font-weight:800;min-height:58px}.product-name:hover{color:#d71920}.meta{font-size:11px;color:#777f87;margin:8px 0 16px}.price-row{margin-top:auto;display:flex;justify-content:space-between;align-items:center}.price-row strong{font-size:21px}.price-row a{background:#d71920;color:#fff;padding:9px 12px;font-size:12px;font-weight:800}.breadcrumbs{font-size:12px;color:#777f87;margin:20px 0}.breadcrumbs a{color:#d71920}.category-page-head{display:flex;align-items:end;justify-content:space-between;margin:24px 0 16px}.category-page-head h1{margin:0;font-size:32px}.category-page-head span{font-size:13px;color:#747b83}.subcats{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.subcats a{background:#fff;border:1px solid #ddd;padding:10px 13px;font-size:13px;font-weight:700}.empty{background:#fff;padding:30px;border:1px solid #e1e3e6}.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:35px;background:#fff;padding:30px;border:1px solid #e1e3e6}.detail-image{min-height:400px;display:grid;place-items:center}.detail-image img{max-width:100%;max-height:390px;object-fit:contain}.detail-info h1{font-size:30px;line-height:1.15}.maker{font-weight:900;color:#d71920}.code{font-size:12px;color:#747b83}.detail-stock{margin-top:28px;color:#178447;font-weight:800}.detail-price{font-size:38px;font-weight:900;margin-top:10px}.vat{font-size:11px;color:#777}.cart-disabled{margin-top:24px;width:100%;height:52px;border:0;background:#bbb;color:#fff;font-weight:900}.info-card{background:#fff;border:1px solid #e1e3e6;margin-top:16px;padding:24px}.attrs{display:grid;grid-template-columns:1fr 1fr}.attrs div{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid #eee;padding:9px}.attrs span{color:#70767d;font-size:13px}.attrs b{font-size:13px;text-align:right}footer{margin-top:50px;background:#252a31;color:#fff;padding:30px 0}footer .wrap{display:flex;justify-content:space-between;color:#c8ccd1}
@media(max-width:900px){.head-actions{display:none}.top-row{flex-wrap:wrap;padding-top:14px;padding-bottom:14px}.search{min-width:100%;order:3}.nav .wrap{overflow:auto}.nav a,.nav span{white-space:nowrap}.hero-grid{grid-template-columns:1fr}.category-box{order:2}.tyre-form{grid-template-columns:1fr 1fr}.tyre-form button{height:44px}.cat-grid{grid-template-columns:repeat(2,1fr)}.product-grid{grid-template-columns:repeat(2,1fr)}.product-detail{grid-template-columns:1fr}.detail-image{min-height:260px}.attrs{grid-template-columns:1fr}}
@media(max-width:520px){.brand{font-size:26px}.finder{padding:20px}.finder h2{font-size:25px}.tyre-form{grid-template-columns:1fr 1fr}.tyre-form button{grid-column:1/-1;margin-top:0}.cat-grid{grid-template-columns:1fr 1fr}.product-grid{grid-template-columns:1fr}.product-card{min-height:auto}.category-box a:nth-of-type(n+9){display:none}.product-detail{padding:18px}.detail-info h1{font-size:24px}.detail-price{font-size:32px}footer .wrap{display:block}footer span{display:block;margin-top:8px}}
/* Original Extensa Motors logo */
.brand-logo{display:flex;align-items:center;flex:0 0 190px}
.brand-logo:before{display:none}
.brand-logo img{display:block;width:190px;height:auto;max-height:68px;object-fit:contain}
@media(max-width:520px){
 .brand-logo{flex-basis:155px}
 .brand-logo img{width:155px;max-height:58px}
}

/* V5 catalog: category tree + descendant products */
.catalog-layout{display:grid;grid-template-columns:245px 1fr;gap:18px;align-items:start}
.catalog-side{background:#fff;border:1px solid #e1e3e6;position:sticky;top:12px}
.side-title{background:#252a31;color:#fff;padding:14px 15px;font-weight:900;font-size:13px}
.catalog-side a{display:flex;justify-content:space-between;gap:10px;padding:11px 13px;border-bottom:1px solid #eee;font-size:13px}
.catalog-side a:hover,.catalog-side a.active{color:#d71920;background:#f7f7f8;font-weight:800}
.subcat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.subcat-card{background:#fff;border:1px solid #e1e3e6;padding:15px;min-height:76px;display:flex;flex-direction:column;justify-content:space-between}
.subcat-card:hover{border-color:#d71920}
.subcat-card strong{font-size:14px}.subcat-card span{font-size:11px;color:#777f87;margin-top:8px}
.catalog-main .product-grid{grid-template-columns:repeat(3,1fr)}
.catalog-note{background:#fff3cd;border:1px solid #ffe69c;padding:10px 12px;font-size:12px;margin-bottom:12px}
.category-page-head small{font-size:10px;letter-spacing:1.5px;color:#d71920;font-weight:900}
@media(max-width:1000px){.catalog-layout{grid-template-columns:210px 1fr}.catalog-main .product-grid{grid-template-columns:repeat(2,1fr)}.subcat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.catalog-layout{grid-template-columns:1fr}.catalog-side{position:static;display:none}.catalog-main .product-grid{grid-template-columns:repeat(2,1fr)}.category-page-head{align-items:start;gap:8px;flex-direction:column}.subcat-grid{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.catalog-main .product-grid{grid-template-columns:1fr}.subcat-grid{grid-template-columns:1fr}}

/* V6.1: scrollable sticky category sidebar */
@media(min-width:701px){
  .catalog-side{
    position:sticky;
    top:12px;
    max-height:calc(100vh - 24px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
  }
  .catalog-side .side-title{
    position:sticky;
    top:0;
    z-index:2;
  }
}

/* Extensa tire shop typography and navigation palette. */
:root {
  --extensa-ink: #0b0d0f;
  --extensa-red: #ef172f;
}
body {
  font-family: Arial, sans-serif;
  color: #111;
  background: #f4f5f6;
}
button, input, select, textarea { font-family: inherit; }
.nav {
  background: var(--extensa-ink);
  border-bottom: 3px solid var(--extensa-red);
}
.nav a, .nav span {
  font-weight: 700;
  text-transform: none;
}
.nav a:hover, .nav a:focus-visible { background: #292d31; }
.category-box {
  border: 1px solid #dedede;
  border-radius: 10px;
  overflow: hidden;
}
.category-title {
  background: var(--extensa-ink);
  border-bottom: 3px solid var(--extensa-red);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.category-box a {
  align-items: center;
  gap: 10px;
  min-height: 44px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.category-box a b { color: var(--extensa-red); }
.category-box a:hover, .category-box a:focus-visible {
  background: #fff0f2;
  color: #b61225;
}
.category-box a:focus-visible {
  outline: 2px solid var(--extensa-red);
  outline-offset: -2px;
}

/* Category cards follow the tire shop's dark panels and red accent. */
.category-title { font-size:16px; font-weight:900; }
.category-box a { font-size:14px; letter-spacing:.025em; }
.cat-grid .cat-card {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:14px;
  min-height:112px;
  padding:18px;
  background:#101214;
  border:1px solid #303236;
  border-top:3px solid #ef172f;
  border-radius:10px;
  color:#fff;
}
.cat-grid .cat-card:hover,
.cat-grid .cat-card:focus-visible {
  background:#202326;
  border-color:#ef172f;
  transform:none;
}
.cat-grid .cat-card h3 {
  margin:0;
  font-size:15px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:.025em;
  text-transform:uppercase;
  overflow-wrap:anywhere;
}
.cat-grid .cat-card span { color:#fff; font-size:13px; font-weight:400; }
.cat-grid .cat-icon { display:none; }
@media (max-width:580px) {
  .cat-grid .cat-card { padding:14px; }
  .cat-grid .cat-card h3 { font-size:14px; }
}
