/* 
 * Aha Theme - Main Stylesheet
 * Tailwind-inspired utility classes for WordPress/WooCommerce
 */

/* ==========================================================================
   Tailwind-like Utility Classes
   ========================================================================== */

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-5 > * + * { margin-left: 1.25rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.col-span-1 { grid-column: span 1 / span 1; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.top-3 { top: 0.75rem; }
.left-3 { left: 0.75rem; }
.left-4 { left: 1rem; }
.right-2 { right: 0.5rem; }
.-top-2 { top: -0.5rem; }
.-right-2 { right: -0.5rem; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.-translate-y-1\/2 { transform: translateY(-50%); }

/* Sizing */
.w-4 { width: 1rem; }
.w-9 { width: 2.25rem; }
.h-5 { height: 1.25rem; }
.h-9 { height: 2.25rem; }
.h-11 { height: 2.75rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.w-full { width: 100%; }
.w-64 { width: 16rem; }
.h-4 { height: 1rem; }
.min-w-\[1\.25rem\] { min-width: 1.25rem; }
.max-h-\[38px\] { max-height: 38px; }
.h-48 { height: 12rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.ml-2 { margin-left: 0.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pl-4 { padding-left: 1rem; }
.pl-11 { padding-left: 2.75rem; }
.pr-4 { padding-right: 1rem; }
.pr-8 { padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pb-8 { padding-bottom: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }

/* Typography */
/*.text-[10px] { font-size: 10px; }*/
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }

/* Colors */
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f8fafc; }
.bg-gray-100 { background-color: #f1f5f9; }
.bg-gray-200 { background-color: #e2e8f0; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-300 { background-color: #e2e8f0; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800 { background-color: #1e293b; }
.bg-slate-900 { background-color: #0f172a; }
.bg-blue-600 { background-color: #2563eb; }
.bg-green-500 { background-color: #10b981; }
.bg-blue-500 { background-color: #3b82f6; }
.text-white { color: #ffffff; }
.text-gray-300 { color: #cbd5e1; }
.text-gray-400 { color: #94a3b8; }
.text-gray-500 { color: #64748b; }
.text-gray-600 { color: #475569; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-blue-600 { color: #2563eb; }
.text-yellow-400 { color: #facc15; }
.text-red-500 { color: #ef4444; }
.border-gray-100 { border-color: #f1f5f9; }
.border-gray-200 { border-color: #e2e8f0; }
.border-gray-300 { border-color: #e5e7eb; }
.border-gray-400 { border-color: #94a3b8; }

/* Borders */
.border { border-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-none { border-style: none; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-l-lg { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }
.rounded-r-lg { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1); }

/* Effects */
.transition { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.cursor-pointer { cursor: pointer; }
.opacity-0 { opacity: 0; }

/* Hover States */
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:text-white:hover { color: #ffffff; }
.hover\:bg-slate-700:hover { background-color: #334155; }
.hover\:bg-blue-600:hover { background-color: #2563eb; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:scale-110:hover { transform: scale(1.1); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Focus States */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px; }
.focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }

/* Container */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Responsive Classes */
@media (min-width: 768px) {
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:block { display: block !important; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:col-span-1 { grid-column: span 1 / span 1; }
    .md\:flex-row { flex-direction: row; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:mt-0 { margin-top: 0; }
}

@media (min-width: 1024px) {
    .lg\:block { display: block !important; }
    .lg\:flex { display: flex !important; }
    .lg\:inline-flex { display: inline-flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ==========================================================================
   Custom Component Styles
   ========================================================================== */

/* Hero Gradient (legacy, kept for compatibility) */
.hero-gradient {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* ==========================================================================
   Hero Block - Dark tech style (modelo: grid, light leaks, gradient title)
   ========================================================================== */
.aha-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #0f172a 0%, #050810 100%);
    background-color: #050810;
    overflow: hidden;
}
/* Map background layer (optional – set "Background map image URL" in block) */
.aha-hero-map-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.aha-hero-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.2;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    will-change: transform;
}
.aha-hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}
.aha-hero-light-leak {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.aha-hero-light-leak-1 {
    background: radial-gradient(circle at 10% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 45%);
}
.aha-hero-light-leak-2 {
    background: radial-gradient(circle at 90% 90%, rgba(59, 130, 246, 0.12) 0%, transparent 45%);
}
.aha-hero-inner {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}
.aha-hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 2rem;
    letter-spacing: -0.03em;
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.25);
}
/* Any <span> inside the title gets the accent (blue/gradient) */
.aha-hero-title span,
.aha-hero-title-gradient {
    display: inline;
    background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
}
.aha-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.65;
    color: #94a3b8;
    max-width: 42rem;
    margin: 0 auto 3rem;
}
.aha-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Reusable CTA buttons – hero primary = gradient, secondary = glass */
.aha-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 12rem;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    border-radius: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.aha-btn:hover {
    transform: scale(1.02);
}
.aha-btn:active {
    transform: scale(0.98);
}
.aha-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}
.aha-btn-icon {
    flex-shrink: 0;
}
.aha-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #0766ff 100%);
    color: #fff;
    border: none;
    box-shadow: 0 20px 50px -15px rgba(59, 130, 246, 0.45);
}
.aha-btn-primary:hover {
    filter: brightness(1.1);
}
.aha-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.aha-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Product Card Hover Effect */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.ajax_add_to_cart {
    background-color: #f1f1f1;
    border-radius: 100%;
    border: 1px solid #d5d5d5;
    width: 42px;
    height: 42px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.product-card-image {
    height: 192px;
    overflow: hidden;
}

.product-card del bdi {
    color: var(--color-gray-400, #94a3b8);
    margin-right: 0.5rem;
    text-decoration: line-through;
}

.product-card ins, .product-card bdi {
    text-decoration: none;
    color: var(--color-primary, #2563eb);
}

/* Search Shadow */
.search-shadow {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Stars Rating */
.fa-star, .fa-star-half-stroke {
    display: inline-block;
}

/* Mobile Menu */
.mobile-menu {
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block !important;
}

/* ==========================================================================
   Header (modern layout - Envato style)
   ========================================================================== */
.aha-header-logo .aha-logo-wrapper,
.aha-header-logo .custom-logo-link {
    display: block;
    line-height: 0;
}
.aha-header-logo .custom-logo {
    display: flex;    
    align-items: center;
    height: auto;
}
.aha-header-logo .aha-logo-wrapper img {
    max-height: 38px;
    width: auto;
    height: auto;
    object-fit: contain;
}
@media (max-width: 767px) {
    .aha-header-row1 {
        height: 60px;
    }
    .aha-header-logo .custom-logo,
    .aha-header-logo .aha-logo-wrapper img {
        max-height: 30px;
    }
}
.aha-nav-list li {
    display: inline-block;
}
.aha-nav-list li a:hover {
    color: #2563eb;
}
.aha-header-cart i {
    display: inline-block;
    position: relative;
}

/* Mobile menu toggle: reset button styles (no border, no rounding) */
.mobile-menu-toggle {
    border: none;
    border-radius: 0;
    background: none;
    background-color: transparent;
    box-shadow: none;
    outline: none;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

/* Header search: desktop = overlay (no CLS), mobile = in-flow */
.aha-header-search-toggle {
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    outline: none;
}
.aha-header-search-toggle:hover,
.aha-header-search-toggle:focus {
    outline: none;
}
/* Desktop: search row = overlay com sanfona (transição suave) */
@media (min-width: 1024px) {
    .aha-header-search-row {
        position: fixed;
        top: 3rem;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 45;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(-0.5rem);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    }
    .aha-header-search-row.is-open {
        max-height: 180px;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
}
/* Mobile: search row no fluxo, sempre visível */
@media (max-width: 1023px) {
    .aha-header-search-row[aria-hidden="true"] {
        display: none;
    }
    .aha-header-search-row:not([aria-hidden="true"]) {
        display: block;
    }
}
/* Search pill: one continuous bar (Envato-style) */
.aha-search-pill {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    min-height: 48px;
    transition: all 0.3s ease;
}
.aha-search-pill .aha-search-cat {
    flex-shrink: 0;
    min-width: 6rem;
    padding: 0 2rem 0 1.25rem;
    height: auto;
    border: none;
    background: transparent;
    color: #334155;
    font-size: 0.875rem;
    cursor: pointer;
    appearance: auto;
    -webkit-appearance: menulist;
}
.aha-search-pill .aha-search-cat:focus {
    outline: none;
}
.aha-search-pill .aha-search-divider {
    width: 1px;
    background: #e2e8f0;
    flex-shrink: 0;
    align-self: stretch;
}
.aha-search-pill .aha-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
    min-width: 0;
}
.aha-search-pill .aha-search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.875rem;
    pointer-events: none;
}
.aha-search-pill .aha-search-input {
    width: 100%;
    height: 100%;
    min-height: 46px;
    padding: 0 1.25rem 0 2.5rem;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    color: #334155;
}
.aha-search-pill .aha-search-input::placeholder {
    color: #94a3b8;
}
.aha-search-pill .aha-search-input:focus {
    outline: none;
}
.aha-search-pill:hover {
    border: 1px solid #a4a5a5;
}
/* Mobile: mesma aparência do desktop (uma única cápsula em linha) */
@media (max-width: 639px) {
    .aha-search-pill .aha-search-cat {
        min-width: 5rem;
        padding-left: 0.875rem;
        padding-right: 1.5rem;
    }
}

/* Newsletter Form */
.newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 1px #3b82f6;
}

/* WooCommerce Overrides – reset default float/width so our grid works */
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 25px 0 60px 0;
    padding-left: 0 !important;
}

/* Remove clearfix pseudo-elements that cause empty space with grid layout */
.woocommerce .products ul::before,
.woocommerce .products ul::after,
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
}

/* Shop page layout: full-width content, grid with minimum card width */
.shop-page .shop-layout {
    display: block;
    width: 100%;
}

.shop-page .shop-content {
    width: 100%;
    min-width: 0;
}

/* Shop products grid: min column width so cards never get too narrow */
.shop-page .shop-content ul.products.aha-shop-products-grid,
.shop-page ul.products.aha-shop-products-grid,
.shop-page .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-page .shop-content ul.products li.product,
.shop-page .woocommerce ul.products li.product,
.shop-page ul.products li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    min-width: 0;
}

/* Shop page: same product card as Aha Products Grid block */
.shop-page .product-card {
    min-width: 0;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-page .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shop-page .product-card .fa-star,
.shop-page .product-card .fa-star-half-stroke {
    display: inline-block;
}

/* Product card content: prevent overflow and truncation */
.shop-page .product-card h3,
.shop-page .product-card .p-5 {
    min-width: 0;
    overflow: hidden;
}

.shop-page .product-card h3 a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .shop-page .product-card h3 a {
        white-space: normal;
    }
}

/* Shop category filter */
.aha-shop-filter__select {
    min-width: 180px;
}

.aha-shop-filter__submit {
    display: none;
}

/* WooCommerce pagination on shop */
.woocommerce-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-pagination .page-numbers li {
    margin: 0;
}

.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    color: #475569;
    background: #fff;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.woocommerce-pagination .page-numbers a:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.woocommerce-pagination .page-numbers span.current {
    border-color: #3b82f6;
    color: #fff;
    background: #3b82f6;
}

.wc-block-components-text-input.wc-block-components-address-form__company {
    margin-bottom: 16px;
}

.wc-block-checkout__login-prompt,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button {
    padding: 10px 20px;
    background: #0063ef !important;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    height: 38px;
}

.wc-block-checkout__login-prompt:hover,
.woocommerce .woocommerce-form-login .woocommerce-form-login__submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover {
    background: #0052d4 !important;
}



/* Ensure WordPress menu items display correctly */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
}

nav a {
    display: block;
    transition: color 0.3s ease;
}

.space-y-3 a,
.space-y-4 a {
    display: block;
}

/* ==========================================================================
   Gutenberg layout blocks (Group, Row, Columns, Grid)
   ========================================================================== */

/* Block gap from theme.json / global styles */
.wp-block-group,
.wp-block-columns,
.wp-block-row,
.is-layout-flex,
.is-layout-grid {
    --wp--style--block-gap: 1.5rem;
}

/* Group block */
.wp-block-group {
    box-sizing: border-box;
}

.wp-block-group.has-background {
    padding: 1.5rem;
}

/* Flex layout (Group with "Row" / horizontal layout) */
.wp-block-group.is-layout-flex,
.is-layout-flex {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--wp--style--block-gap, 1.5rem);
}

/* Inner container must be flex too so direct children (block wrappers) are flex items */
.wp-block-group.is-layout-flex > .wp-block-group__inner-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--style--block-gap, 1.5rem);
    width: 100%;
    min-width: 0;
    align-items: stretch;
}
.wp-block-group.is-layout-grid > .wp-block-group__inner-container {
    display: grid;
    gap: var(--wp--style--block-gap, 1.5rem);
    width: 100%;
    min-width: 0;
}

.is-layout-flex.is-vertical {
    flex-direction: column;
    align-items: stretch;
}

.is-layout-flex.is-horizontal {
    flex-direction: row;
}

/* Grid layout (Group with "Grid" layout) */
.wp-block-group.is-layout-grid,
.is-layout-grid {
    display: grid;
    gap: var(--wp--style--block-gap, 1.5rem);
}

/* Columns block */
.wp-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wp--style--block-gap, 1.5rem);
    box-sizing: border-box;
}

.wp-block-columns.are-vertically-aligned-top {
    align-items: flex-start;
}

.wp-block-columns.are-vertically-aligned-center {
    align-items: center;
}

.wp-block-columns.are-vertically-aligned-bottom {
    align-items: flex-end;
}

.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100% !important;
}

@media (min-width: 782px) {
    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 0 !important;
        flex-grow: 1;
    }

    .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column[style*="flex-basis"] {
        flex-grow: 0;
    }
}

.wp-block-column {
    flex-grow: 1;
    min-width: 0;
    box-sizing: border-box;
}

/* Content width container (from theme.json contentSize) */
.wp-block-group.alignfull,
.wp-block-group.alignwide,
.wp-block-group .alignwide,
.wp-block-group .alignfull {
    max-width: none;
}

/* Ensure inner content respects content width when "Inner blocks use content width" is on */
.wp-block-group .wp-block-group__inner-container {
    max-width: var(--wp--style--global--content-size, 720px);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.wp-block-group.alignwide .wp-block-group__inner-container {
    max-width: var(--wp--style--global--wide-size, 1280px);
}

.wp-block-group.alignfull .wp-block-group__inner-container {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
}

#aha-home-feature-cards {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    padding: 30px 0px;
    box-sizing: border-box;
    justify-content: space-around;
    align-self: center;
}

@media (max-width: 767px) {
    #aha-home-feature-cards {
        flex-direction: column;
        flex-wrap: wrap;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #aha-home-feature-cards .aha-feature-card,
    #aha-home-feature-cards .wp-block-aha-theme-feature-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        flex-direction: column-reverse;
    }
}

/* ==========================================================================
   Footer – logo, fontes, espaçamentos
   ========================================================================== */
.aha-footer {
    font-family: var(--font-family);
    background-color: #fff;
    border-top: 1px solid #e2e8f0;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

.aha-footer__inner {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.aha-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .aha-footer__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
    }
}

/* Logo – tamanho reduzido */
.aha-footer__logo {
    margin-bottom: 0.75rem;
}

.aha-footer__logo img,
.aha-footer__logo .custom-logo {
    max-height: 36px !important;
    width: auto;
    height: auto;
    display: block;
}

.aha-footer__logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    text-decoration: none;
    color: #1e293b;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.aha-footer__logo-accent {
    color: #2563eb;
}

/* Descrição */
.aha-footer__description {
    font-size: 0.875rem;
    line-height: 1.55;
    color: #64748b;
    margin: 0 0 0.5rem;
    max-width: 260px;
}

/* Títulos das colunas (SHOP, SUPPORT, NEWSLETTER) */
.aha-footer__heading {
    font-family: var(--font-family);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1e293b;
    margin: 0 0 0.75rem;
}

/* Navegação (listas) */
.aha-footer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.aha-footer__nav li {
    margin: 0;
}

.aha-footer__nav li + li {
    margin-top: 0.375rem;
}

.aha-footer__nav a {
    font-size: 0.875rem;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aha-footer__nav a:hover {
    color: #2563eb;
}

/* Newsletter */
.aha-footer__newsletter-text {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    line-height: 1.45;
}

.aha-footer__newsletter-form {
    display: flex;
    max-width: 280px;
}

.aha-footer__newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
}

/* Footer bottom (copyright + legal) */
.aha-footer__bottom {
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: center;
}

@media (min-width: 768px) {
    .aha-footer__bottom {
        flex-direction: row;
        text-align: left;
    }
}

.aha-footer__copyright {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

.aha-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.aha-footer__legal ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.aha-footer__legal li {
    margin: 0;
}

@media (min-width: 768px) {
    .aha-footer__legal {
        justify-content: flex-end;
    }
}

.aha-footer__legal a,
.aha-footer__legal a span {
    font-size: 0.75rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.aha-footer__legal a:hover,
.aha-footer__legal a:hover span {
    color: #2563eb;
}

/* Contact Page */
input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

textarea.wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

form.wpcf7-form.init {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    padding: 10px 40px;
    background: #0063ef;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    height: 38px;
}

input.wpcf7-form-control.wpcf7-submit.has-spinner:hover {
    background: #005a87;
}