/*
Theme Name: FitGear Mini
Theme URI: https://www.novelzero.com
Description: High-performance child theme for FitGear Mini - Portable Home Workout Equipment.
Author: FitGear Mini
Author URI: https://www.novelzero.com
Template: astra
Version: 2.2.0
Text Domain: fitgear-mini
*/

:root {
    --fg-navy: #0b1b3f;
    --fg-navy-light: #122654;
    --fg-green: #38f28f;
    --fg-green-dark: #2dd07a;
    --fg-green-glow: rgba(56,242,143,0.15);
    --fg-cloud: #f4f6fb;
    --fg-white: #ffffff;
    --fg-text: #1a1a2e;
    --fg-text-light: #5a6072;
    --fg-border: #e2e5ef;
    --fg-shadow: 0 2px 12px rgba(11,27,63,0.06);
    --fg-shadow-hover: 0 8px 24px rgba(11,27,63,0.10);
    --fg-radius: 10px;
    --fg-transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

/* === ASTRA OVERRIDE: Fix container layout conflicts === */
body.home {
    background-color: var(--fg-cloud) !important;
}
body.home .site-content > .ast-container,
body.home .site-content .ast-container {
    display: block !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
body.home #content.site-content {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}
body.home .hentry,
body.home .ast-article-post,
body.home .ast-article-single {
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
body.home .ast-article-inner {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.home .site-main {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}
/* === END ASTRA OVERRIDE === */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--fg-text);
    background: var(--fg-cloud);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
body.home h1, body.home h2, body.home h3, body.home h4, body.home h5, body.home h6,
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--fg-navy) !important; }
body.home .fg-hero h1, body.home .fg-hero h1 span { color: var(--fg-white) !important; }
body.home .fg-hero h1 span { color: var(--fg-green) !important; }
a { color: var(--fg-navy); text-decoration: none; transition: var(--fg-transition); }
a:hover, a:focus { color: var(--fg-green-dark) !important; }

/* ========== HERO ========== */
.fg-hero {
    background: linear-gradient(160deg, var(--fg-navy) 0%, var(--fg-navy-light) 60%, #1a3368 100%);
    color: var(--fg-white);
    padding: 90px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    max-width: none !important;
    background-size: cover;
    background-position: center;
}
.fg-hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--fg-green-glow) 0%, transparent 70%);
    pointer-events: none;
}
.fg-hero-content {
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.fg-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    color: var(--fg-white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.fg-hero h1 span { color: var(--fg-green); }
.fg-hero .fg-tagline {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    opacity: 0.92;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.6;
}
.fg-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.fg-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 32px;
    border-radius: var(--fg-radius);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--fg-transition);
    cursor: pointer;
    min-height: 48px;
    min-width: 44px;
    border: 2px solid transparent;
    text-decoration: none;
}
.fg-cta-primary {
    background: var(--fg-green);
    color: var(--fg-navy);
    border-color: var(--fg-green);
    box-shadow: 0 4px 16px rgba(56,242,143,0.25);
}
.fg-cta-primary:hover {
    background: var(--fg-green-dark);
    border-color: var(--fg-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56,242,143,0.35);
    color: var(--fg-navy);
}
.fg-cta-secondary {
    background: transparent;
    color: var(--fg-white);
    border-color: rgba(255,255,255,0.35);
}
.fg-cta-secondary:hover {
    border-color: var(--fg-green);
    color: var(--fg-green);
    background: rgba(56,242,143,0.08);
}

/* ========== SECTIONS ========== */
.fg-section {
    padding: 72px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.fg-section-bg {
    background: var(--fg-white);
    padding: 72px 24px;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    max-width: none !important;
}
.fg-section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
    color: var(--fg-navy);
    letter-spacing: -0.01em;
}
.fg-section-subtitle {
    text-align: center;
    color: var(--fg-text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ========== SELLING POINTS ========== */
.fg-usp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}
.fg-usp {
    text-align: center;
    padding: 36px 24px;
    background: var(--fg-white);
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow);
    border: 1px solid var(--fg-border);
    transition: var(--fg-transition);
}
.fg-usp:hover {
    box-shadow: var(--fg-shadow-hover);
    transform: translateY(-3px);
}
.fg-usp-icon {
    width: 60px; height: 60px;
    margin: 0 auto 18px;
    background: var(--fg-green-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.fg-usp h3 { font-size: 1.15rem; margin-bottom: 8px; }
.fg-usp p { color: var(--fg-text-light); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ========== PRODUCT CARDS ========== */
.fg-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.fg-product-card {
    background: var(--fg-white);
    border-radius: var(--fg-radius);
    overflow: hidden;
    box-shadow: var(--fg-shadow);
    border: 1px solid var(--fg-border);
    transition: var(--fg-transition);
    display: flex;
    flex-direction: column;
}
.fg-product-card:hover {
    box-shadow: var(--fg-shadow-hover);
    transform: translateY(-4px);
}
.fg-product-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: var(--fg-cloud);
}
.fg-product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.fg-product-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.fg-product-meta { font-size: 0.82rem; color: var(--fg-text-light); margin-bottom: 8px; }
.fg-product-desc { color: var(--fg-text-light); font-size: 0.9rem; line-height: 1.55; margin-bottom: 12px; flex:1; }
.fg-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--fg-navy);
    margin-bottom: 12px;
}
.fg-product-usp {
    display: inline-block;
    background: var(--fg-green-glow);
    color: var(--fg-green-dark);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.fg-add-to-cart {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--fg-navy);
    color: var(--fg-white);
    padding: 12px 20px;
    border-radius: var(--fg-radius);
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 44px;
    transition: var(--fg-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.fg-add-to-cart:hover {
    background: var(--fg-green);
    color: var(--fg-navy);
}

/* ========== TRUST/SOCIAL PROOF ========== */
.fg-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}
.fg-review {
    background: var(--fg-white);
    padding: 28px;
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow);
    border: 1px solid var(--fg-border);
}
.fg-review-stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 12px; }
.fg-review blockquote {
    font-style: normal;
    color: var(--fg-text);
    margin: 0 0 14px;
    line-height: 1.6;
    font-size: 0.95rem;
}
.fg-review cite {
    font-style: normal;
    font-weight: 600;
    color: var(--fg-text-light);
    font-size: 0.88rem;
}

/* ========== FAQ ========== */
.fg-faq-list { max-width: 800px; margin: 0 auto; }
.fg-faq-item {
    background: var(--fg-white);
    border-radius: var(--fg-radius);
    margin-bottom: 12px;
    border: 1px solid var(--fg-border);
    overflow: hidden;
}
.fg-faq-q {
    padding: 18px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
    color: var(--fg-navy);
    min-height: 44px;
}
.fg-faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--fg-text-light); transition: var(--fg-transition); }
.fg-faq-item.active .fg-faq-q::after { content: '-'; }
.fg-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 24px;
}
.fg-faq-item.active .fg-faq-a { max-height: 300px; padding: 0 24px 18px; }
.fg-faq-a p { color: var(--fg-text-light); font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ========== TRUST BADGES ========== */
.fg-badges {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}
.fg-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--fg-text-light);
    font-weight: 500;
}
.fg-badge-icon {
    width: 28px;
    height: 28px;
    background: var(--fg-green-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* ========== FOOTER ========== */
.fg-footer {
    background: var(--fg-navy);
    color: rgba(255,255,255,0.8);
    padding: 56px 24px 28px;
}
.fg-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.fg-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 36px;
    margin-bottom: 36px;
}
.fg-footer h4 {
    color: var(--fg-white);
    font-size: 0.95rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.fg-footer a {
    color: rgba(255,255,255,0.6);
    display: block;
    padding: 4px 0;
    font-size: 0.88rem;
}
.fg-footer a:hover { color: var(--fg-green); }
.fg-footer-bottom {
    text-align: center;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ========== INTERNAL LINKS SECTION ========== */
.fg-internal-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 16px;
}
.fg-internal-links a {
    padding: 8px 20px;
    border: 1px solid var(--fg-border);
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--fg-navy);
    background: var(--fg-white);
    transition: var(--fg-transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.fg-internal-links a:hover {
    background: var(--fg-green-glow);
    border-color: var(--fg-green);
    color: var(--fg-green-dark);
}

/* ========== UTILITY ========== */
.fg-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fg-text-center { text-align: center; }
img.fg-lazy { opacity: 0; transition: opacity 0.3s; }
img.fg-lazy.loaded { opacity: 1; }

/* ========== ASTRA BUTTON/LINK OVERRIDES ========== */
body.home .fg-add-to-cart,
body.home .fg-add-to-cart:visited {
    background: var(--fg-navy) !important;
    color: var(--fg-white) !important;
    border-color: var(--fg-navy) !important;
    border-radius: var(--fg-radius) !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
body.home .fg-add-to-cart:hover,
body.home .fg-add-to-cart:focus {
    background: var(--fg-green) !important;
    color: var(--fg-navy) !important;
    border-color: var(--fg-green) !important;
}
body.home .fg-cta-primary,
body.home .fg-cta-primary:visited {
    background: var(--fg-green) !important;
    color: var(--fg-navy) !important;
    border-color: var(--fg-green) !important;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(56,242,143,0.25) !important;
}
body.home .fg-cta-primary:hover {
    background: var(--fg-green-dark) !important;
    border-color: var(--fg-green-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(56,242,143,0.35) !important;
    color: var(--fg-navy) !important;
}
body.home .fg-cta-secondary,
body.home .fg-cta-secondary:visited {
    background: transparent !important;
    color: var(--fg-white) !important;
    border-color: rgba(255,255,255,0.35) !important;
    text-decoration: none !important;
    box-shadow: none !important;
}
body.home .fg-cta-secondary:hover {
    border-color: var(--fg-green) !important;
    color: var(--fg-green) !important;
    background: rgba(56,242,143,0.08) !important;
}
body.home .fg-internal-links a,
body.home .fg-internal-links a:visited {
    color: var(--fg-navy) !important;
    text-decoration: none !important;
}
body.home .fg-internal-links a:hover {
    color: var(--fg-green-dark) !important;
    background: var(--fg-green-glow) !important;
    border-color: var(--fg-green) !important;
}
body.home .fg-review blockquote {
    color: var(--fg-text) !important;
    font-style: normal !important;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border: none !important;
}
body.home .fg-product-usp {
    color: var(--fg-green-dark) !important;
}
body.home .fg-section-subtitle,
body.home .fg-product-meta,
body.home .fg-product-desc,
body.home .fg-usp p,
body.home .fg-faq-a p,
body.home .fg-review cite,
body.home .fg-badge {
    color: var(--fg-text-light) !important;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .fg-hero { padding: 56px 16px 48px; }
    .fg-section { padding: 48px 16px; }
    .fg-section-bg { padding: 48px 16px; }
    .fg-usp-grid { grid-template-columns: 1fr; gap: 16px; }
    .fg-products-grid { grid-template-columns: 1fr; }
    .fg-reviews-grid { grid-template-columns: 1fr; }
    .fg-footer-grid { grid-template-columns: 1fr; }
    .fg-cta-group { flex-direction: column; align-items: center; }
    .fg-cta { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .fg-hero h1 { font-size: 1.8rem; }
    .fg-section-title { font-size: 1.4rem; }
}
