/*
Theme Name: QARA - Faith Apparel
Theme URI: https://qaraapparel.com
Author: QARA Team
Author URI: https://qaraapparel.com
Description: A warm, faith-centered Christian t-shirt ecommerce theme with Elementor support, WooCommerce integration, and AI virtual try-on ready design. Features earth tones, premium typography, and scripture-inspired layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qara
Tags: e-commerce, woocommerce, elementor, custom-colors, custom-logo, featured-images, full-width-template, theme-options

QARA - Wear Your Faith
*/

/* ===== CSS Variables ===== */
:root {
    /* Warm faith-centered palette */
    --qara-primary: #A67C3D;
    --qara-primary-light: #C4983F;
    --qara-accent: #C05A3C;
    --qara-background: #F7F3EF;
    --qara-foreground: #2A2420;
    --qara-card: #F0EAE2;
    --qara-muted: #6B6560;
    --qara-border: #D9D0C5;
    --qara-cream: #EDE6DC;
    
    /* Typography */
    --qara-font-display: 'Playfair Display', serif;
    --qara-font-body: 'Lato', sans-serif;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--qara-font-body);
    background-color: var(--qara-background);
    color: var(--qara-foreground);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--qara-font-display);
    line-height: 1.2;
}

a { color: var(--qara-primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--qara-accent); }

img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Header ===== */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(247, 243, 239, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--qara-border);
    padding: 0 24px;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-logo { font-family: var(--qara-font-display); font-size: 32px; font-weight: 700; letter-spacing: 4px; color: var(--qara-primary); }

.main-nav ul { list-style: none; display: flex; gap: 32px; }
.main-nav a {
    font-family: var(--qara-font-body); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 3px; color: var(--qara-muted);
    transition: color 0.3s;
}
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--qara-primary); }

.header-cart { position: relative; }
.cart-count {
    position: absolute; top: -6px; right: -6px; background: var(--qara-accent);
    color: white; font-size: 11px; font-weight: 700; width: 20px; height: 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding-top: 80px; text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(247,243,239,0.8), rgba(247,243,239,0.6), var(--qara-background));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: clamp(48px, 8vw, 96px); font-weight: 700; line-height: 1.05; }
.hero-content h1 .highlight { color: var(--qara-primary); font-style: italic; display: block; }
.hero-content p { margin-top: 24px; font-size: 20px; color: var(--qara-muted); max-width: 600px; margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 16px 32px;
    font-family: var(--qara-font-body); font-size: 16px; font-weight: 700;
    letter-spacing: 1px; border-radius: 8px; cursor: pointer; transition: all 0.3s;
    border: 2px solid transparent; text-transform: uppercase;
}
.btn-primary { background: var(--qara-primary); color: white; }
.btn-primary:hover { background: var(--qara-primary-light); color: white; }
.btn-outline { background: transparent; border-color: var(--qara-primary); color: var(--qara-primary); }
.btn-outline:hover { background: var(--qara-primary); color: white; }
.btn-secondary { background: var(--qara-cream); color: var(--qara-foreground); }

/* ===== Scripture Banner ===== */
.scripture-banner {
    padding: 64px 20px; background: var(--qara-card);
    border-top: 1px solid var(--qara-border); border-bottom: 1px solid var(--qara-border);
    text-align: center;
}
.scripture-banner blockquote {
    font-family: var(--qara-font-display); font-size: clamp(20px, 3vw, 30px);
    font-style: italic; color: rgba(42,36,32,0.8); max-width: 800px; margin: 0 auto;
}
.scripture-banner cite { display: block; margin-top: 12px; font-size: 13px; font-style: normal; color: var(--qara-muted); letter-spacing: 3px; text-transform: uppercase; }

/* ===== Products Grid ===== */
.products-section { padding: 80px 0 112px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; }
.section-header h2 .highlight { color: var(--qara-primary); font-style: italic; }
.section-header p { margin-top: 16px; color: var(--qara-muted); font-size: 18px; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }

.product-card {
    background: var(--qara-card); border: 1px solid var(--qara-border);
    border-radius: 12px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.product-card-image { position: relative; overflow: hidden; aspect-ratio: 1; }
.product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-badge {
    position: absolute; top: 12px; left: 12px; background: var(--qara-accent);
    color: white; font-size: 11px; font-weight: 700; letter-spacing: 1px;
    padding: 4px 12px; border-radius: 4px; text-transform: uppercase;
}
.product-card-body { padding: 20px; }
.product-verse { font-size: 12px; color: var(--qara-primary); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.product-name { font-family: var(--qara-font-display); font-size: 18px; font-weight: 600; }
.product-price { margin-top: 8px; font-size: 18px; font-weight: 700; color: var(--qara-primary); }

/* ===== Why QARA ===== */
.why-section { padding: 80px 0; background: var(--qara-card); border-top: 1px solid var(--qara-border); border-bottom: 1px solid var(--qara-border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.feature-item { text-align: center; }
.feature-icon {
    width: 64px; height: 64px; margin: 0 auto 20px; background: rgba(166,124,61,0.1);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.feature-icon svg { width: 28px; height: 28px; color: var(--qara-primary); }
.feature-item h3 { font-family: var(--qara-font-display); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.feature-item p { color: var(--qara-muted); line-height: 1.7; }

/* ===== Testimonials ===== */
.testimonials-section { padding: 80px 0 112px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.testimonial-card { background: var(--qara-card); border: 1px solid var(--qara-border); border-radius: 12px; padding: 32px; }
.testimonial-stars { display: flex; gap: 4px; margin-bottom: 16px; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--qara-primary); color: var(--qara-primary); }
.testimonial-text { font-style: italic; color: rgba(42,36,32,0.8); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { font-family: var(--qara-font-display); font-weight: 600; }

/* ===== CTA ===== */
.cta-section { padding: 80px 20px; background: var(--qara-primary); color: white; text-align: center; }
.cta-section h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 700; margin-bottom: 24px; }
.cta-section p { font-size: 18px; opacity: 0.85; max-width: 560px; margin: 0 auto 40px; }

/* ===== Footer ===== */
.site-footer { background: var(--qara-card); border-top: 1px solid var(--qara-border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .site-logo { margin-bottom: 16px; display: block; }
.footer-brand p { color: var(--qara-muted); font-size: 14px; line-height: 1.7; }
.footer-col h4 { font-family: var(--qara-font-display); font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--qara-muted); font-size: 14px; }
.footer-col a:hover { color: var(--qara-primary); }
.footer-bottom {
    margin-top: 48px; padding: 32px 0; border-top: 1px solid var(--qara-border);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 14px; color: var(--qara-muted);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-content h1 { font-size: 42px; }
    .btn { padding: 14px 24px; font-size: 14px; }
}

/* ===== WooCommerce Overrides ===== */
.woocommerce ul.products li.product .price { color: var(--qara-primary); font-weight: 700; }
.woocommerce .button, .woocommerce button.button { 
    background: var(--qara-primary) !important; color: white !important;
    font-family: var(--qara-font-body); font-weight: 700; letter-spacing: 1px;
    border-radius: 8px !important; text-transform: uppercase;
}
.woocommerce .button:hover { background: var(--qara-primary-light) !important; }
.woocommerce .onsale { background: var(--qara-accent); }
