:root {
    --accent: #8B5E3C;
    --hover: #6E7F5D;
    --text-dark: #1F1F1F;
    --bg-light: #F5F5F5;
    --bg-neutral: #D8C3A5;
    --silver: #C0C0C0;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

header {
    background: var(--bg-neutral);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 2px solid var(--hover);
}

header img {
    height: 100px;
}

nav.topnav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

nav.topnav a {
    text-decoration: none;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

nav.topnav a:hover {
    color: var(--accent);
}

.hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(to bottom, var(--bg-neutral), var(--bg-light));
    border-bottom: 1px solid var(--silver);
}

.hero h1 {
    font-size: 2.2rem; /* Adjusted for consistency */
    margin: 0;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.1rem;
    margin: 0.5rem auto 0;
    max-width: 700px; /* Added max-width for consistency */
}

/* --- Index.html Specific Styles --- */

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
}

.categories button,
.category-link-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--hover);
    border-radius: 20px;
    background: var(--bg-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none; /* For the new category-link-btn */
    color: var(--text-dark); /* For the new category-link-btn */
    display: inline-block; /* For the new category-link-btn */
    text-align: center; /* For the new category-link-btn */
}

.categories button:hover,
.category-link-btn:hover {
    background: var(--accent);
    color: var(--bg-light);
    border-color: var(--accent);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.card {
    background: var(--bg-neutral);
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    border: 1px solid var(--hover);
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
    flex-grow: 1;
    text-align: center;
}

.badge {
    background: var(--accent);
    color: var(--bg-light);
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.price {
    font-size: 1rem;
    margin: 0.5rem 0;
}

.buy {
    text-align: center;
    background: var(--accent);
    padding: 0.75rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--bg-light);
    transition: background 0.3s;
    display: block;
    border-top: 1px solid var(--hover);
}

.buy:hover {
    background: var(--hover);
}

/* --- Wholesale.html & Contact.html Specific Styles --- */

.wholesale-container,
.container {
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}

/* Contact.html Specific Layout */
.container {
    max-width: 1200px;
    line-height: 1.7;
    font-size: 1.05rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.form-section,
.contact-section,
.contact-form-section {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
}

/* Contact.html Section Sizing */
.contact-section,
.contact-form-section {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
}

.form-section h2,
.contact-section h2,
.contact-form-section h2 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: center;
}

.contact-section h2::after,
.contact-form-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--hover);
    border-radius: 2px;
}

.form-section p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Form Styles (Wholesale & Contact) */
.wholesale-form,
.contact-form-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.wholesale-form label,
.contact-form-section label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.wholesale-form input[type="text"],
.wholesale-form input[type="email"],
.wholesale-form textarea,
.contact-form-section input[type="text"],
.contact-form-section input[type="email"],
.contact-form-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.wholesale-form input:focus,
.wholesale-form textarea:focus,
.contact-form-section input:focus,
.contact-form-section textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.wholesale-form textarea,
.contact-form-section textarea {
    min-height: 150px;
    resize: vertical;
}

.wholesale-form button,
.contact-form-section button {
    background-color: var(--accent);
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.contact-form-section button {
    width: auto;
    min-width: 150px;
    align-self: center;
}

.wholesale-form button:hover,
.contact-form-section button:hover {
    background-color: var(--hover);
}

/* Contact.html QR and Info Styles */
.qr-code-box {
    margin: 2rem auto;
    max-width: 300px;
    background-color: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--silver);
}

.qr-code-box img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.qr-code-box p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.qr-code-box .cta-text {
    font-size: 1.1rem;
    color: var(--hover);
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--accent);
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.social-links img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

/* Footer Styles */
footer {
    background: var(--bg-neutral);
    color: var(--text-dark);
    text-align: center;
    padding: 1.5rem; /* Adjusted for consistency */
    margin-top: 3rem; /* Adjusted for consistency */
    border-top: 1px solid var(--silver);
}

/* Responsive adjustments */
@media (max-width: 992px) {

    .contact-section,
    .contact-form-section {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-section,
    .contact-form-section,
    .form-section {
        padding: 1.5rem;
    }

    .contact-section h2,
    .contact-form-section h2,
    .form-section h2 {
        font-size: 1.5rem;
    }
}