/*
Theme Name: ApprovedGuide
Theme URI: https://approvedguide.com
Author: ApprovedGuide Team
Author URI: https://approvedguide.com
Description: A premium, conversion-optimized WordPress theme for digital products in Personal Growth & Relationships niches. Features animated hero with floating cards, category showcase, product grid, testimonials, features section, newsletter, and complete WooCommerce integration. Built for the US market with brand gradient (#00C6FF → #7B3FE4 → #FF4D6D), Poppins/Inter typography, mobile-first responsive design, and ready for digital downloads.
Version: 2.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: approvedguide
Tags: digital-products, e-commerce, blog, three-columns, custom-menu, custom-logo, featured-images, full-width-template, theme-options, translation-ready, woocommerce, block-styles, wide-blocks, editor-style
*/

/* =========================================
   ApprovedGuide v2.0 — Complete Stylesheet
   Brand: 90deg, #00C6FF, #7B3FE4, #FF4D6D
   ========================================= */

:root {
    --color-primary: #7B3FE4;
    --color-secondary: #00C6FF;
    --color-accent: #FF4D6D;
    --gradient-brand: linear-gradient(90deg, #00C6FF 0%, #7B3FE4 50%, #FF4D6D 100%);
    --gradient-soft: linear-gradient(135deg, rgba(0,198,255,0.08) 0%, rgba(123,63,228,0.08) 50%, rgba(255,77,109,0.08) 100%);
    --color-text: #1A1A2E;
    --color-text-light: #5A5A6E;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FC;
    --color-border: #E8EAF0;
    --color-dark: #0F0F1E;
    --shadow-sm: 0 2px 8px rgba(123,63,228,0.06);
    --shadow-md: 0 8px 24px rgba(123,63,228,0.10);
    --shadow-lg: 0 20px 50px rgba(123,63,228,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --font-title: 'Poppins', sans-serif;
    --font-text: 'Inter', sans-serif;
    --font-alt: 'Montserrat', sans-serif;
    --container-w: 1200px;
}

/* ============ Reset ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-text);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
}

a { color: var(--color-primary); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { font-family: inherit; }

/* Accessibility */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--color-primary); color: #fff; padding: 8px 16px; z-index: 9999;
    transition: top 0.3s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============ Layout ============ */
.ag-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}

.ag-text-center { text-align: center; }

.ag-gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ Buttons ============ */
.ag-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.ag-btn-primary {
    background: var(--gradient-brand);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(123,63,228,0.30);
}
.ag-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(123,63,228,0.45);
    color: #fff !important;
}

.ag-btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.ag-btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.ag-btn-block { width: 100%; justify-content: center; }

.ag-icon-btn {
    background: transparent;
    border: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    font-size: 17px;
    position: relative;
    transition: all 0.25s ease;
    text-decoration: none;
}
.ag-icon-btn:hover { background: var(--gradient-soft); color: var(--color-primary); }

.ag-cart-count {
    position: absolute;
    top: 4px; right: 2px;
    background: var(--color-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* ============ Header ============ */
.ag-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.ag-header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.ag-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.ag-logo-mark {
    width: 42px; height: 42px;
    background: var(--gradient-brand);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    box-shadow: 0 6px 16px rgba(123,63,228,0.30);
    flex-shrink: 0;
}

.ag-logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 20px;
    color: var(--color-text);
}
.ag-logo-text span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ag-main-nav ul {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ag-main-nav a {
    padding: 10px 16px;
    color: var(--color-text);
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: inline-block;
}

.ag-main-nav a:hover,
.ag-main-nav .current-menu-item > a,
.ag-main-nav .current_page_item > a,
.ag-main-nav .current-menu-parent > a {
    background: var(--gradient-soft);
    color: var(--color-primary);
}

.ag-main-nav ul ul {
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    flex-direction: column;
    gap: 2px;
    z-index: 50;
}
.ag-main-nav li { position: relative; }
.ag-main-nav li:hover > ul { display: flex; }
.ag-main-nav ul ul a { width: 100%; }

.ag-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ag-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-text);
}

/* ============ Hero ============ */
.ag-hero {
    position: relative;
    padding: 80px 0 100px;
    background: var(--gradient-soft);
    overflow: hidden;
}

.ag-hero-bg-shapes .ag-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: 1;
}
.ag-shape-1 { width: 320px; height: 320px; background: #00C6FF; top: -80px; left: -80px; }
.ag-shape-2 { width: 380px; height: 380px; background: #7B3FE4; bottom: -120px; right: -100px; }
.ag-shape-3 { width: 240px; height: 240px; background: #FF4D6D; top: 40%; right: 30%; opacity: 0.25; }

.ag-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 2;
}

.ag-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: var(--color-primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.ag-hero-badge i { color: var(--color-accent); }

.ag-hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    margin-bottom: 22px;
}

.ag-hero-subtitle {
    font-size: 18px;
    color: var(--color-text-light);
    margin-bottom: 36px;
    max-width: 540px;
}

.ag-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.ag-hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}
.ag-stat strong {
    display: block;
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.ag-stat span { color: var(--color-text-light); font-size: 14px; }

.ag-hero-visual {
    position: relative;
    height: 480px;
}

.ag-hero-circle {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 380px; height: 380px;
    background: var(--gradient-brand);
    border-radius: 50%;
    opacity: 0.15;
    animation: agPulse 4s ease-in-out infinite;
}
@keyframes agPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%      { transform: translate(-50%, -50%) scale(1.08); }
}

.ag-floating-card {
    position: absolute;
    background: #fff;
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-lg);
    animation: agFloat 5s ease-in-out infinite;
    z-index: 3;
}
.ag-floating-card i {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}
.ag-card-1 { top: 20%; left: 5%; }
.ag-card-1 i { background: linear-gradient(135deg, #FF4D6D, #FF8E9E); }
.ag-card-2 { top: 50%; right: 5%; animation-delay: 1.5s; }
.ag-card-2 i { background: linear-gradient(135deg, #00C6FF, #5DD8FF); }
.ag-card-3 { bottom: 12%; left: 18%; animation-delay: 3s; }
.ag-card-3 i { background: linear-gradient(135deg, #7B3FE4, #A370F0); }

.ag-floating-card strong { display: block; font-family: var(--font-title); font-size: 14px; }
.ag-floating-card span { font-size: 12px; color: var(--color-text-light); }

@keyframes agFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-14px); }
}

/* ============ Section heading ============ */
.ag-section { padding: 100px 0; }
.ag-section-alt { background: var(--color-bg-alt); }

.ag-section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}
.ag-eyebrow {
    display: inline-block;
    font-family: var(--font-alt);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
}
.ag-section-head h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 14px;
}
.ag-section-head p {
    color: var(--color-text-light);
    font-size: 17px;
}

/* ============ Categories ============ */
.ag-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ag-category-card {
    background: #fff;
    padding: 36px 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: left;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.ag-category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ag-category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.ag-category-card:hover::before { transform: scaleX(1); }

.ag-cat-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 22px;
}
.ag-cat-1 .ag-cat-icon { background: linear-gradient(135deg, #FF4D6D, #FF8E9E); }
.ag-cat-2 .ag-cat-icon { background: linear-gradient(135deg, #00C6FF, #5DD8FF); }
.ag-cat-3 .ag-cat-icon { background: linear-gradient(135deg, #7B3FE4, #A370F0); }

.ag-category-card h3 { font-size: 22px; margin-bottom: 10px; }
.ag-category-card p { color: var(--color-text-light); margin-bottom: 18px; }
.ag-cat-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============ Products / Posts grid ============ */
.ag-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ag-post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ag-product-card,
.ag-post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
    border: 1px solid var(--color-border);
}
.ag-product-card:hover,
.ag-post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.ag-product-image,
.ag-post-thumb {
    height: 200px;
    background: var(--gradient-brand);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 60px;
    overflow: hidden;
}
.ag-product-image img,
.ag-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ag-product-image .ag-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: #fff;
    color: var(--color-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.ag-product-body,
.ag-post-body { padding: 22px; }

.ag-product-cat {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ag-product-title,
.ag-post-card h3 {
    font-size: 17px;
    margin: 8px 0 10px;
    line-height: 1.35;
}
.ag-post-card h3 a { color: var(--color-text); }
.ag-post-card h3 a:hover { color: var(--color-primary); }

.ag-product-rating {
    color: #FFB800;
    font-size: 13px;
    margin-bottom: 14px;
}
.ag-product-rating span { color: var(--color-text-light); margin-left: 6px; }

.ag-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}
.ag-product-price {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text);
}
.ag-product-price del {
    text-decoration: line-through;
    color: var(--color-text-light);
    font-size: 14px;
    font-weight: 400;
    margin-left: 6px;
}
.ag-add-to-cart {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.ag-add-to-cart:hover { transform: scale(1.1); color: #fff; }

.ag-post-meta {
    display: flex; gap: 14px;
    font-size: 13px;
    color: var(--color-text-light);
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.ag-post-meta .ag-tag {
    background: var(--gradient-soft);
    color: var(--color-primary);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
}
.ag-read-more {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

/* ============ Features ============ */
.ag-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.ag-feature {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}
.ag-feature:hover { background: var(--gradient-soft); }
.ag-feature i {
    font-size: 36px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    display: inline-block;
}
.ag-feature h4 { font-size: 17px; margin-bottom: 8px; }
.ag-feature p { color: var(--color-text-light); font-size: 14px; }

/* ============ Testimonials ============ */
.ag-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ag-testimonial {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}
.ag-testimonial:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.ag-stars { color: #FFB800; margin-bottom: 14px; }
.ag-testimonial p {
    color: var(--color-text);
    font-size: 15px;
    margin-bottom: 22px;
    font-style: italic;
}
.ag-author { display: flex; align-items: center; gap: 12px; }
.ag-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-weight: 700;
    font-family: var(--font-title);
    flex-shrink: 0;
}
.ag-avatar-1 { background: linear-gradient(135deg, #FF4D6D, #FF8E9E); }
.ag-avatar-2 { background: linear-gradient(135deg, #00C6FF, #5DD8FF); }
.ag-avatar-3 { background: linear-gradient(135deg, #7B3FE4, #A370F0); }
.ag-author strong { display: block; font-family: var(--font-title); font-size: 14px; }
.ag-author span { font-size: 12px; color: var(--color-text-light); }

/* ============ Newsletter ============ */
.ag-newsletter-section { padding: 80px 0; }
.ag-newsletter-card {
    background: var(--gradient-brand);
    border-radius: var(--radius-lg);
    padding: 60px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.ag-newsletter-card h2 { color: #fff; font-size: 32px; margin-bottom: 10px; }
.ag-newsletter-card p { opacity: 0.95; }
.ag-newsletter-form {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
}
.ag-newsletter-form input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-family: var(--font-text);
    font-size: 15px;
    outline: none;
}

/* ============ Page Banner ============ */
.ag-page-banner {
    background: var(--gradient-soft);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.ag-page-banner h1 {
    font-size: clamp(32px, 4.5vw, 48px);
    margin-bottom: 14px;
}
.ag-breadcrumb {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--color-text-light);
    font-size: 14px;
}
.ag-breadcrumb a { color: var(--color-primary); }

/* ============ Single Post / Page Content ============ */
.ag-content-page { padding: 80px 0; }
.ag-content-wrap {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.ag-content-wrap h2 { font-size: 26px; margin: 36px 0 14px; color: var(--color-primary); }
.ag-content-wrap h2:first-child { margin-top: 0; }
.ag-content-wrap h3 { font-size: 19px; margin: 24px 0 10px; }
.ag-content-wrap p { color: var(--color-text-light); margin-bottom: 16px; line-height: 1.8; }
.ag-content-wrap ul,
.ag-content-wrap ol { padding-left: 22px; margin-bottom: 18px; list-style: disc; }
.ag-content-wrap ol { list-style: decimal; }
.ag-content-wrap li { color: var(--color-text-light); margin-bottom: 8px; line-height: 1.7; }
.ag-content-wrap a { color: var(--color-primary); text-decoration: underline; }
.ag-content-wrap blockquote {
    border-left: 4px solid var(--color-primary);
    padding: 16px 24px;
    background: var(--gradient-soft);
    border-radius: 0 12px 12px 0;
    margin: 24px 0;
    font-style: italic;
}
.ag-content-wrap img { border-radius: 12px; margin: 20px 0; }
.ag-content-wrap pre, .ag-content-wrap code {
    background: var(--color-bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.ag-content-wrap pre { padding: 16px; overflow-x: auto; }

/* ============ Sidebar / Widgets ============ */
.ag-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 24px;
}
.ag-widget-area { }
.widget {
    background: #fff;
    padding: 26px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-size: 17px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}
.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid var(--color-border);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul a { color: var(--color-text); }
.widget ul a:hover { color: var(--color-primary); }

/* ============ Comments ============ */
.ag-comments {
    max-width: 820px;
    margin: 50px auto;
    padding: 0 24px;
}
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list li { padding: 20px; border-radius: var(--radius-md); background: var(--color-bg-alt); margin-bottom: 16px; }
.comment-author { font-weight: 600; }
.comment-author img { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-text);
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(123,63,228,0.12); }
.comment-form .submit {
    background: var(--gradient-brand);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ============ Forms ============ */
.ag-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ag-form-group { margin-bottom: 18px; }
.ag-form-group label { display: block; font-family: var(--font-title); font-weight: 500; margin-bottom: 8px; font-size: 14px; }
.ag-form-group input,
.ag-form-group textarea,
.ag-form-group select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-text);
    font-size: 14px;
    transition: all 0.25s ease;
    outline: none;
}
.ag-form-group input:focus,
.ag-form-group textarea:focus,
.ag-form-group select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(123,63,228,0.12);
}

/* ============ Contact Layout ============ */
.ag-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.ag-contact-info {
    background: var(--gradient-brand);
    color: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
}
.ag-contact-info h3 { color: #fff; margin-bottom: 20px; }
.ag-contact-info p { opacity: 0.95; margin-bottom: 30px; }
.ag-info-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.ag-info-item i {
    width: 42px; height: 42px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ag-info-item strong { display: block; font-family: var(--font-title); margin-bottom: 4px; }
.ag-info-item span { opacity: 0.9; font-size: 14px; }

.ag-contact-form-wrap {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* ============ Footer ============ */
.ag-site-footer {
    background: var(--color-dark);
    color: #B5B5C8;
    padding: 70px 0 30px;
}
.ag-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}
.ag-site-footer .ag-logo-text { color: #fff; }
.ag-footer-brand p {
    margin: 18px 0 22px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 360px;
}
.ag-social-links { display: flex; gap: 10px; }
.ag-social-links a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.ag-social-links a:hover {
    background: var(--gradient-brand);
    transform: translateY(-3px);
    color: #fff;
}

.ag-footer-col h5,
.ag-site-footer .footer-widget h5,
.ag-site-footer .footer-widget .widget-title {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}
.ag-footer-col ul,
.ag-site-footer .footer-widget ul { list-style: none; padding: 0; }
.ag-footer-col ul li,
.ag-site-footer .footer-widget ul li { margin-bottom: 10px; border: none; padding: 0; background: transparent; }
.ag-footer-col ul a,
.ag-site-footer .footer-widget ul a { color: #B5B5C8; font-size: 14px; }
.ag-footer-col ul a:hover,
.ag-site-footer .footer-widget ul a:hover { color: var(--color-secondary); }

.ag-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
}

/* ============ Cart Drawer ============ */
.ag-cart-drawer {
    position: fixed;
    top: 0; right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: #fff;
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    z-index: 200;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
}
.ag-cart-drawer.open { right: 0; }
.ag-cart-header {
    padding: 22px 24px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ag-cart-header h3 { font-size: 18px; }
.ag-close-cart {
    background: transparent; border: none;
    font-size: 22px; cursor: pointer; color: var(--color-text);
}
.ag-cart-items { flex: 1; padding: 20px 24px; overflow-y: auto; }
.ag-cart-footer { padding: 20px 24px; border-top: 1px solid var(--color-border); }
.ag-cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-family: var(--font-title);
    font-size: 17px;
}
.ag-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.ag-overlay.active { opacity: 1; pointer-events: auto; }

/* ============ Pagination ============ */
.ag-pagination,
.pagination,
.nav-links {
    display: flex; gap: 8px; justify-content: center; margin-top: 50px;
    flex-wrap: wrap;
}
.ag-pagination a, .ag-pagination span,
.pagination a, .pagination span,
.nav-links a, .nav-links span {
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
}
.ag-pagination .current,
.pagination .current,
.nav-links .current,
.page-numbers.current {
    background: var(--gradient-brand);
    color: #fff;
    border-color: transparent;
}

/* ============ WooCommerce overrides ============ */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page button.button,
.woocommerce .button.alt {
    background: var(--gradient-brand) !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-family: var(--font-title) !important;
    font-weight: 600 !important;
    padding: 12px 22px !important;
    border: none !important;
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--color-primary) !important;
    font-family: var(--font-title) !important;
    font-weight: 700 !important;
}
.woocommerce ul.products li.product { border-radius: var(--radius-lg); overflow: hidden; }
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--color-primary) !important;
    border-radius: 12px;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .ag-product-grid { grid-template-columns: repeat(3, 1fr); }
    .ag-features-grid { grid-template-columns: repeat(2, 1fr); }
    .ag-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .ag-footer-brand { grid-column: 1 / -1; }
    .ag-with-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .ag-main-nav {
        position: fixed;
        top: 78px; left: 0; right: 0;
        background: #fff;
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    .ag-main-nav.open { transform: translateY(0); }
    .ag-main-nav ul { flex-direction: column; gap: 4px; }
    .ag-main-nav ul ul { position: static; box-shadow: none; padding-left: 16px; display: block; }
    .ag-menu-toggle { display: inline-flex; }
    .ag-hero { padding: 60px 0 70px; }
    .ag-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .ag-hero-visual { height: 360px; }
    .ag-section { padding: 70px 0; }
    .ag-category-grid,
    .ag-product-grid,
    .ag-testimonial-grid,
    .ag-post-grid { grid-template-columns: 1fr; }
    .ag-features-grid { grid-template-columns: 1fr 1fr; }
    .ag-newsletter-card { grid-template-columns: 1fr; padding: 40px 28px; }
    .ag-footer-grid { grid-template-columns: 1fr 1fr; }
    .ag-contact-grid { grid-template-columns: 1fr; }
    .ag-form-row { grid-template-columns: 1fr; }
    .ag-content-wrap { padding: 30px 22px; }
    .ag-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .ag-hero-stats { gap: 24px; }
    .ag-stat strong { font-size: 22px; }
    .ag-features-grid { grid-template-columns: 1fr; }
    .ag-footer-grid { grid-template-columns: 1fr; }
}

/* ============ Toast ============ */
.ag-toast {
    position: fixed;
    bottom: 30px; right: 30px;
    background: #fff;
    color: var(--color-text);
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--color-primary);
    z-index: 300;
    display: flex; gap: 10px;
    align-items: center;
    transform: translateX(420px);
    transition: transform 0.4s ease;
}
.ag-toast.show { transform: translateX(0); }
.ag-toast i { color: var(--color-secondary); font-size: 18px; }

/* WP alignments */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5em; }
.alignright { float: right; margin-left: 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--color-text-light); font-size: 13px; text-align: center; padding: 8px; }
.sticky { display: block; }
