/*
Theme Name: Xavenshope Pro
Theme URI: https://xavenshope.com
Author: Xavenshope Team
Description: Tema e-commerce profissional, responsivo e otimizado para WooCommerce.
Version: 1.0.1
Text Domain: xavenshope-pro
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
*/

:root {
    --primary-color: #0f172a;
    --secondary-color: #2563eb;
    --accent-color: #f59e0b;
    --bg-light: #f8fafc;
    --text-color: #1e293b;
    --border-color: #e2e8f0;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
.container {
    width: min(1280px, calc(100% - 30px));
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.logo { flex: 0 0 auto; }
.logo a { font-size: 24px; font-weight: 700; text-decoration: none; }
.search-bar { flex: 1 1 600px; min-width: 0; }
.search-bar form { display: flex; }
.search-bar input {
    width: 100%;
    min-width: 0;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}
.search-bar input:focus { border-color: var(--secondary-color); }
.header-cart { flex: 0 0 auto; }

.site-main { padding: 30px 0; }
.site-footer {
    background: var(--primary-color);
    color: #fff;
    padding: 40px 0;
    margin-top: 50px;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 15px !important;
    margin: 20px 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,.02);
    transition: transform .2s, box-shadow .2s;
}
.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,.08);
}
.woocommerce ul.products li.product img {
    border-radius: 8px;
}
.single-product-container {
    display: grid;
    grid-template-columns: 1fr 1fr 300px;
    gap: 25px;
    margin: 30px 0;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}
.buy-box-custom {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    background: #fafafa;
}
.single_add_to_cart_button,
.button.product_type_simple {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    text-align: center;
}
@media (max-width: 992px) {
    .single-product-container { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .container { width: min(100% - 20px, 1280px); }
    .site-header { padding: 10px 0; }
    .header-wrap { flex-wrap: wrap; }
    .logo { flex: 1 1 auto; }
    .search-bar { flex: 1 1 100%; order: 3; }
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products li.product { padding: 8px; }
}
@media (max-width: 380px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
    }
}
