@charset "utf-8";
/* =====================================================================
   REDESIGN LAYER — BestPetSelection "Modern Pet Boutique"
   Loaded last: re-declares the base tokens so every var()-based rule in
   style.css / inner.css / media.css cascades to the new look site-wide.
   ===================================================================== */

:root {
  /* ---- re-mapped base tokens (drive buttons, header, footer, cart, pdp) ---- */
  --ivory: #FBF7EE;
  --background: #F6F0E3;
  --charcoal: #223328;          /* deep forest ink — replaces plain charcoal */
  --gold: #C96A3E;              /* terracotta — replaces gold accent */
  --warm: #E7DCC2;
  --text: #28261F;
  --muted-text: #8A8072;
  --border: rgba(53, 79, 61, 0.22);
  --white: #fff;
  --primary: #C96A3E;
  --orange: #C96A3E;
  --red: #C14A33;

  /* ---- new font pairing: Fraunces (warm, soft serif) + Plus Jakarta Sans ---- */
  --font-serif: "Fraunces", serif;
  --font-sans: "Plus Jakarta Sans", sans-serif;
  --font-display: "Fraunces", serif;

  /* ---- new tokens for this redesign ---- */
  --sage: #5C7A64;
  --sage-deep: #1E2E24;
  --terracotta: #C96A3E;
  --terracotta-light: #E7A46E;
  --cream: #FBF7EE;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 24px 48px -28px rgba(30, 46, 36, 0.45);
  --shadow-pop: 0 14px 30px -12px rgba(201, 106, 62, 0.45);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

::selection { background: var(--terracotta); color: #fff; }

body { background: var(--background); }

/* ---------------------------------------------------------------------
   Buttons — pill shape, sweep fill, lift on hover
   --------------------------------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 16px 34px;
  font-weight: 600;
  letter-spacing: 0.16em;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}
.btn-solid {
  background: linear-gradient(135deg, var(--terracotta), #a9502b);
  color: #fff;
  box-shadow: var(--shadow-pop);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -14px rgba(201, 106, 62, 0.6); background: linear-gradient(135deg, #d87b4f, var(--terracotta)); }
.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: var(--ivory);
  background: transparent;
}
.btn-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn-outline:hover { color: var(--sage-deep); transform: translateY(-3px); }
.btn-outline:hover::before { transform: scaleX(1); }

.quick-add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px !important;
  left: 50% !important;
  width: auto !important;
  min-width: 146px;
  height: 42px !important;
  line-height: 1 !important;
  padding: 0 20px 0 16px;
  bottom: 16px !important;
  background: linear-gradient(135deg, var(--terracotta), #a9502b) !important;
  box-shadow: var(--shadow-pop);
  letter-spacing: 1.5px;
  overflow: hidden;
  transform: translate(-50%, 22px) scale(0.8) !important;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), opacity 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.quick-add::before {
  content: "+";
  flex: none;
  width: 19px; height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  font-size: 14px;
  line-height: 1;
  transition: transform 0.45s var(--ease), background 0.3s ease, color 0.3s ease;
}
.quick-add::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(201, 106, 62, 0.55);
  pointer-events: none;
}
.product-card:hover .quick-add, .quick-add:focus-visible {
  transform: translate(-50%, 0) scale(1) !important;
  opacity: 1;
}
.quick-add:hover {
  background: linear-gradient(135deg, var(--sage), var(--sage-deep)) !important;
  color: var(--ivory) !important;
  box-shadow: 0 16px 30px -12px rgba(30, 46, 36, 0.55);
}
.quick-add:hover::before { transform: rotate(135deg) scale(1.1); background: var(--ivory); color: var(--sage-deep); }
.quick-add:hover::after { animation: quickAddPulse 1.1s ease-out infinite; }

@keyframes quickAddPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
  100% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.header { background: rgba(251, 247, 238, 0.86); border-bottom: 1px solid var(--border); }
.nav a { font-weight: 700; letter-spacing: 1.5px; }
.nav a::after { background: var(--terracotta); height: 3px; border-radius: 3px; }
.nav a:hover, .nav a.is-active { color: var(--terracotta); }
.icon-btn { border-radius: 999px; border-color: var(--border); background: var(--cream); }
.icon-btn:hover { border-color: var(--terracotta); color: var(--terracotta); transform: translateY(-2px) rotate(-4deg); }
.badge-count { background: var(--terracotta); }

/* ---------------------------------------------------------------------
   Hero — floating decorative blobs + staggered reveal
   --------------------------------------------------------------------- */
.hero { isolation: isolate; }
.hero-overlay { background: linear-gradient(135deg, rgba(30, 46, 36, 0.55), rgba(201, 106, 62, 0.25)); }
.hero-content {
  background: rgba(30, 46, 36, 0.38);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 48px clamp(28px, 4vw, 56px) 56px;
  max-width: 680px;
}
.hero-content .eyebrow { color: var(--terracotta-light); }
.hero-content h1 { position: relative; }
.hero-content h1::after {
  content: "";
  display: block;
  width: 86px;
  height: 4px;
  margin-top: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
}
.hero-actions .btn { animation: fadeUp 0.8s var(--ease) both; }
.hero-actions .btn:nth-child(2) { animation-delay: 0.12s; }

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 2;
  pointer-events: none;
  animation: floaty 7s ease-in-out infinite;
}
.hero::before {
  width: 120px; height: 120px;
  top: 14%; right: 10%;
  background: radial-gradient(circle at 30% 30%, rgba(201, 106, 62, 0.55), transparent 70%);
}
.hero::after {
  width: 180px; height: 180px;
  bottom: 10%; right: 22%;
  background: radial-gradient(circle at 30% 30%, rgba(92, 122, 100, 0.5), transparent 70%);
  animation-delay: 1.4s;
  animation-duration: 9s;
}

@keyframes floaty { 0%, 100% { transform: translateY(0) translateX(0); } 50% { transform: translateY(-22px) translateX(10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pawPop { 0% { transform: scale(0.6) rotate(-8deg); opacity: 0; } 100% { transform: scale(1) rotate(0deg); opacity: 1; } }

/* ---------------------------------------------------------------------
   Section heads
   --------------------------------------------------------------------- */
.eyebrow { position: relative; padding-left: 20px; }
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.section-head.center .eyebrow::before { display: none; }
.section-head.center .eyebrow { padding-left: 0; }
.section-head h2 { color: var(--sage-deep); }

/* ---------------------------------------------------------------------
   Category cards — rounded, lifted, icon ring
   --------------------------------------------------------------------- */
.category-grid { gap: 36px 24px; }
.category-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 14px 14px 18px;
  box-shadow: 0 1px 0 var(--border);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.category-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.card-img { border-radius: var(--radius-md); }
.category-card:nth-child(even) { transform: translateY(10px); }
.category-card:nth-child(even):hover { transform: translateY(2px); }
.card-row { border-bottom: none; margin-top: 18px; padding-bottom: 0; }
.card-row h3 { font-weight: 700; color: var(--sage-deep); }
.card-row svg {
  background: var(--terracotta);
  color: #fff;
  border-radius: 50%;
  width: 26px !important; height: 26px !important;
  padding: 5px;
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   Product cards
   --------------------------------------------------------------------- */
.product-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 14px 14px 20px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.product-media { border-radius: var(--radius-md); }
.stars { color: var(--terracotta); font-weight: 700; letter-spacing: 1.6px; font-size: 11px; text-transform: uppercase; }
.product-row h3 { color: var(--sage-deep); }
.price {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(201, 106, 62, 0.12);
  color: var(--terracotta);
}
.wishlist { background: rgba(255,255,255,0.9); }
.wishlist:hover { background: var(--terracotta); color: #fff; }

/* ---------------------------------------------------------------------
   Best Sellers band
   --------------------------------------------------------------------- */
.section-ivory { background: linear-gradient(180deg, var(--cream), var(--warm) 140%); position: relative; }

/* ---------------------------------------------------------------------
   Travel feature — rounded inset panel + swapped rhythm on New Arrivals
   --------------------------------------------------------------------- */
.feature { border-radius: var(--radius-lg); overflow: hidden; margin: 64px auto; max-width: 1400px; }
.feature-img { position: relative; }
.feature-body {
  background: linear-gradient(155deg, var(--sage-deep), #142019);
  position: relative;
}
.feature-body::before {
  content: "“";
  position: absolute;
  top: 18px; left: 28px;
  font-family: var(--font-serif);
  font-size: 90px;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
}
.feature-body .eyebrow.gold { color: var(--terracotta-light); }
.feature-body .eyebrow.gold::before { background: var(--terracotta-light); }

.new-arrivals { align-items: stretch; }
.new-arrivals > .editorial-card { order: 2; }
.new-arrivals > div:not(.editorial-card) { order: 1; display: flex; flex-direction: column; justify-content: center; }
.editorial-card { border-radius: var(--radius-lg); }
.editorial-caption {
  background: linear-gradient(180deg, transparent, rgba(30, 46, 36, 0.75));
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.editorial-caption .eyebrow::before { background: var(--terracotta-light); }

/* ---------------------------------------------------------------------
   Story / values — framed rounded panel, glass cards
   --------------------------------------------------------------------- */
.story {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 64px auto;
  max-width: 1400px;
  min-height: 620px;
}
.story-img { animation: kenBurns 14s ease-in-out infinite alternate; transform-origin: 55% 45%; }
@keyframes kenBurns { from { transform: scale(1); } to { transform: scale(1.12); } }
.story-overlay { background: linear-gradient(200deg, rgba(20, 31, 24, 0.85) 10%, rgba(201, 106, 62, 0.22) 100%); }
.story-content {
  min-height: 620px;
  justify-content: flex-end;
  gap: 32px;
  padding-block: 48px;
}
.story-intro {
  max-width: 600px;
  background: rgba(20, 31, 24, 0.42);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 34px 38px;
}
.story-intro .eyebrow.gold::before { background: var(--terracotta-light); }
.story-intro h2 { position: relative; }
.story-intro h2::after {
  content: "";
  display: block;
  width: 70px; height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--terracotta-light));
}
.story-text { margin-top: 18px; }

.values { border-top: none; padding-top: 0; gap: 16px; }
.values > div {
  background: rgba(20, 31, 24, 0.42);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
}
.values > div:hover { transform: translateY(-6px); background: rgba(201, 106, 62, 0.22); border-color: rgba(201, 106, 62, 0.4); }
.value-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--terracotta-light) !important;
  font-weight: 700;
}
.values h3 { margin-top: 14px; font-size: 18px; }

@media (max-width: 767px) {
  .story { margin: 36px auto; border-radius: var(--radius-md); min-height: auto; }
  .story-content { min-height: auto; padding-block: 36px; }
  .story-intro { padding: 24px 22px; }
}

/* ---------------------------------------------------------------------
   Footer — rounded top, recoloured
   --------------------------------------------------------------------- */
.footer {
  background: linear-gradient(180deg, var(--sage-deep), #121b15);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 40px;
}
.footer h4 { color: var(--terracotta-light); }
.footer a:hover { color: var(--terracotta-light); }
.pay { border-color: rgba(255, 255, 255, 0.4); border-radius: 8px; }

/* ---------------------------------------------------------------------
   Scroll reveal — staggered
   --------------------------------------------------------------------- */
.reveal { transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.category-grid .category-card:nth-child(1) { transition-delay: 0s; }
.category-grid .category-card:nth-child(2) { transition-delay: .06s; }
.category-grid .category-card:nth-child(3) { transition-delay: .12s; }
.category-grid .category-card:nth-child(4) { transition-delay: .18s; }
.category-grid .category-card:nth-child(5) { transition-delay: .24s; }
.category-grid .category-card:nth-child(6) { transition-delay: .3s; }
.product-grid .product-card:nth-child(1) { transition-delay: 0s; }
.product-grid .product-card:nth-child(2) { transition-delay: .08s; }
.product-grid .product-card:nth-child(3) { transition-delay: .16s; }
.product-grid .product-card:nth-child(4) { transition-delay: .24s; }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .hero::before, .hero::after { display: none; }
  .category-card:nth-child(even) { transform: none; }
  .new-arrivals > .editorial-card { order: 1; }
  .new-arrivals > div:not(.editorial-card) { order: 2; }
}
@media (max-width: 767px) {
  .hero-content { padding: 30px 22px 36px; border-radius: var(--radius-md); }
  .footer { border-radius: var(--radius-md) var(--radius-md) 0 0; }
  .feature { margin: 36px auto; border-radius: var(--radius-md); }
}
