/* ============================================================
   Orly Master — Tienda
   Paleta clara y sobria derivada de la identidad de orlymaster.com.ar
   (Anton / Source Serif 4 / JetBrains Mono, acento verde, radios 18px),
   adaptada para que resulte más amigable a la hora de comprar.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #faf9f5;
    --surface: #ffffff;
    --surface-alt: #f1efe7;
    --line: #e4e1d6;
    --text: #17181a;
    --muted: #6b6f76;

    /* Acento: mismo verde de marca, pero con una variante sobria para
       texto/botones (contraste sobre blanco) y la variante brillante
       original reservada para detalles pequeños (puntos, badges, hover). */
    --accent: #1f8f45;
    --accent-dark: #146633;
    --accent-bright: #39ff14;
    --accent-soft: #e5f6ea;

    --danger: #b3261e;
    --danger-soft: #fbeceb;

    --display: 'Anton', sans-serif;
    --body: 'Source Serif 4', Georgia, serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;

    --maxw: 1100px;
    --r: 18px;
    --r-sm: 10px;
    --shadow: 0 1px 2px rgba(23, 24, 26, 0.04), 0 8px 24px rgba(23, 24, 26, 0.06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

a { color: var(--accent-dark); }

.eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 0.3em 0.8em;
    border-radius: 999px;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 400;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0 0 0.5em;
    line-height: 1.1;
}

h1 { font-size: 44px; letter-spacing: 0.8px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; letter-spacing: 0.3px; }

p { margin: 0 0 1em; }

/* ---------- Header ---------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .logo {
    font-family: var(--display);
    font-size: 22px;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--text);
    text-transform: uppercase;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.site-header .logo .dot { color: var(--accent-bright); text-shadow: 0 0 8px rgba(57,255,20,0.5); }

.site-header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.04em;
}

.site-header nav a {
    text-decoration: none;
    color: var(--text);
    padding: 0.4em 0;
    border-bottom: 2px solid transparent;
}

.site-header nav a:hover { border-bottom-color: var(--accent); }

.site-header nav a.cart-link {
    background: var(--text);
    color: #fff;
    padding: 0.5em 1.1em;
    border-radius: 999px;
    border-bottom: none;
}

.site-header nav a.cart-link:hover { background: var(--accent-dark); }

.nav-toggle { display: none; }

/* ---------- Layout ---------- */

.site-main { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

section + section { margin-top: 3.5rem; }

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
    max-width: 720px;
    margin: 0 auto;
}

.hero .eyebrow { margin-bottom: 1rem; }

.hero h1 { font-size: 52px; }

.hero p.lead {
    font-size: 19px;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 1.75rem;
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.button {
    display: inline-block;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    padding: 0.8em 1.6em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

.button--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.button--ghost:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--surface); }

button.button { font-family: var(--mono); }

/* ---------- Pillars (servicios) ---------- */

.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.pillar-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.pillar-card .eyebrow { margin-bottom: 0.8rem; }

.pillar-card p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

/* ---------- Stats ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    background: var(--text);
    color: #fff;
    border-radius: var(--r);
    padding: 2.5rem 2rem;
}

.stat b {
    display: block;
    font-family: var(--display);
    font-size: 36px;
    color: var(--accent-bright);
    text-shadow: 0 0 14px rgba(57,255,20,0.35);
    margin-bottom: 0.2rem;
}

.stat span {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4d4d0;
}

/* ---------- Product grid / cards ---------- */

.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-heading h2 { margin-bottom: 0; }
.section-heading a { font-family: var(--mono); font-size: 13px; text-decoration: none; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.product-card:hover { transform: translateY(-3px); border-color: var(--accent); }

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

.product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: var(--surface-alt);
}

.product-card .card-body { padding: 1.1rem 1.2rem 1.3rem; }

.product-card h3 { font-size: 16px; margin-bottom: 0.4rem; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; }

.price {
    font-family: var(--mono);
    font-weight: 600;
    color: var(--accent-dark);
    font-size: 15px;
}

.price--regular { color: var(--muted); font-weight: 400; font-size: 13px; }

/* ---------- Catálogo / filtros ---------- */

.catalog-filters {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1rem;
}

.catalog-filters input,
.catalog-filters select {
    font-family: var(--body);
    font-size: 15px;
    padding: 0.6em 0.9em;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--text);
}

.catalog-filters input { flex: 1; min-width: 180px; }

.catalog-filters button {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    padding: 0.6em 1.4em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    cursor: pointer;
}

.catalog-filters button:hover { background: var(--accent-dark); }

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: var(--r);
}

/* ---------- Detalle de producto ---------- */

.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.product-gallery img {
    border-radius: var(--r);
    border: 1px solid var(--line);
    margin-bottom: 0.75rem;
    background: var(--surface-alt);
}

.product-info h1 { font-size: 32px; text-transform: none; letter-spacing: 0; }

.product-info .price { font-size: 26px; display: block; margin-bottom: 0.5rem; }

.sku, .stock {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.stock { display: inline-block; padding: 0.3em 0.8em; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 1rem; }

.description { margin: 1.25rem 0; color: var(--text); }
.description p:last-child { margin-bottom: 0; }

.variations-hint {
    font-size: 13px;
    background: var(--surface-alt);
    border-radius: var(--r-sm);
    padding: 0.9em 1em;
    color: var(--muted);
}

.product-info form {
    display: flex;
    align-items: end;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.product-info form label {
    font-family: var(--mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.product-info form input[type="number"] {
    width: 70px;
    padding: 0.6em;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    font-family: var(--body);
    font-size: 15px;
}

.product-info form button {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    cursor: pointer;
}

.product-info form button:hover { background: var(--accent-dark); }
.product-info form button:disabled { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* ---------- Carrito ---------- */

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart-table th, .cart-table td { text-align: left; padding: 0.9em 1.1em; border-bottom: 1px solid var(--line); font-size: 15px; }
.cart-table th { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-alt); }
.cart-table tr:last-child td { border-bottom: none; }

.cart-totals {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 360px;
    margin-left: auto;
}

.cart-totals p { margin-bottom: 0.4em; color: var(--muted); font-size: 14px; }
.cart-totals p strong { color: var(--text); font-size: 18px; }

.cart-note {
    font-size: 13px;
    color: var(--muted);
    background: var(--surface-alt);
    border-radius: var(--r-sm);
    padding: 0.9em 1em;
}

.cart-note code { font-family: var(--mono); font-size: 12px; }

.cart .button, .checkout-note .button { margin-top: 0.5rem; }

/* ---------- Estados vacíos / error ---------- */

.not-found, .cart-error {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 480px;
    margin: 0 auto;
}

.not-found p, .cart-error p { color: var(--muted); }

.cart-error { color: var(--danger); }
.cart-error p { color: var(--text); }

/* ---------- Checkout (placeholder) ---------- */

.checkout-note {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 2rem;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.checkout-note .eyebrow { margin-bottom: 1rem; }

/* ---------- Nosotros ---------- */

.about-lead { font-size: 19px; color: var(--muted); max-width: 640px; }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .logo { font-family: var(--display); font-size: 16px; letter-spacing: 0.5px; text-transform: uppercase; }

.footer-links { display: flex; gap: 1.25rem; font-family: var(--mono); font-size: 13px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--accent-dark); }

.site-footer p.copy { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
    .site-header nav { gap: 1rem; }
    .site-header nav a:not(.cart-link) { display: none; }
    .hero h1 { font-size: 38px; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .stats { padding: 1.75rem 1.25rem; }
}
