/*
Theme Name: Unipetcenter
Theme URI: https://unipetcenter.shop
Author: Unipetcenter
Author URI: https://unipetcenter.shop
Description: Tema personalizado para a loja de cupons digitais e gift cards Unipetcenter. Otimizado para Google Merchant Center.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: unipetcenter
Tags: e-commerce, woocommerce, one-column, custom-menu, featured-images
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6C3CE1;
    --primary-dark: #5228B5;
    --primary-light: #8B5CF6;
    --bg-dark: #0f0a1e;
    --bg-card: #1a1230;
    --bg-light: #f8f7fc;
    --text-white: #ffffff;
    --text-light: #c4b5e0;
    --text-dark: #1a1a2e;
    --text-muted: #6b7280;
    --border: #2d2250;
    --success: #10b981;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(108, 60, 225, 0.15);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text-white);
}

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

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    font-weight: 700;
}

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

/* ===== HEADER ===== */
.site-header {
    background: rgba(15, 10, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.header-top a {
    color: var(--text-light);
    font-size: 0.85rem;
}

.header-top a:hover {
    color: var(--text-white);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.site-logo img {
    height: 45px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.main-nav a:hover,
.main-nav a.current {
    color: var(--text-white);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

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

.btn-whatsapp {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-whatsapp svg {
    width: 18px;
    height: 18px;
    fill: #25D366;
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-account:hover {
    background: var(--primary-dark);
    color: var(--text-white);
}

/* Mobile menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

/* ===== HERO ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-white), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(108, 60, 225, 0.3);
}

/* ===== PRODUCTS SECTION ===== */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.product-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-card));
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-body {
    padding: 20px;
}

.product-card-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-white);
}

.product-card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.product-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
}

/* ===== HOW IT WORKS ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--transition);
}

.step-card:hover {
    border-color: var(--primary);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.feature-item h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ===== FOOTER ===== */
.site-footer {
    background: rgba(15, 10, 30, 0.98);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-top: 12px;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-contact p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== PAGE CONTENT (Políticas, etc.) ===== */
.page-content {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 0;
    min-height: 60vh;
}

.page-content .container {
    max-width: 800px;
}

.page-content h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary);
}

.page-content h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.page-content h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 16px;
    color: #374151;
    line-height: 1.7;
}

.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    color: #374151;
}

.page-content strong {
    color: var(--text-dark);
}

.page-content em {
    color: var(--text-muted);
}

/* ===== WOOCOMMERCE OVERRIDES ===== */
.woocommerce ul.products li.product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-white);
    padding: 12px 16px 4px;
    font-size: 1rem;
}

.woocommerce ul.products li.product .price {
    color: var(--primary-light);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 16px;
}

.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--primary) !important;
    color: var(--text-white) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--primary-dark) !important;
}

/* WooCommerce single product */
.woocommerce div.product {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
}

.woocommerce div.product .product_title {
    color: var(--text-white);
}

.woocommerce div.product p.price {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-light);
}

/* WooCommerce checkout */
.woocommerce-checkout .page-content {
    background: var(--bg-dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .header-actions .btn-whatsapp span {
        display: none;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-section {
        padding: 40px 0;
        min-height: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-logo img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}
