/*
Theme Name: ML Clone Theme
Theme URI: https://example.com/ml-clone
Author: Antigravity
Author URI: https://example.com
Description: A clean, fast theme inspired by the layout of Mercado Livre.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ml-clone
*/

:root {
    --ml-yellow: #fff159;
    --ml-bg: #ebebeb;
    --ml-text: #333333;
    --ml-blue: #3483fa;
    --ml-gray: #999999;
    --ml-white: #ffffff;
    --container-width: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--ml-bg);
    color: var(--ml-text);
    font-family: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: var(--ml-yellow);
    padding: 10px 0;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2d3277; /* Dark blue often seen on ML */
    margin-right: 20px;
}

.search-form {
    flex-grow: 1;
    display: flex;
}

.search-form input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #fff;
    border-radius: 2px;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,.1);
    font-size: 16px;
    color: #333;
}

.search-form input::placeholder {
    color: #bfbfbf;
}

.search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    margin-left: -40px; /* Pull button inside input */
    color: #666;
}

.header-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.header-nav a {
    color: #333;
    font-size: 14px;
}

.header-nav a:hover {
    color: #666;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.product-card {
    background: var(--ml-white);
    border-radius: 4px;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
    transition: box-shadow .2s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 10px 20px 0 rgba(0,0,0,.15);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-price {
    font-size: 24px;
    font-weight: 400;
    color: #333;
    margin-bottom: 5px;
}

.product-title {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    font-weight: 400;
}

.product-installments {
    font-size: 14px;
    color: #00a650; /* Green for installments/free shipping */
    margin-top: 5px;
}

/* Footer */
.site-footer {
    background: #fff;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #e6e6e6;
    text-align: center;
    color: #999;
}
