/*
Theme Name: Pets Care Product
Theme URI: https://petscareproduct.com
Author: Pets Care Product
Author URI: https://petscareproduct.com
Description: A clean, modern, SEO-friendly affiliate marketing theme for dog and cat product reviews, comparisons, and buying guides. Built for USA pet owners.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: affiliate, pets, dogs, cats, reviews, blog, custom-menu, featured-images, responsive-layout, custom-logo
Text Domain: pets-care-product
*/

/* ─── CSS VARIABLES ─── */
:root {
  --primary: #1B4332;
  --primary-light: #2D6A4F;
  --primary-dark: #0D2B1F;
  --accent: #F4A100;
  --accent-light: #FFD166;
  --bg: #FAFAF8;
  --bg2: #F3F1EC;
  --bg3: #E8E4DC;
  --text: #1A1A1A;
  --text2: #4A4A3F;
  --text3: #7A7A6E;
  --white: #FFFFFF;
  --border: #DDD9CF;
  --shadow: 0 2px 20px rgba(27,67,50,0.08);
  --shadow-lg: 0 8px 40px rgba(27,67,50,0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── TOPBAR ─── */
.site-topbar { background: var(--primary-dark); color: rgba(255,255,255,0.8); font-size: 13px; text-align: center; padding: 8px 20px; }
.site-topbar span { color: var(--accent-light); }

/* ─── HEADER ─── */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.logo-text { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--primary); }
.logo-text span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text2); transition: all .2s; }
.main-nav a:hover, .main-nav a.current-menu-item { background: var(--bg2); color: var(--primary); }
.nav-cta { background: var(--primary) !important; color: var(--white) !important; padding: 8px 18px !important; }
.nav-cta:hover { background: var(--primary-light) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all .3s; }
.mobile-nav { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 20px; z-index: 99; box-shadow: var(--shadow); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 0; font-size: 15px; font-weight: 500; color: var(--text2); border-bottom: 1px solid var(--bg2); }

/* ─── HERO ─── */
.hero-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%); position: relative; overflow: hidden; padding: 80px 20px 90px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(244,161,0,0.15); border: 1px solid rgba(244,161,0,0.3); color: var(--accent-light); font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 50px; margin-bottom: 20px; }
.hero-section h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 20px; }
.hero-section h1 em { color: var(--accent-light); font-style: normal; }
.hero-section p { color: rgba(255,255,255,0.75); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .25s; border: none; font-family: var(--font-body); }
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.stat-num { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--accent-light); }
.stat-label { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* ─── SECTIONS ─── */
.site-section { padding: 70px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-alt { background: var(--bg2); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: var(--bg3); color: var(--primary); font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; padding: 5px 14px; border-radius: 50px; margin-bottom: 12px; }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 700; color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 16px; color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ─── PRODUCT CARDS ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all .3s; position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--primary-dark); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; z-index: 1; }
.product-img { height: 180px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.product-body { padding: 16px; }
.product-cat { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.rating-stars { color: var(--accent); font-size: 13px; }
.rating-num { font-size: 13px; font-weight: 600; }
.rating-count { font-size: 12px; color: var(--text3); }
.product-desc { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 14px; }
.product-features { list-style: none; margin-bottom: 14px; }
.product-features li { font-size: 12px; color: var(--text2); padding: 2px 0; display: flex; align-items: center; gap: 6px; }
.product-features li::before { content: '✓'; color: var(--primary); font-weight: 700; font-size: 11px; }
.btn-affiliate { display: block; text-align: center; background: var(--primary); color: var(--white); padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .2s; }
.btn-affiliate:hover { background: var(--primary-light); }

/* ─── BLOG CARDS ─── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.blog-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all .3s; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.blog-img { height: 180px; background: var(--bg3); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.blog-cat-badge { position: absolute; bottom: 12px; left: 12px; background: var(--primary); color: var(--white); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.blog-body { padding: 18px; }
.blog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--text3); }
.blog-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.blog-body p { font-size: 13px; color: var(--text2); line-height: 1.6; }
.blog-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ─── WHY CHOOSE ─── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.why-card { text-align: center; padding: 28px 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); transition: all .3s; }
.why-card:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.why-icon { width: 56px; height: 56px; background: var(--bg2); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.why-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* ─── PAGE HERO ─── */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary-light)); padding: 50px 20px; text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.8rem); font-weight: 700; color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 16px; max-width: 560px; margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: var(--accent-light); }

/* ─── PRODUCT PAGE ─── */
.product-page-hero { background: var(--bg2); padding: 40px 20px; border-bottom: 1px solid var(--border); }
.product-page-hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.product-hero-text h1 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 700; margin-bottom: 8px; }
.product-hero-text p { font-size: 15px; color: var(--text2); }
.product-hero-emoji { font-size: 72px; line-height: 1; }
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-tab { padding: 8px 18px; border-radius: 50px; border: 1.5px solid var(--border); font-size: 14px; font-weight: 500; color: var(--text2); cursor: pointer; transition: all .2s; background: var(--white); }
.cat-tab.active, .cat-tab:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.products-section-title { display: flex; align-items: center; gap: 12px; margin: 40px 0 20px; }
.products-section-title h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; white-space: nowrap; }
.products-section-title::before, .products-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── BLOG PAGE ─── */
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.blog-search { display: flex; gap: 8px; margin-bottom: 28px; }
.blog-search input { flex: 1; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; background: var(--white); font-family: var(--font-body); }
.blog-search button { padding: 11px 18px; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.sidebar-widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar-widget h4 { font-size: 15px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-post { display: flex; gap: 10px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--bg2); }
.sidebar-post:last-child { border: none; margin: 0; padding: 0; }
.sidebar-post-img { width: 52px; height: 52px; border-radius: 8px; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.sidebar-post-text h5 { font-size: 13px; font-weight: 500; line-height: 1.4; margin-bottom: 3px; }
.sidebar-post-text span { font-size: 11px; color: var(--text3); }
.cat-list { list-style: none; }
.cat-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bg2); font-size: 14px; color: var(--text2); }
.cat-list li:last-child { border: none; }
.cat-list li a { color: var(--text2); transition: color .2s; }
.cat-list li a:hover { color: var(--primary); }
.cat-count { background: var(--bg2); color: var(--text3); font-size: 11px; padding: 2px 8px; border-radius: 20px; }

/* ─── ABOUT ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { background: var(--bg2); border-radius: var(--radius-lg); height: 380px; display: flex; align-items: center; justify-content: center; font-size: 100px; }
.about-content h2 { font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 700; margin-bottom: 16px; }
.about-content p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.value-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px; background: var(--bg2); border-radius: 10px; }
.value-icon { width: 32px; height: 32px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.value-text h5 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.value-text p { font-size: 12px; color: var(--text3); line-height: 1.4; }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.team-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px 20px; text-align: center; }
.team-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--bg2); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.team-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.team-card p { font-size: 12px; color: var(--text3); }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.contact-info h2 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--text2); line-height: 1.7; margin-bottom: 28px; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.contact-icon { width: 40px; height: 40px; background: var(--bg2); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail-text h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-detail-text p { font-size: 13px; color: var(--text2); }
.contact-form-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 14px; font-family: var(--font-body); background: var(--bg); color: var(--text); transition: border .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); outline: none; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit { background: var(--primary); color: var(--white); padding: 13px 28px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; transition: all .2s; font-family: var(--font-body); }
.btn-submit:hover { background: var(--primary-light); }

/* ─── FOOTER ─── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); }
.footer-top { max-width: 1200px; margin: 0 auto; padding: 56px 20px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-text { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--white); }
.footer-brand-text span { color: var(--accent); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.55); margin-top: 12px; line-height: 1.7; }
.footer-col h5 { font-size: 14px; font-weight: 600; color: var(--white); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--accent-light); }
.footer-disclaimer { background: rgba(244,161,0,0.1); border-top: 1px solid rgba(244,161,0,0.2); padding: 12px 20px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.5); }
.footer-disclaimer a { color: var(--accent-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); max-width: 1200px; margin: 0 auto; padding: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.4); }

/* ─── WORDPRESS STANDARD ─── */
.wp-post-image { border-radius: var(--radius); }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.aligncenter { display: block; margin: 0 auto 20px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .blog-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 200px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-values { grid-template-columns: 1fr; }
  .product-page-hero-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .footer-top { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
}

/* ============================================
   ELEMENTOR COMPATIBILITY STYLES
   ============================================ */

/* Elementor full-width pages */
.elementor-page .site-header,
.elementor-page .site-footer {
    position: relative;
    z-index: 100;
}

/* Remove default padding when Elementor takes over */
.elementor-page .site-main {
    padding: 0 !important;
}

/* Elementor canvas (no header/footer) */
body.elementor-page-elementor-canvas .site-topbar,
body.elementor-page-elementor-canvas .site-header,
body.elementor-page-elementor-canvas .site-footer {
    display: none !important;
}

/* Elementor full-width (header/footer show, no container) */
body.elementor-page-elementor-full-width .site-main {
    padding: 0 !important;
    max-width: 100% !important;
}

/* Product card inside Elementor widget */
.elementor-widget .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.elementor-widget .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.mobile-menu {
    display: none;
}

.mobile-menu.active {
    display: block;
}
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 9999;
    flex-direction: column;
    padding: 15px;
}

.mobile-nav.open {
    display: flex;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
