/*
Theme Name:  Shoptimizer Child
Theme URI:   https://redlinegearshop.com
Description: Child theme for Shoptimizer — Redline Gear customizations
Author:      Redline Gear
Template:    shoptimizer
Version:     1.0.0
*/

/* ── Hero ── */
.rg-hero{position:relative;min-height:600px;display:flex;align-items:flex-start;justify-content:center;background-image:url('https://redlinegearshop.com/wp-content/uploads/hero-banner-optimized.jpg');background-position:center center;background-size:cover;background-repeat:no-repeat;}
.rg-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.5);}
.rg-hero-content{position:relative;z-index:1;padding:60px 40px 0;max-width:800px;text-align:center;}
.rg-hero-content h1{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:72px;letter-spacing:2px;line-height:1;margin-bottom:20px;}
.rg-hero-content p{color:#fff;font-size:20px;line-height:1.6;margin-bottom:30px;}

/* ── Buttons ── */
.rg-btn-primary,.rg-box-btn{display:inline-block;background:#dd3333;color:#fff;padding:14px 32px;font-size:15px;font-weight:700;text-decoration:none;border-radius:4px;border:none;transition:transform 0.2s ease,box-shadow 0.2s ease,background 0.2s ease;}
.rg-btn-primary:hover,.rg-box-btn:hover{background:#bb2222;color:#fff;transform:scale(1.04);box-shadow:0 6px 20px rgba(221,51,51,0.45);}

/* ── Three Boxes ── */
.rg-three-boxes{display:grid;grid-template-columns:1fr 1fr 1fr;}
.rg-box{position:relative;min-height:320px;overflow:hidden;}
.rg-box-bg{position:absolute;top:0;left:0;right:0;bottom:0;background-size:cover;background-position:center center;transition:transform 0.45s ease;}
.rg-box:hover .rg-box-bg{transform:scale(1.08);}
.rg-box-jdm .rg-box-bg{background-image:url('https://redlinegearshop.com/wp-content/uploads/JDM_BOX.jpg');}
.rg-box-american .rg-box-bg{background-image:url('https://redlinegearshop.com/wp-content/uploads/AMERICAN_BOX.jpg');}
.rg-box-euro .rg-box-bg{background-image:url('https://redlinegearshop.com/wp-content/uploads/EURO_BOX.jpg');}
.rg-box-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.4);}
.rg-box-content{position:absolute;top:30px;left:0;right:0;z-index:1;text-align:center;}
.rg-box-content h3{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:26px;letter-spacing:1px;margin:0 0 4px;}
.rg-box-content p{color:#eee;font-size:14px;margin:0 0 16px;}

/* ── Latest Items ── */
.rg-latest{background:#f8f8f8;padding:60px 40px;text-align:center;}
.rg-latest h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:38px;letter-spacing:1px;color:#111;margin-bottom:40px;text-transform:uppercase;}

/* ── Redline Standard ── */
.rg-standard{background:#111111;padding:60px 40px;text-align:center;}
.rg-standard h2{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:42px;letter-spacing:2px;margin-bottom:16px;text-transform:uppercase;}
.rg-standard-intro{color:#ccc;font-size:17px;max-width:700px;margin:0 auto 50px;}
.rg-standard-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:40px;max-width:1000px;margin:0 auto;}
.rg-icon{width:92px;height:92px;margin:0 auto 20px;background:#dd3333;border-radius:50%;position:relative;}
.rg-icon::after{content:'';position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:48px;height:48px;background-size:contain;background-repeat:no-repeat;background-position:center;filter:brightness(0) invert(1);}
.rg-icon-gear::after{background-image:url('https://redlinegearshop.com/wp-content/uploads/Gear.png');}
.rg-icon-wrench::after{background-image:url('https://redlinegearshop.com/wp-content/uploads/Wrench.png');}
.rg-icon-speed::after{background-image:url('https://redlinegearshop.com/wp-content/uploads/Speedometer.png');}
.rg-standard-grid h3{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:24px;letter-spacing:1px;margin-bottom:12px;text-transform:uppercase;}
.rg-standard-grid p{color:#aaa;font-size:15px;line-height:1.6;}
.rg-tagline{font-family:'Impact','Arial Narrow',sans-serif;color:#dd3333;font-size:20px;letter-spacing:2px;margin-top:24px;}

/* ── Behind the Redline ── */
.rg-about{padding:60px 40px;}
.rg-about-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;max-width:1170px;margin:0 auto;}
.rg-about h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:46px;letter-spacing:1px;color:#111;margin-bottom:20px;text-transform:uppercase;}
.rg-about p{color:#555;font-size:17px;line-height:1.7;margin-bottom:30px;}
.rg-about-photo{width:100%;min-height:420px;border-radius:8px;background-image:url('https://redlinegearshop.com/wp-content/uploads/Behind_the_Redline.jpg');background-size:cover;background-position:center top;}

/* ── Driver Feedback ── */
.rg-feedback{background:#f8f8f8;padding:60px 40px;text-align:center;}
.rg-feedback h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:42px;letter-spacing:1px;color:#111;margin-bottom:16px;text-transform:uppercase;}
.rg-feedback-intro{color:#555;font-size:17px;max-width:700px;margin:0 auto 50px;}
.rg-feedback-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;max-width:1100px;margin:0 auto;text-align:left;}
.rg-photo-marcus,.rg-photo-david{width:100%;padding-top:65%;border-radius:8px;margin-bottom:20px;background-size:cover;background-position:center top;}
.rg-photo-marcus{background-image:url('https://redlinegearshop.com/wp-content/uploads/Marcus-Feedback.jpg');}
.rg-photo-david{background-image:url('https://redlinegearshop.com/wp-content/uploads/David-Feedback.jpg');}
.rg-feedback-grid p{font-size:15px;color:#333;line-height:1.7;}
.rg-reviewer{font-weight:600;color:#111;margin-top:12px;}

/* ── Popular Products ── */
.rg-popular{background:#f8f8f8;padding:60px 40px;text-align:center;}
.rg-popular h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:38px;letter-spacing:1px;color:#111;margin-bottom:40px;text-transform:uppercase;}

/* ── My Account icon fix ── */
#menu-secondary-menu li:first-child .icon-wrapper{display:block;width:24px;height:24px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23404040'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:contain;background-position:center;}

/* ── About Page ── */
.rg-abt-hero{position:relative;min-height:420px;display:flex;align-items:center;justify-content:center;background-image:url('https://redlinegearshop.com/wp-content/uploads/hero-banner-optimized.jpg');background-size:cover;background-position:center;}
.rg-abt-hero-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.65);}
.rg-abt-hero-content{position:relative;z-index:1;text-align:center;padding:60px 40px;}
.rg-abt-hero-content h1{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:64px;letter-spacing:3px;line-height:1;margin-bottom:16px;}
.rg-abt-hero-content p{color:#ddd;font-size:20px;line-height:1.5;}
.rg-abt-origin{padding:80px 40px;}
.rg-abt-origin-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center;max-width:1170px;margin:0 auto;}
.rg-abt-origin-grid h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:42px;letter-spacing:1px;color:#111;margin-bottom:24px;}
.rg-abt-origin-grid p{color:#555;font-size:17px;line-height:1.8;margin-bottom:20px;}
.rg-abt-origin-photo{width:100%;min-height:480px;border-radius:8px;background-image:url('https://redlinegearshop.com/wp-content/uploads/Behind_the_Redline.jpg');background-size:cover;background-position:center top;}
.rg-abt-values{background:#111;padding:80px 40px;text-align:center;}
.rg-abt-values h2{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:42px;letter-spacing:2px;margin-bottom:60px;}
.rg-abt-values-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:40px;max-width:1100px;margin:0 auto;text-align:left;}
.rg-abt-value-card{border-left:3px solid #dd3333;padding-left:24px;}
.rg-abt-value-number{font-family:'Impact','Arial Narrow',sans-serif;color:#dd3333;font-size:48px;line-height:1;margin-bottom:12px;}
.rg-abt-value-card h3{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:22px;letter-spacing:1px;margin-bottom:12px;}
.rg-abt-value-card p{color:#aaa;font-size:15px;line-height:1.7;}
.rg-abt-manifesto{padding:80px 40px;text-align:center;max-width:800px;margin:0 auto;}
.rg-abt-manifesto h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:42px;letter-spacing:2px;color:#111;margin-bottom:32px;}
.rg-abt-manifesto p{color:#555;font-size:18px;line-height:1.8;margin-bottom:20px;}
.rg-abt-tagline{font-family:'Impact','Arial Narrow',sans-serif;color:#dd3333;font-size:22px;letter-spacing:2px;margin-bottom:32px;}
@media(max-width:900px){.rg-abt-origin-grid{grid-template-columns:1fr;gap:40px;}.rg-abt-values-grid{grid-template-columns:1fr;gap:32px;}.rg-abt-hero-content h1{font-size:44px;}.rg-abt-origin,.rg-abt-values,.rg-abt-manifesto{padding:60px 24px;}}

/* ── Contact Us ── */
.rg-ct-hero{position:relative;min-height:340px;display:flex;align-items:center;justify-content:center;background:#111;background-image:url('https://redlinegearshop.com/wp-content/uploads/hero-banner-optimized.jpg');background-size:cover;background-position:center;}
.rg-ct-hero-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);}
.rg-ct-hero-content{position:relative;z-index:1;text-align:center;padding:60px 40px;}
.rg-ct-hero-content h1{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:58px;letter-spacing:3px;margin-bottom:12px;}
.rg-ct-hero-content p{color:#ddd;font-size:18px;}
.rg-ct-body{padding:80px 40px;max-width:1170px;margin:0 auto;}
.rg-ct-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;}
.rg-ct-info h2,.rg-ct-expect h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:36px;letter-spacing:1px;color:#111;margin-bottom:32px;}
.rg-ct-info>p{color:#555;font-size:17px;line-height:1.8;margin-bottom:40px;}
.rg-ct-method{display:flex;gap:20px;align-items:flex-start;margin-bottom:32px;}
.rg-ct-method-icon{width:48px;height:48px;flex-shrink:0;background:#dd3333;border-radius:50%;position:relative;}
.rg-ct-method h3{font-family:'Impact','Arial Narrow',sans-serif;font-size:18px;letter-spacing:1px;color:#111;margin:0 0 4px;}
.rg-ct-method p{color:#333;font-size:15px;margin:0 0 4px;}
.rg-ct-method a{color:#dd3333;text-decoration:none;}
.rg-ct-note{color:#888;font-size:13px;}
.rg-ct-expect-item{display:flex;gap:20px;align-items:flex-start;margin-bottom:32px;}
.rg-ct-step{font-family:'Impact','Arial Narrow',sans-serif;color:#dd3333;font-size:42px;line-height:1;flex-shrink:0;width:56px;}
.rg-ct-expect-item h3{font-family:'Impact','Arial Narrow',sans-serif;font-size:18px;letter-spacing:1px;color:#111;margin:0 0 6px;}
.rg-ct-expect-item p{color:#555;font-size:15px;line-height:1.7;margin:0 0 0;}
@media(max-width:900px){.rg-ct-grid{grid-template-columns:1fr;gap:48px;}.rg-ct-body{padding:60px 24px;}.rg-ct-hero-content h1{font-size:40px;}}

/* ── Customer Help ── */
.rg-ch-hero{position:relative;min-height:300px;display:flex;align-items:center;justify-content:center;background-image:url('https://redlinegearshop.com/wp-content/uploads/hero-banner-optimized.jpg');background-size:cover;background-position:center;}
.rg-ch-hero-overlay{position:absolute;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,0.7);}
.rg-ch-hero-content{position:relative;z-index:1;text-align:center;padding:60px 40px;}
.rg-ch-hero-content h1{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:58px;letter-spacing:3px;margin-bottom:12px;}
.rg-ch-hero-content p{color:#ddd;font-size:18px;}
.rg-ch-body{max-width:1170px;margin:0 auto;}
.rg-ch-section{padding:70px 40px;}
.rg-ch-section-alt{background:#f8f8f8;}
.rg-ch-section h2{font-family:'Impact','Arial Narrow',sans-serif;font-size:36px;letter-spacing:1px;color:#111;margin-bottom:40px;padding-bottom:16px;border-bottom:2px solid #dd3333;display:inline-block;}
.rg-ch-faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;}
.rg-ch-faq h3{font-size:16px;font-weight:700;color:#111;margin-bottom:10px;}
.rg-ch-faq p{color:#555;font-size:15px;line-height:1.8;margin:0;}
.rg-ch-track{background:#dd3333;padding:40px;}
.rg-ch-track-inner{display:flex;align-items:center;justify-content:space-between;max-width:1170px;margin:0 auto;gap:40px;}
.rg-ch-track h2{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:28px;letter-spacing:1px;margin-bottom:6px;}
.rg-ch-track p{color:rgba(255,255,255,0.85);font-size:16px;margin:0;}
.rg-ch-track .rg-btn-primary{background:#fff;color:#dd3333;white-space:nowrap;flex-shrink:0;}
.rg-ch-track .rg-btn-primary:hover{background:#f0f0f0;color:#bb2222;}
@media(max-width:700px){.rg-ch-track-inner{flex-direction:column;text-align:center;}}
.rg-ch-cta{background:#111;padding:70px 40px;text-align:center;}
.rg-ch-cta h2{font-family:'Impact','Arial Narrow',sans-serif;color:#fff;font-size:36px;letter-spacing:1px;margin-bottom:16px;}
.rg-ch-cta p{color:#aaa;font-size:17px;margin-bottom:32px;}
@media(max-width:900px){.rg-ch-faq-grid{grid-template-columns:1fr;gap:28px;}.rg-ch-section{padding:50px 24px;}.rg-ch-hero-content h1{font-size:40px;}}

/* ── Blog Single Post ── */
body.single-post #secondary,body.single #secondary{display:none;}
body.single-post #primary,body.single #primary{width:100%;max-width:860px;margin:0 auto;float:none;}
body.single-post .entry-title,body.single .entry-title{font-size:36px;line-height:1.2;color:#111;}
body.single-post .entry-content,body.single .entry-content{font-size:17px;line-height:1.8;color:#333;}
body.single-post .entry-content p{margin-bottom:1.6em;}
body.single-post .entry-meta{color:#888;font-size:14px;margin-bottom:28px;}

/* ── Product Title ── */
.product h1.product_title{font-size:28px;line-height:1.3;padding-right:40px!important;}

/* ── Product Meta ── */
.product_meta{display:none;}

/* ── Cart Icon ── */
.shoptimizer-cart-link,
.shoptimizer-cart-link span,
.shoptimizer-cart-link .cart-icon,
.shoptimizer-cart-link svg,
.shoptimizer-cart-link svg path,
.header-cart-link,
.site-header-cart .cart-contents,
.site-header-cart .cart-contents span,
.site-header-cart svg path {
    color: #fff !important;
    fill: #fff !important;
    stroke: #fff !important;
}
.shoptimizer-cart-link:hover,
.shoptimizer-cart-link:hover span,
.site-header-cart .cart-contents:hover {
    color: #fff !important;
    opacity: 0.85;
}

/* ── Size Guide Button ── */
.commercekit-sg-label{display:inline-flex!important;align-items:center!important;gap:7px!important;padding:7px 16px!important;margin:4px 0 12px!important;border:2px solid #c0392b!important;border-radius:4px!important;background:transparent!important;color:#c0392b!important;font-size:13px!important;font-weight:600!important;cursor:pointer!important;transition:all 0.2s ease!important;box-shadow:none!important;}
.commercekit-sg-label:hover{background:#c0392b!important;color:#fff!important;}
.size_guide_default_icon{width:22px!important;height:22px!important;}
.size_guide_default_icon path,.size_guide_default_icon ellipse{stroke:#c0392b!important;fill:none!important;}

/* ── Category Banner ── */
header.woocommerce-products-header,
.shoptimizer-category-banner{background-color:#111!important;}
.shoptimizer-category-banner h1,
.shoptimizer-category-banner .taxonomy-description p,
.term-description p,
.term-description a{color:#fff!important;}
.term-description a:hover{color:#dd3333!important;}

/* ── Mobile ── */
@media(max-width:900px){.rg-three-boxes{grid-template-columns:1fr;}.rg-standard-grid{grid-template-columns:1fr;gap:30px;}.rg-about-grid{grid-template-columns:1fr;}.rg-feedback-grid{grid-template-columns:1fr;}.rg-hero-content{padding:60px 30px;}.rg-hero-content h1{font-size:52px;}.rg-about,.rg-feedback,.rg-latest,.rg-standard,.rg-popular{padding:40px 24px;}}
@media(max-width:500px){.rg-hero-content h1{font-size:38px;}.rg-hero-content p{font-size:16px;}.rg-hero{min-height:420px;}}

/* ── Mobile Cart count badge ── */
@media(max-width:900px){
    .site-header-cart .count{background:#dd3333!important;color:#fff!important;border-color:#dd3333!important;}
}
