/* ============================================================
   issac.cc - Main Stylesheet v2
   Men's Amazon Deals & Buying Guides
   ============================================================ */
:root {
    --primary: #ff9900; --primary-dark: #e68900; --primary-light: #fff3e0;
    --text: #333; --text-light: #666; --text-muted: #999;
    --bg: #fff; --bg-light: #f8f9fa; --bg-card: #fff;
    --border: #e0e0e0; --success: #28a745; --danger: #dc3545;
    --shadow: 0 2px 8px rgba(0,0,0,.08); --radius: 8px;
    --max-width: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg-light); }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; color: #222; }
h1 { font-size: 1.8rem; margin-bottom: .5rem; }
h2 { font-size: 1.4rem; margin-bottom: .5rem; }
h3 { font-size: 1.1rem; }

/* Header */
.site-header { background: #fff; border-bottom: 2px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.logo { font-size: 1.5rem; font-weight: 700; color: #222; }
.logo-text { letter-spacing: -0.5px; }
.main-nav { flex: 1; margin-left: 30px; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #333; }
.nav-list { list-style: none; display: flex; gap: 4px; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a { padding: 8px 12px; color: #555; font-size: .9rem; font-weight: 500; border-radius: 4px; display: block; }
.nav-list > li > a:hover { color: var(--primary); background: var(--primary-light); }
.has-dropdown .dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); min-width: 180px; box-shadow: var(--shadow); list-style: none; z-index: 200; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a { display: block; padding: 8px 14px; color: #555; font-size: .85rem; white-space: nowrap; }
.dropdown li a:hover { background: var(--primary-light); color: var(--primary); }

/* Affiliate Notice */
.affiliate-notice { background: #fff8e1; border-bottom: 1px solid #ffe0b2; }
.affiliate-notice .container { padding: 6px 16px; font-size: .8rem; color: #856404; text-align: center; }

/* Breadcrumbs */
.breadcrumbs { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: .8rem; color: var(--text-muted); }
.breadcrumbs ol li:not(:last-child)::after { content: "/"; margin: 0 6px; color: #ccc; }
.breadcrumbs ol li a { color: var(--text-light); }
.breadcrumbs ol li a:hover { color: var(--primary); }

/* Main Content */
main.container { min-height: 60vh; padding-top: 20px; padding-bottom: 40px; }

/* Hero */
.home-hero { background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); color: #fff; text-align: center; padding: 50px 20px; border-radius: var(--radius); margin-bottom: 30px; }
.hero-content h1 { color: #fff; font-size: 2rem; margin-bottom: 12px; }
.hero-content p { font-size: 1.1rem; color: #ccc; max-width: 600px; margin: 0 auto 24px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { display: inline-block; padding: 12px 24px; background: var(--primary); color: #000; font-weight: 600; border-radius: var(--radius); }
.btn-hero-secondary { display: inline-block; padding: 12px 24px; border: 2px solid rgba(255,255,255,.5); color: #fff; border-radius: var(--radius); font-weight: 500; }
.btn-hero-primary:hover, .btn-hero-secondary:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.2); }

/* Guide Cards (homepage) */
.featured-guides { margin-bottom: 30px; }
.section-subtitle { color: var(--text-light); margin-bottom: 16px; }
.guide-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.guide-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: box-shadow .2s; display: block; }
.guide-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.guide-card-tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: .75rem; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; font-weight: 600; }
.guide-card h3 { font-size: 1rem; margin-bottom: 6px; color: #222; }
.guide-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 10px; }
.guide-read-more { font-size: .85rem; color: var(--primary-dark); font-weight: 600; }
.section-cta { text-align: center; margin-top: 8px; }
.btn-outline { display: inline-block; padding: 10px 20px; border: 1px solid var(--primary); color: var(--primary-dark); border-radius: var(--radius); font-weight: 500; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-image { position: relative; aspect-ratio: 1; background: #f9f9f9; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.discount-badge { position: absolute; top: 8px; right: 8px; background: #e53935; color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.discount-badge.large { font-size: 1rem; padding: 6px 12px; }
.product-info { padding: 12px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-brand { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.product-title { font-size: .9rem; margin-bottom: 6px; }
.product-title a { color: #222; line-height: 1.4; }
.product-title a:hover { color: var(--primary-dark); }
.product-price { margin-bottom: 6px; }
.current-price { font-size: 1.1rem; font-weight: 700; color: #222; }
.original-price { font-size: .85rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.product-rating { font-size: .8rem; color: var(--text-light); margin-bottom: 6px; }
.product-actions { display: flex; gap: 6px; margin-top: 8px; }
.btn-get-deal { display: inline-block; padding: 8px 16px; background: var(--primary); color: #000; font-weight: 600; border-radius: 4px; text-align: center; font-size: .85rem; flex: 1; }
.btn-get-deal:hover { background: var(--primary-dark); color: #fff; }
.btn-details { display: inline-block; padding: 8px 12px; border: 1px solid var(--border); color: var(--text-light); border-radius: 4px; text-align: center; font-size: .85rem; }
.btn-details:hover { border-color: var(--primary); color: var(--primary-dark); }

/* Product Detail */
.product-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.product-detail-image { position: relative; border-radius: var(--radius); overflow: hidden; background: #f9f9f9; }
.product-detail-image img { width: 100%; }
.product-detail-info h1 { margin-bottom: 10px; }
.detail-brand { color: var(--text-muted); font-size: .9rem; }
.detail-category { display: inline-block; font-size: .85rem; color: var(--text-light); margin-bottom: 10px; }
.detail-price-area { margin: 16px 0; }
.detail-current-price { font-size: 1.6rem; font-weight: 700; color: #222; }
.detail-original-price { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.detail-save { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 2px 10px; border-radius: 4px; font-size: .85rem; margin-left: 10px; font-weight: 600; }
.detail-rating { margin-bottom: 12px; font-size: .9rem; }
.coupon-code-box { display: flex; align-items: center; gap: 8px; background: #f0fdf4; border: 1px solid #86efac; border-radius: 4px; padding: 8px 12px; margin-bottom: 16px; flex-wrap: wrap; }
.coupon-label { font-weight: 600; font-size: .85rem; color: #166534; }
.coupon-code { font-family: monospace; font-size: 1rem; font-weight: 700; color: #166534; }
.btn-copy-coupon { background: #166534; color: #fff; border: none; padding: 4px 10px; border-radius: 3px; cursor: pointer; font-size: .8rem; }
.copy-success { margin-left: 8px; color: #15803d; font-weight: 600; }
.btn-go-amazon { display: inline-block; width: 100%; padding: 14px; background: linear-gradient(135deg, #ff9900, #ff7700); color: #000; text-align: center; font-weight: 700; font-size: 1.05rem; border-radius: 6px; margin: 12px 0; }
.btn-go-amazon:hover { background: linear-gradient(135deg, #e08a00, #e06a00); color: #000; }
.affiliate-note { font-size: .75rem; color: var(--text-muted); text-align: center; }
.detail-related-guides { background: var(--bg-light); padding: 16px; border-radius: var(--radius); margin-bottom: 20px; }
.detail-related-guides h2 { font-size: 1.1rem; }
.detail-related-guides ul { list-style: none; }
.detail-related-guides li { padding: 4px 0; }
.product-detail-content { margin-bottom: 20px; background: #fff; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.detail-features { list-style: none; columns: 2; column-gap: 20px; }
.detail-features li { padding: 4px 0; font-size: .9rem; break-inside: avoid; }
.related-products { margin-top: 40px; }
.related-products h2 { margin-bottom: 16px; }

/* Guide List */
.guides-intro { color: var(--text-light); margin-bottom: 20px; max-width: 700px; font-size: 1rem; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.tab { padding: 6px 14px; border: 1px solid var(--border); border-radius: 20px; font-size: .85rem; color: var(--text-light); white-space: nowrap; }
.tab:hover { border-color: var(--primary); color: var(--primary-dark); }
.tab.active { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }
.guide-list-item { display: flex; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.guide-list-content { flex: 1; }
.guide-category-tag { display: inline-block; background: #e3f2fd; color: #1565c0; font-size: .75rem; padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; font-weight: 600; }
.guide-list-content h2 { font-size: 1.1rem; margin-bottom: 6px; }
.guide-list-content h2 a { color: #222; }
.guide-list-content p { font-size: .9rem; color: var(--text-light); }
.guide-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--text-muted); margin-top: 8px; }

/* Guide Detail */
.guide-detail { max-width: 760px; margin: 0 auto; }
.guide-header { text-align: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.guide-header h1 { font-size: 2rem; margin: 12px 0; }
.guide-content { font-size: 1.05rem; line-height: 1.8; }
.guide-content h2 { font-size: 1.3rem; margin: 30px 0 12px; color: #222; }
.guide-content h3 { font-size: 1.1rem; margin: 20px 0 8px; }
.guide-content p { margin-bottom: 14px; }
.guide-content ul { margin: 0 0 14px 20px; }
.guide-content li { margin-bottom: 6px; }
.guide-deals { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.guide-deals h2 { margin-bottom: 16px; }
.related-guides { margin-top: 30px; }
.related-guides h2 { margin-bottom: 16px; }

/* Archive */
.archive-month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.archive-month-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.month-label { font-weight: 600; font-size: .95rem; color: #222; }
.month-count { font-size: .8rem; color: var(--text-muted); }
.archive-date-list { display: flex; flex-direction: column; gap: 6px; }
.archive-date-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; }
.archive-date-link { display: flex; justify-content: space-between; align-items: center; color: #555; }
.date-nav { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }

/* Categories grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.category-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: block; transition: box-shadow .2s; }
.category-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.category-card h2 { font-size: 1.1rem; margin-bottom: 6px; }
.category-card p { font-size: .85rem; color: var(--text-light); margin-bottom: 8px; }
.cat-count { font-size: .8rem; color: var(--primary-dark); font-weight: 600; }

/* Static pages */
.static-page { max-width: 760px; }
.static-content { background: #fff; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); }
.static-content h2 { margin-top: 24px; margin-bottom: 10px; }
.static-content h3 { margin-top: 16px; }
.static-content ul { margin-left: 20px; margin-bottom: 14px; }
.static-content li { margin-bottom: 4px; }
.update-date { color: var(--text-muted); font-size: .85rem; margin-bottom: 20px; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: .9rem; font-weight: 600; margin-bottom: 4px; }
.form-group input, .form-group textarea { padding: 10px; border: 1px solid var(--border); border-radius: 4px; font-size: .95rem; }
.btn-submit { padding: 12px 24px; background: var(--primary); color: #000; border: none; border-radius: 4px; cursor: pointer; font-size: 1rem; font-weight: 600; }
.btn-submit:hover { background: var(--primary-dark); }

/* Search */
.search-form-large { display: flex; gap: 8px; margin-bottom: 20px; }
.search-form-large input { flex: 1; padding: 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; }
.search-form-large button { padding: 12px 20px; background: var(--primary); color: #000; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; }
.search-count { color: var(--text-light); margin-bottom: 16px; }

/* Empty state */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

/* Error page */
.error-page { text-align: center; padding: 60px 20px; }
.error-code { font-size: 6rem; font-weight: 700; color: var(--primary); }
.error-page h1 { margin: 10px 0; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* Pagination */
.pagination { margin-top: 24px; }
.pagination ul { display: flex; list-style: none; gap: 4px; justify-content: center; }
.pagination li { }
.pagination a, .pagination .current { display: block; padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: .9rem; }
.pagination a:hover { background: var(--primary-light); border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #000; border-color: var(--primary); font-weight: 600; }

/* Category page */
.category-desc { color: var(--text-light); margin-bottom: 12px; }
.category-guides { background: var(--primary-light); padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; font-size: .9rem; }

/* Footer */
.site-footer { background: #1a1a2e; color: #ccc; padding: 40px 0 20px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
.footer-col p { font-size: .85rem; line-height: 1.5; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 5px; }
.footer-col a { color: #999; font-size: .85rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; text-align: center; font-size: .8rem; color: #888; }
.footer-disclaimer { margin-top: 4px; font-size: .7rem; }

/* Responsive */
@media (max-width: 1024px) {
    .guide-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-list { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 2px solid var(--border); padding: 10px 16px; }
    .nav-list.open { display: flex; }
    .has-dropdown .dropdown { position: static; box-shadow: none; border: none; padding-left: 16px; display: none; }
    .has-dropdown:hover .dropdown { display: block; }
    .product-detail-inner { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 1.5rem; }
    .guide-content { font-size: 1rem; }
    .guide-detail { max-width: 100%; }
    .guide-cards { grid-template-columns: 1fr; }
}

/* Share buttons */
.social-share { display: flex; gap: 8px; margin-top: 12px; }
.social-share a { padding: 4px 10px; font-size: .8rem; border: 1px solid var(--border); border-radius: 3px; color: var(--text-light); }

/* Mid-content product insert */
.guide-inline-product { margin: 24px 0; }

/* Buy on Amazon CTA */
.guide-amazon-cta { background: linear-gradient(135deg, #232f3e, #37475a); color: #fff; padding: 28px 32px; border-radius: 8px; text-align: center; margin: 32px 0 24px; }
.guide-amazon-cta .cta-heading { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; }
.guide-amazon-cta p { font-size: .95rem; opacity: .9; margin: 0 0 18px; line-height: 1.6; }
.btn-amazon-cta { display: inline-block; background: #ff9900; color: #111; padding: 14px 36px; border-radius: 6px; font-size: 1.05rem; font-weight: 700; transition: background .2s, transform .2s; }
.btn-amazon-cta:hover { background: #e88a00; transform: translateY(-1px); }
