/* RENNiS STEP147 — approved mobile palette and existing native WooCommerce.
 * No new cart, checkout, favorite or filter implementations. No Desktop rules. */
/* Keep the injected catalog entry invisible on Desktop; this is not a Desktop feature. */
body.home .rn147-mobile-catalog-entry{display:none;}
@media (max-width:1199px) {
  body.rn147-mobile-ready { --rn147-orange:#ff6500; --rn147-ink:#262e33; --rn147-bg:#e1e5e8; --rn147-line:#cfd5d9; --rn147-panel:#f0f2f4; }
  body.rn147-mobile-ready #header .rn-mobile { background:#f0f2f4; padding-inline:clamp(12px,4vw,20px); }
  body.rn147-mobile-ready #header .rn-mobile-top { width:100%; max-width:568px; }
  body.rn147-mobile-ready #header .rn-mobile .rn-logo { min-width:0; }
  body.rn147-mobile-ready #header .rn-mobile .rn-logo img { display:block; max-width:100%; width:100%; max-height:78px; object-fit:contain; }
  body.rn147-mobile-ready #header .rn-mobile .rn-search { border:1px solid var(--rn147-line); border-radius:7px; min-width:0; }
  body.rn147-mobile-ready #header .rn-mobile .rn-search button { background:var(--rn147-orange); color:white; }
  body.rn147-mobile-ready #header .rn-mobile .rn-mobile-menu,
  body.rn147-mobile-ready #header .rn-mobile .rn-mobile-cart { color:var(--rn147-ink); }
  body.rn147-mobile-ready #header .rn-mobile-cart .rn-cart-count { background:var(--rn147-orange); color:white; }
  body.rn147-mobile-ready .rn-bottom { background:#fff; border-color:var(--rn147-line); }
  body.rn147-mobile-ready .rn-bottom>a { color:#49545b; }
  body.rn147-mobile-ready .rn-bottom>a[aria-current="page"] { color:var(--rn147-orange); }
  body.rn147-mobile-ready .rn-bottom>a[aria-current="page"]::before { background:var(--rn147-orange); }
  body.rn147-mobile-ready .rn-bottom>a:focus-visible,
  body.rn147-mobile-ready #header :is(a,button,input):focus-visible { outline:2px solid var(--rn147-orange); outline-offset:2px; }

  /* Homepage: preserve native Renault artwork geometry and approved orange call-to-action. */
  body.home.rn147-mobile-ready .rn-home { width:100%; max-width:720px; padding:8px 12px 28px; }
  body.home.rn147-mobile-ready .rn-home-layout { display:flex; flex-direction:column; gap:14px; }
  body.home.rn147-mobile-ready .rn-home .rn-home-catalog { display:none; }
  body.home.rn147-mobile-ready .rn-hero { width:100%; min-width:0; height:auto; border-radius:9px; background:#fff5ed; overflow:hidden; }
  body.home.rn147-mobile-ready .rn-hero-art { position:relative; width:100%; height:auto; aspect-ratio:276/174; overflow:hidden; }
  body.home.rn147-mobile-ready .rn-hero-art picture,
  body.home.rn147-mobile-ready .rn-hero-art img { display:block; width:100%; height:100%; }
  body.home.rn147-mobile-ready .rn-hero-art img { object-fit:contain!important; object-position:center center!important; max-width:100%; }
  body.home.rn147-mobile-ready .rn-hero-copy { width:100%; padding:12px 20px 20px; }
  body.home.rn147-mobile-ready .rn-home .rn-hero h1 { font-family:"Roboto Condensed",Roboto,Arial,sans-serif; font-size:clamp(30px,9.2vw,36px); line-height:1.09; margin:0 0 7px; letter-spacing:0; font-weight:700; }
  body.home.rn147-mobile-ready .rn-home .rn-hero-subtitle { font:500 15px/21px Roboto,Arial,sans-serif; margin:0; color:#161c24; }
  body.home.rn147-mobile-ready .rn-home .rn-home-primary { display:flex; width:100%; min-height:47px; margin-top:16px; background:var(--rn147-orange); border-radius:7px; color:#fff; font-weight:500; }
  body.home.rn147-mobile-ready .rn-home .rn-home-primary .rn-icon { width:20px; height:20px; }
  /* User explicitly removed the three misleading promos in the accepted Desktop revision. */
  body.home.rn147-mobile-ready .rn-home-promos { display:none!important; }
  /* CTA reuses the SAME existing native rn-catalog dialog and its actual menu links. */
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry { display:flex; align-items:center; gap:14px; min-height:52px; padding:12px 16px; margin:0 4px 1px; background:var(--rn147-orange); border-radius:7px; color:#fff!important; font:500 18px/24px Roboto,Arial,sans-serif; text-decoration:none; }
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry .rn-icon { width:24px; height:24px; flex:none; }
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry .rn147-entry-label { flex:1; }
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry .rn-icon-chevron { transform:rotate(-90deg); width:19px; height:19px; }
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry:hover { background:#e75500; color:white!important; }
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry:focus-visible { outline:3px solid #262e33; outline-offset:2px; }
  /* Existing Woo product carousel stays real (STEP022), including favorites and native cart. */
  body.home.rn147-mobile-ready .rn-home-products { width:calc(100% - 8px); max-width:100%; margin:0 4px; min-width:0; }
  body.home.rn147-mobile-ready .rn-home-products .rn-products-heading { gap:8px; margin:2px 0 13px; }
  body.home.rn147-mobile-ready .rn-home-products .rn-products-heading h2 { min-width:0; font:700 25px/32px "Roboto Condensed",Roboto,Arial,sans-serif; }
  body.home.rn147-mobile-ready .rn-products-filters { display:none; }
  body.home.rn147-mobile-ready .rn-products-all { color:#c74600!important; font-size:14px; min-height:38px; }
  body.home.rn147-mobile-ready .rn-products-track { display:flex; gap:12px; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:thin; }
  body.home.rn147-mobile-ready .rn-products-track .rn-product { min-height:0; width:100%; flex:0 0 100%; min-width:0; padding:13px 16px 14px; background:#fff; border:1px solid var(--rn147-line); border-radius:8px; }
  body.home.rn147-mobile-ready .rn-product-photo { width:100%; aspect-ratio:306/171; margin-bottom:10px; }
  body.home.rn147-mobile-ready .rn-product-photo img { max-width:100%; width:100%; height:100%; object-fit:contain; }
  body.home.rn147-mobile-ready .rn-home .rn-product-name { font-size:17px; line-height:23px; min-height:46px; }
  body.home.rn147-mobile-ready .rn-product-price { font-size:25px; line-height:32px; }
  body.home.rn147-mobile-ready .rn-home .rn-product-cart .rn-product-add { display:flex; min-width:47px; min-height:45px; width:47px; height:45px; background-color:var(--rn147-orange); color:#fff; background-image:url('../rennis-desktop-144/cart-white.svg')!important; background-position:center!important; background-repeat:no-repeat!important; background-size:22px 22px!important; }
  body.home.rn147-mobile-ready .rn-home .rn-product-cart .rn-product-add.rn-product-add-detail { background-image:url('../rennis-desktop-144/arrow-white.svg')!important; }
  body.home.rn147-mobile-ready .rn-home .rn-product-cart .rn-product-add::before { content:none!important; display:none!important; }
  body.home.rn147-mobile-ready .rn-products-dots:not([hidden]) { display:flex; }
  body.home.rn147-mobile-ready .rn-products-dots button[aria-current="true"] span { background:var(--rn147-orange); }
  body.home.rn147-mobile-ready .rn-product-favorite { color:#c74600!important; }

  /* Shared mobile chrome: no horizontal scrolling, natural image proportions. */
  body.rn147-mobile-ready :is(.woocommerce, .wp-block-woocommerce-cart, .wp-block-woocommerce-checkout, .woocommerce-MyAccount-content) { min-width:0; max-width:100%; }
  body.rn147-mobile-ready .woocommerce :is(img.attachment-woocommerce_thumbnail, img.wp-post-image, .woocommerce-product-gallery img) { max-width:100%; height:auto; object-fit:contain; }
}
@media (max-width:1099px) {
  /* Use existing WooCommerce catalog/sort/filter; style controls only, no fake filters. */
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce-result-count,.woocommerce-ordering) { float:none; display:block; max-width:100%; margin:8px 0 12px; color:#66737f; font-size:13px; }
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce-ordering select,select.orderby) { max-width:100%; width:100%; min-height:44px; border:1px solid #cfd5d9; background:#fff; color:#262e33; border-radius:7px; font:400 14px/20px Roboto,Arial,sans-serif; box-shadow:none; }
  body.rn147-mobile-ready.rn052-archive .rn062-price-filter { max-width:100%; min-width:0; }
  body.rn147-mobile-ready.rn052-archive :is(.rn062-price-filter input,.rn062-price-filter button,.woocommerce-ordering select):focus-visible { outline:2px solid #ff6500; outline-offset:1px; box-shadow:none; }
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce ul.products li.product,.woocommerce-page ul.products li.product) { min-width:0; max-width:100%; }
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce ul.products li.product img,.woocommerce-page ul.products li.product img) { width:100%; height:auto; object-fit:contain; }
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce ul.products li.product .button,.woocommerce-page ul.products li.product .button) { background:#ff6500; color:white; border-radius:7px; min-height:42px; padding:10px 14px; font-weight:500; }
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce-pagination,.ct-pagination) :is(a,.current,[aria-current="page"]) { border-radius:6px; }
  body.rn147-mobile-ready.rn052-archive :is(.woocommerce-pagination,.ct-pagination) .current { background:#ff6500; color:#fff; }
  /* Single product: gallery above details, still native Woo gallery/form/quantity. */
  body.rn147-mobile-ready.rn052-product div.product :is(.woocommerce-product-gallery,.summary) { min-width:0; width:100%; max-width:100%; }
  body.rn147-mobile-ready.rn052-product div.product .product_title { overflow-wrap:anywhere; font:600 clamp(23px,6.5vw,29px)/1.24 Roboto,Arial,sans-serif; color:#262e33; }
  body.rn147-mobile-ready.rn052-product div.product .summary .price { font:600 25px/1.25 Roboto,Arial,sans-serif; color:#262e33; }
  body.rn147-mobile-ready.rn052-product div.product :is(.single_add_to_cart_button,.related.products .button) { min-height:46px; border-radius:7px; background:#ff6500!important; color:white!important; font-weight:500; }
  body.rn147-mobile-ready.rn052-product div.product .quantity .qty { min-height:44px; border-radius:6px; border-color:#ff6500; max-width:96px; }
  body.rn147-mobile-ready.rn052-product :is(.quantity input,.single_add_to_cart_button,.woocommerce-tabs a):focus-visible { outline:2px solid #ff6500; outline-offset:2px; box-shadow:none; }
  /* Cart and Checkout Blocks: layout only; Woo's Store API and order processing untouched. */
  body.rn147-mobile-ready :is(.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout) { width:100%; max-width:100%; padding:0; margin-inline:auto; }
  body.rn147-mobile-ready :is(.wc-block-cart,.wc-block-checkout) { min-width:0; max-width:100%; gap:12px; }
  body.rn147-mobile-ready :is(.wc-block-cart__main,.wc-block-cart__sidebar,.wc-block-checkout__main,.wc-block-checkout__sidebar) { width:100%; max-width:100%; min-width:0; box-sizing:border-box; }
  body.rn147-mobile-ready .wc-block-components-checkout-step { background:#fff; border:1px solid #e1e5e8; border-radius:8px; margin-bottom:12px; padding:14px 15px; }
  body.rn147-mobile-ready :is(.wc-block-components-order-summary,.wc-block-cart__totals-title,.wc-block-components-totals-wrapper) { max-width:100%; min-width:0; }
  body.rn147-mobile-ready :is(.wc-block-components-text-input input,.wc-block-components-select select) { max-width:100%; border-radius:5px; }
  body.rn147-mobile-ready :is(.wc-block-components-text-input input,.wc-block-components-select select):focus { border-color:#ff6500!important; box-shadow:none!important; outline:1px solid #ff6500!important; }
  body.rn147-mobile-ready :is(.wc-block-components-button,.wc-block-components-checkout-place-order-button) { background:#ff6500; border-radius:7px; color:white; min-height:47px; font-weight:500; }
  body.rn147-mobile-ready :is(.wc-block-components-button,.wc-block-components-checkout-place-order-button):hover { background:#e75500; color:white; }
  body.rn147-mobile-ready :is(.wc-block-components-radio-control__input,.wc-block-components-checkbox__input) { accent-color:#ff6500; }
  body.rn147-mobile-ready :is(.wc-block-cart-item__image img,.wc-block-components-order-summary-item__image img) { object-fit:contain; max-width:100%; height:auto; }
  body.rn147-mobile-ready :is(.wc-block-cart-items,.wc-block-components-order-summary) { max-width:100%; overflow-wrap:anywhere; }
  /* Native My Account: stack navigation & details, no custom registration/login. */
  body.rn147-mobile-ready.woocommerce-account .woocommerce-MyAccount-navigation,
  body.rn147-mobile-ready.woocommerce-account .woocommerce-MyAccount-content { float:none; width:100%; max-width:100%; min-width:0; margin:0 0 16px; }
  body.rn147-mobile-ready.woocommerce-account .woocommerce-MyAccount-navigation ul { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:14px; }
  body.rn147-mobile-ready.woocommerce-account .woocommerce-MyAccount-navigation li a { display:flex; min-height:42px; align-items:center; padding:9px 13px; border:1px solid #cfd5d9; border-radius:7px; background:#fff; color:#262e33; }
  body.rn147-mobile-ready.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { border-color:#ff6500; color:#c74600; }
  body.rn147-mobile-ready.woocommerce-account :is(.woocommerce-Input,.input-text) { max-width:100%; min-height:43px; }
  body.rn147-mobile-ready.woocommerce-account :is(button.button,a.button) { background:#ff6500; color:#fff; border-radius:7px; }
}
@media (max-width:480px) {
  body.rn147-mobile-ready .rn-bottom>a { font-size:10px; gap:7px; padding-top:10px; }
  body.rn147-mobile-ready .rn-bottom>a>.rn-icon { width:22px; height:22px; }
  body.home.rn147-mobile-ready .rn-home { padding-inline:12px; }
  body.home.rn147-mobile-ready .rn-hero-copy { padding-inline:20px; }
  body.home.rn147-mobile-ready .rn-products-track .rn-product { padding:12px 14px; }
  body.rn147-mobile-ready.woocommerce-account .woocommerce-MyAccount-navigation li { max-width:100%; }
}
@media (max-width:359px) {
  body.home.rn147-mobile-ready .rn-hero-copy { padding-inline:16px; }
  body.home.rn147-mobile-ready .rn-home .rn-hero h1 { font-size:30px; line-height:34px; }
  body.home.rn147-mobile-ready .rn-home .rn-hero-subtitle { font-size:14px; line-height:20px; }
  body.home.rn147-mobile-ready .rn147-mobile-catalog-entry { font-size:16px; padding-inline:12px; }
  body.rn147-mobile-ready #header .rn-mobile { padding-inline:12px; }
}
@media(prefers-reduced-motion:reduce) { body.rn147-mobile-ready .rn-products-track { scroll-behavior:auto; } }
