/*
Theme Name: PetSmart Gadgets
Theme URI: https://www.gzabb.com
Description: Professional, SEO-optimized theme for PetSmart Gadgets - Innovative Pet Care Solutions
Author: PetSmart Gadgets Team
Version: 1.1.0
Text Domain: petsmart-gadgets
Requires at least: 6.0
Requires PHP: 8.0
License: GPL-2.0-or-later
*/

:root {
    --primary: #1a56db;
    --primary-light: #e8f0fe;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --accent: #059669;
    --accent-light: #ecfdf5;
    --dark: #111827;
    --dark-secondary: #374151;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --gray-border: #e5e7eb;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow: 0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.06),0 4px 6px -4px rgba(0,0,0,.04);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --max-width: 1160px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'SF Mono', 'Consolas', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--dark); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--secondary-dark); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- HEADER --- */
.site-header { background: var(--bg); border-bottom: 1px solid var(--gray-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--max-width); margin: 0 auto; }
.site-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: var(--dark); letter-spacing: -.3px; }
.site-logo:hover { color: var(--primary); }
.site-logo svg { flex-shrink: 0; }

.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a { display: block; padding: 8px 16px; color: var(--dark-secondary); font-weight: 500; font-size: .9rem; border-radius: var(--radius-sm); transition: background .2s, color .2s; }
.main-nav a:hover, .main-nav .current-menu-item a { background: var(--primary); color: #fff; }
.main-nav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.mobile-toggle { display: none; background: none; border: 1px solid var(--gray-border); border-radius: var(--radius-sm); cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 20px; height: 2px; background: var(--dark); margin: 4px 0; transition: transform .2s; }
.mobile-toggle:focus-visible { outline: 2px solid var(--primary); }

/* --- HERO --- */
.hero { background: var(--dark); color: #fff; padding: 80px 0 100px; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.15); }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -.5px; }
.hero p.hero-desc { font-size: 1.05rem; line-height: 1.7; opacity: .8; margin-bottom: 28px; max-width: 480px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-size: .95rem; font-weight: 600; border-radius: var(--radius-sm); border: 2px solid transparent; cursor: pointer; transition: all .2s; text-align: center; }
.btn:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
.btn-primary { background: var(--secondary); color: var(--dark); border-color: var(--secondary); }
.btn-primary:hover { background: var(--secondary-dark); border-color: var(--secondary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.25); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-accent { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-accent:hover { background: #1648b8; transform: translateY(-1px); }

.hero-visual { display: flex; justify-content: center; }
.hero-graphic { width: 100%; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-card { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 22px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.08); transition: background .2s; }
.hero-card:hover { background: rgba(255,255,255,.12); }
.hero-card svg { width: 40px; height: 40px; opacity: .85; }
.hero-card span { font-size: .8rem; font-weight: 600; opacity: .85; }

/* --- SECTIONS --- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #fff; }

.section-header { text-align: center; max-width: 580px; margin: 0 auto 48px; }
.section-label { display: inline-block; color: var(--primary); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.section-dark .section-label { color: var(--secondary); }
.section-header h2 { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.3px; }
.section-dark .section-header h2 { color: #fff; }
.section-header p { font-size: 1rem; color: var(--gray); line-height: 1.7; }
.section-dark .section-header p { color: rgba(255,255,255,.6); }

/* --- PRODUCT CARDS --- */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-border); transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-img { height: 240px; display: flex; align-items: center; justify-content: center; position: relative; }
.product-img svg { width: 72px; height: 72px; opacity: .5; }
.product-badge { position: absolute; top: 14px; left: 14px; padding: 4px 10px; border-radius: 4px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-best { background: var(--primary); color: #fff; }
.badge-new { background: var(--accent); color: #fff; }
.product-info { padding: 24px; }
.product-category { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.product-info h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.product-info h3 a { color: inherit; }
.product-info h3 a:hover { color: var(--primary); }
.product-info p { font-size: .9rem; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.product-rating { display: flex; align-items: center; gap: 4px; color: var(--secondary); font-size: .85rem; }

/* --- ARTICLE CARDS --- */
.articles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.article-card { background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-border); transition: box-shadow .2s, transform .2s; }
.article-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-thumb { height: 180px; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }
.article-thumb svg { width: 40px; height: 40px; opacity: .3; }
.article-body { padding: 24px; }
.article-meta { display: flex; gap: 12px; margin-bottom: 8px; }
.article-tag { font-size: .7rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; background: var(--primary-light); padding: 3px 8px; border-radius: 3px; }
.article-date { font-size: .8rem; color: var(--gray-light); }
.article-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; line-height: 1.4; }
.article-body h3 a { color: inherit; }
.article-body h3 a:hover { color: var(--primary); }
.article-body .excerpt { font-size: .88rem; color: var(--gray); line-height: 1.6; }

/* --- STATS --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card { text-align: center; padding: 24px 16px; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--secondary); line-height: 1; margin-bottom: 6px; }
.stat-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.stat-card p { font-size: .85rem; opacity: .6; }

/* --- CTA --- */
.cta { padding: 64px 0; background: var(--primary); color: #fff; text-align: center; }
.cta h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 1rem; opacity: .85; margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.cta .btn-primary:hover { background: var(--secondary); color: var(--dark); border-color: var(--secondary); }

/* --- FEATURES --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--gray-border); transition: box-shadow .2s; }
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon.blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.amber { background: #fef3c7; color: var(--secondary-dark); }
.feature-icon.green { background: var(--accent-light); color: var(--accent); }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .88rem; color: var(--gray); line-height: 1.6; }

/* --- TESTIMONIALS --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--bg); border-radius: var(--radius); padding: 28px; border: 1px solid var(--gray-border); }
.testimonial-stars { color: var(--secondary); margin-bottom: 12px; font-size: 1rem; letter-spacing: 2px; }
.testimonial-card blockquote { font-size: .9rem; color: var(--gray); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .75rem; color: #fff; }
.testimonial-author strong { display: block; font-size: .85rem; }
.testimonial-author span { font-size: .75rem; color: var(--gray-light); }

/* --- PAGE TEMPLATES --- */
.page-hero { background: var(--dark); color: #fff; padding: 60px 0; }
.page-hero .container { max-width: 800px; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; }
.page-hero p { font-size: 1rem; opacity: .7; }
.page-content { padding: 60px 0; }
.page-content .container { max-width: 800px; }
.page-content h2 { font-size: 1.5rem; font-weight: 700; margin: 32px 0 12px; color: var(--dark); }
.page-content h3 { font-size: 1.2rem; font-weight: 700; margin: 24px 0 10px; color: var(--dark); }
.page-content p { margin-bottom: 14px; color: var(--dark-secondary); line-height: 1.8; }
.page-content ul, .page-content ol { margin-bottom: 14px; padding-left: 24px; color: var(--dark-secondary); }
.page-content li { margin-bottom: 6px; line-height: 1.7; }
.page-content img { border-radius: var(--radius); margin: 20px 0; }

/* --- PRODUCT PAGE --- */
.product-hero { background: var(--bg-alt); padding: 60px 0; }
.product-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-hero-img { border-radius: var(--radius-lg); overflow: hidden; background: #fff; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-border); }
.product-hero-img svg { width: 120px; height: 120px; opacity: .35; }
.product-hero-info h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; color: var(--dark); }
.product-hero-info .product-tagline { font-size: 1.05rem; color: var(--gray); margin-bottom: 20px; line-height: 1.6; }
.product-bullets { list-style: none; margin-bottom: 24px; padding: 0; }
.product-bullets li { padding: 6px 0 6px 24px; position: relative; font-size: .95rem; color: var(--dark-secondary); }
.product-bullets li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.product-price-block { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-price-block .price { font-size: 1.8rem; font-weight: 800; color: var(--dark); }
.product-price-block .rating { color: var(--secondary); font-size: .9rem; font-weight: 600; }
.specs-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .9rem; }
.specs-table th, .specs-table td { padding: 10px 14px; border-bottom: 1px solid var(--gray-border); text-align: left; }
.specs-table th { font-weight: 600; color: var(--dark); width: 40%; background: var(--bg-alt); }
.specs-table td { color: var(--dark-secondary); }

/* --- BLOG ARTICLE --- */
.single-content { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.single-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.post-meta { display: flex; gap: 16px; color: var(--gray-light); margin-bottom: 28px; font-size: .88rem; }
.single-content h2 { font-size: 1.5rem; font-weight: 700; margin: 36px 0 14px; color: var(--dark); }
.single-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; color: var(--dark); }
.single-content p { margin-bottom: 16px; color: var(--dark-secondary); line-height: 1.8; }
.single-content ul, .single-content ol { margin-bottom: 16px; padding-left: 24px; }
.single-content li { margin-bottom: 6px; color: var(--dark-secondary); line-height: 1.7; }
.toc { background: var(--bg-alt); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.toc h4 { font-size: .9rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.toc ol { padding-left: 20px; margin: 0; }
.toc li { margin-bottom: 4px; }
.toc a { font-size: .88rem; color: var(--primary); }
.toc a:hover { color: var(--secondary-dark); }
.product-inline-card { display: flex; gap: 20px; background: var(--bg-alt); border: 1px solid var(--gray-border); border-radius: var(--radius); padding: 20px; margin: 24px 0; align-items: center; }
.product-inline-card .pic { width: 100px; height: 100px; flex-shrink: 0; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.product-inline-card .pic svg { width: 48px; height: 48px; opacity: .4; }
.product-inline-card .info h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.product-inline-card .info h4 a { color: var(--dark); }
.product-inline-card .info h4 a:hover { color: var(--primary); }
.product-inline-card .info p { font-size: .85rem; color: var(--gray); margin: 0; }

/* --- BREADCRUMBS --- */
.breadcrumbs { padding: 12px 0; font-size: .8rem; }
.breadcrumbs ol { display: flex; list-style: none; gap: 6px; flex-wrap: wrap; }
.breadcrumbs li::after { content: '/'; margin-left: 6px; color: var(--gray-light); }
.breadcrumbs li:last-child::after { display: none; }
.breadcrumbs a { color: rgba(255,255,255,.6); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li:last-child { color: rgba(255,255,255,.9); }

/* --- FOOTER --- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.6); padding: 48px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand .site-logo { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; margin-bottom: 16px; }
.social-links { display: flex; gap: 8px; }
.social-links a { width: 34px; height: 34px; border-radius: var(--radius-sm); background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); transition: all .2s; }
.social-links a:hover { background: var(--primary); color: #fff; }
.footer-col h4 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,.5); font-size: .85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; text-align: center; font-size: .8rem; color: rgba(255,255,255,.4); }

/* --- 404 --- */
.error-404 { text-align: center; padding: 100px 20px; }
.error-404 h1 { font-size: 6rem; font-weight: 800; color: var(--primary); }
.error-404 h2 { font-size: 1.5rem; margin: 12px 0; }
.error-404 p { color: var(--gray); margin-bottom: 24px; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-graphic { max-width: 360px; margin: 0 auto; }
    .hero h1 { font-size: 2.2rem; }
    .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .product-hero-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--gray-border); box-shadow: var(--shadow-lg); padding: 12px; z-index: 99; }
    .main-nav.active { display: block; }
    .main-nav ul { flex-direction: column; gap: 2px; }
    .main-nav a { padding: 10px 14px; }
    .hero { padding: 48px 0 64px; text-align: center; }
    .hero p.hero-desc { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .products-grid, .articles-grid { grid-template-columns: 1fr; }
    .features-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .section-header h2 { font-size: 1.6rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .product-inline-card { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.6rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .btn { padding: 10px 20px; font-size: .88rem; }
}
