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

body {
    background-color: #faf7f4;
    color: #3a3028;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Centered Fixed-Width Container --- */
.container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* --- HEADER --- */
header {
    background-color: #3a2d2d;
    color: #fff;
    text-align: center;
    padding: 48px 40px 40px;
}

.header-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d4a8a0;
    margin-bottom: 10px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f5e8e0;
    margin-bottom: 10px;
}

.tagline {
    font-size: 1rem;
    font-weight: 300;
    color: #c4a99e;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* --- NAVIGATION --- */
nav {
    background-color: #6b3f3f;
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

nav ul li a {
    display: block;
    padding: 14px 20px;
    color: #f5e8e0;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
}

nav ul li a:hover {
    background-color: #3a2d2d;
    color: #e8c4b8;
}

/* --- THREE-COLUMN MID SECTION (Flexbox) --- */
.mid-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
}

/* --- LEFT SIDEBAR --- */
.sidebar-left {
    flex: 0 0 210px;
    width: 210px;
    background-color: #fdf3ee;
    padding: 28px 20px;
    border-right: 1px solid #e8d5cc;
}

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1 1 0;
    padding: 32px 28px;
}

/* --- RIGHT SIDEBAR --- */
.sidebar-right {
    flex: 0 0 210px;
    width: 210px;
    background-color: #fdf3ee;
    padding: 28px 20px;
    border-left: 1px solid #e8d5cc;
}

/* --- Sidebar Blocks --- */
.sidebar-block {
    margin-bottom: 28px;
}

.sidebar-left h3,
.sidebar-right h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #6b3f3f;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e8c4b8;
}

.sidebar-left img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    border-radius: 6px;
    margin-bottom: 12px;
}

.sidebar-left p {
    font-size: 0.85rem;
    color: #5a4a42;
    line-height: 1.6;
}

/* --- Skin Type & Routine Lists --- */
.skin-list,
.routine-list,
.brand-list {
    padding-left: 18px;
    font-size: 0.83rem;
    color: #5a4a42;
}

.skin-list li,
.routine-list li,
.brand-list li {
    margin-bottom: 5px;
}

/* --- MAIN CONTENT STYLES --- */
.main-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #3a2d2d;
    margin-bottom: 6px;
}

.intro-text {
    font-size: 0.9rem;
    color: #7a6560;
    margin-bottom: 30px;
    border-left: 3px solid #d4a8a0;
    padding-left: 14px;
}

.intro-text a {
    color: #6b3f3f;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.intro-text a:hover {
    color: #c47a6a;
}

/* --- Section Labels --- */
.section-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #6b3f3f;
    padding: 6px 14px;
    background-color: #f5e8e0;
    border-left: 4px solid #c47a6a;
    margin: 30px 0 18px;
}

/* --- Product Cards (Flexbox) --- */
.product-card {
    display: flex;
    flex-direction: row;
    gap: 18px;
    margin-bottom: 24px;
    padding: 18px;
    background-color: #fffaf8;
    border: 1px solid #edddd5;
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(107, 63, 63, 0.1);
}

.product-card img {
    flex: 0 0 130px;
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
}

.product-info {
    flex: 1;
}

.brand {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c47a6a;
    margin-bottom: 4px;
}

.product-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #3a2d2d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #6b3f3f;
    margin-bottom: 8px;
}

.product-info p:not(.price) {
    font-size: 0.84rem;
    color: #5a4a42;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* --- Tags --- */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 20px;
    background-color: #f5e8e0;
    color: #8b4f3f;
    border: 1px solid #e8c4b8;
}

/* --- Quick Picks List --- */
.quick-picks {
    list-style: none;
    font-size: 0.82rem;
}

.quick-picks li {
    padding: 8px 0;
    border-bottom: 1px solid #e8d5cc;
    color: #5a4a42;
    line-height: 1.4;
}

.quick-picks li:last-child {
    border-bottom: none;
}

.pick-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #c47a6a;
    margin-bottom: 2px;
}

/* --- Tip Boxes --- */
.tip-box {
    background-color: #fff5f0;
    border-left: 3px solid #d4a8a0;
    padding: 10px 12px;
    border-radius: 0 4px 4px 0;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #5a4a42;
    line-height: 1.5;
}

/* --- Price Guide --- */
.price-guide {
    font-size: 0.82rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid #e8d5cc;
    color: #5a4a42;
}

.price-row:last-child {
    border-bottom: none;
}

.price-tier {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.budget  { background-color: #e8f4ea; color: #3a6b42; }
.mid     { background-color: #fff3dc; color: #8b6b20; }
.splurge { background-color: #fde8e8; color: #8b3030; }

/* --- RESPONSIVE: stack columns at 768px and below --- */
@media (max-width: 768px) {
    .container {
        width: 100%;
    }

    .mid-section {
        flex-direction: column;
    }

    .sidebar-left,
    .sidebar-right {
        width: 100%;
        border-right: none;
        border-left: none;
        border-top: 1px solid #e8d5cc;
    }

    /* other change: product cards stack vertically on mobile */
    .product-card {
        flex-direction: column;
    }

    .product-card img {
        width: 100%;
        height: 200px;
        flex: none;
    }
}

/* --- FOOTER --- */
footer {
    background-color: #3a2d2d;
    color: #c4a99e;
    text-align: center;
    padding: 30px 40px;
    font-size: 0.85rem;
    line-height: 2;
}

footer strong {
    color: #f5e8e0;
}

footer a {
    color: #e8c4b8;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

footer a:hover {
    color: #ffffff;
}
