/*
Theme Name: Canada Drivers
Theme URI: https://www.canadadrivers.ca/
Author: Canada Drivers
Description: A fast, accessible WordPress and WooCommerce theme created for Canada Drivers.
Version: 3.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: canada-drivers
*/

:root {
  --cd-red: #c71f37;
  --cd-red-dark: #99162a;
  --cd-ink: #191919;
  --cd-muted: #666a70;
  --cd-line: #e6e9ef;
  --cd-soft: #f6f8fb;
  --cd-white: #fff;
  --cd-radius: 20px;
  --cd-shadow: 0 16px 50px rgba(22, 32, 51, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cd-ink);
  background: var(--cd-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: var(--cd-red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4, h5, h6 { color: var(--cd-ink); }
#main-content h1, #main-content h2, #main-content h3,
#main-content h4, #main-content h5, #main-content h6 { color: #191919 !important; }
#main-content .cd-page-title h1, #main-content .cd-cta h2 { color: #fff !important; }
#main-content .cd-page-title .page-title { color: #fff !important; }
#main-content .cd-section-head h2,
#main-content .cd-program-grid h3 { color: #191919 !important; }
#main-content .cd-hero h1 span { color: var(--cd-red) !important; }
#main-content p { color: #666a70; }
#main-content .cd-quote-card p { color: #fff; }
#main-content .cd-cta p { color: rgba(255,255,255,.85); }
img { max-width: 100%; height: auto; }
.cd-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.cd-narrow { width: min(820px, calc(100% - 40px)); margin-inline: auto; }

.cd-topbar { background: var(--cd-red); color: #fff; font-size: 14px; }
.cd-topbar .cd-wrap { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cd-topbar a { color: #fff; text-decoration: none; }
.cd-topbar-links { display: flex; flex-wrap: wrap; gap: 20px; }

.cd-header { position: sticky; z-index: 100; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--cd-line); backdrop-filter: blur(12px); }
.admin-bar .cd-header { top: 32px; }
.cd-header-inner { min-height: 158px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.cd-brand { display: flex; align-items: center; gap: 16px; color: #191919 !important; text-decoration: none; font-weight: 900; letter-spacing: -.025em; }
.cd-brand .custom-logo { width: auto; height: 145px; max-width: 220px; max-height: 145px; object-fit: contain; }
.cd-brand-fallback { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cd-red); font-size: 13px; line-height: 1; text-align: center; }
.cd-brand-name { color: #202124; font-size: 34px; line-height: 1; text-transform: uppercase; }
.cd-nav { display: flex; align-items: center; gap: 28px; }
.cd-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.cd-nav a { color: var(--cd-ink); font-size: 15px; font-weight: 700; text-decoration: none; }
.cd-nav a:hover, .cd-nav .current-menu-item > a { color: var(--cd-red); }
.cd-nav-toggle { display: none; border: 0; border-radius: 10px; padding: 10px 12px; color: #fff; background: var(--cd-red); font-size: 22px; line-height: 1; cursor: pointer; }
.cd-header .cd-nav-toggle { color: #fff !important; background: var(--cd-red) !important; }

.cd-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px;
  border: 2px solid var(--cd-red) !important; border-radius: 999px !important; color: #fff !important;
  background: var(--cd-red) !important; font-weight: 800 !important; line-height: 1.2; text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.cd-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); background: var(--cd-red-dark) !important; box-shadow: 0 10px 24px rgba(199,31,55,.22); }
.cd-button-outline { color: var(--cd-red) !important; background: transparent !important; }
.cd-button-outline:hover { color: #fff !important; background: var(--cd-red) !important; }

.cd-hero { position: relative; overflow: hidden; padding: 84px 0 70px; background: linear-gradient(120deg, #fff 0%, #fff 55%, #fff0f2 100%); }
.cd-hero::after { content: ""; position: absolute; width: 430px; height: 430px; right: -160px; top: -160px; border: 78px solid rgba(199,31,55,.07); border-radius: 50%; }
.cd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.cd-kicker { margin: 0 0 14px; color: var(--cd-red); font-size: 14px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cd-hero h1 { max-width: 760px; margin: 0 0 22px; font-size: clamp(43px, 6vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.cd-hero h1 span { color: var(--cd-red); }
.cd-hero-copy { max-width: 680px; color: var(--cd-muted); font-size: 19px; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cd-trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--cd-muted); font-size: 14px; font-weight: 700; }
.cd-trust li::before { content: "✓"; margin-right: 7px; color: var(--cd-red); font-weight: 950; }
.cd-hero-card { position: relative; padding: 32px; border: 1px solid #f0cbd2; border-radius: 30px; background: #fff; box-shadow: var(--cd-shadow); }
.cd-hero-photo-wrap { overflow: hidden; margin: -22px -22px 26px; border-radius: 22px; aspect-ratio: 16 / 10; background: var(--cd-soft); }
.cd-hero-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-road-sign { width: 96px; height: 96px; display: grid; place-items: center; margin-bottom: 20px; border: 8px solid var(--cd-red); border-radius: 50%; background: #fff; color: var(--cd-red); font-size: 27px; font-weight: 950; line-height: .92; text-align: center; transform: rotate(-3deg); }
.cd-hero-card h2 { margin: 0 0 10px; font-size: 30px; line-height: 1.15; }
.cd-hero-card p { margin: 0; color: var(--cd-muted); }
.cd-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 24px; }
.cd-stat { padding: 17px; border-radius: 15px; background: var(--cd-soft); }
.cd-stat strong { display: block; color: var(--cd-red); font-size: 20px; }
.cd-stat span { color: var(--cd-muted); font-size: 13px; }

.cd-section { padding: 82px 0; }
.cd-section-soft { background: var(--cd-soft); }
.cd-section-head { max-width: 720px; margin-bottom: 35px; }
.cd-section-head.center { margin-inline: auto; text-align: center; }
.cd-section h2 { margin: 0 0 13px; font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.cd-section-head p { margin: 0; color: var(--cd-muted); }
.cd-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cd-feature { padding: 28px 25px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; }
.cd-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 14px; color: #fff; background: var(--cd-red); font-size: 22px; }
.cd-feature h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.cd-feature p { margin: 0; color: var(--cd-muted); font-size: 15px; }
.cd-photo-grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 18px; margin-top: 26px; }
.cd-photo-card { position: relative; overflow: hidden; min-height: 330px; margin: 0; border-radius: var(--cd-radius); background: #191919; box-shadow: var(--cd-shadow); }
.cd-photo-card img { width: 100%; height: 100%; min-height: 330px; display: block; object-fit: cover; transition: transform .35s ease; }
.cd-photo-card:hover img { transform: scale(1.025); }
.cd-photo-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.82)); }
.cd-photo-card figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px; color: #fff; }
.cd-photo-card figcaption strong, .cd-photo-card figcaption span { display: block; }
.cd-photo-card figcaption strong { font-size: 19px; }
.cd-photo-card figcaption span { color: rgba(255,255,255,.82); font-size: 14px; }

.cd-course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cd-course { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 28px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; box-shadow: 0 8px 30px rgba(22,32,51,.06); }
.cd-course-featured { border-color: var(--cd-red); }
.cd-badge { align-self: flex-start; margin-bottom: 17px; padding: 5px 10px; border-radius: 999px; color: var(--cd-red); background: #fff0f2; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.cd-course h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; }
.cd-price { margin: 5px 0 14px; color: var(--cd-red); font-size: 29px; font-weight: 900; }
.cd-course p { flex: 1; color: var(--cd-muted); font-size: 15px; }
.cd-course .cd-button { align-self: flex-start; margin-top: 10px; }

.cd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.cd-checks { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.cd-checks li { position: relative; padding-left: 32px; }
.cd-checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--cd-red); font-size: 13px; font-weight: 900; }
.cd-quote-card { padding: 36px; border-radius: 28px; color: #fff; background: var(--cd-ink); box-shadow: var(--cd-shadow); }
.cd-quote-card strong { display: block; margin-bottom: 12px; color: #ff8b9d; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.cd-quote-card blockquote { margin: 0; font-size: 25px; font-weight: 750; line-height: 1.4; }

.cd-cta { padding: 62px 0; color: #fff; background: var(--cd-red); }
.cd-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cd-cta h2 { margin: 0 0 8px; color: #fff; font-size: clamp(30px, 4vw, 46px); }
.cd-cta p { margin: 0; color: rgba(255,255,255,.85); }
.cd-cta .cd-button { color: var(--cd-red) !important; border-color: #fff !important; background: #fff !important; white-space: nowrap; }

.cd-content { padding: 66px 0 90px; }
.cd-page-title { padding: 58px 0; color: #fff; background: linear-gradient(120deg, var(--cd-ink), #2c3547); }
.cd-page-title h1 { margin: 0; color: #fff; font-size: clamp(35px, 5vw, 55px); letter-spacing: -.04em; }
.cd-page-kicker { margin: 0 0 8px; color: #ff9baa; font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.cd-entry-content h2, .cd-entry-content h3 { line-height: 1.2; }
.cd-entry-content { overflow-wrap: anywhere; }
.cd-entry-content > *:first-child { margin-top: 0; }
.cd-inner-split { display: grid; grid-template-columns: 1fr .9fr; gap: 58px; align-items: center; }
.cd-inner-split h2, .cd-narrow h2 { margin: 0 0 18px; color: var(--cd-ink); font-size: clamp(32px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.cd-page-photo { overflow: hidden; min-height: 420px; margin: 0; border-radius: 28px; background: var(--cd-soft); box-shadow: var(--cd-shadow); }
.cd-page-photo img { width: 100%; height: 100%; min-height: 420px; display: block; object-fit: cover; }
.cd-program-grid, .cd-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cd-program-grid article, .cd-link-grid a { padding: 26px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; box-shadow: 0 8px 26px rgba(22,32,51,.05); }
.cd-program-grid h3 { margin: 0 0 8px; color: var(--cd-ink); }
.cd-program-grid p { margin: 0; color: var(--cd-muted); }
.cd-product-block { margin-top: 46px; }
.cd-link-grid a { color: var(--cd-ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.cd-link-grid a:hover { border-color: var(--cd-red); transform: translateY(-2px); }
.cd-link-grid strong, .cd-link-grid span { display: block; }
.cd-link-grid strong { margin-bottom: 6px; color: var(--cd-red); font-size: 19px; }
.cd-link-grid span { color: var(--cd-muted); font-size: 15px; }
.cd-resource-heading { margin: 42px 0 18px; color: var(--cd-ink); font-size: 26px; }
.cd-terms h2 { margin-top: 34px; color: var(--cd-ink); font-size: 25px; }
.cd-terms h2:first-child { margin-top: 0; }
.cd-contact-list { display: grid; gap: 12px; margin-top: 28px; }
.cd-contact-list a { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid var(--cd-line); border-radius: 14px; color: var(--cd-ink); text-decoration: none; }
.cd-contact-list a:hover { border-color: var(--cd-red); }
.cd-contact-list span { color: var(--cd-red); font-weight: 800; }
.cd-form-wrap { max-width: 820px; margin: 52px auto 0; padding: 32px; border: 1px solid var(--cd-line); border-radius: 24px; background: #fff; box-shadow: var(--cd-shadow); }
.cd-form-wrap h2 { margin-top: 0; color: var(--cd-ink); }
.cd-form-wrap .wpforms-field-label { color: var(--cd-ink) !important; }
.cd-form-wrap input:not([type="submit"]), .cd-form-wrap select, .cd-form-wrap textarea { border: 1px solid #cfd3da !important; border-radius: 10px !important; }
.cd-form-wrap input:focus, .cd-form-wrap select:focus, .cd-form-wrap textarea:focus { border-color: var(--cd-red) !important; box-shadow: 0 0 0 3px rgba(199,31,55,.12) !important; }
.cd-form-wrap .wpforms-submit { color: #fff !important; border: 2px solid var(--cd-red) !important; border-radius: 999px !important; background: var(--cd-red) !important; font-weight: 800 !important; }
.cd-native-form { display: grid; gap: 20px; }
.cd-native-form label { display: grid; gap: 8px; color: var(--cd-ink); font-weight: 750; }
.cd-native-form label > span { display: inline; color: var(--cd-red); }
.cd-native-form input, .cd-native-form select, .cd-native-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; color: var(--cd-ink); background: #fff; font: inherit; }
.cd-native-form textarea { min-height: 110px; resize: vertical; }
.cd-native-form .cd-consent { display: flex; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 600; }
.cd-native-form .cd-consent input { width: 20px; min-height: 20px; margin-top: 2px; }
.cd-native-form .cd-button { justify-self: start; cursor: pointer; }
.cd-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.cd-schedule-status { margin: 28px 0; padding: 24px; border-radius: 16px; background: var(--cd-soft); color: var(--cd-ink); font-size: 1.15rem; font-weight: 800; text-align: center; text-transform: uppercase; }
@media (max-width: 640px) { .cd-form-row { grid-template-columns: 1fr; } }
.cd-commerce-wrap { overflow-x: auto; }
.cd-licence-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.cd-licence-grid figure { margin: 0; overflow: hidden; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; box-shadow: var(--cd-shadow); }
.cd-licence-grid img { display: block; width: 100%; height: auto; }

.woocommerce ul.products li.product { overflow: hidden; padding: 20px !important; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; }
.woocommerce span.onsale { background: var(--cd-red); }
.woocommerce div.product p.price, .woocommerce div.product span.price, .woocommerce ul.products li.product .price { color: var(--cd-red); font-weight: 900; }
.woocommerce ul.products li.product a,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title,
.woocommerce div.product .woocommerce-tabs h2,
.woocommerce div.product .related h2 { color: var(--cd-ink) !important; }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { color: var(--cd-red) !important; }
.woocommerce nav.woocommerce-pagination a,
.woocommerce .woocommerce-breadcrumb a,
.woocommerce table.shop_table a { color: var(--cd-red) !important; }
.woocommerce #main-content a:not(.button),
.woocommerce-page #main-content a:not(.button),
.wc-block-components-product-name,
.wc-block-cart-item__product a,
.wc-block-components-totals-coupon-link,
.woocommerce-info a,
.woocommerce-message a,
.woocommerce-error a { color: var(--cd-red) !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product a.woocommerce-loop-product__link,
.woocommerce div.product .product_title,
.wc-block-grid__product-title { color: var(--cd-ink) !important; }
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus,
.wc-block-components-text-input input:focus { border-color: var(--cd-red) !important; box-shadow: 0 0 0 2px rgba(199,31,55,.14) !important; outline-color: var(--cd-red) !important; }
.woocommerce nav.woocommerce-pagination ul li span.current { color: #fff !important; background: var(--cd-red) !important; }
.woocommerce a.button,
.woocommerce-page #main-content a.button,
.woocommerce button.button,
.woocommerce input.button { color: #fff !important; }

.cd-footer { padding: 58px 0 25px; color: rgba(255,255,255,.72); background: #101726; }
.cd-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.cd-footer-brand { display: inline-flex; align-items: center; gap: 16px; margin-bottom: 18px; color: #fff; text-decoration: none; }
.cd-footer-logo-wrap { display: grid; place-items: center; overflow: hidden; width: 112px; height: 112px; padding: 12px; border: 2px solid rgba(255,255,255,.2); border-radius: 50%; background: #fff; }
.cd-footer-logo { display: block; width: 72%; height: 72%; border-radius: 0; object-fit: contain; object-position: center; transform: translateY(-2px); }
.cd-footer-brand h2 { margin: 0; }
.cd-footer h2, .cd-footer h3 { margin-top: 0; color: #fff; }
.cd-footer h2 { font-size: 24px; }
.cd-footer h3 { font-size: 16px; }
.cd-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.cd-footer ul { margin: 0; padding: 0; list-style: none; }
.cd-footer li { margin-bottom: 8px; }
.cd-copyright { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

.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; }

@media (max-width: 980px) {
  .cd-hero-grid, .cd-split, .cd-inner-split { grid-template-columns: 1fr; }
  .cd-hero-grid { gap: 40px; }
  .cd-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-photo-grid { grid-template-columns: 1fr 1fr; }
  .cd-photo-card-wide { grid-column: 1 / -1; }
  .cd-course-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-header .cd-nav-toggle { display: grid !important; place-items: center; width: 52px !important; height: 52px !important; min-width: 52px !important; min-height: 52px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 10px !important; color: #fff !important; background: var(--cd-red) !important; font-size: 25px !important; line-height: 1 !important; box-shadow: none !important; }
  .cd-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px; border-top: 1px solid var(--cd-line); background: #fff; box-shadow: 0 18px 30px rgba(22,32,51,.1); }
  .cd-nav.is-open { display: block; }
  .cd-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
  .cd-nav li { border-bottom: 1px solid var(--cd-line); }
  .cd-nav a { display: block; padding: 13px 4px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .cd-wrap, .cd-narrow { width: min(100% - 28px, 1160px); }
  .cd-topbar .cd-wrap { justify-content: center; padding: 8px 0; }
  .cd-topbar-links { justify-content: center; gap: 8px 17px; }
  .cd-topbar-tagline { display: none; }
  .cd-header-inner { min-height: 124px; }
  .cd-brand { gap: 9px; }
  body .cd-header .cd-brand-name { display: block !important; color: #202124 !important; font-size: 20px; }
  .cd-brand .custom-logo { width: auto; height: 105px; max-width: 125px; max-height: 105px; }
  .cd-hero { padding: 58px 0 48px; }
  .cd-hero h1 { font-size: 44px; }
  .cd-hero-card { padding: 26px; }
  .cd-section { padding: 60px 0; }
  .cd-feature-grid, .cd-course-grid, .cd-footer-grid { grid-template-columns: 1fr; }
  .cd-program-grid, .cd-link-grid { grid-template-columns: 1fr; }
  .cd-page-photo, .cd-page-photo img { min-height: 300px; }
  .cd-contact-list a { align-items: flex-start; flex-direction: column; gap: 3px; }
  .cd-photo-grid { grid-template-columns: 1fr; }
  .cd-photo-card-wide { grid-column: auto; }
  .cd-photo-card, .cd-photo-card img { min-height: 280px; }
  .cd-cta-inner { align-items: flex-start; flex-direction: column; }
  .cd-footer-grid { gap: 30px; }
  .cd-footer-logo-wrap { width: 96px; height: 96px; padding: 11px; }
  .cd-footer-logo { width: 66px; height: 66px; object-position: center; transform: translateY(-2px); }
  .admin-bar .cd-header { top: 46px; }
}

/* Final brand-colour guard: older imported/custom styles used blue headings,
 * including a mobile-only rule. Keep all customer-facing card and store
 * headings neutral charcoal at every breakpoint. */
html body #main-content .cd-feature-grid .cd-feature h3,
html body #main-content .cd-course-grid .cd-course h3,
html body #main-content .cd-program-grid h3,
html body #main-content .cd-section-head h2,
html body #main-content .woocommerce-loop-product__title,
html body #main-content .wc-block-grid__product-title,
html body #main-content div.product .product_title { color: #191919 !important; }

html body .cd-header .cd-brand,
html body .cd-header .cd-brand-name { color: #191919 !important; }

html body #main-content .cd-page-title h1,
html body #main-content .cd-page-title .page-title { color: #fff !important; }

.cd-bde-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 34px 0; }
.cd-bde-options article { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--cd-line); border-radius: var(--cd-radius); background: #fff; }
.cd-bde-options img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; }
.cd-bde-options h3 { color: #191919 !important; }
.cd-bde-options .cd-price { margin-bottom: 8px; color: var(--cd-red); font-size: 24px; font-weight: 900; }
.cd-bde-options .cd-button { margin: 8px 12px 0 0; }
.cd-bde-options .cd-text-link { display: inline-block; margin-top: 14px; }
.cd-bde-options p, .cd-bde-details p { color: #666a70; }
.cd-sold-out { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--cd-red); color: #fff; font-weight: 800; }
.cd-bde-details { margin: 34px 0; padding: 28px; border-radius: var(--cd-radius); background: var(--cd-soft); }
.cd-bde-details h2 { color: #191919 !important; }
.cd-service-note { padding: 14px 16px; border-left: 4px solid var(--cd-red); background: #fff; }

.cd-home-bde { padding-top: 68px; background: linear-gradient(180deg, #fff 0%, #fff6f7 100%); }
.cd-home-bde-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 34px; }
.cd-home-bde-card { position: relative; overflow: hidden; border: 1px solid var(--cd-line); border-radius: 24px; background: #fff; box-shadow: 0 14px 36px rgba(25,25,25,.08); }
.cd-home-bde-featured { border: 2px solid var(--cd-red); }
.cd-home-bde-card > img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; }
.cd-home-bde-card > .cd-badge { position: absolute; z-index: 2; top: 16px; left: 16px; }
.cd-home-bde-body { padding: 25px; }
.cd-home-bde-body h3 { margin: 0 0 8px; color: #191919 !important; font-size: 27px; }
.cd-home-bde-body p { min-height: 72px; color: #666a70; }
.cd-home-bde-body .cd-price { color: var(--cd-red); font-size: 25px; font-weight: 900; }
.cd-home-bde-body .cd-sold-out { margin-right: 12px; }
.cd-text-link { color: var(--cd-red) !important; font-weight: 800; }
.cd-bde-location-note { max-width: 980px; margin: 28px auto 0; padding: 15px 18px; border-left: 4px solid var(--cd-red); background: #fff; color: #666a70; }

@media (max-width: 700px) {
  .cd-bde-options { grid-template-columns: 1fr; }
  .cd-home-bde-grid { grid-template-columns: 1fr; }
  .cd-home-bde-body p { min-height: 0; }
}
