/* 1. Top bar and native desktop header */
.ar-utility { height: 28px; background: #171b1e; color: #f8f8f8; }
.ar-utility .ar-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.ar-utility-benefits { display: flex; align-items: center; gap: 24px; }
.ar-utility-benefits span { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ar-utility .ar-icon { width: 18px; height: 18px; }
.ar-utility-links { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.ar-utility-links a + a { border-left: 1px solid #51555a; padding-left: 14px; }
.ar-utility-links a:last-child { display: flex; align-items: center; gap: 8px; }
.ar-header { background: linear-gradient(110deg, #1e2428, #181c20); color: #fff; }
.ar-header-main { height: 84px; display: grid; grid-template-columns: 260px minmax(280px, 1fr) 222px; gap: 24px; align-items: center; }
.ar-logo { display: inline-flex; align-items: center; position: relative; width: 260px; height: 74px; }
.ar-logo-image { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.ar-header-search { display: flex; height: 44px; border: 1px solid #d9dce1; border-radius: 7px; background: #f9fafc; overflow: hidden; }
.ar-header-search input { width: 100%; padding: 0 18px; background: transparent; border: 0; color: var(--ar-ink); outline: none; font-size: 16px; }
.ar-header-search input::placeholder { color: #6c727b; opacity: 1; }
.ar-header-search button { width: 48px; height: 100%; flex: 0 0 auto; border-radius: 0; }
.ar-header-search .ar-icon { width: 22px; height: 22px; }
.ar-header-actions { display: flex; gap: 18px; align-items: center; justify-content: flex-end; }
.ar-header-action { background: transparent; color: #fff; padding: 4px; }
.ar-header-action .ar-icon { width: 24px; height: 24px; }
.ar-header-cart { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.ar-header-cart span { display: grid; text-align: left; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.ar-header-cart strong { font-size: 14px; }
.ar-nav { background: #fff; color: #161b20; height: 48px; box-shadow: 0 1px 0 var(--ar-line); position: relative; z-index: 3; }
.ar-nav-inner { display: flex; align-items: center; height: 100%; gap: 18px; white-space: nowrap; }
.ar-nav-inner > a { font-size: 14px; font-weight: 700; }
.ar-nav-inner > a:hover { color: var(--ar-red); }
.ar-categories-toggle { padding: 0 18px; height: 36px; gap: 16px; font-size: 14px; flex: 0 0 auto; }
.ar-categories-toggle .ar-icon { width: 16px; height: 16px; }
.ar-category-menu { position: absolute; left: max(var(--ar-gutter), calc((100% - var(--ar-content)) / 2)); top: 44px; width: 290px; padding: 12px; background: #fff; border: 1px solid var(--ar-line); box-shadow: 0 14px 32px #10151c26; border-radius: 8px; }
.ar-category-menu a { display: block; padding: 11px 15px; border-radius: 6px; font-size: 16px; }
.ar-category-menu a:hover { background: var(--ar-surface); color: var(--ar-red); }

/* 2. Hero: independent HTML copy and a photographic asset */
.ar-hero { position: relative; overflow: hidden; background: radial-gradient(ellipse at 62% 70%, #24303a 0, #12171b 36%, #0d1115 75%); color: #fff; }
.ar-hero-inner { position: relative; height: 480px; }
.ar-hero-art { position: absolute; right: -40px; top: 0; width: 440px; height: 480px; max-width: none; object-fit: cover; object-position: right bottom; mask-image: linear-gradient(90deg, transparent, #000 12%); }
.ar-hero-art::selection { background: transparent; }
.ar-hero-copy { position: relative; z-index: 1; padding-top: 40px; padding-left: 20px; width: 780px; }
.ar-hero h1 { margin: 0; font-size: 52px; letter-spacing: -1.2px; line-height: 1.04; font-weight: 700; }
.ar-hero h1 span { color: var(--ar-red); }
.ar-hero-lead { margin: 14px 0 22px; font-size: 20px; line-height: 1.35; }
.ar-finder { width: 720px; margin-left: -10px; padding: 10px; border-radius: 12px; background: linear-gradient(145deg, #f3f5f8, #e6e8ed); color: var(--ar-ink); box-shadow: 0 6px 24px #0002; }
.ar-finder-tabs { display: grid; grid-template-columns: 1fr .8fr 1.23fr 1.1fr; gap: 7px; }
.ar-finder-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; height: 42px; padding: 0 8px; border-radius: 7px; background: #e6e8ec; color: #111; font-size: 14px; font-weight: 700; }
.ar-finder-tabs button[aria-selected="true"] { background: var(--ar-red); color: #fff; }
.ar-finder-tabs .ar-icon { width: 20px; height: 20px; }
.ar-finder-row { height: 54px; display: flex; margin-top: 14px; border: 1px solid #c6cdd5; border-radius: 6px; background: #fff; overflow: hidden; }
.ar-country { flex: 0 0 42px; background: #124ba6; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ar-country svg { width: 22px; height: 22px; }
.ar-country span { font-size: 16px; font-weight: 700; }
.ar-finder-row input { flex: 1 1 auto; width: 100%; border: 0; outline: none; padding: 0 16px; font-size: 16px; color: var(--ar-ink); background: #fff; }
.ar-finder-row input::placeholder { color: #737982; opacity: 1; }
.ar-finder-submit { flex: 0 0 232px; height: 100%; padding: 0 16px; border-radius: 0; font-size: 16px; white-space: nowrap; }
.ar-finder-submit .ar-icon { width: 20px; height: 20px; }
.ar-finder-hint { display: block; margin: 8px 4px 4px; color: #757d87; font-size: 13px; }
.ar-finder-selects { display: flex; gap: 10px; padding: 8px; background: #fff; border-radius: 6px; }
.ar-finder-selects select { width: 33.333%; height: 36px; padding: 0 8px; border: 1px solid #ccd1d8; border-radius: 5px; color: var(--ar-ink); background: #fff; font-size: 15px; }
.ar-finder--vehicle .ar-finder-row { margin-top: 10px; }
.ar-finder--vehicle .ar-finder-selects { margin-top: 12px; }
.ar-finder--vehicle .ar-finder-hint { margin-bottom: 0; }

/* 3. Benefits */
.ar-trust { background: linear-gradient(100deg, #fff, #f8fafc); border-bottom: 1px solid #e9edf1; }
.ar-trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 84px; }
.ar-trust-item { display: flex; align-items: center; gap: 14px; padding: 0 20px; }
.ar-trust-item:first-child { padding-left: 24px; }
.ar-trust-item .ar-icon { width: 34px; height: 34px; color: var(--ar-red); }
.ar-trust-item span { display: grid; gap: 4px; }
.ar-trust-item strong { font-size: 16px; white-space: nowrap; }
.ar-trust-item small { font-size: 15px; white-space: nowrap; }

/* 4. The eight requested categories */
.ar-categories { padding-top: 28px; padding-bottom: 24px; }
.ar-categories .ar-section-heading { margin-bottom: 18px; }
.ar-category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ar-category-card { min-width: 0; height: 220px; overflow: hidden; display: flex; flex-direction: column; align-items: center; border: 1px solid var(--ar-line); border-radius: 10px; background: #f5f7f9; text-align: center; transition: border-color .15s; }
.ar-category-card:hover { border-color: #ff7180; }
.ar-category-image { width: 100%; height: 158px; padding: 6px 16px 0; display: flex; align-items: center; justify-content: center; }
/* Preserve each original's dimensions; larger originals only scale down. */
.ar-category-image img { width: auto; height: auto; max-width: 100%; max-height: 150px; object-fit: contain; }
.ar-category-card strong { margin-top: 8px; font-size: 17px; line-height: 1.2; }
.ar-category-card small { margin-top: 6px; color: #6e7580; font-size: 13px; line-height: 1.2; }

/* 5. Promotion and brand logos */
.ar-promotion { padding-top: 0; }
.ar-promo-banner { height: 220px; border-radius: 12px; background: #f7e8ed; position: relative; overflow: hidden; }
.ar-promo-art { position: absolute; width: 100%; height: auto; max-width: none; bottom: -56px; right: 0; }
.ar-promo-copy { position: relative; z-index: 1; padding: 32px; }
.ar-promo-copy h2 { font-size: 26px; line-height: 1.18; letter-spacing: -.4px; margin: 0 0 20px; }
.ar-promo-copy h2 span { color: var(--ar-red); }
.ar-promo-copy .ar-button { width: 250px; height: 48px; font-size: 16px; border: 2px solid #fff; }
.ar-brands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ar-brand-card { border: 1px solid var(--ar-line); border-radius: 8px; height: 88px; display: flex; align-items: center; justify-content: center; background: #fff; }
.ar-brand-card img { width: 100px; height: 70px; object-fit: contain; }
.ar-brands-more { text-align: right; margin-top: 10px; }
.ar-brands-more .ar-text-link { font-size: 16px; }

/* 6. Product cards — static sample data from the reference, no shop writes */
.ar-products { padding-top: 30px; padding-bottom: 30px; }
.ar-products .ar-section-heading { margin-bottom: 20px; }
.ar-product-carousel { position: relative; }
.ar-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ar-product-card { position: relative; border: 1px solid var(--ar-line); border-radius: 10px; background: #fff; padding: 16px 24px; min-width: 0; min-height: 420px; display: flex; flex-direction: column; }
.ar-product-heart { position: absolute; z-index: 2; right: 12px; top: 12px; padding: 3px; color: #8a939f; background: #fff; }
.ar-product-heart .ar-icon { width: 22px; height: 22px; }
.ar-product-heart[aria-pressed="true"] { color: var(--ar-red); }
.ar-product-heart[aria-pressed="true"] .ar-icon { fill: #ff142819; }
.ar-product-image { height: 150px; display: flex; align-items: center; justify-content: center; margin: 0 -12px 5px; }
.ar-product-image img { width: 100%; height: 100%; object-fit: contain; filter: brightness(1.04); }
.ar-product-content { flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.ar-product-brand { font-family: "AR360 Condensed", Arial, sans-serif; font-size: 17px; line-height: 1.15; }
.ar-product-card h3 { font-size: 16px; font-weight: 400; line-height: 1.4; margin: 5px 0 2px; }
.ar-product-code { display: block; }
.ar-product-rating { color: #ffae00; margin: 5px 0 3px; font-size: 19px; letter-spacing: 1px; display: flex; align-items: center; gap: 9px; }
.ar-product-rating small { color: #7d8793; font-size: 14px; letter-spacing: 0; }
.ar-product-price { margin-top: 9px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; line-height: 1.1; }
.ar-product-price del { color: #8b9097; font-size: 18px; }
.ar-product-price strong { color: var(--ar-red); font-size: 24px; }
.ar-product-stock { display: flex; align-items: center; gap: 6px; color: var(--ar-green); font-size: 14px; margin-top: 9px; margin-bottom: 10px; }
.ar-product-stock::before { content: ""; width: 7px; height: 7px; border: 1.5px solid currentColor; border-radius: 50%; }
.ar-product-add { width: 100%; height: 44px; margin-top: auto; font-size: 15px; }
.ar-carousel-arrow { position: absolute; top: 144px; z-index: 1; border: 1px solid var(--ar-line); background: #fff; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px #0001; }
.ar-carousel-arrow:first-child { left: -16px; }
.ar-carousel-arrow:last-child { right: -16px; }
.ar-carousel-arrow .ar-icon { width: 20px; height: 20px; }

/* 7. Why choose AR360, newsletter and footer */
.ar-why { padding: 24px 0 30px; min-height: 222px; background: linear-gradient(105deg, #f6f7f9, #f9fafb); }
.ar-why h2 { margin: 0 0 22px; text-align: center; font-size: 26px; }
.ar-why-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; text-align: center; }
.ar-why-item .ar-icon { width: 40px; height: 40px; margin: 0 auto 12px; }
.ar-why-item span { display: block; font-size: 16px; line-height: 1.55; }
.ar-newsletter { background: linear-gradient(110deg, #202529, #191d21); color: #fff; }
.ar-newsletter-inner { height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ar-newsletter-copy strong { display: block; font-size: 21px; }
.ar-newsletter-copy p { margin: 4px 0 0; font-size: 16px; }
.ar-newsletter-form { height: 46px; display: flex; gap: 12px; width: 600px; flex: 0 0 auto; }
.ar-newsletter-form input { flex: 1; background: #fff; border: 1px solid #d4d9e0; border-radius: 6px; padding: 0 16px; font-size: 16px; outline: none; }
.ar-newsletter-form button { width: 140px; height: 100%; font-size: 16px; }
.ar-newsletter-form .ar-icon { width: 18px; height: 18px; }
.ar-footer { background: #fff; }
.ar-footer-main { display: grid; grid-template-columns: 260px 165px 145px 175px minmax(180px, 1fr); gap: 24px; padding-top: 26px; padding-bottom: 24px; min-height: 198px; }
.ar-footer .ar-logo { width: 250px; height: 74px; margin-top: -7px; color: #121519; }
.ar-footer-column h2, .ar-footer-payments h2 { margin: 0 0 12px; font-size: 16px; line-height: 1.2; }
.ar-footer-column a { display: block; font-size: 15px; color: #747b83; line-height: 1.6; }
.ar-footer-column a:hover { color: var(--ar-red); }
.ar-footer-payments { border-left: 1px solid var(--ar-line); padding-left: 24px; }
.ar-payment-logos { display: flex; align-items: center; gap: 12px; height: 34px; white-space: nowrap; }
.ar-pay-visa { font-size: 24px; font-weight: 700; font-style: italic; color: #082b91; letter-spacing: -1px; }
.ar-pay-mastercard { position: relative; display: block; width: 34px; height: 23px; }
.ar-pay-mastercard::before, .ar-pay-mastercard::after { position: absolute; content: ""; width: 22px; height: 22px; border-radius: 50%; top: 0; }
.ar-pay-mastercard::before { left: 0; background: #ed161b; }
.ar-pay-mastercard::after { right: 0; background: #ffa500; opacity: .93; }
.ar-pay-paypal { color: #006eae; font-size: 18px; font-weight: 700; font-style: italic; letter-spacing: -.6px; }
.ar-pay-klarna { font-size: 15px; color: #111; font-weight: 700; padding: 3px 5px; background: #ffd1e4; border-radius: 3px; }
.ar-shipping-italy { margin-top: 24px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ar-italian-flag { display: inline-block; width: 28px; height: 20px; background: linear-gradient(90deg, #059047 0 33.333%, #fff 33.333% 66.666%, #ef2639 66.666%); border: 1px solid #ddd; }
.ar-footer-bottom { height: 56px; border-top: 1px solid var(--ar-line); background: #f9fafc; color: #77818c; }
.ar-footer-bottom .ar-container { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.ar-footer-bottom small { font-size: 13px; }
.ar-social-links { display: flex; gap: 16px; color: #1a232f; }
.ar-social-links .ar-icon { width: 24px; height: 24px; }

/* Native desktop reflow. Mobile design is intentionally a later phase. */
@media (max-width: 1370px) {
  .ar-header-main { grid-template-columns: 260px minmax(260px, 1fr) 222px; gap: 20px; }
  .ar-nav-inner { gap: 14px; }
  .ar-nav-inner > a { font-size: 13px; }
  .ar-trust-item { padding-inline: 16px; gap: 12px; }
  .ar-product-card { padding-inline: 20px; }
  .ar-newsletter-form { width: 560px; }
  .ar-footer-main { grid-template-columns: 250px 155px 130px 160px minmax(180px, 1fr); gap: 20px; }
  .ar-footer .ar-logo { width: 240px; }
  .ar-footer-payments { padding-left: 20px; }
  .ar-payment-logos { gap: 10px; }
}

/* R29 home: compact real products and explicit selected vehicle. */
.ar-home-vehicle{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 14px;margin:0 0 16px;background:#f3f5f7;border-radius:8px;font-size:14px}
.ar-home-vehicle[hidden]{display:none}.ar-home-products-note{margin:-8px 0 16px;color:var(--ar-muted);font-size:13px;line-height:1.5}
.ar-products#prodotti .ar-product-card{min-height:310px;padding:16px;gap:4px}.ar-products#prodotti .ar-product-image{height:112px;margin:0 16px 4px}
.ar-products#prodotti .ar-product-card h3{font-size:15px;line-height:1.4;margin:4px 0}.ar-products#prodotti .ar-product-add{height:auto;min-height:44px;padding:8px;margin-top:12px;white-space:normal}
.ar-products#prodotti .ar-product-brand:empty,.ar-products#prodotti .ar-product-code:empty{display:none}.ar-products#prodotti .ar-product-price{margin-top:6px}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-grid{grid-template-columns:minmax(0,1fr)}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-card{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:0;gap:18px;padding:18px 54px 18px 18px;align-items:center}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-image{height:108px;margin:0}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,210px);column-gap:24px;align-items:center}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-brand,.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] h3{grid-column:1}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-price{grid-column:2;grid-row:1;margin:0}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-stock{grid-column:2;grid-row:2;margin:4px 0}
.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-add{grid-column:2;grid-row:3;margin:6px 0 0}
.ar-products#prodotti .ar-product-carousel[data-visible-products="2"] .ar-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ar-products#prodotti .ar-product-carousel[data-visible-products="3"] .ar-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.ar-products#prodotti .ar-carousel-arrow[hidden]{display:none}
@media(max-width:760px){.ar-products#prodotti .ar-product-grid,.ar-products#prodotti .ar-product-carousel[data-visible-products="3"] .ar-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ar-products#prodotti .ar-product-card{padding:14px 12px;min-height:310px}.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-card{grid-template-columns:76px minmax(0,1fr);padding:18px 44px 18px 14px;gap:14px}.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-image{height:76px}.ar-products#prodotti .ar-product-carousel[data-visible-products="1"] .ar-product-content{display:flex;align-items:stretch;gap:2px}.ar-products#prodotti .ar-product-price strong{font-size:22px}}
@media(max-width:430px){.ar-products#prodotti .ar-product-grid,.ar-products#prodotti .ar-product-carousel[data-visible-products="2"] .ar-product-grid,.ar-products#prodotti .ar-product-carousel[data-visible-products="3"] .ar-product-grid{grid-template-columns:minmax(0,1fr)}.ar-products#prodotti .ar-product-card{min-height:0}.ar-products#prodotti .ar-product-image{height:96px}}
