:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --bg: #fafafa;
    --card-bg: #fff;
    --text: #1a1a1a;
    --text-light: #666;
    --border: #e0e0e0;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--primary);
    color: white;
    padding: 40px 0 30px;
    text-align: center;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Finder Section */
.finder {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: -30px auto 40px;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.finder h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.finder-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.finder-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.finder-field select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
}

.finder-field select:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-primary {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 14px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Results */
.results {
    margin-bottom: 40px;
}

.results h2 {
    text-align: center;
    margin-bottom: 20px;
}

.gift-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.gift-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gift-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.gift-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f5f5f5;
    padding: 10px;
}

.gift-card-body {
    padding: 15px;
}

.gift-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gift-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.gift-card-rating {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.gift-card-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.gift-card-btn:hover {
    background: var(--primary-dark);
}

/* Popular Guides */
.popular {
    margin-bottom: 40px;
}

.popular h2 {
    text-align: center;
    margin-bottom: 20px;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.guide-card {
    display: block;
    padding: 16px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

.guide-card:hover {
    border-color: var(--primary);
    background: #fff5f0;
}

/* How It Works */
.how-it-works {
    margin-bottom: 40px;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 24px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-num {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.step h3 {
    margin-bottom: 8px;
}

/* Footer */
footer {
    background: #222;
    color: #aaa;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}

footer p { margin-bottom: 4px; }

.affiliate-disclosure {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Guide Content */
.guide-content {
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.guide-content h2 {
    margin-top: 30px;
    margin-bottom: 12px;
}

.guide-content h3 {
    margin-top: 24px;
    margin-bottom: 8px;
}

.guide-content p {
    margin-bottom: 12px;
}

.back-link {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 30px auto;
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.back-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
    header h1 { font-size: 1.6rem; }
    .finder { padding: 20px; margin: -20px 10px 30px; }
    .gift-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
