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

/* Global Styles */
body {
    font-family: 'Lora', serif;
    color: #111;
    background: #fff;
    line-height: 1.7;
    font-size: 20px;
    letter-spacing: 0.3px;
}

/* Header */
header {
    background: #fff;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 100px;
    width: auto;
}

.logotext {
    font-family: 'Rye', serif;
    font-size: 3rem;
    color: #111;
    letter-spacing: 1px;
}

nav {
    margin-top: 10px;
}

nav a {
    margin-left: 40px;
    text-decoration: none;
    color: #111;
    font-weight: 500;
    font-size: 1.1rem;
}

nav a:hover {
    color: #e8b5b9;
}

/* Hero Section */
.hero {
    background: #f9f9f9;
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 50px;
}

.button {
    display: inline-block;
    padding: 20px 60px;
    background: #e8b5b9;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background 0.3s ease;
    font-size: 1.2rem;
}

.button:hover {
    background: #d39fa7;
}

/* Universal Section Styles */
section {
    padding: 60px 20px;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    position: relative;
}

/* Apply divider ONLY to the proper sections */
.about::after, 
.shipping::after, 
.categories::after {
    content: "";
    display: block;
    margin: 40px auto 0;
    width: 500px;
    height: 110px;
    background: url('https://www.nellieswicksandbricks.com/images/divider.png') no-repeat center;
    background-size: contain;
    opacity: 0.7;
}
.about {
    padding-bottom: 80px;
}

/* Category Grid */
.categories .category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

@media (max-width: 900px) {
    .categories .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories .category-grid {
        grid-template-columns: 1fr;
    }
}

.image-container {
    position: relative;
    width: 100%;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
}

.image-container img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.categories h2 {
    text-align: center;
}

.category-item h3 {
    font-size: 1.7rem;
    color: #111;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-top: 1px solid #eee;
    font-size: 1rem;
    color: #999;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    body { font-size: 18px; }
    .logo img { height: 80px; }
    .logotext { font-size: 2.2rem; }
    nav a { margin-left: 20px; font-size: 1rem; }
    .hero h1 { font-size: 1.4rem; }
    .button { padding: 15px 40px; font-size: 1rem; }
    section { padding: 40px 20px; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    header {
        padding: 20px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .logo img { height: 60px; }
    .logotext { font-size: 1.8rem; }
    nav a { margin: 10px 10px; display: inline-block; font-size: 0.95rem; }
    .hero h1 { font-size: 1.2rem; }
    .button { padding: 12px 30px; font-size: 0.95rem; }
    section { padding: 30px 15px; }
    .about::after, .shipping::after, .categories::after {
        width: 80%;
        height: auto;
    }
}
