/*
Theme Name: Jamones Theme
Description: A custom WooCommerce theme for selling ham products, easily importable to WordPress. Updated with traditional Iberian ham store aesthetic.
Version: 1.2
Author: Generated by Copilot
Text Domain: jamones-theme
*/

/* Global */
body {
    margin: 0;
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: #222;
    background: #f7efe2;
}

* {
    box-sizing: border-box;
}

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

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

a {
    color: #8B4513;
    text-decoration: none;
}

a:hover {
    color: #a15b31;
}

button,
input[type="submit"],
.woocommerce .button {
    font-family: inherit;
}

/* Header */
.site-header {
    background-color: #121212;
    color: #f7f1e8;
}

.header-top {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.site-title a {
    color: #f7f1e8;
}

.site-tagline {
    margin: 0.25rem 0 0;
    color: #d9c7b0;
    font-size: 0.95rem;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    display: inline-block;
    margin-left: 1.2rem;
}

.main-navigation a {
    color: #f7f1e8;
    font-weight: 600;
}

.main-navigation a:hover {
    color: #ffd37d;
}

.hero {
    background: linear-gradient(135deg, rgba(18,18,18,0.95) 0%, rgba(80,34,10,0.85) 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}

.hero .hero-inner {
    max-width: 760px;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: #f6d7a3;
}

.hero-title {
    font-size: clamp(2.6rem, 4vw, 4.6rem);
    margin: 0;
    line-height: 1.05;
}

.hero-text {
    margin: 1rem 0 1.8rem;
    color: #eee3d3;
    max-width: 620px;
}

.hero-button {
    display: inline-block;
    background: #d19b53;
    color: #121212;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    transition: background 0.25s ease;
}

.hero-button:hover {
    background: #b37a3c;
}

/* Main content */
.main-content {
    padding: 3rem 0;
}

.post {
    background: #fff;
    padding: 2.2rem;
    border-radius: 20px;
    border: 1px solid #e1d5c3;
    box-shadow: 0 18px 45px rgba(42,15,5,0.08);
}

.post-title {
    margin-top: 0;
    font-size: 2rem;
    color: #2b1b10;
}

.post-content {
    margin-top: 1rem;
    color: #4a3b31;
}

/* WooCommerce cards */
.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.woocommerce ul.products li.product {
    width: auto;
    margin: 0;
    padding: 1.4rem;
    background: #fff;
    border-radius: 24px;
    border: 1px solid #e8dccd;
    box-shadow: 0 12px 35px rgba(46,15,4,0.08);
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product img {
    margin-bottom: 1rem;
    border-radius: 16px;
}

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.18rem;
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: #2d1f17;
}

.woocommerce ul.products li.product .price {
    color: #8b0000;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.woocommerce .button,
button,
input[type="submit"] {
    background-color: #8b4513;
    color: #fff;
    padding: 12px 22px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.woocommerce .button:hover,
button:hover,
input[type="submit"]:hover {
    background-color: #a66c3b;
    transform: translateY(-1px);
}

.woocommerce .single-product .product_title {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.woocommerce .single-product .price {
    font-size: 1.6rem;
    color: #8b0000;
}

/* Footer */
.site-footer {
    background: #1f1310;
    color: #f0e7dc;
    padding: 3rem 0;
}

.site-footer .container {
    display: grid;
    gap: 1.5rem;
}

.site-footer p {
    margin: 0;
    color: #d9c5b1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.footer-widgets h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #fff;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets li {
    margin-bottom: 0.75rem;
}

.footer-widgets a {
    color: #d9c5b1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    color: #b0a38c;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .woocommerce .products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .header-top .container,
    .footer-widgets {
        display: block;
    }
    .main-navigation li {
        display: block;
        margin: 0.75rem 0 0;
    }
}

@media (max-width: 640px) {
    .woocommerce .products {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 3rem 0 2rem;
    }
    .hero-title {
        font-size: 2.4rem;
    }
}

.home-intro {
    padding: 5rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(18,18,18,0.85), rgba(139,69,19,0.92));
    color: #fff;
}

.home-intro .hero-label {
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    color: #f2d5a3;
}

.home-intro .hero-title {
    font-size: clamp(2.6rem, 4vw, 4.6rem);
    margin: 0.7rem auto;
    max-width: 700px;
    letter-spacing: 0.04em;
}

.home-intro .hero-text {
    max-width: 680px;
    margin: 1.4rem auto 2rem;
    color: #f2e8d6;
    font-size: 1.05rem;
}

.home-products {
    padding: 4rem 0;
}

.home-products .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.home-products .section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

.home-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0 0 4rem;
}

.feature-card {
    background: #fff;
    padding: 1.8rem;
    border-radius: 22px;
    border: 1px solid #e4d7c3;
    box-shadow: 0 14px 30px rgba(41,16,5,0.08);
}

.feature-card h3 {
    margin-top: 0;
    font-size: 1.4rem;
    color: #2c1c14;
}

.feature-card p {
    margin: 0.8rem 0 0;
    color: #6a5448;
}

.policy-page {
    padding: 4rem 0;
}

.policy-page article {
    background: #fff;
    padding: 2.5rem;
    border-radius: 22px;
    border: 1px solid #e4d7c3;
    box-shadow: 0 16px 40px rgba(36,14,5,0.08);
}

.policy-page h1,
.policy-page h2 {
    color: #2a1d15;
}

.policy-page h1 {
    margin-top: 0;
    font-size: 2.4rem;
}

.policy-page h2 {
    margin-top: 1.8rem;
}

.policy-page p,
.policy-page ul {
    color: #5d4a3f;
    line-height: 1.8;
}

.policy-page ul {
    padding-left: 1.3rem;
}

.policy-page ul li {
    margin-bottom: 0.8rem;
}

@media (max-width: 900px) {
    .home-values {
        grid-template-columns: 1fr;
    }
}

