/*
Theme Name: GivingFeels
Theme URI: https://givingfeels.com
Author: GivingFeels
Author URI: https://givingfeels.com
Description: A warm, editorial WordPress theme for gift guide blogs and affiliate content sites. Features a Pinterest-style masonry grid, fully responsive layouts, and deep WordPress Customizer integration for colors, typography, and homepage sections.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: givingfeels
Tags: blog, e-commerce, affiliate, grid-layout, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready
*/

/* ─── DESIGN TOKENS ──────────────────────────────────────────────────────── */
:root {
    --cream:    #FFF8F2;
    --sand:     #F2E8DC;
    --sand-d:   #E6D4C2;
    --terra:    #C8503A;
    --terra-l:  #FDF0EC;
    --terra-d:  #9E3828;
    --blush:    #E8A090;
    --rose:     #C46070;
    --rose-l:   #FCF0F2;
    --espresso: #1A0E08;
    --brown:    #4A2C1A;
    --muted:    #7A6055;
    --light:    #A89088;
    --bdr:      #E8D8CC;
    --card:     #FFFFFF;
    --r:        12px;
    --r-lg:     20px;
    --shadow:   0 2px 20px rgba(60,25,10,0.08);
    --shadow-h: 0 8px 40px rgba(60,25,10,0.14);
    --serif:    'Playfair Display', Georgia, serif;
    --sans:     'DM Sans', system-ui, sans-serif;
    --max-w:    1100px;
    --pad:      24px;
}

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background: var(--cream);
    font-family: var(--sans);
    font-size: 15px;
    color: var(--espresso);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-wrap: pretty;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--terra); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--bdr); border-radius: 3px; }

/* ─── TYPOGRAPHY ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--espresso);
    line-height: 1.18;
    letter-spacing: -0.02em;
    font-weight: 800;
}
h1 { font-size: clamp(28px, 4.5vw, 48px); }
h2 { font-size: clamp(22px, 3vw, 34px); }
h3 { font-size: clamp(18px, 2vw, 22px); }
h4 { font-size: 18px; }
h5 { font-size: 15px; }
p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }
em { font-style: italic; }
blockquote {
    border-left: 3px solid var(--terra);
    background: var(--terra-l);
    padding: 18px 24px;
    border-radius: 0 var(--r) var(--r) 0;
    margin: 28px 0;
    font-family: var(--serif);
    font-size: 17px;
    color: var(--muted);
    line-height: 1.75;
}
code {
    background: var(--sand);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 13px;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.site-container { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
}
.section { padding: 64px 0; }
.section--sm { padding: 40px 0; }
.section--lg { padding: 88px 0; }

/* ─── GRID ───────────────────────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.masonry { columns: 3; column-gap: 14px; }
.masonry > * { break-inside: avoid; margin-bottom: 14px; }
.content-sidebar { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
    border: none;
    border-radius: 50px;
    padding: 13px 26px;
    cursor: pointer;
    transition: opacity .15s, transform .12s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { opacity: .86; transform: translateY(-1px); }
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 3px 14px rgba(200,80,58,0.28); }
.btn--soft    { background: var(--terra-l); color: var(--terra); }
.btn--ghost   { background: transparent; color: var(--muted); border: 1.5px solid var(--bdr); box-shadow: var(--shadow); }
.btn--dark    { background: var(--espresso); color: #fff; }
.btn--rose    { background: var(--rose-l); color: var(--rose); }
.btn--sand    { background: var(--sand); color: var(--brown); }
.btn--sm      { font-size: 13px; padding: 9px 20px; }
.btn--full    { width: 100%; justify-content: center; }

/* ─── BADGES ─────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 20px;
}
.badge--terra  { background: var(--terra-l); color: var(--terra); }
.badge--sand   { background: var(--sand);    color: var(--brown); }
.badge--rose   { background: var(--rose-l);  color: var(--rose);  }
.badge--green  { background: #EEF5EE;        color: #4A7A4A;      }
.badge--dark   { background: var(--espresso); color: #fff;        }
.badge--purple { background: #F0EEF8;        color: #5A4A8A;      }

/* ─── SECTION LABEL ─────────────────────────────────────────────────────── */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 10px;
    display: block;
}

/* ─── CHIPS / FILTERS ────────────────────────────────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    background: var(--card);
    border: 1.5px solid var(--bdr);
    border-radius: 50px;
    padding: 8px 18px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    display: inline-block;
}
.chip:hover, .chip--active {
    background: var(--espresso);
    color: #fff;
    border-color: var(--espresso);
}

/* ─── BREADCRUMB ─────────────────────────────────────────────────────────── */
.breadcrumb {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-size: 13px;
    font-weight: 500;
    color: var(--light);
}
.breadcrumb a { color: var(--terra); }
.breadcrumb-sep { color: var(--bdr); font-size: 14px; }
.breadcrumb-current { color: var(--muted); }

/* ─── CARDS ──────────────────────────────────────────────────────────────── */
.card {
    background: var(--card);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .15s;
}
.card:hover { box-shadow: var(--shadow-h); transform: translateY(-2px); }
.card a { color: inherit; }
.card-thumb { aspect-ratio: 3/2; overflow: hidden; flex-shrink: 0; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb.pin-ratio { aspect-ratio: 2/3; }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-tag { margin-bottom: 0; }
.card-title {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--espresso);
    line-height: 1.4;
    margin: 0;
}
.card-title a { color: var(--espresso); }
.card-title a:hover { color: var(--terra); }
.card-meta { font-size: 12px; color: var(--light); margin: 0; }
.card-meta a { color: var(--light); }

/* Pin-style card (masonry) */
.pin-card {
    background: var(--card);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: var(--shadow);
    break-inside: avoid;
    margin-bottom: 14px;
    transition: box-shadow .2s;
    display: block;
    color: inherit;
    text-decoration: none;
}
.pin-card:hover { box-shadow: var(--shadow-h); }
.pin-card-thumb { aspect-ratio: 2/3; overflow: hidden; }
.pin-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pin-card:hover .pin-card-thumb img { transform: scale(1.04); }
.pin-card-body { padding: 13px 15px 17px; }
.pin-card-badges { display: flex; gap: 6px; margin-bottom: 7px; flex-wrap: wrap; }
.pin-card-title {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--espresso);
    line-height: 1.45;
    margin: 0;
}

/* Category tile */
.cat-tile {
    border-radius: var(--r);
    padding: 22px 16px 24px;
    cursor: pointer;
    text-align: center;
    transition: transform .15s;
    text-decoration: none;
    display: block;
}
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    margin: 0 auto 12px;
    background: rgba(255,255,255,0.5);
}
.cat-tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile-name {
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--espresso);
    margin: 0 0 2px;
}
.cat-tile-count { font-size: 11px; color: var(--light); font-weight: 500; }

/* Occasion pill */
.occasion-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--card);
    border: 1.5px solid var(--bdr);
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--espresso);
    cursor: pointer;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all .15s;
}
.occasion-pill:hover { border-color: var(--terra); color: var(--terra); }
.occasion-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--sand);
}
.occasion-icon img { width: 100%; height: 100%; object-fit: cover; }

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(255,248,242,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--bdr);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo img { height: 36px; width: auto; }
.site-logo-text {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 800;
    color: var(--espresso);
    letter-spacing: -0.03em;
    white-space: nowrap;
}
.site-logo-text span { color: var(--terra); }

/* ─── PRIMARY NAV — wp_nav_menu() outputs <ul><li><a> ─────────────────────── */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.main-nav ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}
.main-nav ul li {
    position: relative;
    flex-shrink: 0;
}
.main-nav ul li a {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    padding: 7px 13px;
    border-radius: 9px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s, color .12s;
    letter-spacing: -0.01em;
    line-height: 1;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a,
.main-nav ul li.current-menu-ancestor > a,
.main-nav ul li.current-cat > a,
.main-nav ul li.current-page-ancestor > a {
    background: var(--terra-l);
    color: var(--terra);
    opacity: 1;
}
/* Hide sub-menus (keep nav flat) */
.main-nav ul ul { display: none !important; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.header-search-btn {
    background: var(--sand);
    border: none;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
}
.header-search-btn:hover { background: var(--bdr); }
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--espresso);
    border-radius: 2px;
    transition: all .2s;
}

/* Mobile nav drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    z-index: 200;
    padding: 28px var(--pad);
    border-top: 1px solid var(--bdr);
    overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav ul li a {
    display: block;
    font-size: 18px;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--espresso);
    padding: 14px 0;
    border-bottom: 1px solid var(--bdr);
    text-decoration: none;
}
.mobile-nav ul li a:hover { color: var(--terra); opacity: 1; }
.mobile-nav > a {
    display: block;
    font-size: 18px;
    font-family: var(--serif);
    font-weight: 700;
    color: var(--espresso);
    padding: 14px 0;
    border-bottom: 1px solid var(--bdr);
    text-decoration: none;
}
.mobile-nav > a:hover { color: var(--terra); }

/* ─── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, #FFF8F2 0%, #F5E8D8 55%, #EDD8C0 100%);
    padding: 80px var(--pad) 72px;
    overflow: hidden;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200,80,58,0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}
.hero-content { flex: 1; min-width: 280px; }
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--terra-l);
    border-radius: 50px;
    padding: 6px 16px;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 700;
    color: var(--terra);
    letter-spacing: 0.05em;
}
.hero-pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terra);
    flex-shrink: 0;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
    color: var(--espresso);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}
.hero-title em { color: var(--terra); font-style: italic; }
.hero-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin: 0 0 34px;
    max-width: 420px;
}
.hero-search {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    max-width: 520px;
}
.hero-search input {
    flex: 1;
    padding: 15px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--bdr);
    background: rgba(255,255,255,0.85);
    font-size: 15px;
    color: var(--espresso);
    outline: none;
    backdrop-filter: blur(8px);
}
.hero-search input:focus { border-color: var(--terra); }
.hero-popular { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.hero-popular-label { font-size: 12px; color: var(--light); font-weight: 500; }
.hero-popular a {
    background: rgba(255,255,255,0.75);
    border: 1px solid var(--bdr);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
    transition: all .15s;
}
.hero-popular a:hover { background: #fff; color: var(--espresso); }

/* Hero collage */
.hero-collage {
    position: relative;
    width: 340px;
    height: 360px;
    flex-shrink: 0;
}
.hero-collage-card {
    position: absolute;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-h);
}
.hero-collage-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── CATEGORY BANNER ────────────────────────────────────────────────────── */
.cat-banner {
    border-radius: var(--r-lg);
    padding: 44px;
    display: flex;
    gap: 44px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.cat-banner-content { flex: 1; min-width: 240px; }
.cat-banner-title { font-size: clamp(28px,4vw,44px); margin: 14px 0; }
.cat-banner-desc { font-size: 15px; color: var(--muted); line-height: 1.8; margin: 0 0 28px; max-width: 440px; }
.cat-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-banner-image { width: 210px; flex-shrink: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-h); }
.cat-banner-image img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SECTION HEADERS ────────────────────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.section-header-left h2 { margin: 0; }
.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--terra);
    text-decoration: none;
    white-space: nowrap;
}
.section-link:hover { opacity: .8; }

/* ─── GIFT ITEMS (Blog Post) ─────────────────────────────────────────────── */
.gift-item {
    background: var(--card);
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
}
.gift-item-image { width: 200px; flex-shrink: 0; }
.gift-item-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gift-item-body { flex: 1; min-width: 240px; padding: 24px 28px; display: flex; flex-direction: column; justify-content: space-between; }
.gift-item-header { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.gift-item-num {
    background: var(--espresso);
    color: #fff;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
    font-family: var(--sans);
}
.gift-item-price { font-size: 13px; color: var(--light); font-weight: 600; margin-left: auto; }
.gift-item-title { font-family: var(--serif); font-size: 20px; font-weight: 700; margin: 0 0 10px; line-height: 1.3; }
.gift-item-desc { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.gift-pros { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; padding: 0; }
.gift-pro {
    font-size: 12px;
    color: #4A7A4A;
    background: #EEF5EE;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ─── SEE ALSO BLOCK ─────────────────────────────────────────────────────── */
.see-also {
    background: var(--sand);
    border-radius: var(--r);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--sand-d);
    margin-bottom: 30px;
    gap: 14px;
    text-decoration: none;
    transition: border-color .15s;
}
.see-also:hover { border-color: var(--terra); }
.see-also-label { font-size: 10px; color: var(--light); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.see-also-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--espresso); margin: 0 0 3px; }
.see-also-desc { font-size: 13px; color: var(--muted); margin: 0; }
.see-also-arrow { font-size: 22px; color: var(--terra); font-weight: 700; flex-shrink: 0; }

/* ─── TABLE OF CONTENTS ──────────────────────────────────────────────────── */
.toc {
    background: var(--sand);
    border-radius: var(--r);
    padding: 22px 26px;
    margin-bottom: 40px;
    border: 1px solid var(--sand-d);
}
.toc-title { font-size: 13px; font-weight: 700; color: var(--espresso); margin: 0 0 14px; }
.toc-item {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px solid var(--bdr);
    font-size: 14px;
    color: var(--muted);
}
.toc-item:last-child { border-bottom: none; }
.toc-num { font-size: 12px; font-weight: 700; color: var(--terra); min-width: 20px; }
.toc-price { font-size: 12px; color: var(--light); margin-left: auto; white-space: nowrap; }

/* ─── POST CONTENT ────────────────────────────────────────────────────────── */
.post-content { font-size: 15px; color: var(--muted); line-height: 1.85; }
.post-content h2 { font-size: 24px; color: var(--espresso); margin: 40px 0 16px; }
.post-content h3 { font-size: 20px; color: var(--espresso); margin: 32px 0 14px; }
.post-content p { margin-bottom: 1.4em; }
.post-content ul, .post-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.post-content li { margin-bottom: 0.4em; line-height: 1.7; }
.post-content a { color: var(--terra); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { border-radius: var(--r); margin: 20px 0; }
.post-content .wp-block-image { margin: 24px 0; }

/* Post intro highlight */
.post-intro-highlight {
    background: linear-gradient(135deg, var(--terra-l), #FFF0EC);
    border-left: 3px solid var(--terra);
    border-radius: 0 var(--r) var(--r) 0;
    padding: 20px 24px;
    margin-bottom: 30px;
}
.post-intro-highlight p { font-size: 15px; color: var(--muted); line-height: 1.85; margin: 0; }

/* ─── PINTEREST CTA ──────────────────────────────────────────────────────── */
.pinterest-cta {
    background: linear-gradient(135deg, var(--rose-l), #FCE8F0);
    border-radius: var(--r);
    padding: 24px 28px;
    margin-bottom: 40px;
    display: flex;
    gap: 22px;
    align-items: center;
    flex-wrap: wrap;
}
.pinterest-cta-title { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--espresso); margin: 0 0 5px; }
.pinterest-cta-desc { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.65; }

/* ─── SEARCH FORM ────────────────────────────────────────────────────────── */
.search-form { display: flex; gap: 10px; max-width: 600px; }
.search-form input {
    flex: 1;
    padding: 15px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--bdr);
    background: var(--card);
    font-size: 15px;
    color: var(--espresso);
    outline: none;
}
.search-form input:focus { border-color: var(--terra); }

/* ─── PAGINATION ──────────────────────────────────────────────────────────── */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}
.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--bdr);
    background: var(--card);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all .15s;
}
.pagination a:hover { border-color: var(--terra); color: var(--terra); }
.pagination .current { background: var(--terra); color: #fff; border-color: var(--terra); }

/* ─── SIDEBAR ────────────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 80px; }
.widget { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.widget-title { font-family: var(--serif); font-size: 16px; font-weight: 700; color: var(--espresso); margin: 0 0 16px; }
.widget ul { display: flex; flex-direction: column; gap: 8px; }
.widget ul li a { font-size: 14px; color: var(--muted); text-decoration: none; font-weight: 500; }
.widget ul li a:hover { color: var(--terra); }
.widget-cta { background: var(--sand); }
.widget-cta p { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.65; }

/* Budget filter widget */
.budget-filter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: all .12s;
}
.budget-filter-item:hover, .budget-filter-item.is-active {
    background: var(--terra-l);
    color: var(--terra);
    font-weight: 700;
}
.budget-filter-count { font-size: 11px; opacity: 0.6; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--espresso); color: #fff; padding: 60px var(--pad) 32px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.8; margin: 16px 0 24px; max-width: 220px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 14px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s;
}
.footer-social a:hover { background: rgba(255,255,255,0.14); color: rgba(255,255,255,0.8); }
.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 18px;
    font-family: var(--sans);
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; list-style: none; margin: 0; padding: 0; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.55); font-weight: 400; text-decoration: none; transition: color .15s; display: block; background: none; border: none; padding: 0; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.9); opacity: 1; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.28); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.28); text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ─── POST HEADER ─────────────────────────────────────────────────────────── */
.post-header { margin-bottom: 28px; }
.post-meta-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.post-title { margin: 0 0 0; }
.post-byline { font-size: 13px; color: var(--light); margin: 20px 0 28px; }
.post-byline a { color: var(--light); }
.post-featured-image { position: relative; margin-bottom: 32px; border-radius: var(--r-lg); overflow: hidden; }
.post-featured-image img { width: 100%; height: auto; display: block; }
.post-featured-image.pin-format { max-width: 420px; }
.post-image-overlay {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: rgba(26,14,8,0.75);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 10px 16px;
}
.post-image-overlay-site { font-size: 11px; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 2px; }
.post-image-overlay-title { font-family: var(--serif); font-size: 15px; font-weight: 700; color: #fff; }
.post-pinterest-btn { position: absolute; bottom: 18px; right: 18px; }

/* ─── RELATED POSTS ───────────────────────────────────────────────────────── */
.related-posts { margin: 44px 0; }
.related-posts h2 { margin: 0 0 22px; }

/* ─── DARK CTA ─────────────────────────────────────────────────────────────── */
.dark-cta {
    background: linear-gradient(140deg, var(--espresso) 0%, #3A1A08 100%);
    border-radius: var(--r-lg);
    padding: 44px;
    text-align: center;
    margin: 44px 0;
}
.dark-cta .section-label { color: var(--blush); }
.dark-cta h2 { color: #fff; margin: 10px 0 10px; }
.dark-cta p { font-size: 14px; color: rgba(255,255,255,0.55); margin: 0 0 28px; line-height: 1.7; }

/* ─── SEARCH PAGE ──────────────────────────────────────────────────────────── */
.search-results-count { font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.search-results-count strong { color: var(--espresso); }

/* ─── 404 PAGE ─────────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 100px var(--pad); }
.error-page h1 { font-size: 80px; color: var(--terra); margin-bottom: 16px; }
.error-page h2 { margin-bottom: 14px; }
.error-page p { color: var(--muted); margin-bottom: 32px; }

/* ─── FORMS ─────────────────────────────────────────────────────────────────── */
.gf-form { background: var(--card); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--espresso); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--r);
    border: 1.5px solid var(--bdr);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 14px;
    color: var(--espresso);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.form-input:focus, .form-textarea:focus { border-color: var(--terra); }
.form-textarea { resize: vertical; min-height: 120px; }

/* ─── CUSTOMIZER PREVIEW ────────────────────────────────────────────────────── */
.hero--centered { text-align: center; }
.hero--centered .hero-inner { flex-direction: column; align-items: center; }
.hero--centered .hero-content { text-align: center; }
.hero--centered .hero-search { margin: 0 auto 18px; }
.hero--centered .hero-popular { justify-content: center; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .hero-collage { display: none; }
    .content-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --pad: 16px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .masonry { columns: 2; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .hero { padding: 56px var(--pad) 52px; }
    .hero-title { font-size: 32px; }
    .cat-banner { padding: 28px; gap: 24px; }
    .cat-banner-image { display: none; }
    .gift-item-image { width: 140px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .dark-cta { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .masonry { columns: 1; }
    .hero-search { flex-direction: column; }
    .hero-search input { border-radius: var(--r); }
    .gift-item { flex-direction: column; }
    .gift-item-image { width: 100%; height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .pinterest-cta { flex-direction: column; }
}

/* ─── PRINT ──────────────────────────────────────────────────────────────── */
@media print {
    .site-header, .site-footer, .sidebar, .mobile-menu-toggle { display: none; }
    .content-sidebar { grid-template-columns: 1fr; }
    body { font-size: 12pt; }
    a { color: inherit; text-decoration: none; }
}
