/* =============================================
   Phyto Commerce — Main Stylesheet v1.0.0
   GPL v2 — Phyto Evolution Pvt Ltd
   ============================================= */

/* --- Variables (overridden by child themes) --- */
:root {
  --pc-primary:       #2d6a4f;
  --pc-primary-dark:  #1b4332;
  --pc-primary-light: #95d5b2;
  --pc-primary-pale:  #f0f7f4;
  --pc-text:          #1a1a1a;
  --pc-text-light:    #6b7280;
  --pc-bg:            #ffffff;
  --pc-bg-alt:        #f8faf9;
  --pc-border:        #e5e7eb;
  --pc-font-head:     'Cormorant Garamond', Georgia, serif;
  --pc-font-body:     'Nunito', system-ui, sans-serif;
  --pc-max-width:     1200px;
  --pc-radius:        8px;
  --pc-shadow:        0 2px 8px rgba(0,0,0,.07);
  --pc-shadow-lg:     0 8px 28px rgba(0,0,0,.11);
  --pc-transition:    .2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; }

/* --- Base --- */
body {
  font-family: var(--pc-font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--pc-text);
  background: var(--pc-bg);
}

a { color: var(--pc-primary); text-decoration: none; transition: color var(--pc-transition); }
a:hover { color: var(--pc-primary-dark); }

h1,h2,h3,h4,h5,h6 {
  font-family: var(--pc-font-head);
  line-height: 1.2;
  color: var(--pc-text);
  font-weight: 600;
}
h1 { font-size: clamp(2rem,   5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem);  }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

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

/* --- Layout helpers --- */
.pc-container {
  max-width: var(--pc-max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.pc-section { padding: 72px 0; }
.pc-section-alt { background: var(--pc-bg-alt); }

/* --- Buttons --- */
.pc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--pc-radius);
  font-size: .95rem;
  font-weight: 600;
  font-family: var(--pc-font-body);
  cursor: pointer;
  transition: all var(--pc-transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.pc-btn-primary {
  background: var(--pc-primary);
  color: #fff;
  border-color: var(--pc-primary);
}
.pc-btn-primary:hover {
  background: var(--pc-primary-dark);
  border-color: var(--pc-primary-dark);
  color: #fff;
}
.pc-btn-outline {
  background: transparent;
  color: var(--pc-primary);
  border-color: var(--pc-primary);
}
.pc-btn-outline:hover {
  background: var(--pc-primary);
  color: #fff;
}

/* =============================================
   HEADER
   ============================================= */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--pc-border);
  transition: box-shadow var(--pc-transition);
}
.pc-header.scrolled { box-shadow: var(--pc-shadow); }

.pc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.pc-logo a,
.pc-logo .custom-logo-link {
  display: flex;
  align-items: center;
  font-family: var(--pc-font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pc-text);
  letter-spacing: -.01em;
}
.pc-logo img,
.pc-logo .custom-logo { height: 48px; width: auto; }

/* Primary Nav */
.pc-nav { flex: 1; display: flex; justify-content: center; }
.pc-nav-list {
  display: flex;
  list-style: none;
  gap: 4px;
  padding: 0;
  margin: 0;
}
.pc-nav-list > li > a {
  display: block;
  padding: 8px 14px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--pc-text);
  border-radius: 6px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pc-nav-list > li > a:hover,
.pc-nav-list > li.current-menu-item > a {
  color: var(--pc-primary);
  background: var(--pc-primary-pale);
}

/* Header actions */
.pc-header-actions { display: flex; align-items: center; gap: 12px; }

.pc-cart-link {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--pc-text);
  padding: 4px;
}
.pc-cart-link:hover { color: var(--pc-primary); }
.pc-cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--pc-primary);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--pc-font-body);
}

/* Hamburger */
.pc-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  width: 36px; height: 36px;
}
.pc-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--pc-text);
  border-radius: 2px;
  transition: all .25s;
}
.pc-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pc-hamburger.active span:nth-child(2) { opacity: 0; }
.pc-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.pc-mobile-nav {
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--pc-border);
  padding: 16px 24px 24px;
  transform: translateY(-110%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 199;
  box-shadow: var(--pc-shadow-lg);
}
.pc-mobile-nav.open { transform: translateY(0); }
.pc-mobile-nav-list { list-style: none; padding: 0; }
.pc-mobile-nav-list li a {
  display: block;
  padding: 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pc-text);
  border-bottom: 1px solid var(--pc-border);
}
.pc-mobile-nav-list li:last-child a { border-bottom: none; }

.pc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 198;
}
.pc-overlay.show { display: block; }

/* =============================================
   MAIN
   ============================================= */
.pc-main { min-height: 60vh; }
.pc-content-wrap { padding: 56px 0; }
.pc-page-wrap { padding: 56px 0; max-width: 800px; }
.pc-page-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--pc-primary-pale);
}

.pc-entry-content h2,
.pc-entry-content h3 { margin: 2rem 0 1rem; }
.pc-entry-content ul,
.pc-entry-content ol { margin-bottom: 1.25rem; }
.pc-entry-content img { border-radius: var(--pc-radius); margin: 1.5rem 0; }
.pc-entry-content blockquote {
  border-left: 4px solid var(--pc-primary);
  padding: 12px 24px;
  margin: 1.5rem 0;
  background: var(--pc-primary-pale);
  border-radius: 0 var(--pc-radius) var(--pc-radius) 0;
  font-style: italic;
  color: var(--pc-text-light);
}

/* =============================================
   BLOG — Index / Archive
   ============================================= */
.pc-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }

.pc-post-card {
  background: var(--pc-bg);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  overflow: hidden;
  transition: box-shadow var(--pc-transition), transform var(--pc-transition);
}
.pc-post-card:hover {
  box-shadow: var(--pc-shadow-lg);
  transform: translateY(-3px);
}
.pc-post-thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.pc-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pc-post-card:hover .pc-post-thumb img { transform: scale(1.04); }

.pc-post-body { padding: 24px; }
.pc-post-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--pc-text-light); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
.pc-post-cat a { color: var(--pc-primary); font-weight: 700; }
.pc-post-title { margin-bottom: 10px; }
.pc-post-title a { color: var(--pc-text); }
.pc-post-title a:hover { color: var(--pc-primary); }
.pc-post-excerpt { color: var(--pc-text-light); font-size: .95rem; margin-bottom: 16px; }

/* Pagination */
.nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  font-weight: 600; font-size: .9rem;
  color: var(--pc-text);
  transition: all var(--pc-transition);
}
.page-numbers:hover,
.page-numbers.current {
  background: var(--pc-primary); color: #fff; border-color: var(--pc-primary);
}

/* =============================================
   SINGLE POST
   ============================================= */
.pc-single-wrap { padding: 56px 0; max-width: 780px; }
.pc-single-header { margin-bottom: 40px; }
.pc-single-title { font-size: clamp(1.8rem, 4vw, 3rem); margin: 16px 0 24px; }
.pc-single-thumb { border-radius: var(--pc-radius); overflow: hidden; margin-bottom: 40px; }
.pc-single-thumb img { width: 100%; }
.pc-single-content { font-size: 1.05rem; }
.pc-single-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--pc-border); }
.pc-post-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.pc-post-nav a { color: var(--pc-primary); font-weight: 600; }

/* =============================================
   FOOTER
   ============================================= */
.pc-footer { background: var(--pc-text); color: rgba(255,255,255,.75); margin-top: 72px; }

.pc-footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding: 56px 24px;
}
.pc-footer-brand .pc-footer-logo {
  font-family: var(--pc-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 12px;
}
.pc-footer-brand .custom-logo-link img { filter: brightness(0) invert(1); height: 40px; width: auto; margin-bottom: 12px; }
.pc-footer-tagline { font-size: .9rem; line-height: 1.6; }

.pc-footer .widget-title { color: #fff; font-family: var(--pc-font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.pc-footer ul { list-style: none; padding: 0; }
.pc-footer ul li { margin-bottom: 8px; }
.pc-footer ul li a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--pc-transition); }
.pc-footer ul li a:hover { color: var(--pc-primary-light); }

.pc-footer-bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 18px 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  text-align: center;
}
.pc-footer-bar a { color: rgba(255,255,255,.65); }
.pc-footer-bar a:hover { color: var(--pc-primary-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .pc-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .pc-nav { display: none; }
  .pc-hamburger { display: flex; }
  .pc-footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 40px 24px; }
  .pc-posts { grid-template-columns: 1fr; }
  .pc-section { padding: 48px 0; }
  .pc-container { padding: 0 16px; }
  .pc-header-inner { height: 60px; }
  .pc-mobile-nav { top: 60px; }
  .pc-single-wrap,
  .pc-page-wrap { padding: 32px 0; }
  h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); }
}

@media (max-width: 480px) {
  .pc-footer-bar { font-size: .75rem; padding: 14px 16px; }
  .pc-btn { padding: 10px 20px; font-size: .88rem; }
}
