/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary-color: #551E19;    /* Deep Brown */
    --secondary-color: #C56E33;  /* Warm Orange-Brown */
    --bg-color: #fafafa;         /* Off-white */
    --text-color: #2c2c2c;       /* Dark Gray */
    --text-light: #666666;       /* Light Gray */
    --white: #ffffff;
    --border-color: #e8e8e8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.5px;
}

p {
    color: var(--text-light);
}

/* --- NAVIGATION --- */
nav {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-color);
}

nav .links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav .links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    position: relative;
}

nav .links a:hover {
    color: var(--secondary-color);
}

nav .links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.2s ease;
}

nav .links a:hover::after {
    width: 100%;
}

/* --- LAYOUT UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b2e24 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 2rem;
    margin-bottom: 3rem;
    border-radius: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* --- HEADINGS --- */
.container > h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.container > h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* --- PRODUCT GRID --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(85, 30, 25, 0.12);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background-color: var(--bg-color);
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.4;
}

.card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-body .price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.btn:hover {
    background-color: #6b2e24;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(85, 30, 25, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #b35a28;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: auto;
}

/* --- RESPONSIVE UTILITIES --- */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    nav .links {
        width: 100%;
        justify-content: space-around;
        gap: 1rem;
    }

    .container {
        padding: 1.5rem;
    }

    .hero {
        padding: 60px 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container > h2 {
        font-size: 1.5rem;
    }

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

@media (max-width: 480px) {
    nav .logo {
        font-size: 1.2rem;
    }

    nav .links a {
        font-size: 0.85rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* --- ACCESSIBILITY & SMOOTHNESS --- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --- FORM ELEMENTS & INPUTS --- */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* --- SCROLLBAR STYLING --- */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* --- FOCUS STATES FOR ACCESSIBILITY --- */
*:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* --- PLACEHOLDER STYLING --- */
::placeholder {
    color: #999;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #999;
}

/* --- LINK STYLING --- */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}