/*
Theme Name: DogToyLab
Theme URI: https://dogtoylab.com
Author: DogToyLab
Author URI: https://dogtoylab.com
Description: Custom WooCommerce theme for DogToyLab - dog toy reviews and recommendations.
Version: 1.0.0
License: Proprietary
Text Domain: dogtoylab
*/

:root {
  --primary: #E8651A;
  --primary-dark: #C4510F;
  --secondary: #2A9D8F;
  --accent: #F4A261;
  --bg: #FDFBF7;
  --surface: #FFFFFF;
  --surface-2: #F5F0E8;
  --text: #2D2D2D;
  --text-muted: #6B6B6B;
  --border: #E8E0D4;
  --success: #4CAF50;
  --star: #FFB800;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-muted); max-width: 65ch; }
a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* Nav */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 800; color: var(--text); }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
}
.nav-cta:hover { background: var(--primary-dark); color: #fff !important; }
.cart-icon { position: relative; }
.cart-icon::after {
  content: attr(data-count); position: absolute; top: -8px; right: -8px;
  background: var(--primary); color: #fff; font-size: 0.7rem;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem; cursor: pointer; border: none;
  transition: all 0.3s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,101,26,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { opacity: 0.9; color: #fff; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* Hero */
.hero {
  padding: 5rem 0; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #FFF5EB 0%, #FDFBF7 50%, #E8F5F0 100%);
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content h1 span { color: var(--primary); }
.hero-content .subtitle { font-size: 1.15rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-image { text-align: center; font-size: 8rem; }
.hero-badge {
  display: inline-block; background: var(--accent);
  color: #fff; padding: 0.3rem 1rem; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem;
}
.trust-row {
  display: flex; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; color: var(--text-muted); }
.trust-item strong { color: var(--text); }

/* Category cards */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.cat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; text-align: center;
  box-shadow: var(--shadow); transition: all 0.3s;
  border: 2px solid transparent;
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.cat-card .cat-icon { font-size: 3rem; margin-bottom: 1rem; }
.cat-card h3 { margin-bottom: 0.5rem; }
.cat-card p { font-size: 0.9rem; margin-bottom: 1rem; }

/* Product grid */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.product-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all 0.3s; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }
.product-card .product-img {
  height: 200px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 4rem;
}
.product-card .product-info { padding: 1.2rem; }
.product-card .product-title { font-weight: 700; margin-bottom: 0.3rem; color: var(--text); }
.product-card .product-price { color: var(--primary); font-weight: 800; font-size: 1.2rem; }
.product-card .product-rating { color: var(--star); margin: 0.3rem 0; font-size: 0.9rem; }
.product-card .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--primary); color: #fff;
  padding: 0.2rem 0.7rem; border-radius: 50px;
  font-size: 0.75rem; font-weight: 700;
}

/* Review cards */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.review-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.review-card .stars { color: var(--star); font-size: 1.1rem; margin-bottom: 0.5rem; }
.review-card .review-text { font-style: italic; margin-bottom: 1rem; color: var(--text); }
.review-card .reviewer { font-weight: 700; font-size: 0.9rem; }
.review-card .reviewer span { font-weight: 400; color: var(--text-muted); }

/* Stats/trust bar */
.stats-bar {
  background: var(--secondary); color: #fff; padding: 2rem 0;
}
.stats-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 1rem; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2rem; font-weight: 800; }
.stat-item .stat-label { font-size: 0.85rem; opacity: 0.9; }

/* Features/benefits */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; margin-top: 2.5rem;
}
.feature-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.feature-card .feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(232,101,26,0.1); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1rem;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, #D4520E 100%);
  color: #fff; text-align: center;
}
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.85); margin: 1rem auto 2rem; }
.newsletter-form {
  display: flex; gap: 0.5rem; max-width: 450px; margin: 0 auto;
}
.newsletter-form input {
  flex: 1; padding: 0.9rem 1.2rem; border-radius: 8px;
  border: none; font-size: 1rem;
}
.newsletter-form button {
  padding: 0.9rem 1.5rem; background: #fff; color: var(--primary);
  border: none; border-radius: 8px; font-weight: 700; cursor: pointer;
}

/* About page */
.about-hero { padding: 6rem 0 3rem; text-align: center; background: var(--surface-2); }
.about-hero h1 { margin-bottom: 1rem; }
.about-hero p { margin: 0 auto; font-size: 1.15rem; }
.about-content { max-width: 800px; margin: 0 auto; }
.about-content h2 { margin: 2.5rem 0 1rem; }
.about-content p { margin-bottom: 1rem; font-size: 1.05rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.contact-form { max-width: 100%; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; background: var(--surface);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Page header */
.page-header { padding: 5rem 0 3rem; text-align: center; background: var(--surface-2); }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { margin: 0 auto; font-size: 1.1rem; }

/* WooCommerce overrides */
.woocommerce ul.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; width: 100% !important; }
.woocommerce ul.products li.product a img { border-radius: var(--radius); }
.woocommerce ul.products li.product .price { color: var(--primary) !important; font-weight: 700 !important; }
.woocommerce ul.products li.product .button { background: var(--primary); color: #fff; border-radius: 8px; border: none; }
.woocommerce ul.products li.product .button:hover { background: var(--primary-dark); }
.woocommerce .woocommerce-message { border-top-color: var(--secondary); }
.woocommerce .woocommerce-info { border-top-color: var(--primary); }
.woocommerce .woocommerce-error { border-top-color: #e74c3c; }

/* Footer */
.site-footer {
  background: #2D2D2D; color: #ccc; padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; margin-bottom: 3rem;
}
.footer-col h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer-col a { display: block; color: #aaa; padding: 0.3rem 0; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 0.85rem; color: #999; }
.footer-bottom {
  border-top: 1px solid #444; padding-top: 2rem;
  text-align: center; color: #888; font-size: 0.85rem;
}
.footer-bottom a { color: var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-image { font-size: 5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); padding: 1.5rem;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .newsletter-form { flex-direction: column; }
  .section { padding: 3rem 0; }
  .trust-row { justify-content: center; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.5s ease forwards; }

/* WP Admin bar */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
