/* Reset and base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    color: #3b2e1e;
    background-color: #f5f0e8;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #4a3728;
    color: #f5f0e8;
    padding: 1rem 2rem;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.2rem;
    font-weight: bold;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #f5f0e8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Hamburger button - hidden on desktop */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #f5f0e8;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul a {
    color: #c4b49a;
    transition: color 0.2s;
}

nav ul a:hover {
    color: #f5f0e8;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    min-height: 60vh;
}

/* Shop layout */
.shop-container {
    display: flex;
    gap: 2rem;
}

.sidebar {
    min-width: 200px;
}

.sidebar h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #6b5744;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    color: #7a6a56;
    transition: color 0.2s;
    padding: 0.25rem 0;
    display: block;
}

.category-list a:hover,
.category-list a.active {
    color: #4a3728;
    font-weight: bold;
}

.product-grid {
    flex: 1;
}

.product-grid h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #4a3728;
}

/* Product grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: #faf6f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(74, 55, 40, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(74, 55, 40, 0.16);
}

.product-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #e8dfd1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.category-tag {
    display: inline-block;
    background: #ddd0be;
    color: #7a6a56;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b5e3c;
}

.no-products {
    color: #9a8a78;
    font-style: italic;
    text-align: center;
    padding: 3rem;
}

/* Product detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.product-detail-image {
    border-radius: 8px;
    overflow: hidden;
    background: #e8dfd1;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-detail-info h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-detail-info .price {
    font-size: 1.5rem;
    margin: 1rem 0;
}

.description {
    color: #6b5744;
    margin-top: 1rem;
}

/* Additional images gallery */
.additional-images {
    margin-top: 2rem;
}

.additional-images h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #4a3728;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-image {
    border-radius: 8px;
    overflow: hidden;
    background: #e8dfd1;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #7a6a56;
    transition: color 0.2s;
}

.back-link:hover {
    color: #4a3728;
}

/* About section */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h1 {
    font-size: 2rem;
    color: #4a3728;
    margin-bottom: 1.5rem;
}

.about-section p {
    color: #6b5744;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: #9a8a78;
    font-size: 0.9rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd0be;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #4a3728;
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    nav {
        position: relative;
    }

    .shop-container {
        flex-direction: column;
    }

    .sidebar {
        min-width: unset;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .category-list li {
        margin-bottom: 0;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
