/*
Theme Name: Roadwatcher Loja
Theme URI: https://roadwatcher.pt
Author: Roadwatcher
Description: Tema WooCommerce oficial para a loja Roadwatcher.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: roadwatcher-loja
*/

:root {
  --rw-blue: #1f355d;
  --rw-blue-dark: #10233f;
  --rw-yellow: #deb51f;
  --rw-yellow-dark: #b88f08;
  --rw-ink: #172033;
  --rw-muted: #647084;
  --rw-line: #dce1e8;
  --rw-soft: #f3f5f7;
  --rw-white: #ffffff;
  --rw-success: #18704b;
  --rw-width: 1280px;
  --rw-font: "Century Gothic", Futura, "Avenir Next", sans-serif;
  --rw-body: Carlito, "Nimbus Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--rw-ink);
  background: var(--rw-white);
  font-family: var(--rw-body);
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(222,181,31,.55); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rw-container { width: min(var(--rw-width), calc(100% - 40px)); margin-inline: auto; }

.rw-servicebar { background: var(--rw-blue-dark); color: #fff; font-size: 13px; }
.rw-servicebar__inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.rw-servicebar p { margin: 0; }
.rw-servicebar a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.45); }
.rw-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--rw-line); }
.rw-header__inner { min-height: 78px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 34px; }
.rw-brand img { width: 166px; max-height: 62px; object-fit: contain; object-position: left center; }
.rw-nav ul { display: flex; align-items: center; justify-content: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.rw-nav a { position: relative; display: block; padding: 27px 0 23px; color: var(--rw-blue); font-family: var(--rw-font); font-size: 14px; font-weight: 700; }
.rw-nav a::after { content: ""; position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--rw-yellow); opacity: 0; transition: opacity .15s ease; }
.rw-nav a:hover::after, .rw-nav .current-menu-item a::after { opacity: 1; }
.rw-actions { display: flex; align-items: center; gap: 8px; }
.rw-icon-button { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--rw-blue); background: transparent; border: 1px solid var(--rw-line); border-radius: 6px; cursor: pointer; }
.rw-icon-button:hover { background: var(--rw-soft); border-color: #c8cfda; }
.rw-icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rw-cart { position: relative; }
.rw-cart__count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; color: var(--rw-blue-dark); background: var(--rw-yellow); font: 700 11px/1 var(--rw-body); }
.rw-menu-toggle { display: none; }

.rw-main { min-height: 60vh; }
.rw-hero { background: var(--rw-blue); color: #fff; overflow: hidden; }
.rw-hero__grid { min-height: 530px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); align-items: stretch; }
.rw-hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px 72px 64px 0; }
.rw-hero__content::before { content: ""; position: absolute; top: 0; right: 20px; width: 2px; height: 100%; background: rgba(222,181,31,.55); }
.rw-hero h1 { max-width: 760px; margin: 0 0 20px; font-family: var(--rw-font); font-size: 68px; line-height: 1.02; font-weight: 700; letter-spacing: 0; }
.rw-hero p { max-width: 650px; margin: 0 0 30px; color: #e2e8f1; font-size: 19px; }
.rw-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.rw-hero__visual { position: relative; min-height: 410px; background: #edf0f4; }
.rw-hero__visual img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.rw-hero__visual::after { content: ""; position: absolute; inset: auto 0 0; height: 7px; background: var(--rw-yellow); }
.rw-button, button.button, a.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; border: 1px solid var(--rw-blue); border-radius: 6px; color: #fff; background: var(--rw-blue); font-family: var(--rw-font); font-size: 14px; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.rw-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { color: var(--rw-blue-dark); background: var(--rw-yellow); border-color: var(--rw-yellow); }
.rw-button--accent { color: var(--rw-blue-dark); background: var(--rw-yellow); border-color: var(--rw-yellow); }
.rw-button--accent:hover { color: #fff; background: var(--rw-yellow-dark); border-color: var(--rw-yellow-dark); }
.rw-button--outline { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.rw-button--outline:hover { color: var(--rw-blue-dark); background: #fff; border-color: #fff; }
.rw-button--light { color: var(--rw-blue); background: #fff; border-color: var(--rw-line); }

.rw-assurances { border-bottom: 1px solid var(--rw-line); background: #fff; }
.rw-assurances__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rw-assurance { min-height: 98px; display: grid; grid-template-columns: 32px 1fr; align-content: center; gap: 12px; padding: 20px 26px; border-left: 1px solid var(--rw-line); }
.rw-assurance:last-child { border-right: 1px solid var(--rw-line); }
.rw-assurance svg { width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--rw-yellow-dark); stroke-width: 1.8; }
.rw-assurance strong { display: block; color: var(--rw-blue); font-family: var(--rw-font); font-size: 14px; }
.rw-assurance span { display: block; color: var(--rw-muted); font-size: 13px; }

.rw-section { padding: 72px 0; }
.rw-section--soft { background: var(--rw-soft); }
.rw-section__header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--rw-line); }
.rw-section__header h2 { margin: 0; color: var(--rw-blue); font-family: var(--rw-font); font-size: 42px; line-height: 1.1; letter-spacing: 0; }
.rw-section__header p { max-width: 560px; margin: 0; color: var(--rw-muted); }
.rw-text-link { color: var(--rw-blue); font-family: var(--rw-font); font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--rw-yellow); }

.rw-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rw-line); border: 1px solid var(--rw-line); }
.rw-category { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; background: #fff; }
.rw-category svg { width: 32px; height: 32px; fill: none; stroke: var(--rw-yellow-dark); stroke-width: 1.6; }
.rw-category h3 { margin: 30px 0 8px; color: var(--rw-blue); font-family: var(--rw-font); font-size: 19px; }
.rw-category p { margin: 0; color: var(--rw-muted); font-size: 14px; }
.rw-category:hover { background: #f9fafb; }

.rw-products, .woocommerce ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; }
.rw-product, .woocommerce ul.products li.product { position: relative; width: auto !important; float: none !important; margin: 0 !important; padding: 0 0 20px; list-style: none; background: #fff; border: 1px solid var(--rw-line); border-radius: 6px; overflow: hidden; }
.rw-product__image, .woocommerce ul.products li.product a img { width: 100%; aspect-ratio: 4 / 3; margin: 0 0 18px !important; object-fit: contain; background: #f4f5f7; }
.rw-product__body { padding: 0 20px; }
.rw-product__type { color: var(--rw-muted); font-size: 13px; }
.rw-product h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 6px 0 10px; padding: 0 20px; color: var(--rw-blue); font-family: var(--rw-font); font-size: 18px; line-height: 1.25; }
.rw-product__body h3 { padding: 0; }
.rw-product__body p { min-height: 48px; margin: 0 0 16px; color: var(--rw-muted); font-size: 14px; }
.rw-product__price, .woocommerce ul.products li.product .price { display: block; margin: 0 20px 14px; color: var(--rw-ink) !important; font-family: var(--rw-font); font-size: 20px !important; font-weight: 700; }
.rw-product__price { margin-inline: 0; }
.rw-product__vat { color: var(--rw-muted); font: 400 12px var(--rw-body); }
.rw-product__actions { display: flex; gap: 8px; padding: 0 20px; }
.rw-product__body .rw-product__actions { padding: 0; }
.rw-product__actions .rw-button { flex: 1; padding-inline: 12px; }
.woocommerce ul.products li.product .button { margin: 0 20px; }
.onsale { min-width: auto !important; min-height: auto !important; margin: 12px !important; padding: 5px 8px !important; border-radius: 4px !important; color: var(--rw-blue-dark) !important; background: var(--rw-yellow) !important; line-height: 1.2 !important; }

.rw-project-band { background: var(--rw-blue-dark); color: #fff; }
.rw-project-band__inner { min-height: 210px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.rw-project-band h2 { max-width: 760px; margin: 0 0 10px; font-family: var(--rw-font); font-size: 42px; line-height: 1.12; letter-spacing: 0; }
.rw-project-band p { max-width: 780px; margin: 0; color: #cdd7e5; }

.rw-content { padding: 54px 0 80px; }
.rw-page-title { margin: 0 0 30px; color: var(--rw-blue); font-family: var(--rw-font); font-size: 52px; line-height: 1.08; letter-spacing: 0; }
.woocommerce .woocommerce-breadcrumb { margin: 0 0 22px; color: var(--rw-muted); font-size: 13px; }
.woocommerce div.product { display: flow-root; }
.woocommerce div.product div.images img { background: var(--rw-soft); border-radius: 6px; }
.woocommerce div.product .product_title { color: var(--rw-blue); font-family: var(--rw-font); font-size: 46px; line-height: 1.12; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rw-ink); font-family: var(--rw-font); font-size: 24px; font-weight: 700; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--rw-yellow); background: var(--rw-soft); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rw-yellow-dark); }
.woocommerce table.shop_table { border-collapse: collapse; border-color: var(--rw-line); border-radius: 6px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { min-height: 44px; padding: 10px 12px; border: 1px solid #b9c2cf; border-radius: 5px; background: #fff; }
.rw-quote-product { margin: 12px 0 0; }
.rw-quote-product .rw-button { width: 100%; }

.rw-footer { color: #d6deea; background: #0d1c32; }
.rw-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding: 58px 0 44px; }
.rw-footer__brand img { width: 180px; margin-bottom: 18px; }
.rw-footer p { color: #aebbd0; font-size: 14px; }
.rw-footer h2 { margin: 0 0 14px; color: #fff; font-family: var(--rw-font); font-size: 15px; }
.rw-footer ul { list-style: none; margin: 0; padding: 0; }
.rw-footer li { margin: 8px 0; }
.rw-footer a { color: #c9d3e1; font-size: 14px; }
.rw-footer a:hover { color: var(--rw-yellow); }
.rw-footer__bottom { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.13); color: #95a5bd; font-size: 12px; }

@media (max-width: 980px) {
  .rw-header__inner { grid-template-columns: 160px 1fr auto; gap: 16px; }
  .rw-menu-toggle { display: inline-grid; }
  .rw-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 10px 20px 20px; background: #fff; border-bottom: 1px solid var(--rw-line); }
  .rw-nav.is-open { display: block; }
  .rw-nav ul { display: block; }
  .rw-nav a { padding: 12px 0; border-bottom: 1px solid var(--rw-line); }
  .rw-nav a::after { display: none; }
  .rw-hero__grid { grid-template-columns: 1fr; }
  .rw-hero__content { min-height: 410px; padding-right: 0; }
  .rw-hero__content::before { display: none; }
  .rw-hero__visual { min-height: 360px; }
  .rw-hero h1 { font-size: 52px; }
  .rw-section__header h2, .rw-project-band h2 { font-size: 36px; }
  .rw-page-title { font-size: 44px; }
  .woocommerce div.product .product_title { font-size: 38px; }
  .rw-assurances__grid, .rw-category-grid { grid-template-columns: repeat(2, 1fr); }
  .rw-products, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .rw-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .rw-container { width: min(100% - 28px, var(--rw-width)); }
  .rw-servicebar__inner { min-height: 42px; justify-content: center; }
  .rw-servicebar__inner p:last-child { display: none; }
  .rw-header__inner { min-height: 68px; grid-template-columns: 1fr auto; }
  .rw-brand img { width: 145px; max-height: 54px; }
  .rw-actions .rw-account { display: none; }
  .rw-nav { padding-inline: 14px; }
  .rw-hero__content { min-height: 390px; padding-block: 48px; }
  .rw-hero h1 { font-size: 40px; }
  .rw-section__header h2, .rw-project-band h2 { font-size: 30px; }
  .rw-page-title { font-size: 36px; }
  .woocommerce div.product .product_title { font-size: 32px; }
  .rw-hero p { font-size: 17px; }
  .rw-hero__actions .rw-button { width: 100%; }
  .rw-hero__visual { min-height: 280px; }
  .rw-assurances__grid, .rw-category-grid, .rw-products, .woocommerce ul.products { grid-template-columns: 1fr; }
  .rw-assurance { min-height: 82px; border-right: 1px solid var(--rw-line); border-bottom: 1px solid var(--rw-line); }
  .rw-section { padding: 50px 0; }
  .rw-section__header { display: block; }
  .rw-section__header p, .rw-section__header .rw-text-link { display: block; margin-top: 12px; }
  .rw-project-band__inner { min-height: 280px; grid-template-columns: 1fr; align-content: center; gap: 24px; }
  .rw-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .rw-footer__bottom { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; }
  .woocommerce div.product div.images, .woocommerce div.product div.summary { width: 100%; float: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
