/*
Theme Name: Cherub's Heirloom
Author: Daniel Lin
Version: 1.0
*/

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

body {
    font-family: Georgia, serif;
    color: #333;
    background-image: url('assets/background.png');
    background-repeat: repeat;
    background-size: auto;
}

/* ── Header ── */
header {
    background: rgba(253, 246, 240, 0.96);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e8d8cc;
}

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

header nav > a {
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    color: #5a3040;
    letter-spacing: 0.02em;
}

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

header nav ul a {
    text-decoration: none;
    color: #5a4050;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
    text-transform: uppercase;
}

header nav ul a:hover {
    color: #8b4a6a;
}

/* ── Home hero ── */
.home-hero {
    text-align: center;
    padding: 7rem 2rem 5rem;
}

.home-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
    color: #3d2030;
}

.home-hero p {
    font-size: 1.2rem;
    color: #896070;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2.5rem;
    background: #8b4a6a;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.btn:hover {
    background: #6d3854;
}

/* ── Categories panel ── */
.categories-panel {
    background: #ffffff;
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e8d8cc;
    border-bottom: 1px solid #e8d8cc;
}

.categories-panel h2 {
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    margin-bottom: 2.5rem;
    color: #3d2030;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #3d2030;
    background: #fff;
    padding: 1.5rem 1rem;
    border: 1px solid #ead8cc;
    transition: box-shadow 0.2s, transform 0.2s;
}

.cat-card:hover {
    box-shadow: 0 6px 20px rgba(139, 74, 106, 0.15);
    transform: translateY(-2px);
}

.cat-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 0.9rem;
}

.cat-card span {
    font-size: 0.85rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #5a3040;
}

/* ── Shop / WooCommerce pages ── */
.shop-main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    min-height: 60vh;
}
