/* =====================================================
   CATBULLS — VIBRANT PET DESIGN SYSTEM
===================================================== */

/* ---------- 1. VARIABLES ---------- */
:root {
  --cream: #FFF9F2;
  --cream-soft: #FFF2E4;
  --ink: #2E2420;
  --muted: #786D64;

  --coral: #FF6B4A;
  --coral-dark: #E85A3B;
  --teal: #17B8A6;
  --teal-dark: #109A8B;
  --yellow: #FFC93C;
  --pink: #FF8FB1;

  --white: #FFFFFF;
  --border: rgba(46, 36, 32, 0.08);
  --border-strong: rgba(46, 36, 32, 0.14);
  --shadow-sm: 0 6px 18px rgba(46, 36, 32, 0.06);
  --shadow-md: 0 16px 36px rgba(46, 36, 32, 0.10);
  --shadow-lg: 0 24px 55px rgba(255, 107, 74, 0.18);

  --font-body: 'Inter', sans-serif;
  --font-head: 'Baloo 2', 'Poppins', sans-serif;

  --radius: 26px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }

::selection { background: var(--coral); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--coral); border-radius: 10px; }

/* ---------- 3. LAYOUT / UTILITIES ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

.section-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 20px; flex-wrap: wrap; }
.section-title h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-top: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, rgba(255,107,74,0.12), rgba(255,201,60,0.16));
  border: 1px solid rgba(255,107,74,0.25);
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
}

.page-content { padding: 60px 0 100px; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 16px; }
.muted { color: var(--muted); }

/* ---------- 4. HEADER / NAV ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 242, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  flex-wrap: nowrap;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--coral);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu { min-width: 0; overflow: hidden; }
.nav-menu ul { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); flex-wrap: nowrap; white-space: nowrap; }
.nav-menu a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--coral);
  border-radius: 2px;
  transition: width 0.25s var(--ease);
}
.nav-menu a:hover { color: var(--coral-dark); }
.nav-menu a:hover::after { width: 100%; }

.search-bar {
  display: flex;
  align-items: center;
  height: 46px;
  flex-shrink: 0;
  width: 200px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow-sm);
}
.search-bar input {
  border: none; outline: none; background: transparent;
  font-size: 10px; width: 100%; height: 100%; font-family: inherit; color: var(--ink);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--muted); }
.search-bar button {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 14px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.search-bar button:hover { background: var(--coral-dark); transform: scale(1.06); }

.mobile-menu-btn {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
}
.mobile-menu-btn span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 22px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.active { display: flex; }
.mobile-menu a { padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--border); }

/* ---------- 5. BUTTONS ---------- */
.btn-primary, .btn-outline, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), #FF8B63);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 74, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(255, 107, 74, 0.42); }

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--border-strong);
}
.btn-outline:hover { border-color: var(--coral); color: var(--coral-dark); transform: translateY(-3px); }

.btn-danger { background: #F25555; color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }

/* ---------- 6. HERO ---------- */
.hero { padding: 70px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(255,201,60,0.35), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -160px; left: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(23,184,166,0.22), transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }

.hero-left h1 { font-size: clamp(2.3rem, 4.5vw, 3.4rem); margin: 20px 0 18px; }
.hero-left h1 span { color: var(--coral); }
.hero-left p { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-search {
  display: flex;
  align-items: center;
  height: 62px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
}
.hero-search input {
  flex: 1; height: 100%; border: none; outline: none; background: transparent;
  padding: 13px 18px; font-size: 15px; font-family: inherit;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search .btn-primary { height: 100%; padding: 0 30px; }

.popular-searches { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.popular-searches span { color: var(--muted); font-weight: 600; }
.popular-searches a {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s var(--ease);
}
.popular-searches a:hover { border-color: var(--coral); color: var(--coral-dark); }

.hero-right { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-right img {
  width: 100%;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-size: 1.4rem;
  animation: floaty 4s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 1rem; font-family: var(--font-head); }
.floating-card span { display: block; font-size: 0.76rem; color: var(--muted); font-weight: 500; }

.floating-card.card-1 { top: 6%; left: -4%; animation-delay: 0s; }
.floating-card.card-2 { top: 42%; right: -6%; animation-delay: 1.2s; }
.floating-card.card-3 { bottom: 4%; left: 6%; animation-delay: 2.1s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- 7. CATEGORY STRIP ---------- */
.category-strip { padding: 30px 0; }
.category-strip-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.category-strip-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  transition: all 0.25s var(--ease);
}
.category-strip-grid a:hover {
  transform: translateY(-5px);
  border-color: var(--coral);
  background: var(--cream-soft);
  box-shadow: var(--shadow-sm);
}

/* ---------- 8. FEATURED LAYOUT ---------- */
.featured-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }

.featured-main, .featured-small, .trending-main, .trending-item, .pet-card, .article-card, .amazon-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.featured-main:hover, .trending-main:hover, .pet-card:hover, .article-card:hover, .amazon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.featured-main { position: relative; display: block; min-height: 420px; }
.featured-main img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.featured-main .overlay {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 30px;
  background: linear-gradient(to top, rgba(20,14,10,0.92), rgba(20,14,10,0.15) 70%, transparent);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}
.featured-main .overlay h2 { color: #fff; font-size: 1.6rem; margin: 10px 0 8px; }
.featured-main .overlay p { color: rgba(255,255,255,0.82); font-size: 0.95rem; max-width: 90%; }
.featured-main .overlay .meta { color: rgba(255,255,255,0.65); font-size: 0.82rem; margin-top: 14px; }

.category {
  display: inline-block;
  background: var(--coral);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.featured-side { display: flex; flex-direction: column; gap: 20px; }
.featured-small { display: flex; gap: 14px; padding: 14px; align-items: center; }
.featured-small img { width: 90px; height: 90px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.featured-small h3 { font-size: 0.98rem; margin: 6px 0 4px; }
.featured-small small { color: var(--muted); font-size: 0.78rem; }

/* ---------- 9. PET GRID ---------- */
.pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pet-card { position: relative; display: block; height: 260px; }
.pet-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.pet-card:hover img { transform: scale(1.08); }
.pet-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,14,10,0.85), transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff;
}
.pet-overlay h3 { color: #fff; font-size: 1.2rem; margin-bottom: 6px; }
.pet-overlay p { color: rgba(255,255,255,0.82); font-size: 0.85rem; }

/* ---------- 10. TRENDING LAYOUT ---------- */
.trending-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.trending-main { position: relative; display: block; min-height: 420px; }
.trending-main img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.trending-main .overlay {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(to top, rgba(20,14,10,0.92), rgba(20,14,10,0.15) 70%, transparent);
  color: #fff;
}
.trending-main .overlay h2 { color: #fff; font-size: 1.6rem; margin: 10px 0 8px; }
.trending-main .overlay p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.article-meta { display: flex; gap: 14px; margin-top: 14px; font-size: 0.82rem; color: rgba(255,255,255,0.68); }
.trending-list { display: flex; flex-direction: column; gap: 16px; }
.trending-item { display: flex; gap: 14px; padding: 12px; align-items: center; }
.trending-item img { width: 84px; height: 84px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.trending-item h3 { font-size: 0.95rem; margin: 5px 0 4px; }
.trending-item small { color: var(--muted); font-size: 0.78rem; }
.trending-item .article-meta { color: var(--muted); }

/* ---------- 11. PRODUCTS / AMAZON CARDS ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.amazon-card { position: relative; padding: 18px; text-align: left; }
.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--yellow); color: #4A3600;
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius-pill);
}
.wishlist {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
  color: #ccc; font-size: 15px;
  transition: color 0.2s var(--ease);
}
.wishlist:hover { color: var(--pink); }
.amazon-card > img { width: 100%; height: 160px; object-fit: contain; background: var(--cream-soft); border-radius: var(--radius-sm); margin-bottom: 16px; }
.amazon-content small { color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.amazon-content h3 { font-size: 1rem; margin: 6px 0 8px; }
.rating { color: var(--yellow); font-size: 0.85rem; margin-bottom: 10px; }
.rating span { color: var(--muted); font-size: 0.78rem; margin-left: 4px; }
.amazon-content p { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.price { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--coral); margin-bottom: 14px; }
.amazon-content .btn-primary { width: 100%; padding: 12px; }
.affiliate-note { text-align: center; color: var(--muted); font-size: 0.82rem; margin-top: 30px; }

/* ---------- 12. ARTICLES GRID ---------- */
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.article-card img { width: 100%; height: 170px; object-fit: cover; }
.article-body { padding: 18px; }
.article-body h3 { font-size: 1rem; margin: 10px 0 8px; line-height: 1.35; }
.article-body p { color: var(--muted); font-size: 0.87rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.article-body .article-meta { color: var(--muted); font-size: 0.78rem; }


/* ---------- 12b. SINGLE ARTICLE PAGE (2 sidebars) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px) 300px;
  gap: 36px;
  justify-content: center;
  align-items: start;
  padding: 40px 0 90px;
}

.article-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }

.toc-box, .sidebar-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.toc-box h4, .sidebar-box h4 { font-size: 0.95rem; margin-bottom: 14px; }
.toc-box ul { display: flex; flex-direction: column; gap: 10px; }
.toc-box a { font-size: 0.85rem; color: var(--muted); line-height: 1.4; display: block; }
.toc-box a:hover { color: var(--coral-dark); }

.related-list { display: flex; flex-direction: column; gap: 14px; }
.related-item { display: flex; gap: 10px; align-items: center; }
.related-item img, .related-item .thumb-placeholder {
  width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  background: var(--cream-soft);
}
.related-item h5 { font-size: 0.85rem; line-height: 1.3; }
.related-item h5 a { color: var(--ink); }
.related-item h5 a:hover { color: var(--coral-dark); }

.sidebar-newsletter { background: linear-gradient(145deg, var(--coral), #FF8B63); color: #fff; text-align: center; }
.sidebar-newsletter h4 { color: #fff; }
.sidebar-newsletter p { color: rgba(255,255,255,0.85); font-size: 0.82rem; margin-bottom: 14px; }
.sidebar-newsletter input { margin-bottom: 10px !important; border: none !important; }
.sidebar-newsletter .btn-primary { width: 100%; background: #fff; color: var(--coral-dark); box-shadow: none; }

.article-main { min-width: 0; }
.article-hero-img { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow-md); }
.article-main .category { margin-bottom: 14px; }
.article-main h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.article-top-meta { display: flex; gap: 16px; color: var(--muted); font-size: 0.88rem; margin-bottom: 30px; flex-wrap: wrap; }

.article-content { font-size: 1.05rem; color: #4A4038; }
.article-content h2 { font-size: 1.5rem; margin: 34px 0 14px; }
.article-content h3 { font-size: 1.2rem; margin: 26px 0 12px; }
.article-content p { margin-bottom: 18px; }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content li { margin-bottom: 8px; }
.article-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.article-content a { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote {
  border-left: 3px solid var(--coral);
  padding: 12px 20px; margin: 20px 0;
  color: var(--muted); font-style: italic;
  background: var(--cream-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.subcategory-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 10px; }
.subcategory-pills a {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
  transition: all 0.2s var(--ease);
}
.subcategory-pills a.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.subcategory-pills a:hover { border-color: var(--coral); color: var(--coral-dark); }

.category-card .sub-count { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 6px; }
.category-group { margin-bottom: 44px; }
.category-group-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.category-group-header h2 { font-size: 1.3rem; }

/* ---------- 13. GENERIC CARD / GRIDS (community, categories, about) ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.community-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 30px; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; margin-top: 30px; }
.category-card {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 30px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease);
}
.category-card h3 { font-size: 1.05rem; }
.category-card:hover { transform: translateY(-5px); border-color: var(--coral); box-shadow: var(--shadow-md); color: var(--coral-dark); }

.about-hero { text-align: center; margin-bottom: 50px; padding-top: 20px; }
.about-hero h1 { font-size: 2.4rem; }
.about-hero p { font-size: 1.1rem; color: var(--muted); max-width: 700px; margin: 20px auto 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.about-grid h2 { font-size: 1.7rem; margin-bottom: 14px; }
.about-grid p { color: var(--muted); }
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 40px 0; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--coral); }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.contact-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); max-width: 560px; }
.contact-box p { margin-bottom: 10px; }

.legal-content { max-width: 780px; }
.legal-content h2 { margin: 30px 0 12px; font-size: 1.3rem; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 12px; }

/* ---------- 14. FORMS ---------- */
form input[type="text"], form input[type="email"], form input[type="password"],
form input[type="url"], form input[type="number"], form textarea, form select {
  width: 100%; 
  padding: 13px 18px; 
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s var(--ease);
}
form input:focus, form textarea:focus, form select:focus { border-color: var(--coral); }
form input::placeholder, form textarea::placeholder { color: var(--muted); }
form textarea { resize: vertical; min-height: 120px; }

/* ---------- 15. FOOTER ---------- */
.footer { margin-top: 100px; background: var(--ink); color: rgba(255,255,255,0.75); padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer p { font-size: 0.88rem; line-height: 1.6; }
.footer a { display: block; font-size: 0.88rem; margin-bottom: 10px; color: rgba(255,255,255,0.7); transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--coral); }
.footer form { display: flex; gap: 8px; margin-top: 10px; }
.footer form input { flex: 1; margin-bottom: 0; padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.08); color: #fff; }
.footer form input::placeholder { color: rgba(255,255,255,0.5); }
.footer form .btn-primary { padding: 11px 18px; font-size: 0.85rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding: 22px 24px; text-align: center; font-size: 0.82rem; }
.copyright a { display: inline; color: rgba(255,255,255,0.5); }

#backTop {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease);
}
#backTop:hover { transform: translateY(-4px); }

/* ---------- 16. ANIMATION ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-up.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .article-sidebar.right { display: none; }
}

@media (max-width: 1080px) {
  .pet-grid, .products-grid, .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .category-strip-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 940px) {
  .hero-grid, .featured-layout, .trending-layout, .about-grid { grid-template-columns: 1fr; }
  .nav-menu { display: none; }
  .search-bar:not(.search-bar-mobile) { display: none; }
  .mobile-menu-btn { display: flex; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

@media (max-width: 620px) {
  .pet-grid, .products-grid, .articles-grid, .category-strip-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  div[style*="grid-template-columns:1fr 1.3fr"] { grid-template-columns: 1fr !important; }
}

