﻿/*
Theme Name: Blocksy RCD330 Store
Theme URI: https://www.rcd330.com/
Author: RCD330 stroe
Description: A Blocksy child theme for RCD330/RCD340G WooCommerce stores, with conversion-first homepage, vehicle compatibility entry, firmware/install guide sections, and marketplace trust blocks.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
Template: blocksy
Text Domain: blocksy-rcd330
License: GPL-2.0-or-later
*/

:root {
  --rcd-ink: #07111f;
  --rcd-muted: #5b6778;
  --rcd-blue: #0d63f2;
  --rcd-cyan: #12a7d8;
  --rcd-line: #dbe5f1;
  --rcd-soft: #f5f8fc;
  --rcd-dark: #050b14;
  --rcd-success: #21b76d;
}

body { color: var(--rcd-ink); }
.rcd-wrap { width: min(1180px, 92vw); margin-inline: auto; }
.rcd-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 5px; font-weight: 800; text-transform: uppercase; text-decoration: none; }
.rcd-button.primary { background: var(--rcd-blue); color: #fff; }
.rcd-button.secondary { border: 1px solid currentColor; color: #fff; }
.rcd-button.light { border: 1px solid var(--rcd-blue); color: var(--rcd-blue); background: #fff; }

.rcd-topline { background: #02050a; color: #fff; font-size: 13px; }
.rcd-topline .rcd-wrap { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.rcd-topline a { color: #fff; margin-left: 20px; text-decoration: none; }
.rcd-hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--rcd-dark); color: #fff; }
.rcd-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,11,20,.25), rgba(5,11,20,.95) 48%, rgba(5,11,20,.96)), url(https://www.rcd330.com/wp-content/uploads/2026/06/rcd330-5.png) left center/cover no-repeat; }
.rcd-hero .rcd-wrap { position: relative; display: grid; grid-template-columns: 1fr minmax(420px, 620px); gap: 40px; align-items: center; }
.rcd-hero-content { grid-column: 2; }
.rcd-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: 0; color: #fff; }
.rcd-hero h1 span { color: #2d7cff; }
.rcd-hero p { font-size: 20px; color: #e7edf8; margin-bottom: 26px; }
.rcd-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.rcd-badges { display: flex; gap: 22px; flex-wrap: wrap; margin: 34px 0 0; padding: 0; list-style: none; color: #dbe7f7; }
.rcd-badges li { border-left: 1px solid rgba(255,255,255,.28); padding-left: 18px; }
.rcd-badges li:first-child { border-left: 0; padding-left: 0; }

.rcd-model-finder { position: relative; margin-top: -62px; padding: 28px; background: #fff; border: 1px solid var(--rcd-line); border-radius: 8px; box-shadow: 0 18px 45px rgba(7,17,31,.14); text-align: center; }
.rcd-section-title { margin: 0 0 8px; text-align: center; font-size: 29px; letter-spacing: 0; }
.rcd-section-lead { margin: 0 auto 22px; max-width: 720px; color: var(--rcd-muted); text-align: center; }
.rcd-model-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.rcd-model-grid button { border: 0; background: #fff; padding: 8px 4px; border-radius: 6px; font-weight: 800; color: var(--rcd-ink); cursor: pointer; }
.rcd-model-grid button:hover, .rcd-model-grid button.is-active { background: #eef5ff; color: var(--rcd-blue); }
.rcd-car-icon { display: block; width: 64px; height: 28px; margin: 0 auto 8px; border-radius: 18px 22px 8px 8px; background: linear-gradient(#edf1f7, #c8d0dc); box-shadow: inset 10px -8px 0 rgba(0,0,0,.09), 0 8px 12px rgba(20,28,40,.12); }
.rcd-compat-result { margin: 22px auto 0; max-width: 820px; padding: 15px 18px; border-radius: 6px; background: var(--rcd-soft); color: var(--rcd-muted); }

.rcd-trust, .rcd-guides, .rcd-products, .rcd-reviews, .rcd-faq { padding: 48px 0; }
.rcd-trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 24px; }
.rcd-trust-item { padding: 24px 18px; text-align: center; border-right: 1px solid var(--rcd-line); }
.rcd-trust-item:last-child { border-right: 0; }
.rcd-trust-icon { width: 58px; height: 58px; margin: 0 auto 15px; border: 3px solid var(--rcd-blue); border-radius: 50%; display: grid; place-items: center; color: var(--rcd-blue); font-weight: 900; font-size: 22px; }
.rcd-trust-item strong, .rcd-guide-card strong { display: block; font-size: 16px; }
.rcd-trust-item span, .rcd-guide-card span { display: block; color: var(--rcd-muted); font-size: 14px; }

.rcd-guides { background: linear-gradient(180deg, #fff, #f2f7fd); }
.rcd-guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.rcd-guide-card { padding: 24px; min-height: 130px; border: 1px solid var(--rcd-line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--rcd-ink); }
.rcd-guide-card:hover { border-color: var(--rcd-blue); box-shadow: 0 12px 28px rgba(13,99,242,.12); }

.rcd-product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 24px 0; }
.rcd-product-card { position: relative; padding: 16px; border: 1px solid var(--rcd-line); border-radius: 8px; background: #fff; }
.rcd-product-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f8fafc; }
.rcd-product-card h3 { min-height: 54px; margin: 12px 0 8px; font-size: 15px; line-height: 1.25; }
.rcd-product-card .price { font-size: 18px; font-weight: 900; color: var(--rcd-ink); }
.rcd-product-card .button, .rcd-product-card .added_to_cart { margin-top: 12px; width: 100%; text-align: center; border-radius: 5px; background: var(--rcd-blue); color: #fff; }
.rcd-products .rcd-center { text-align: center; }

.rcd-reviews { background: var(--rcd-soft); }
.rcd-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 24px; }
.rcd-review-grid blockquote { margin: 0; padding: 22px; border: 1px solid var(--rcd-line); border-radius: 8px; background: #fff; }
.rcd-stars { color: #ffb000; font-weight: 900; }
.rcd-review-grid cite { display: block; margin-top: 12px; color: var(--rcd-muted); font-style: normal; font-weight: 800; }

.rcd-faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.rcd-faq-item { padding: 22px; border: 1px solid var(--rcd-line); border-radius: 8px; background: #fff; }
.rcd-faq-item h3 { margin-top: 0; font-size: 18px; }
.rcd-service-strip { background: #071321; color: #fff; }
.rcd-service-strip .rcd-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.rcd-service-strip div { padding: 24px; border-left: 1px solid rgba(255,255,255,.1); }
.rcd-service-strip span { display: block; color: #b7c5d8; font-size: 14px; }

.rcd-compat-page { padding: 48px 0; }
.rcd-compat-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 920px; margin: 24px auto 0; padding: 24px; border: 1px solid var(--rcd-line); border-radius: 8px; background: #fff; }
.rcd-compat-form label { font-weight: 800; }
.rcd-compat-form input, .rcd-compat-form select, .rcd-compat-form textarea { width: 100%; margin-top: 6px; border: 1px solid var(--rcd-line); border-radius: 5px; padding: 11px 12px; }
.rcd-compat-form .full { grid-column: 1 / -1; }
.rcd-whatsapp-box { display: none; grid-column: 1 / -1; padding: 16px; border-radius: 6px; background: #ecfff6; color: #0c6b42; }

@media (max-width: 1020px) {
  .rcd-hero .rcd-wrap { grid-template-columns: 1fr; }
  .rcd-hero-content { grid-column: 1; max-width: 680px; }
  .rcd-model-grid { grid-template-columns: repeat(4, 1fr); }
  .rcd-trust-grid, .rcd-product-grid { grid-template-columns: repeat(2, 1fr); }
  .rcd-guide-grid, .rcd-review-grid, .rcd-faq-grid, .rcd-service-strip .rcd-wrap { grid-template-columns: 1fr; }
  .rcd-trust-item { border-right: 0; border-bottom: 1px solid var(--rcd-line); }
}
@media (max-width: 620px) {
  .rcd-topline { display: none; }
  .rcd-hero { min-height: 520px; }
  .rcd-model-grid { grid-template-columns: repeat(2, 1fr); }
  .rcd-product-grid, .rcd-compat-form { grid-template-columns: 1fr; }
  .rcd-hero h1 { font-size: 36px; }
}
