/*
Theme Name: Hunting Pony
Theme URI: https://huntingpony.com
Author: Hunting Pony
Author URI: https://huntingpony.com
Description: Elegant minimalist pet lifestyle e-commerce theme inspired by Hunting Pony. Warm earth tones, serif typography, and refined whitespace for premium pet brands.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.4
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: huntingpony
Tags: e-commerce, fashion, elegant, minimalist, two-columns, right-sidebar, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, woocommerce
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: #3a322c;
  background-color: #faf8f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #8b7355;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #5c4a3a;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.3;
  color: #2c2420;
  margin-bottom: 1rem;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
}

ul, ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-content {
  min-height: 60vh;
  padding: 4rem 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: #2c2420;
  color: #faf8f5;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.top-bar a {
  color: #faf8f5;
  text-decoration: underline;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #faf8f5;
  padding: 2rem 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid rgba(60, 50, 40, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  text-align: center;
  flex: 1;
}

.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #5c4a3a;
  line-height: 1;
}

.site-logo a {
  color: inherit;
}

.site-description {
  font-size: 0.75rem;
  color: #9a8b7a;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.5rem;
}

.main-navigation a {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a322c;
  font-weight: 400;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #8b7355;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after {
  width: 100%;
}

/* Header Icons */
.header-icons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-icon {
  width: 22px;
  height: 22px;
  cursor: pointer;
  color: #3a322c;
  transition: color 0.3s ease;
}

.header-icon:hover {
  color: #8b7355;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #3a322c;
  margin: 5px 0;
  transition: 0.3s;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  color: #fff;
  max-width: 700px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 300;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #fff;
  color: #3a322c;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

.hero-btn:hover {
  background: transparent;
  color: #fff;
}

/* Hero Dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 10;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dot.active {
  background: #fff;
}

/* ============================================================
   COLLECTION GRID
   ============================================================ */
.collection-section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #9a8b7a;
  font-size: 0.95rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.collection-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  cursor: pointer;
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s;
}

.collection-card:hover .collection-card-overlay {
  background: rgba(0,0,0,0.3);
}

.collection-card-title {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.collection-card-desc {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.collection-card-btn {
  padding: 0.6rem 1.75rem;
  background: #fff;
  color: #3a322c;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.collection-card-btn:hover {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-section {
  padding: 5rem 0;
  background: #f5f1ec;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
}

.product-card {
  text-align: center;
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
}

.product-image-wrap img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #8b7355;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

.product-title {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
  color: #3a322c;
}

.product-price {
  font-size: 0.9rem;
  color: #8b7355;
}

.product-price del {
  color: #b0a598;
  margin-right: 0.4rem;
}

/* ============================================================
   FEATURES / VALUES
   ============================================================ */
.features-section {
  padding: 5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.feature-item {
  padding: 0 1rem;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: #8b7355;
}

.feature-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.feature-desc {
  font-size: 0.88rem;
  color: #9a8b7a;
}

/* ============================================================
   INSTAGRAM SECTION
   ============================================================ */
.instagram-section {
  padding: 4rem 0;
  background: #f5f1ec;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

.instagram-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  filter: grayscale(20%);
  transition: filter 0.3s;
}

.instagram-grid a:hover img {
  filter: grayscale(0%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #2c2420;
  color: #c4b8a8;
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo {
  color: #faf8f5;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: #9a8b7a;
  max-width: 320px;
}

.footer-col h4 {
  color: #faf8f5;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #9a8b7a;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #faf8f5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #7a6f62;
}

/* ============================================================
   BLOG / ARTICLES
   ============================================================ */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background: #fff;
  overflow: hidden;
}

.article-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}

.article-body {
  padding: 1.5rem;
}

.article-category {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.article-excerpt {
  font-size: 0.88rem;
  color: #7a6f62;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-post {
  max-width: 760px;
  margin: 0 auto;
}

.post-thumbnail {
  margin-bottom: 2rem;
}

.post-thumbnail img {
  width: 100%;
}

.post-meta {
  font-size: 0.8rem;
  color: #9a8b7a;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.post-content {
  margin-bottom: 3rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.widget-area {
  padding-left: 2rem;
}

.widget {
  margin-bottom: 2.5rem;
}

.widget-title {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(60,50,40,0.1);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(60,50,40,0.05);
  font-size: 0.9rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border: 1px solid rgba(60,50,40,0.15);
  color: #3a322c;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: #3a322c;
  color: #fff;
  border-color: #3a322c;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid #3a322c;
  background: #3a322c;
  color: #fff;
  transition: all 0.3s ease;
}

.btn:hover {
  background: transparent;
  color: #3a322c;
}

.btn-outline {
  background: transparent;
  color: #3a322c;
}

.btn-outline:hover {
  background: #3a322c;
  color: #fff;
}

/* ============================================================
   WOOCOMMERCE OVERRIDES
   ============================================================ */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  margin: 0.75rem 0 0.35rem;
  color: #3a322c;
}

.woocommerce ul.products li.product .price {
  color: #8b7355;
  font-size: 0.9rem;
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.woocommerce ul.products li.product:hover a img {
  transform: scale(1.04);
}

.woocommerce .button,
.woocommerce button.button {
  background: #3a322c !important;
  color: #fff !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 0.7rem 1.5rem !important;
  border-radius: 0 !important;
  transition: all 0.3s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover {
  background: transparent !important;
  color: #3a322c !important;
  border: 1px solid #3a322c !important;
}

.woocommerce span.onsale {
  background: #8b7355 !important;
  border-radius: 0 !important;
  padding: 0.25rem 0.6rem !important;
  min-height: auto !important;
  min-width: auto !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.08em !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }

  .container {
    padding: 0 1.25rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #faf8f5;
    border-top: 1px solid rgba(60,50,40,0.1);
    padding: 1.5rem;
  }

  .main-navigation.active {
    display: block;
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .hero {
    height: 55vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .widget-area {
    padding-left: 0;
    margin-top: 3rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
