/* ==========================================================================
   OMyFav shared guide-page stylesheet
   --------------------------------------------------------------------------
   Loaded by every content/guide page under /party-favors/, /halloween/,
   /products/, etc. Brand tokens + shared chrome (header, buttons, product
   cards, footer) are COPIED VERBATIM from index.html so worker-rendered
   product cards and page chrome look identical to the homepage. Guide-layout
   classes (article column, breadcrumbs, comparison tables, FAQ, CTA band,
   hub grid, related links) are new below.
   Fonts (Poppins + Fredoka One) are loaded by each page's <head>.
   ========================================================================== */

/* --- Brand tokens (verbatim from index.html) -------------------------------- */
:root {
    --primary-color: #FF1493;
    --secondary-color: #00CED1;
    --accent-color: #FFD700;
    --text-color: #2D3436;
    --light-bg: #F0F8FF;
    --party-gradient: linear-gradient(135deg, #FF69B4 0%, #FFA500 50%, #40E0D0 100%);
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #FFFFFF;
    line-height: 1.6;
}

/* --- Header / nav (verbatim from index.html) -------------------------------- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Fredoka One', cursive;
    font-size: 2.2rem;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.logo-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--secondary-color);
    margin-left: 8px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.btn-amazon {
    background-color: #FF9900;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.btn-amazon:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-large {
    font-size: 1.3rem;
    padding: 18px 50px;
    position: relative;
}

/* --- Product cards + grid (verbatim from index.html) ------------------------ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--light-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255,20,147,0.3);
}

.product-badge.popular {
    background: var(--secondary-color);
}

.product-badge.deal {
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}

.product-image {
    width: 100%;
    height: 240px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 15px;
    background: white;
    padding: 10px;
}

.product-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.product-stars {
    color: #FF9900;
    font-size: 0.9rem;
}

.product-rating-text {
    font-size: 0.85rem;
    color: #636e72;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.product-price-per {
    font-size: 0.8rem;
    color: #636e72;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 15px;
    flex-grow: 1;
}

.product-card .product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    cursor: pointer;
}

.product-card .product-link:hover .product-image {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

.product-card .product-link:hover h3 {
    color: var(--primary-color);
}

/* --- Footer (verbatim from index.html) -------------------------------------- */
footer {
    background: #2D3436;
    color: white;
    text-align: center;
    padding: 40px 5%;
}

footer p {
    opacity: 0.8;
    font-size: 1rem;
    margin-bottom: 10px;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   NEW — guide-page layout
   ========================================================================== */

/* Article column */
.guide-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.guide-wrap h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.4rem;
    line-height: 1.15;
}

.guide-wrap h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.7rem;
    margin-top: 45px;
}

.guide-wrap h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 25px;
}

.guide-wrap img {
    max-width: 100%;
    border-radius: 12px;
}

/* Breadcrumbs */
.crumbs {
    font-size: 0.85rem;
    color: #636e72;
    margin-bottom: 20px;
}

.crumbs a {
    color: var(--secondary-color);
    text-decoration: none;
}

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

/* Byline */
.byline {
    font-size: 0.9rem;
    color: #636e72;
    margin-bottom: 25px;
}

/* Direct-answer box */
.answer-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 25px 0;
    font-size: 1.05rem;
}

/* Comparison table */
.table-scroll {
    overflow-x: auto;
    margin: 20px 0;
}

.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.cmp-table th {
    background: var(--light-bg);
    text-align: left;
    padding: 10px 12px;
}

.cmp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.cmp-table tbody tr:nth-child(even) {
    background: #fafcff;
}

/* FAQ accordion */
.faq details {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 10px 0;
}

.faq summary {
    font-weight: 600;
    cursor: pointer;
}

.faq details[open] {
    border-color: var(--secondary-color);
}

/* Affiliate/ownership disclosure */
.disclosure {
    font-size: 0.85rem;
    color: #636e72;
    font-style: italic;
    margin: 30px 0 10px;
}

/* Call-to-action band */
.cta-band {
    background: var(--primary-color);
    color: white;
    text-align: center;
    border-radius: 20px;
    padding: 40px 24px;
    margin: 40px 0;
}

.cta-band h2 {
    color: white;
    margin-top: 0;
}

/* Related / more-guides list */
.related ul {
    list-style: none;
    padding: 0;
}

.related li {
    margin: 8px 0;
}

.related a {
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

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

/* Hub landing grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.hub-card {
    background: var(--light-bg);
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.hub-card:hover {
    transform: translateY(-5px);
}

.hub-card h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* ==========================================================================
   Responsive (header rules copied from index.html)
   ========================================================================== */
@media (max-width: 768px) {
    header { padding: 10px 5%; flex-wrap: wrap; justify-content: center; gap: 10px; }
    .logo { font-size: 1.8rem; margin-right: 15px; }
    .nav-links { gap: 15px; font-size: 0.85rem; }
    .guide-wrap { padding: 24px 16px 60px; }
    .guide-wrap h1 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
    .nav-links a:not(.btn-amazon) { display: none; }
}
