/*
Theme Name: RPM Store
Description: Peças e componentes. Tema filho do Storefront para a RPM Store.
Author: RPM Store
Template: storefront
Version: 0.2.0
Text Domain: rpmstore
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--rpm-paper: #fff;
	--rpm-ink: #202326;
	--rpm-muted: #5e6369;
	--rpm-red: #bc252b;
	--rpm-line: #dfe2e5;
	--rpm-surface: #f5f6f7;
}

html { scroll-padding-top: 24px; }
body.rpmstore {
	background: var(--rpm-paper);
	color: var(--rpm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.rpmstore *, .rpmstore *::before, .rpmstore *::after { box-sizing: border-box; }
.rpmstore h1, .rpmstore h2, .rpmstore h3, .rpmstore h4 {
	color: var(--rpm-ink);
	font-family: inherit;
	font-weight: 650;
	letter-spacing: -.025em;
	line-height: 1.25;
}
.rpmstore a { color: var(--rpm-red); text-decoration-thickness: 1px; text-underline-offset: .2em; }
.rpmstore a:hover { color: var(--rpm-ink); }
.rpmstore a:focus { outline-color: var(--rpm-red); }
.rpmstore a:focus-visible, .rpmstore button:focus-visible, .rpmstore input:focus-visible,
.rpmstore select:focus-visible, .rpmstore textarea:focus-visible, .rpmstore [tabindex]:focus-visible {
	outline: 3px solid var(--rpm-red);
	outline-offset: 4px;
}
.rpmstore .col-full { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.rpmstore .content-area { width: 100%; float: none; margin-right: 0; }
.rpmstore .site-main { margin-bottom: 0; }
.rpmstore .site-content { padding-top: 0; }
.rpmstore .site-header { background: white; border-bottom: 1px solid var(--rpm-line); padding: 0; margin: 0; }
.rpmstore .rpm-header { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; align-items: center; gap: 0 48px; padding-top: 24px; }
.rpm-header::before, .rpm-header::after { display: none; }
.rpmstore .rpm-wordmark { display: flex; align-items: baseline; gap: 10px; color: var(--rpm-ink); text-decoration: none; line-height: 1; }
.rpm-wordmark-main { font-size: 42px; font-weight: 850; font-style: italic; letter-spacing: -.075em; }
.rpm-mark { display: inline-block; width: 8px; height: 8px; background: var(--rpm-red); margin-left: 5px; }
.rpm-wordmark-store { font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.rpm-header-note { font-size: 12px; line-height: 1.7; color: var(--rpm-muted); }
.rpm-header-note strong { font-weight: 600; color: var(--rpm-ink); }
.rpm-search { width: 100%; }
.rpm-search form { margin: 0; position: relative; display: flex; }
.rpmstore input[type="search"] { background: var(--rpm-surface); border: 1px solid #c9cdd1; box-shadow: none; border-radius: 4px; color: var(--rpm-ink); font: inherit; }
.rpm-search input[type="search"] { width: 100%; min-width: 0; font-size: 14px; padding: 13px 100px 13px 16px; }
.rpmstore input::placeholder { color: var(--rpm-muted); opacity: 1; }
.rpmstore .rpm-search button[type="submit"], .rpmstore .rpm-search input[type="submit"] {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	padding: 0 18px;
	background: var(--rpm-ink);
	color: white;
	font-size: 13px;
	clip: auto;
	clip-path: none;
	width: auto;
	height: auto;
	border: 0;
	border-radius: 3px;
}
.rpmstore .rpm-search button[type="submit"]:hover { background: var(--rpm-red); }
.rpm-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 32px; margin-top: 17px; }
.rpmstore .rpm-nav a { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 0; color: var(--rpm-ink); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.rpmstore .rpm-nav a:hover { color: var(--rpm-red); border-bottom-color: var(--rpm-red); }
.rpmstore.home.page .site-header { margin-bottom: 0; }
.rpmstore .storefront-breadcrumb { padding: 0; margin: 0; }
.rpmstore .woocommerce-breadcrumb { color: var(--rpm-muted); font-size: 13px; padding: 22px 0; margin-bottom: 8px; }
.rpmstore.home .woocommerce-breadcrumb { display: none; }
.rpmstore.home .content-area { margin-bottom: 0; }
.rpm-intro { padding: 30px 0 26px; }
.rpm-eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--rpm-red); margin: 0 0 7px; }
.rpmstore .rpm-intro h1 { font-size: clamp(28px, 3vw, 38px); margin: 0 0 8px; }
.rpm-intro > p:last-child { color: var(--rpm-muted); margin: 0; font-size: 15px; }
.rpm-categories { display: flex; align-items: center; gap: 22px; padding: 15px 0; border-top: 1px solid var(--rpm-line); border-bottom: 1px solid var(--rpm-line); scroll-margin-top: 24px; }
.rpm-category-label { font-size: 13px; font-weight: 650; }
.rpm-category-links { display: flex; flex-wrap: wrap; gap: 8px; }
.rpmstore .rpm-category { display: inline-flex; align-items: center; min-height: 40px; padding: 7px 14px; background: var(--rpm-surface); border: 1px solid var(--rpm-line); border-radius: 4px; color: var(--rpm-ink); font-size: 13px; font-weight: 500; text-decoration: none; }
.rpmstore .rpm-category-all { background: var(--rpm-ink); border-color: var(--rpm-ink); color: white; }
.rpmstore .rpm-category:hover { border-color: var(--rpm-red); color: var(--rpm-red); background: #fff5f5; }
.rpm-selection { padding: 30px 0 48px; }
.rpm-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rpmstore .rpm-section-heading h2 { font-size: 24px; margin: 0; }
.rpm-section-heading > p { margin: 0; color: var(--rpm-muted); font-size: 14px; }
.rpmstore .button, .rpmstore button, .rpmstore input[type="button"], .rpmstore input[type="submit"] { background: var(--rpm-red); border: 1px solid var(--rpm-red); color: white; border-radius: 4px; font-weight: 600; font-size: 14px; padding: 12px 20px; min-height: 44px; text-decoration: none; box-shadow: none; }
.rpmstore .button:hover, .rpmstore button:hover, .rpmstore input[type="submit"]:hover { background: var(--rpm-ink); border-color: var(--rpm-ink); color: white; }
.rpmstore ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin: 0 0 32px; }
.rpmstore ul.products::before, .rpmstore ul.products::after { display: none; }
.rpmstore.storefront-full-width-content .site-main ul.products li.product { display: flex; flex-direction: column; float: none; width: 100%; margin: 0; padding: 0 0 20px; text-align: left; min-width: 0; border: 1px solid var(--rpm-line); border-radius: 6px; background: white; }
.rpmstore ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--rpm-ink); text-decoration: none; }
.rpmstore ul.products li.product img { aspect-ratio: 1; object-fit: contain; width: 100%; margin: 0 0 20px; padding: 18px; border-bottom: 1px solid #eceef0; border-radius: 6px 6px 0 0; background: white; }
.rpmstore ul.products li.product .woocommerce-loop-product__title { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.45; margin: 0 20px 10px; }
.rpm-product-reference { margin: 0 20px 16px; color: var(--rpm-muted); font-size: 13px; overflow-wrap: anywhere; }
.rpm-product-reference strong { color: var(--rpm-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 500; }
.rpm-empty-help { margin-bottom: 40px; }
.rpmstore ul.products li.product .price { color: var(--rpm-ink); font-size: 21px; font-weight: 650; margin: auto 20px 18px; line-height: 1.35; }
.rpmstore .rpm-price-note { color: var(--rpm-muted); font-size: 13px; line-height: 1.5; }
.rpmstore ul.products li.product .button { align-self: flex-start; background: white; border: 1px solid #b6bcc2; color: var(--rpm-ink); font-size: 13px; padding: 10px 16px; margin: 0 20px; }
.rpmstore ul.products li.product .button:hover { color: white; background: var(--rpm-red); border-color: var(--rpm-red); }
.rpmstore ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--rpm-red); }
.rpm-selection ul.products { margin-bottom: 0; }
.rpm-guide { padding: 32px 0 44px; border-top: 1px solid var(--rpm-line); scroll-margin-top: 24px; }
.rpm-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.rpm-guide-grid > div { border-left: 3px solid var(--rpm-line); padding-left: 18px; }
.rpmstore .rpm-guide h3 { font-size: 16px; margin: 0 0 8px; }
.rpm-guide-grid p { color: var(--rpm-muted); font-size: 14px; line-height: 1.7; margin: 0; }
.rpmstore .site-footer { background: var(--rpm-ink); color: #bfc4c9; padding: 40px 0 24px; }
.rpm-footer { display: flex; justify-content: space-between; align-items: start; gap: 32px; padding-bottom: 32px; }
.rpmstore .site-footer a:not(.button):not(.components-button) { color: white; text-decoration: none; }
.rpmstore .site-footer a:hover { text-decoration: underline; }
.rpmstore .rpm-footer-brand { font-size: 26px; font-weight: 750; letter-spacing: -.04em; }
.rpm-footer-brand span { color: #ff6f74; }
.rpm-footer p { font-size: 13px; margin: 8px 0 0; }
.rpm-footer nav { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.rpm-footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #484d52; padding-top: 20px; font-size: 12px; }
.rpmstore .site-footer a:focus-visible { outline-color: #ff9296; }

/* Galeria, abas e formulários preservam o comportamento nativo do WooCommerce. */
.rpmstore .woocommerce-products-header { padding: 12px 0 24px; }
.rpmstore .woocommerce-products-header h1, .rpmstore .entry-title { font-size: clamp(28px, 3vw, 38px); font-weight: 650; }
.rpmstore .storefront-sorting { padding: 14px 0; margin-bottom: 24px; border-top: 1px solid var(--rpm-line); border-bottom: 1px solid var(--rpm-line); color: var(--rpm-muted); font-size: 14px; }
.rpmstore select { background-color: white; color: var(--rpm-ink); border: 1px solid #b6bcc2; border-radius: 4px; padding: 10px; max-width: 100%; font: inherit; }
.rpmstore .woocommerce-result-count { color: var(--rpm-muted); }
.rpmstore .woocommerce-pagination .page-numbers li a.page-numbers { color: var(--rpm-ink); border-radius: 4px; }
.rpmstore .woocommerce-pagination .page-numbers li .page-numbers.current { background: var(--rpm-ink); color: white; border-radius: 4px; }
.rpmstore.single-product div.product .woocommerce-product-gallery { width: 51%; margin-right: 5%; }
.rpmstore.single-product div.product .summary { width: 44%; padding: 26px; border: 1px solid var(--rpm-line); border-top: 3px solid var(--rpm-red); border-radius: 6px; }
.rpmstore.single-product div.product .woocommerce-product-gallery img { background: white; }
.rpmstore.single-product div.product .woocommerce-product-gallery__image > a > img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 20px; border: 1px solid var(--rpm-line); border-radius: 6px; }
.rpmstore.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.rpmstore.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::before,
.rpmstore.single-product div.product .woocommerce-product-gallery .flex-control-thumbs::after { display: none; }
.rpmstore.storefront-full-width-content.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { float: none; width: calc((100% - 36px) / 4); margin: 0; }
.rpmstore.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6px; border: 1px solid var(--rpm-line); border-radius: 4px; opacity: .7; }
.rpmstore.single-product div.product .woocommerce-product-gallery .flex-control-thumbs .flex-active { opacity: 1; border-color: var(--rpm-red); }
.rpmstore.single-product .product_title { float: right; width: 44%; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; font-weight: 650; margin-bottom: 22px; overflow-wrap: anywhere; }
.rpmstore.single-product div.product p.price { background: var(--rpm-surface); border-radius: 4px; padding: 16px 18px; color: var(--rpm-ink); font-size: 28px; font-weight: 650; margin: 0 0 22px; }
.rpmstore .woocommerce-product-details__short-description { color: var(--rpm-muted); font-size: 15px; line-height: 1.75; }
.rpmstore.single-product .summary .stock { color: var(--rpm-ink); background: #fff5f5; border-left: 3px solid var(--rpm-red); padding: 12px 14px; font-size: 14px; line-height: 1.6; }
.rpmstore.single-product .summary .stock::before { display: none; }
.rpmstore .product_meta { font-size: 13px; border-top: 1px solid var(--rpm-line); padding-top: 18px; color: var(--rpm-muted); }
.rpmstore .product_meta > span { padding: 4px 0; }
.rpmstore .product_meta .sku { color: var(--rpm-ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.rpmstore .woocommerce-tabs { border-top: 1px solid var(--rpm-line); padding: 0 0 32px; }
.rpmstore .woocommerce-tabs ul.tabs { float: none; width: 100%; display: flex; flex-wrap: wrap; gap: 28px; border: 0; margin: 0 0 28px; }
.rpmstore .woocommerce-tabs ul.tabs li { border: 0; }
.rpmstore .woocommerce-tabs ul.tabs li a { padding: 18px 0 14px; color: var(--rpm-muted); font-size: 15px; font-weight: 600; border-bottom: 3px solid transparent; }
.rpmstore .woocommerce-tabs ul.tabs li.active a { color: var(--rpm-red); border-bottom-color: var(--rpm-red); }
.rpmstore .woocommerce-tabs ul.tabs li::after { display: none; }
.rpmstore .woocommerce-tabs .panel { width: 100%; float: none; max-width: 960px; font-size: 16px; line-height: 1.8; }
.rpmstore .woocommerce-tabs .panel h2 { font-size: 24px; }
.rpmstore .woocommerce-tabs .panel h3 { font-size: 20px; }
.rpmstore .woocommerce-tabs .panel p:last-child { margin-bottom: 0; }
.rpmstore .related.products > h2:first-child { font-size: 24px; margin-bottom: 24px; text-align: left; }
.rpmstore .woocommerce-message, .rpmstore .woocommerce-info { background: var(--rpm-surface); color: var(--rpm-ink); border-left-color: var(--rpm-red); }
.rpmstore .woocommerce-message a, .rpmstore .woocommerce-info a { color: var(--rpm-red); }
.rpmstore .entry-content, .rpmstore .summary, .rpmstore .woocommerce-tabs .panel { overflow-wrap: anywhere; }
.rpmstore table { font-size: 14px; }
.rpmstore .woocommerce-product-attributes { width: 100%; border: 1px solid var(--rpm-line); border-collapse: collapse; margin-bottom: 20px; }
.rpmstore .woocommerce-product-attributes th, .rpmstore .woocommerce-product-attributes td { padding: 14px 18px; border-bottom: 1px solid var(--rpm-line); background: white; }
.rpmstore .woocommerce-product-attributes th { width: 32%; background: var(--rpm-surface); font-weight: 600; }
.rpmstore .woocommerce-product-attributes td p { margin: 0; }
.rpmstore input.input-text, .rpmstore textarea { background: white; color: var(--rpm-ink); border: 1px solid #b6bcc2; border-radius: 4px; box-shadow: none; }

@media (max-width: 1100px) {
	.rpmstore .col-full { padding-left: 28px; padding-right: 28px; }
	.rpmstore .rpm-header { grid-template-columns: auto minmax(180px, 1fr); column-gap: 40px; }
	.rpm-header-note { display: none; }
	.rpm-categories { align-items: flex-start; gap: 12px; flex-direction: column; }
	.rpmstore.single-product div.product .summary { padding: 20px; }
}

@media (max-width: 900px) {
	.rpmstore ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rpmstore.single-product div.product .woocommerce-product-gallery,
	.rpmstore.single-product div.product .summary { width: 100%; float: none; margin-right: 0; }
	.rpmstore.single-product div.product .woocommerce-product-gallery { max-width: 640px; margin: 0 auto 28px; }
	.rpmstore.single-product .product_title { float: none; width: 100%; font-size: 30px; }
	.rpm-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
	.rpm-guide-grid { gap: 20px; }
}

@media (max-width: 600px) {
	.rpmstore .col-full { margin: 0 auto; padding-left: 16px; padding-right: 16px; }
	.rpmstore .rpm-header { grid-template-columns: 1fr; padding-top: 20px; }
	.rpm-wordmark-main { font-size: 36px; }
	.rpm-search { margin-top: 20px; }
	.rpm-search input[type="search"] { font-size: 16px; }
	.rpm-nav { gap: 8px 20px; margin-top: 12px; }
	.rpmstore .rpm-nav a { font-size: 13px; min-height: 44px; }
	.rpm-intro { padding: 22px 0 20px; }
	.rpm-intro > p:last-child { font-size: 14px; }
	.rpm-categories { padding: 16px 0; }
	.rpm-category-links { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; padding: 4px; margin: -4px; }
	.rpmstore .rpm-category { flex: 0 0 auto; padding: 9px 12px; min-height: 44px; }
	.rpmstore .rpm-category:focus-visible { outline-offset: -3px; }
	.rpm-selection { padding: 24px 0 32px; }
	.rpm-section-heading { margin-bottom: 20px; }
	.rpmstore .rpm-section-heading h2 { font-size: 22px; }
	.rpm-section-heading > p { font-size: 13px; }
	.rpmstore ul.products { gap: 16px 12px; }
	.rpmstore.storefront-full-width-content .site-main ul.products li.product { padding-bottom: 14px; }
	.rpmstore ul.products li.product img { padding: 8px; margin-bottom: 14px; }
	.rpmstore ul.products li.product .woocommerce-loop-product__title { font-size: 15px; margin: 0 12px 10px; }
	.rpm-product-reference { margin: 0 12px 14px; font-size: 12px; }
	.rpmstore ul.products li.product .price { font-size: 19px; margin: auto 12px 14px; }
	.rpmstore ul.products li.product .button { margin: 0 12px; font-size: 13px; padding: 10px 12px; }
	.rpm-guide { padding: 26px 0 32px; }
	.rpm-guide-grid { grid-template-columns: 1fr; gap: 24px; }
	.rpm-footer { flex-direction: column; gap: 24px; }
	.rpm-footer-bottom { flex-direction: column; gap: 6px; }
	.rpmstore .site-footer { padding-top: 32px; }
	.rpmstore.single-product div.product .summary { padding: 20px; }
	.rpmstore.single-product .product_title { font-size: 26px; }
	.rpmstore.single-product div.product p.price { font-size: 26px; }
	.rpmstore .woocommerce-tabs ul.tabs { gap: 20px; }
	.rpmstore .woocommerce-tabs ul.tabs li a { font-size: 14px; }
	.rpmstore .woocommerce-tabs .panel { font-size: 15px; }
	.rpmstore .woocommerce-breadcrumb { font-size: 12px; padding: 18px 0; margin-bottom: 0; }
	.rpmstore .woocommerce-product-attributes th, .rpmstore .woocommerce-product-attributes td { padding: 12px; }
}

@media (max-width: 359px) {
	.rpmstore ul.products { grid-template-columns: minmax(0, 1fr); }
	.rpmstore ul.products li.product .woocommerce-loop-product__title { font-size: 17px; }
	.rpm-product-reference { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.rpmstore *, .rpmstore *::before, .rpmstore *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
