/*
Theme Name: MeowStore
Theme URI: https://meow.co
Author: MeowStore Team
Author URI: https://meow.co
Description: Custom WordPress theme for MeowStore cat accessories, inspired by Bark.co layout and styling. WooCommerce ready for one-time purchases.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meowstore
Tags: e-commerce, woocommerce, custom-background, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #fbfbff;
  color: #142535;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1a4e8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0.75rem 1.5rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}
.site-logo img { height: 36px; width: auto; }
.main-nav { display: flex; gap: 1.5rem; align-items: center; }
.nav-item { position: relative; }
.nav-item > a { font-weight: 600; color: #142535; }
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  min-width: 220px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.nav-item:hover .dropdown { display: block; }
.dropdown h4 { margin: 0.5rem 0 0.25rem; font-size: 0.85rem; text-transform: uppercase; color: #666; }
.dropdown a { display: block; padding: 0.25rem 0; color: #142535; }
.header-actions { display: flex; gap: 1rem; align-items: center; }
.header-actions a, .header-actions button { background: none; border: none; cursor: pointer; font-size: 1.2rem; }

/* Hero / Homepage sections */
.hero { padding: 3rem 1.5rem; text-align: center; background: #fff; }
.section { padding: 3rem 1.5rem; max-width: 1400px; margin: 0 auto; }
.section-title { font-size: 1.75rem; margin-bottom: 1.5rem; font-weight: 700; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.product-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-card .info { padding: 0.75rem; }
.product-card h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.price { font-weight: 600; }
.btn {
  display: inline-block;
  background: #1a4e8a;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { background: #00afd7; }

/* Footer */
.site-footer {
  background: #142535;
  color: #fff;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.newsletter { margin-bottom: 2rem; }
.newsletter input { padding: 0.6rem; width: 280px; margin-right: 0.5rem; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a { color: #ccc; }

/* WooCommerce overrides */
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.woocommerce ul.products li.product { width: 100% !important; margin: 0 !important; }
.woocommerce div.product .product_title { font-size: 1.8rem; }
.woocommerce div.product form.cart { margin-top: 1.5rem; }
.woocommerce .quantity .qty { width: 60px; }

/* Search page */
.search-results .product-grid { margin-top: 2rem; }

/* Company cats / about style */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.team-card { background: #fff; padding: 1.5rem; border-radius: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; margin-top: 0.5rem; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
