/* ── Reset & Variables ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #E07B39;
  --primary-dark:  #C45E1F;
  --primary-light: #FFEDE0;
  --secondary:     #6B3F1F;
  --accent:        #F5C518;
  --bg:            #FFF8F0;
  --card:          #FFFFFF;
  --text:          #2C1810;
  --muted:         #7A5C4E;
  --border:        #F0DDD0;
  --shadow:        0 4px 20px rgba(180,80,20,.10);
  --shadow-h:      0 10px 40px rgba(180,80,20,.22);
  --radius:        16px;
  --radius-sm:     8px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .9rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}
.logo-icon { font-size: 1.9rem; }
.logo-text {
  font-size: 1.55rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .95rem;
  transition: color .2s;
}
.nav a:hover { color: var(--primary); }
.cart-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .55rem 1.2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s, transform .1s;
}
.cart-btn:hover { background: var(--primary-dark); transform: scale(1.03); }
.cart-count {
  background: var(--accent);
  color: #333;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 900;
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff3e8 0%, #ffeedd 50%, #fff8f0 100%);
  padding: 5.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}
.hero-paws {
  font-size: 2.4rem;
  margin-bottom: .9rem;
  animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin: 0 auto 2rem;
}
.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-decoration: none;
  padding: .9rem 2.4rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(224,123,57,.4);
  transition: transform .2s, box-shadow .2s;
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(224,123,57,.5); }
.hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  font-size: 2rem;
  opacity: .12;
  animation: float 6s ease-in-out infinite;
}
.s1 { top: 20%; left: 5%;  animation-delay: 0s;   }
.s2 { top: 65%; left: 8%;  animation-delay: 1.2s; }
.s3 { top: 18%; right: 6%; animation-delay: 2s;   }
.s4 { top: 65%; right: 8%; animation-delay: .6s;  }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg);   }
  50%      { transform: translateY(-14px) rotate(15deg); }
}

/* ── Stats Bar ─────────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--secondary);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.stat { font-weight: 600; font-size: .92rem; }
.stat strong { font-weight: 900; }
.divider { opacity: .4; }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Products Section ──────────────────────────────────────────────────────── */
.products-section { padding: 4rem 0 5rem; }
.section-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--secondary);
  text-align: center;
  margin-bottom: .4rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

/* Filters */
.filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.filter-btn {
  background: #fff;
  border: 2px solid var(--border);
  color: var(--muted);
  padding: .55rem 1.2rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(224,123,57,.32);
}

/* Search */
.search-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.search-wrap input {
  width: 100%;
  max-width: 420px;
  padding: .72rem 1.3rem;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  outline: none;
  background: #fff;
  transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--primary); }

/* Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.5rem;
}

/* Card */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-h); }
.product-card.hidden { display: none; }
.product-card.fade-in { animation: fadeIn .28s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.badge {
  position: absolute;
  top: 11px;
  left: 11px;
  background: var(--primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  padding: .18rem .55rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: .5px;
  z-index: 2;
}
.product-emoji {
  background: linear-gradient(135deg, var(--primary-light), #fff3e8);
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}
.product-info {
  padding: 1.15rem 1.2rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: .3rem;
}
.product-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .35rem;
  line-height: 1.3;
}
.product-rating {
  display: flex;
  align-items: center;
  gap: .25rem;
  margin-bottom: .5rem;
}
.star.full  { color: var(--accent); }
.star.half  { color: var(--accent); opacity: .7; }
.star.empty { color: #ddd; }
.review-count { font-size: .78rem; color: var(--muted); }
.product-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 1rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}
.product-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--secondary);
}
.btn-cart {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: .5rem .95rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .12s;
}
.btn-cart:hover  { background: var(--primary-dark); }
.btn-cart:active { transform: scale(.95); }

/* No results */
.no-results {
  text-align: center;
  padding: 4rem;
  color: var(--muted);
}
.no-results span { font-size: 4rem; display: block; margin-bottom: 1rem; }

/* ── About ─────────────────────────────────────────────────────────────────── */
.about-section {
  background: linear-gradient(135deg, #fff3e8, #fff8f0);
  padding: 5rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-text h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.about-text p { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.02rem; }
.about-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.about-list li { font-weight: 700; font-size: .93rem; }
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about-card {
  background: #fff;
  padding: 1.3rem;
  border-radius: var(--radius);
  text-align: center;
  font-size: .88rem;
  line-height: 1.7;
  box-shadow: var(--shadow);
}
.about-card strong { color: var(--secondary); font-weight: 900; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer { background: var(--secondary); color: #fff; padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}
.footer-logo { font-size: 1.5rem; font-weight: 900; margin-bottom: .8rem; }
.footer-tagline { opacity: .65; font-size: .88rem; line-height: 1.6; }
.footer h4 {
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .7;
  margin-bottom: .9rem;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer ul a, .footer p {
  color: #fff;
  opacity: .65;
  text-decoration: none;
  font-size: .88rem;
  transition: opacity .2s;
}
.footer ul a:hover { opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0;
  text-align: center;
  font-size: .82rem;
  opacity: .5;
}

/* ── Cart Sidebar ──────────────────────────────────────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  z-index: 200;
  animation: fadeOverlay .2s ease;
}
.cart-overlay.show { display: block; }
@keyframes fadeOverlay { from { opacity: 0 } to { opacity: 1 } }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 390px;
  max-width: 100vw;
  height: 100dvh;
  background: #fff;
  z-index: 201;
  box-shadow: -4px 0 40px rgba(0,0,0,.14);
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { right: 0; }
.cart-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h3 { font-size: 1.15rem; font-weight: 800; }
.cart-close {
  background: none;
  border: none;
  font-size: 1.15rem;
  cursor: pointer;
  color: var(--muted);
  padding: .3rem .45rem;
  border-radius: 6px;
  transition: background .2s;
}
.cart-close:hover { background: var(--border); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.cart-empty span { font-size: 3.5rem; display: block; margin-bottom: .9rem; }
.cart-empty p { font-size: .9rem; }
.cart-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .7rem;
}
.cart-item-emoji { font-size: 1.8rem; width: 42px; text-align: center; }
.cart-item-info { flex: 1; }
.cart-item-name  { font-weight: 700; font-size: .88rem; line-height: 1.3; }
.cart-item-price { color: var(--primary); font-weight: 700; font-size: .88rem; margin-top: .1rem; }
.cart-item-qty   { color: var(--muted); font-size: .8rem; }
.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: .35;
  transition: opacity .2s;
  padding: .2rem;
}
.cart-item-remove:hover { opacity: 1; }
.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 2px solid var(--border);
}
.cart-total { font-size: 1.05rem; font-weight: 700; margin-bottom: .9rem; text-align: right; }
.cart-total strong { color: var(--primary); font-size: 1.25rem; }
.btn-checkout {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  padding: .95rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(224,123,57,.4); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; gap: .8rem; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .cart-btn { margin-left: auto; }
  .stats-bar { gap: 1rem; padding: .8rem 1rem; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.5rem; }
  .container { padding: 0 1rem; }
}
