/* ============================================================
   GoldMaison Theme — Custom Styles
   Premium light/gold aesthetic for a gold jewellery shop
   ============================================================ */

/* ----- CSS Variables (supplement theme.json) ----- */
:root {
    --gm-gold: #C4A35A;
    --gm-gold-light: #E0C57A;
    --gm-gold-dark: #8A6D2F;
    --gm-bg: #F7F1E8;
    --gm-bg-card: #FFFBF5;
    --gm-bg-card-alt: #F1E6D4;
    --gm-text: #1C1915;
    --gm-text-muted: #6B6256;
    --gm-success: #22C55E;
    --gm-danger: #EF4444;
    --gm-header-bg: #FFFBF5;
    --gm-footer-bg: #1C1915;
    --gm-gold-rgb: 196, 163, 90;
    --gm-ink-rgb: 28, 25, 21;
    --gm-radius: 12px;
    --gm-radius-lg: 16px;
    --gm-radius-pill: 50px;
    --gm-shadow: 0 8px 24px rgba(28, 25, 21, 0.08);
    --gm-shadow-gold: 0 4px 20px rgba(196, 163, 90, 0.25);
    --gm-transition: 0.3s ease;
}

/* ----- Global Reset & Base ----- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip link */
.gm-skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--gm-gold);
    color: #FFFBF5;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--gm-radius);
    box-shadow: var(--gm-shadow);
}

.gm-skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--gm-gold-dark);
    outline-offset: 2px;
}

body {
    background-color: var(--gm-bg);
    color: var(--gm-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ----- Typography Utilities ----- */
.gm-heading-gold {
    color: var(--gm-gold);
}

.gm-font-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

.gm-font-mono {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.gm-text-muted {
    color: var(--gm-text-muted);
}

/* ----- Section Layout ----- */
.gm-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gm-section-full {
    padding: 5rem 2rem;
    width: 100%;
}

.gm-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--gm-gold);
}

.gm-section-subtitle {
    text-align: center;
    color: var(--gm-text-muted);
    font-size: 1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gm-gold-underline {
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gm-gold), var(--gm-gold-light));
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.gm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 251, 245, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--gm-gold-rgb), 0.35);
    transition: background var(--gm-transition), box-shadow var(--gm-transition);
}

.gm-header.scrolled {
    background: rgba(255, 251, 245, 0.98);
    box-shadow: 0 4px 20px rgba(var(--gm-ink-rgb), 0.08);
}

.gm-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    gap: 1.5rem;
}

.gm-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.gm-header-actions .wp-block-woocommerce-mini-cart {
    display: flex;
    align-items: center;
}

.gm-logo img {
    height: 45px;
    width: auto;
    transition: transform var(--gm-transition);
}

.gm-logo img:hover {
    transform: scale(1.03);
}

.gm-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.gm-nav a {
    color: var(--gm-text);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--gm-radius-pill);
    transition: all var(--gm-transition);
    position: relative;
}

.gm-nav a:hover,
.gm-nav a.active {
    color: var(--gm-gold-dark);
    background: rgba(var(--gm-gold-rgb), 0.08);
}

.gm-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gm-gold);
    border-radius: 1px;
    transition: width var(--gm-transition);
}

.gm-nav a:hover::after,
.gm-nav a.active::after {
    width: 20px;
}

/* WhatsApp Header Button */
.gm-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gm-gold);
    color: #FFFBF5 !important;
    padding: 0.6rem 1.25rem;
    border-radius: var(--gm-radius-pill);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all var(--gm-transition);
    white-space: nowrap;
}

.gm-header-cta:hover {
    background: var(--gm-gold-light);
    box-shadow: var(--gm-shadow-gold);
    transform: translateY(-1px);
}

.gm-header-cta svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu Toggle */
.gm-menu-toggle {
    display: none;
}

.gm-menu-toggle svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Mobile Navigation Drawer */
.gm-mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--gm-bg-card);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.gm-mobile-nav.open {
    right: 0;
}

.gm-mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gm-mobile-nav-overlay.open {
    opacity: 1;
}

.gm-mobile-nav-close {
    background: none;
    border: none;
    color: var(--gm-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem;
}

.gm-mobile-nav a {
    display: block;
    color: var(--gm-text);
    text-decoration: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color var(--gm-transition);
}

.gm-mobile-nav a:hover {
    color: var(--gm-gold);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.gm-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    background: radial-gradient(ellipse at top center, rgba(255,255,255,0.4) 0%, transparent 60%),
                var(--gm-bg);
    overflow: hidden;
}

.gm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(var(--gm-gold-rgb),0.04) 0%, transparent 70%);
    animation: gm-hero-glow 8s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes gm-hero-glow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
    100% { transform: translate(5%, -3%) scale(1.1); opacity: 1; }
}

.gm-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.gm-hero-headline {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.gm-hero-headline h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--gm-text);
}

.gm-hero-headline p {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    color: var(--gm-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Two-Column Widget Grid */
.gm-hero-widgets {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto 6rem auto;
}

/* Glassmorphism Card Style */
.gm-widget-card {
    background: var(--gm-bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--gm-gold-rgb), 0.2);
    border-radius: var(--gm-radius-lg);
    overflow: hidden;
    transition: border-color var(--gm-transition), box-shadow var(--gm-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--gm-shadow);
}

.gm-widget-card:hover {
    border-color: rgba(var(--gm-gold-rgb), 0.3);
    box-shadow: 0 4px 30px rgba(var(--gm-gold-rgb), 0.1);
}

.gm-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.gm-widget-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gm-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gm-widget-header .gm-widget-icon {
    width: 20px;
    height: 20px;
    color: var(--gm-gold);
}

.gm-widget-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--gm-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gm-widget-badge.live {
    background: rgba(34, 197, 94, 0.15);
    color: var(--gm-success);
}

.gm-widget-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gm-success);
    animation: gm-pulse 1.5s ease-in-out infinite;
}

@keyframes gm-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* TradingView Widget Container */
.gm-tradingview-container {
    padding: 0;
    height: 420px;
    position: relative;
}

.gm-tradingview-container .tradingview-widget-container,
.gm-tradingview-container .tradingview-widget-container__widget,
.gm-tradingview-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/* ----- Gold Price Table ----- */
.gm-price-table-container {
    padding: 0;
    position: relative;
    transition: opacity var(--gm-transition);
}

.gm-price-table-container.is-syncing::before {
    content: '';
    display: block;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gm-gold), transparent);
    background-size: 200% 100%;
    animation: gm-sync-slide 1s linear infinite;
}

.gm-price-table-container.is-syncing .gm-price-table tbody {
    opacity: 0.88;
    transition: opacity 0.2s ease;
}

.gm-price-table-container.is-loaded .gm-price-table tbody {
    opacity: 1;
}

#gm-price-table-widget.is-syncing .gm-widget-badge.live {
    background: rgba(var(--gm-gold-rgb), 0.15);
    color: var(--gm-gold);
}

#gm-price-table-widget.is-syncing .gm-widget-badge.live::before {
    background: var(--gm-gold);
    animation-duration: 0.7s;
}

@keyframes gm-sync-slide {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gm-price-table {
    width: 100%;
    border-collapse: collapse;
}

.gm-price-table thead th {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gm-text-muted);
    text-align: left;
    background: rgba(0,0,0,0.02);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.gm-price-table thead th:not(:first-child) {
    text-align: right;
}

.gm-price-table tbody tr {
    transition: background var(--gm-transition);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.gm-price-table tbody tr:hover {
    background: rgba(var(--gm-gold-rgb), 0.06);
}

.gm-price-table tbody td {
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
}

.gm-price-table tbody td:first-child {
    font-weight: 600;
    color: var(--gm-text);
}

.gm-price-table tbody td:not(:first-child) {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.gm-price-buy {
    color: var(--gm-success);
}

.gm-price-sell {
    color: var(--gm-gold);
}

.gm-price-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

.gm-price-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.gm-price-sync-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--gm-gold);
}

.gm-price-sync-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gm-price-sync-status.is-loading::before,
.gm-price-sync-status.is-syncing::before {
    background: var(--gm-gold);
    animation: gm-pulse 0.8s ease-in-out infinite;
}

.gm-price-sync-status.is-idle {
    color: var(--gm-success);
}

.gm-price-sync-status.is-idle::before {
    background: var(--gm-success);
    animation: gm-pulse 2s ease-in-out infinite;
}

.gm-price-sync-status.is-error {
    color: var(--gm-danger);
}

.gm-price-sync-status.is-error::before {
    background: var(--gm-danger);
    animation: none;
}

.gm-refresh-btn {
    background: none;
    border: 1px solid rgba(var(--gm-gold-rgb),0.2);
    color: var(--gm-gold);
    padding: 4px 12px;
    border-radius: var(--gm-radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--gm-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gm-refresh-btn:hover {
    background: rgba(var(--gm-gold-rgb),0.1);
    border-color: rgba(var(--gm-gold-rgb),0.4);
}

.gm-refresh-btn svg {
    width: 12px;
    height: 12px;
}

.gm-refresh-btn.refreshing svg {
    animation: gm-spin 0.8s linear infinite;
}

.gm-refresh-btn:disabled {
    opacity: 0.7;
    cursor: wait;
}

@keyframes gm-spin {
    100% { transform: rotate(360deg); }
}

/* Price loading skeleton */
.gm-price-skeleton {
    background: linear-gradient(90deg, rgba(0,0,0,0.04) 25%, rgba(0,0,0,0.08) 50%, rgba(0,0,0,0.04) 75%);
    background-size: 200% 100%;
    animation: gm-skeleton 1.5s ease-in-out infinite;
    border-radius: 4px;
    height: 1em;
    width: 80px;
    display: inline-block;
}

@keyframes gm-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Hero CTA Buttons */
.gm-hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.gm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--gm-radius-pill);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--gm-transition);
    cursor: pointer;
    border: none;
}

.gm-btn-primary {
    background: var(--gm-gold);
    color: #0D0D0D;
}

.gm-btn-primary:hover {
    background: var(--gm-gold-light);
    box-shadow: var(--gm-shadow-gold);
    transform: translateY(-2px);
}

.gm-btn-outline {
    background: transparent;
    color: var(--gm-gold);
    border: 1px solid rgba(var(--gm-gold-rgb),0.4);
}

.gm-btn-outline:hover {
    background: rgba(var(--gm-gold-rgb),0.1);
    border-color: var(--gm-gold);
    transform: translateY(-2px);
}

.gm-btn svg {
    width: 18px;
    height: 18px;
}

/* ============================================================
   STATS / TRUST BAR
   ============================================================ */
.gm-stats-bar {
    background: var(--gm-bg-card);
    border-top: 1px solid rgba(var(--gm-gold-rgb),0.1);
    border-bottom: 1px solid rgba(var(--gm-gold-rgb),0.1);
    padding: 2.5rem 2rem;
}

.gm-stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.gm-stat-item {
    text-align: center;
    padding: 0.5rem;
}

.gm-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(var(--gm-gold-rgb),0.1);
    border-radius: 12px;
    color: var(--gm-gold);
}

.gm-stat-icon svg {
    width: 24px;
    height: 24px;
}

.gm-stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gm-text);
    margin-bottom: 0.25rem;
}

.gm-stat-label {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================
   PRODUCT SECTION
   ============================================================ */
.gm-products {
    padding: 5rem 2rem;
    background: var(--gm-bg);
}

.gm-products-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* WooCommerce product card overrides */
.gm-products .wc-block-grid__product,
.gm-products .wp-block-post {
    background: var(--gm-bg-card);
    border: 1px solid rgba(var(--gm-gold-rgb), 0.15);
    border-radius: var(--gm-radius-lg);
    overflow: hidden;
    transition: all var(--gm-transition);
    box-shadow: var(--gm-shadow);
}

.gm-products .wc-block-grid__product:hover,
.gm-products .wp-block-post:hover {
    border-color: rgba(var(--gm-gold-rgb), 0.45);
    box-shadow: 0 12px 32px rgba(var(--gm-ink-rgb), 0.1);
    transform: translateY(-4px);
}

.gm-products .wc-block-grid__product-image,
.gm-products .wp-block-post-featured-image {
    overflow: hidden;
    background: var(--gm-bg-card-alt);
}

.gm-products .wc-block-grid__product-image img,
.gm-products .wp-block-post-featured-image img {
    transition: transform 0.5s ease;
}

.gm-products .wc-block-grid__product:hover img,
.gm-products .wp-block-post:hover img {
    transform: scale(1.05);
}

.gm-products .wc-block-grid__product-title,
.gm-products .wp-block-post-title {
    color: var(--gm-text) !important;
    font-weight: 600;
    padding: 1rem 1.25rem 0.25rem;
}

.gm-products .wc-block-grid__product-price {
    color: var(--gm-gold) !important;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    padding: 0 1.25rem;
}

.gm-products .wc-block-grid__product-add-to-cart .wp-block-button__link,
.gm-products .wp-element-button {
    background: var(--gm-gold) !important;
    color: #FFFBF5 !important;
    border-radius: var(--gm-radius-pill) !important;
    font-weight: 600 !important;
    transition: all var(--gm-transition) !important;
    margin: 1rem 1.25rem;
}

.gm-products .wc-block-grid__product-add-to-cart .wp-block-button__link:hover,
.gm-products .wp-element-button:hover {
    background: var(--gm-gold-light) !important;
    box-shadow: var(--gm-shadow-gold) !important;
}

.gm-view-all {
    text-align: center;
    margin-top: 3rem;
}

/* ============================================================
   BUYBACK CALCULATOR
   ============================================================ */

/* Purity Selector Pills */
.gm-purity-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.gm-purity-pill {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(var(--gm-gold-rgb),0.25);
    border-radius: var(--gm-radius-pill);
    background: transparent;
    color: var(--gm-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--gm-transition);
    white-space: nowrap;
}

.gm-purity-pill:hover {
    border-color: var(--gm-gold);
    color: var(--gm-gold);
    background: rgba(var(--gm-gold-rgb),0.06);
}

.gm-purity-pill.active {
    background: var(--gm-gold);
    color: #FFFBF5;
    border-color: var(--gm-gold);
    box-shadow: 0 0 15px rgba(var(--gm-gold-rgb),0.3);
    font-weight: 700;
}

/* Weight Input */
.gm-calc-field {
    margin-bottom: 1.5rem;
}

.gm-calc-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.gm-calc-input-wrap {
    position: relative;
}

.gm-calc-input {
    width: 100%;
    padding: 1rem 1.25rem;
    padding-right: 4rem;
    background: var(--gm-bg-card);
    border: 1px solid rgba(var(--gm-ink-rgb), 0.12);
    border-radius: var(--gm-radius);
    color: var(--gm-text);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    outline: none;
    transition: border-color var(--gm-transition), box-shadow var(--gm-transition);
}

.gm-calc-input:focus,
.gm-calc-input:focus-visible {
    border-color: var(--gm-gold);
    box-shadow: 0 0 0 3px rgba(var(--gm-gold-rgb),0.15);
}

.gm-calc-input::placeholder {
    color: rgba(var(--gm-ink-rgb), 0.35);
}

.gm-calc-unit {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gm-text-muted);
}

/* Rate Display */
.gm-calc-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(var(--gm-gold-rgb),0.06);
    border-radius: var(--gm-radius);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(var(--gm-gold-rgb),0.1);
}

.gm-calc-rate-label {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
}

.gm-calc-rate-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--gm-gold);
    font-size: 1rem;
}

/* Result Display */
.gm-calc-result {
    text-align: center;
    padding: 2rem;
    background: rgba(var(--gm-gold-rgb),0.04);
    border: 1px solid rgba(var(--gm-gold-rgb),0.15);
    border-radius: var(--gm-radius-lg);
    position: relative;
    overflow: hidden;
}

.gm-calc-result::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--gm-gold-rgb),0.05) 0%, transparent 60%);
    pointer-events: none;
}

.gm-calc-result-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gm-text-muted);
    margin-bottom: 0.5rem;
    position: relative;
}

.gm-calc-result-value {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--gm-gold-dark);
    position: relative;
    line-height: 1.2;
}

.gm-calc-result-note {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
    margin-top: 0.75rem;
    position: relative;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.gm-testimonials {
    padding: 5rem 2rem;
    background: var(--gm-bg-card);
    overflow: hidden;
}

.gm-testimonials-inner {
    max-width: 1400px;
    margin: 0 auto;
}

/* Rating Summary */
.gm-rating-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.gm-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(var(--gm-gold-rgb),0.1);
    border: 1px solid rgba(var(--gm-gold-rgb),0.2);
    padding: 0.75rem 1.5rem;
    border-radius: var(--gm-radius-pill);
}

.gm-rating-stars {
    color: #FFD700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.gm-rating-text {
    font-weight: 700;
    color: var(--gm-gold);
    font-size: 0.9rem;
}

.gm-rating-count {
    color: var(--gm-text-muted);
    font-size: 0.85rem;
}

/* Testimonial Carousel */
.gm-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.gm-testimonial-card {
    background: var(--gm-bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--gm-radius-lg);
    padding: 1.75rem;
    transition: all var(--gm-transition);
}

.gm-testimonial-card:hover {
    border-color: rgba(var(--gm-gold-rgb),0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.gm-testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gm-testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gm-gold), var(--gm-gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0D0D0D;
    flex-shrink: 0;
}

.gm-testimonial-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gm-text);
}

.gm-testimonial-date {
    font-size: 0.75rem;
    color: var(--gm-text-muted);
}

.gm-testimonial-stars {
    color: #FFD700;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.gm-testimonial-text {
    color: var(--gm-text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.gm-faq {
    padding: 5rem 2rem;
    background: var(--gm-bg);
}

.gm-faq-inner {
    max-width: 800px;
    margin: 0 auto;
}

.gm-faq-item {
    border: 1px solid rgba(var(--gm-gold-rgb), 0.15);
    border-radius: var(--gm-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: border-color var(--gm-transition);
}

.gm-faq-question:focus-visible {
    outline: 2px solid var(--gm-gold);
    outline-offset: -2px;
}

.gm-nav a:focus-visible,
.gm-header-cta:focus-visible,
.gm-btn:focus-visible,
.gm-purity-pill:focus-visible,
.gm-expander-btn:focus-visible {
    outline: 2px solid var(--gm-gold-dark);
    outline-offset: 2px;
}

.gm-faq-item:hover {
    border-color: rgba(var(--gm-gold-rgb),0.2);
}

.gm-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--gm-bg-card);
    border: none;
    color: var(--gm-text);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all var(--gm-transition);
    gap: 1rem;
}

.gm-faq-question:hover {
    color: var(--gm-gold);
}

.gm-faq-icon {
    width: 20px;
    height: 20px;
    color: var(--gm-gold);
    flex-shrink: 0;
    transition: transform var(--gm-transition);
}

.gm-faq-item.open .gm-faq-icon {
    transform: rotate(45deg);
}

.gm-faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--gm-bg-card);
}

.gm-faq-item.open .gm-faq-answer {
    padding: 0 1.5rem 1.25rem;
    max-height: 500px;
}

.gm-faq-answer p {
    color: var(--gm-text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.gm-cta-banner {
    padding: 5rem 2rem;
    background: var(--gm-footer-bg);
    border-top: 1px solid rgba(var(--gm-gold-rgb), 0.35);
    border-bottom: 1px solid rgba(var(--gm-gold-rgb), 0.35);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gm-cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(var(--gm-gold-rgb), 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.gm-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gm-cta-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #FFFBF5;
    margin-bottom: 1rem;
}

.gm-cta-subtitle {
    color: rgba(255, 251, 245, 0.82);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.gm-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.gm-btn-dark {
    background: var(--gm-gold);
    color: #FFFBF5;
}

.gm-btn-dark:hover {
    background: var(--gm-gold-light);
    box-shadow: var(--gm-shadow-gold);
    transform: translateY(-2px);
}

.gm-btn-white-outline {
    background: transparent;
    color: #FFFBF5;
    border: 2px solid rgba(255, 251, 245, 0.45);
}

.gm-btn-white-outline:hover {
    background: rgba(255, 251, 245, 0.08);
    border-color: #FFFBF5;
    transform: translateY(-2px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.gm-footer {
    background: var(--gm-footer-bg);
    border-top: 1px solid rgba(var(--gm-gold-rgb), 0.35);
    padding: 4rem 2rem 0;
    color: #FFFBF5;
}

.gm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.gm-footer-brand p {
    color: rgba(255, 251, 245, 0.75);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 1rem;
}

.gm-footer-brand-name,
#gm-footer-brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gm-gold-light) !important;
}

.gm-footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 0.5rem;
}

.gm-footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}

.gm-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gm-footer-links li {
    margin-bottom: 0.6rem;
}

.gm-footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--gm-transition);
}

.gm-footer-links a:hover {
    color: #FFFFFF;
}

.gm-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
}

.gm-footer-contact-item svg {
    width: 16px;
    height: 16px;
    color: #FFFFFF;
    flex-shrink: 0;
    margin-top: 2px;
}

.gm-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gm-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(var(--gm-gold-rgb),0.1);
    border: 1px solid rgba(var(--gm-gold-rgb),0.2);
    color: var(--gm-gold);
    transition: all var(--gm-transition);
}

.gm-footer-social a:hover {
    background: var(--gm-gold);
    color: #0D0D0D;
    transform: translateY(-2px);
}

.gm-footer-social a svg {
    width: 16px;
    height: 16px;
}

/* Footer Bottom */
.gm-footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 1.5rem 2rem;
    text-align: center;
}

.gm-footer-bottom-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.gm-footer-copyright {
    font-size: 0.8rem;
    color: var(--gm-text-muted);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.gm-whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25D366;
    color: #fff;
    padding: 0.85rem 1.25rem;
    border-radius: var(--gm-radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--gm-transition);
    animation: gm-float-bounce 3s ease-in-out infinite;
}

.gm-whatsapp-float:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes gm-float-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.gm-whatsapp-float svg {
    width: 22px;
    height: 22px;
}

.gm-whatsapp-float-text {
    display: none;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.gm-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gm-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.gm-animate-delay-1 { transition-delay: 0.1s; }
.gm-animate-delay-2 { transition-delay: 0.2s; }
.gm-animate-delay-3 { transition-delay: 0.3s; }
.gm-animate-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .gm-hero-widgets {
        grid-template-columns: 1fr;
    }
    
    .gm-tradingview-container {
        height: 350px;
    }

    .gm-stats-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .gm-testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gm-footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .gm-nav {
        display: none;
    }

    .gm-menu-toggle {
        display: block;
    }

    .gm-mobile-nav {
        display: block;
    }

    .gm-hero {
        padding: 3rem 1.25rem 2rem;
    }

    .gm-tradingview-container {
        height: 300px;
    }

    .gm-section, .gm-section-full {
        padding: 3.5rem 1.25rem;
    }



    .gm-purity-selector {
        justify-content: center;
    }

    .gm-stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .gm-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .gm-footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gm-hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .gm-cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .gm-footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .gm-whatsapp-float {
        padding: 0.75rem;
        border-radius: 50%;
    }

    .gm-whatsapp-float-text {
        display: none;
    }
}

@media (min-width: 769px) {
    .gm-whatsapp-float-text {
        display: inline;
    }
}

/* ============================================================
   WORDPRESS BLOCK OVERRIDES (for block editor compatibility)
   ============================================================ */
.wp-site-blocks {
    padding: 0 !important;
}

/* Override WooCommerce default button colors */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background-color: var(--gm-gold) !important;
    color: #FFFBF5 !important;
    border-radius: var(--gm-radius-pill) !important;
    font-weight: 600 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background-color: var(--gm-gold-light) !important;
}

/* WooCommerce product grid in block editor */
.wc-block-grid .wc-block-grid__products {
    gap: 1.5rem;
}

.wc-block-grid .wc-block-grid__product {
    padding: 0;
}

/* WordPress core/details block (FAQ) */
details.wp-block-details {
    background: var(--gm-bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--gm-radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

details.wp-block-details summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--gm-text);
    transition: color var(--gm-transition);
}

details.wp-block-details summary:hover {
    color: var(--gm-gold);
}

details.wp-block-details[open] summary {
    color: var(--gm-gold);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

details.wp-block-details > *:not(summary) {
    padding: 0 1.5rem 1.25rem;
    color: var(--gm-text-muted);
}

/* ============================================================
   HEADER CART & ACCOUNT ICONS (WooCommerce)
   ============================================================ */
.gm-header .wc-block-mini-cart,
.gm-header .wc-block-customer-account,
.gm-header .wp-block-woocommerce-mini-cart,
.gm-header .wp-block-woocommerce-customer-account {
    display: flex;
    align-items: center;
}

.gm-header .wc-block-mini-cart__button,
.gm-header .wc-block-customer-account__button,
.gm-header .wp-block-woocommerce-mini-cart a,
.gm-header .wp-block-woocommerce-customer-account a,
.gm-header svg.wc-block-mini-cart__icon,
.gm-header svg.wc-block-customer-account__icon {
    color: var(--gm-text) !important;
    fill: var(--gm-text) !important;
    display: flex;
    align-items: center;
}

.gm-header .wc-block-mini-cart__amount {
    color: var(--gm-text) !important;
}

.gm-header .wc-block-mini-cart__badge {
    background: var(--gm-gold) !important;
    color: #FFFBF5 !important;
}

.gm-header .wp-block-group {
    align-items: center;
}

.gm-price-table-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.gm-price-table-container.is-expanded {
    max-height: 2000px;
}

.gm-price-table-expander {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,243,234,0) 0%, var(--gm-bg-card) 70%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1rem;
    z-index: 2;
}

.gm-price-table-container.is-expanded .gm-price-table-expander {
    display: none;
}

.gm-expander-btn {
    background: var(--gm-gold);
    color: #fff;
    border: none;
    border-radius: var(--gm-radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(var(--gm-gold-rgb),0.2);
    transition: var(--gm-transition);
}

.gm-expander-btn:hover {
    background: var(--gm-gold-dark);
}

.gm-expander-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   CALCULATOR WIDGET STYLES
   ============================================================ */
.gm-calculator-inner {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gm-calc-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gm-calc-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gm-text);
}

.gm-purity-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.gm-purity-pill {
    padding: 0.5rem 1rem;
    background: var(--gm-bg-card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--gm-radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gm-text);
    cursor: pointer;
    transition: var(--gm-transition);
}

.gm-purity-pill:hover {
    border-color: var(--gm-gold);
    color: var(--gm-gold);
}

.gm-purity-pill.active {
    background: var(--gm-gold);
    color: #FFFFFF;
    border-color: var(--gm-gold);
    box-shadow: 0 4px 12px rgba(var(--gm-gold-rgb),0.2);
}

.gm-calc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gm-calc-input {
    width: 100%;
    padding: 0.5rem 3.5rem 0.5rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--gm-radius);
    font-size: 1rem;
    background: var(--gm-bg);
    color: var(--gm-text);
    transition: var(--gm-transition);
    outline: none;
}

.gm-calc-input:focus {
    border-color: var(--gm-gold);
    box-shadow: 0 0 0 3px rgba(var(--gm-gold-rgb),0.1);
}

.gm-calc-unit {
    position: absolute;
    right: 1rem;
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    font-weight: 500;
    pointer-events: none;
}

.gm-calc-rate {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

.gm-calc-rate-label {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
}

.gm-calc-rate-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gm-gold);
}

.gm-calc-result {
    text-align: center;
    padding: 1rem;
    background: var(--gm-bg-card-alt);
    border-radius: var(--gm-radius);
    border: 1px solid rgba(var(--gm-gold-rgb),0.1);
}

.gm-calc-result-label {
    font-size: 0.85rem;
    color: var(--gm-text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gm-calc-result-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gm-gold-dark);
}

.gm-calc-cta {
    text-align: center;
}

.gm-calc-cta .gm-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
}
