/*
Theme Name: Smart Pawz
Theme URI: https://smartpawz.net
Author: SmartPawz
Author URI: https://smartpawz.net
Description: Lightweight affiliate-friendly theme for SmartPawz Pet Tech. Includes a ready-made homepage.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smartpawz
Tags: one-column, custom-menu, blog, responsive, translation-ready
*/

/* Basic theme styles */
body { font-family: Roboto, Arial, sans-serif; color: #222222; margin:0; padding:0; background:#F9F9F9; }
a { color: #4DD0E1; text-decoration:none; }
.container { max-width:1100px; margin:0 auto; padding:0 1rem; }
.site-header { background:#fff; border-bottom:1px solid #eee; padding:1rem 0; }
.site-logo img { height:56px; }
.hero { background-size:cover; padding:4rem 1rem; color:#fff; text-align:center; }
.btn-primary { background:#FF6F61; color:#fff; padding:0.9rem 1.4rem; border-radius:8px; display:inline-block; }
.section { padding:3rem 0; }
.products-grid, .guides-grid { display:grid; grid-gap:1.5rem; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.product-box, .guide-box { background:#fff; padding:1rem; border-radius:10px; box-shadow:0 2px 10px rgba(0,0,0,0.06); text-align:center; }
.email-signup { background:#FF6F61; color:#fff; padding:2rem; border-radius:10px; text-align:center; }
.site-footer { background:#222; color:#fff; padding:2rem 0; text-align:center; }
@media (max-width:600px) {
  .site-logo img { height:40px; }
  .hero { padding:3rem 1rem; }
}


/* --- SmartPawz header/footer additions --- */

/* ----- SmartPawz header & nav styles (appended) ----- */
:root{
  --sp-navy:#21323a;
  --sp-coral:#ff6b61;
  --sp-muted:#6b7a80;
}

.sp-header{width:100%;background:#fff;box-shadow:none;border-bottom:1px solid #f0f0f0;position:relative;z-index:40}
.sp-header-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;padding:14px 20px;gap:16px}
.sp-brand{flex:0 0 30%;min-width:160px} /* logo area approx 30% */
.sp-logo-link{display:inline-block;height:100%}
.sp-logo{max-width:100%;height:auto;display:block;}

/* Navigation */
.sp-nav{flex:1;display:flex;justify-content:flex-end;align-items:center}
.sp-menu{list-style:none;margin:0;padding:0;display:flex;gap:12px;align-items:center}
.sp-menu li{margin:0}
.sp-btn{display:inline-block;padding:10px 14px;border-radius:10px;background:var(--sp-coral);color:#fff;text-decoration:none;font-weight:700;transition:filter .15s ease, transform .08s ease}
.sp-btn:hover,.sp-btn:focus{filter:brightness(0.95);transform:translateY(-1px)}

/* Hamburger - hidden on desktop */
.sp-hamburger{display:none;background:none;border:0;cursor:pointer;padding:8px;border-radius:8px}
.sp-hamburger .sp-hamburger-bar{display:block;width:22px;height:3px;background:var(--sp-navy);margin:4px 0;border-radius:3px}

/* Responsive */
@media (max-width:768px){
  .sp-brand{flex:0 0 auto;width:45%}
  .sp-nav{position:absolute;top:100%;right:0;left:0;background:#fff;border-top:1px solid #f2f2f2;display:none;flex-direction:column;padding:12px 18px;box-shadow:0 12px 24px rgba(0,0,0,0.06)}
  .sp-nav.open{display:flex}
  .sp-menu{flex-direction:column;gap:10px}
  .sp-hamburger{display:block}
  .sp-header-inner{padding:10px 16px}
}

/* Footer cleanup */
.site-footer, footer{padding:20px 0;background:#fff;color:var(--sp-muted);border-top:1px solid #f0f0f0}
.site-footer a, footer a{color:var(--sp-navy);text-decoration:none}
.site-footer a:hover, footer a:hover{color:var(--sp-coral)}

/* Minor global cleanup */
body{font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:var(--sp-navy);line-height:1.45}

/* --- SmartPawz Black Footer --- */
.sp-footer {
  background:#000;
  color:#fff;
  text-align:center;
  padding:28px 12px 22px;
}
.sp-footer a {
  color:#fff;
  text-decoration:none;
  margin:0 12px;
  transition:color .2s ease;
}
.sp-footer a:hover {
  color:#ff857a; /* light coral hover */
}
.sp-footer-links {
  margin-bottom:16px;
}
.sp-social-icons {
  display:flex;
  justify-content:center;
  gap:20px;
  margin-bottom:12px;
}
.sp-social svg {
  width:22px;
  height:22px;
  fill:#fff;
  transition:transform .2s ease, fill .2s ease;
}
.sp-social:hover svg {
  transform:scale(1.1);
  fill:#ff857a;
}
.sp-footer-copy {
  font-size:13px;
  color:#bbb;
  margin-top:8px;
}

/* --- About Page --- */
.sp-about {
  padding: 60px 20px;
  background: #fff;
  color: #21323a;
  text-align: center;
}
.sp-about h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4em;
  color: #21323a;
}
.sp-tagline {
  font-size: 1.1rem;
  color: #6b7a80;
  margin-bottom: 2em;
}
.sp-section {
  max-width: 800px;
  margin: 0 auto 2.5em;
  text-align: left;
}
.sp-section h2 {
  color: #ff6b61;
  border-left: 4px solid #ff6b61;
  padding-left: 10px;
  margin-bottom: 0.5em;
}
.sp-section ul {
  list-style: disc;
  padding-left: 25px;
}

/* --- About Page Photo Section --- */
.sp-photo {
  text-align: center;
  margin-top: 3em;
}
.sp-photo img {
  max-width: 100%;
  border-radius: 10px;
  border: 3px solid #f0f0f0;
  filter: grayscale(100%) contrast(1.1) brightness(1.05);
  transition: transform 0.3s ease;
}
.sp-photo img:hover {
  transform: scale(1.02);
}
.sp-photo figcaption {
  font-size: 0.95rem;
  color: #6b7a80;
  margin-top: 0.8em;
}

/* --- Contact Page --- */
.sp-contact {
  padding: 60px 20px;
  background: #fff;
  color: #21323a;
  text-align: center;
}
.sp-contact h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
.sp-intro {
  color: #6b7a80;
  font-size: 1.1rem;
  margin-bottom: 2em;
}
.sp-contact-info h2 {
  color: #ff6b61;
  margin-bottom: 0.3em;
}
.sp-contact-info a.sp-email {
  color: #21323a;
  text-decoration: none;
  font-weight: 600;
}
.sp-contact-info a.sp-email:hover {
  color: #ff6b61;
}
.sp-contact-form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: left;
}
.sp-contact-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
.sp-contact-form input,
.sp-contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}
.sp-contact-form button.sp-btn {
  background: #ff6b61;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s ease, transform .1s ease;
}
.sp-contact-form button.sp-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* --- Confirmation popup --- */
.sp-confirm {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b61;
  color: #fff;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity .4s ease, transform .3s ease;
  z-index: 1000;
}
.sp-confirm.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.sp-confirm.hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- Privacy Policy Page --- */
.sp-privacy {
  padding: 60px 20px;
  background: #fff;
  color: #21323a;
}
.sp-privacy h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.2em;
}
.sp-privacy h2 {
  color: #ff6b61;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.sp-privacy ul {
  list-style: disc;
  padding-left: 25px;
  margin-top: 0.5em;
}
.sp-privacy a {
  color: #ff6b61;
  text-decoration: none;
}
.sp-privacy a:hover {
  text-decoration: underline;
}


/* --- Terms and Conditions Page --- */
.sp-terms {
  padding: 60px 20px;
  background: #fff;
  color: #21323a;
}
.sp-terms h1 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1.2em;
}
.sp-terms h2 {
  color: #ff6b61;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.sp-terms ul {
  list-style: disc;
  padding-left: 25px;
}
.sp-terms a {
  color: #ff6b61;
  text-decoration: none;
}
.sp-terms a:hover {
  text-decoration: underline;
}

/* --- Reviews Page --- */
.sp-reviews {
  padding: 60px 20px;
  background: #fff;
  color: #21323a;
  text-align: center;
}
.sp-reviews h1 {
  font-size: 2.2rem;
  margin-bottom: 0.4em;
}
.sp-intro {
  font-size: 1.1rem;
  color: #6b7a80;
  margin-bottom: 2.5em;
}
.sp-review-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 3em;
}
.sp-review {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sp-review:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.sp-review-text {
  font-style: italic;
  color: #21323a;
  margin-bottom: 0.8em;
}
.sp-review-author {
  font-weight: 600;
  color: #ff6b61;
}
.sp-review-submit {
  margin-top: 3em;
}
.sp-review-submit a {
  color: #ff6b61;
  text-decoration: none;
  font-weight: 600;
}
.sp-review-submit a:hover {
  text-decoration: underline;
}

.sp-review-image img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #ff6b61;
}
.sp-rating {
  margin-top: 8px;
}
.sp-rating .sp-paw {
  width: 22px;
  height: 22px;
  margin: 0 2px;
  filter: brightness(1);
  transition: transform .2s ease;
}
.sp-rating .sp-paw:hover {
  transform: scale(1.1);
}

/* --- Blog Page --- */
.sp-blog {
  padding: 60px 20px;
  background: #fff;
  color: #21323a;
  text-align: center;
}
.sp-blog h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5em;
}
.sp-intro {
  font-size: 1.1rem;
  color: #6b7a80;
  margin-bottom: 2.5em;
}
.sp-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.sp-blog-card {
  background: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.sp-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
.sp-blog-thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.sp-blog-content {
  padding: 20px;
}
.sp-blog-content h2 a {
  color: #21323a;
  text-decoration: none;
  transition: color .2s ease;
}
.sp-blog-content h2 a:hover {
  color: #ff6b61;
}
.sp-blog-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 1em;
}
.sp-blog-excerpt {
  margin-bottom: 1.5em;
  color: #444;
}
.sp-btn {
  background: #ff6b61;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  transition: filter .2s ease, transform .1s ease;
}
.sp-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
.sp-blog-pagination {
  margin-top: 40px;
}

/* --- Blog Enhancements --- */
.sp-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 60px;
  background: #fdfdfd;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}
.sp-featured-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sp-featured-content {
  text-align: left;
  padding: 30px;
}
.sp-featured-content h2 a {
  color: #21323a;
  text-decoration: none;
  transition: color .2s ease;
}
.sp-featured-content h2 a:hover {
  color: #ff6b61;
}
.sp-featured .sp-btn {
  margin-top: 12px;
}

/* --- Blog Category Filter --- */
.sp-blog-filter {
  text-align: center;
  margin-bottom: 40px;
}
.sp-blog-filter span {
  display: block;
  color: #21323a;
  margin-bottom: 8px;
  font-weight: 600;
}
.sp-blog-filter ul {
  display: inline-flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.sp-blog-filter a {
  color: #21323a;
  background: #f4f4f4;
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.sp-blog-filter a:hover,
.sp-blog-filter a.active {
  background: #ff6b61;
  color: #fff;
}

/* --- Featured Post Badge --- */
.sp-featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff6b61;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 5;
}
.sp-blog-card {
  position: relative; /* ensures badge positions correctly */
}

/* --- Shop Page --- */
.sp-shop {
  padding: 80px 20px;
  background: #fff;
  color: #21323a;
  text-align: center;
}
.sp-shop h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3em;
}
.sp-intro {
  color: #6b7a80;
  margin-bottom: 2.5em;
}
.sp-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  justify-items: center;
}
/* --- Shop Page Cards (with hover animation) --- */
.sp-shop-card {
  background: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
  max-width: 400px;
  cursor: pointer;
  position: relative;
}
.sp-shop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.sp-shop-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .4s ease;
}
.sp-shop-card h2 {
  font-size: 1.4rem;
  margin: 16px 0;
  color: #21323a;
  transition: color .2s ease;
}
/* 🔸 Hover animation */
.sp-shop-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 107, 97, 0.25);
  filter: brightness(1.05);
}
.sp-shop-card:hover img {
  transform: scale(1.05);
}
.sp-shop-card:hover h2 {
  color: #ff6b61;
}
.sp-shop-link {
  text-decoration: none;
}
.sp-shop-card:hover h2 {
  color: #ff6b61;
}

/* --- Shop Subpages (Cats & Dogs) --- */
.sp-shop-section {
  padding: 80px 20px;
  background: #fff;
  color: #21323a;
  text-align: center;
}
.sp-shop-section h1 {
  font-size: 2.2rem;
  margin-bottom: 0.3em;
}
.sp-intro {
  color: #6b7a80;
  margin-bottom: 3em;
}
.sp-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-items: center;
}
.sp-product-card {
  background: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  max-width: 360px;
  text-align: left;
  padding-bottom: 20px;
}
.sp-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.sp-product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.sp-product-card h3 {
  font-size: 1.3rem;
  margin: 16px 20px 10px;
}
.sp-product-card p {
  color: #444;
  font-size: 0.95rem;
  margin: 0 20px 16px;
}
.sp-btn {
  background: #ff6b61;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  margin-left: 20px;
  transition: filter .2s ease, transform .1s ease;
}
.sp-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}
