/*
Theme Name: Solum
Description: Tema customizado para loja virtual Solum - Baseado no design Motto.
Version: 2.0
Author: Solum Team & Cline
Text Domain: solum
*/

/* --- CSS Variables --- */
:root {
    --color-background: #FFFFFF;
    --color-foreground: #000000;
    --color-accent: #F5F5F5;
    --color-border: #E5E5E5;
    --color-text-primary: #000000;
    --color-text-secondary: #666666;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --container-width: 1440px;
    --header-height: 80px;
}

/* --- Reset & Base Styles --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Compensa a barra de admin do WordPress */
html.admin-bar {
    margin-top: 32px !important;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* --- Header --- */
.site-header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-branding .site-logo svg {
    height: 28px;
    width: auto;
    fill: var(--color-foreground);
}

.main-navigation ul {
    display: flex;
    gap: 40px;
}

.main-navigation a {
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--color-text-secondary);
}

.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    font-size: 18px;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
}

@media (max-width: 1024px) {
    .main-navigation {
        display: none; /* Será controlado por JS */
    }
    .mobile-menu-toggle {
        display: block;
    }
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--color-foreground);
    color: var(--color-background);
    text-align: center;
    padding: 100px 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-background);
    color: var(--color-foreground);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    opacity: 0.8;
}

/* --- Product Section --- */
.product-category-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
}

.section-view-all {
    font-weight: 500;
    border: 1px solid var(--color-border);
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.section-view-all:hover {
    background-color: var(--color-accent);
}

/* --- Product Grid (WooCommerce) --- */
.products, .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .products, .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products, .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* --- Product Card --- */
.product, .product-card {
    text-align: left;
}

.product a, .product-card a {
    display: block;
    text-decoration: none;
}

.product .woocommerce-loop-product__link, .product-card a {
    margin-bottom: 15px;
}

.product-image-wrapper {
    background-color: var(--color-accent);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.woocommerce-loop-product__title, .product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.price, .product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.add_to_cart_button, .add-to-cart-btn {
    display: none; /* O design de referência não mostra o botão na grade */
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-accent);
    padding: 60px 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-text-primary);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.footer-social-icons a {
    margin-left: 15px;
}

/* --- WooCommerce Archive/Shop Page --- */
.woocommerce-page .site-main {
    padding: 80px 0;
}

.woocommerce-products-header {
    margin-bottom: 40px;
}

.woocommerce-products-header .woocommerce-products-header__title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
    margin-bottom: 20px;
}
