@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #d11200; /* Matching the red logo */
    --primary-hover: #a00d00;
    --text-color: #333333;
    --light-text: #666666;
    --bg-color: #fafafa;
    --white: #ffffff;
    --border-color: #e0e0e0;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* Header & Navigation */
header.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo img {
    height: 40px;
    display: block;
}

nav.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav.main-nav a {
    color: var(--text-color);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav.main-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    nav.main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .logo img {
        height: 35px;
    }
}

/* Main Content Container */
main.site-main {
    flex: 1;
}

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

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
}

.hero p {
    font-size: 1.2rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-info h3 {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.product-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Single Product Page */
.product-single {
    display: flex;
    flex-direction: column;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

@media (min-width: 768px) {
    .product-single {
        flex-direction: row;
        gap: 50px;
    }
}

.product-gallery {
    flex: 1;
}

.product-gallery img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.product-details {
    flex: 1;
}

.product-details h1 {
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.product-details .price {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Forms & Buttons */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-color);
}

input[type="text"], 
input[type="email"],
textarea,
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    background-color: #fafafa;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.btn:hover {
    background-color: var(--primary-hover);
    color: var(--white);
}

.btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.error {
    color: var(--primary-color);
    margin-top: 10px;
    font-weight: bold;
}

/* Standard Pages (About, Contact, etc) */
.page-content {
    background: var(--white);
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

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

.page-content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 30px;
    display: inline-block;
}

@media (max-width: 768px) {
    .page-content h1 {
        font-size: 2rem;
    }
}

/* Footer */
footer.site-footer {
    background-color: #111;
    color: #ccc;
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.9rem;
}
