:root {
    /* Light Theme (Pastel/Watercolor vibe) */
    --bg-color: #fdf6f7; /* Very soft pink */
    --text-main: #4a3b3e;
    --header-bg: #f9e4e8;
    --accent-color: #f48fb1;
    --card-bg: #ffffff;
    --shadow: 0 8px 24px rgba(244, 143, 177, 0.15);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-color: #1a1415;
    --text-main: #fce8ed;
    --header-bg: #2d1f24;
    --accent-color: #d8547c;
    --card-bg: #241a1c;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--header-bg);
    box-shadow: var(--shadow);
    transition: background-color 0.3s ease;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

#theme-toggle {
    background: none;
    border: 2px solid var(--accent-color);
    color: var(--text-main);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

#theme-toggle:hover {
    background: var(--accent-color);
    color: #fff;
}

main {
    flex: 1;
    padding: 3rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Collections Grid */
.collections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.collection-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    border-radius: 16px;
    text-decoration: none;
    background-color: var(--card-bg);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    position: relative;
    /* This is where you'll drop your banner images later using background-image */
    background-size: cover;
    background-position: center;
}

/* Placeholder backgrounds until you have the real banners */
#banner-glass {
    background: linear-gradient(135deg, rgba(244,143,177,0.4), rgba(255,255,255,0.2));
}

#banner-gumdrops {
    background: linear-gradient(135deg, rgba(179,229,252,0.4), rgba(244,143,177,0.2));
}

.collection-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.banner-content {
    background: rgba(255, 255, 255, 0.85); /* Frosting effect */
    padding: 1rem 2rem;
    border-radius: 8px;
    text-align: center;
    color: #4a3b3e; /* Always dark for readability on the frosting */
}

[data-theme="dark"] .banner-content {
    background: rgba(0, 0, 0, 0.7);
    color: #fce8ed;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--header-bg);
    margin-top: auto;
}

/* --- Navigation --- */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-color);
}

/* --- Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Placeholder for the actual jewelry photos */
.product-image {
    height: 250px;
    background: linear-gradient(135deg, var(--header-bg), var(--bg-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 0.9rem;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex: 1;
}

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

.product-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: auto; /* Pushes price to the bottom if titles vary in length */
}