/* Pet House — pet-themed product cards, product page and footer */

/* ---------- product card ---------- */
.prod-card {
  position: relative; overflow: hidden; isolation: isolate; padding: 10px; border-radius: 30px;
  background: var(--white); border: 2px solid transparent; box-shadow: var(--shadow-sm);
  transition: translate .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.prod-card:hover { translate: 0 -8px; border-color: var(--orange-soft); box-shadow: 0 22px 44px -18px rgba(138, 51, 7, .28); }
.prod-media { position: relative; border-radius: 22px; overflow: hidden; aspect-ratio: 1; background: #F6E7D6; }
.pet-cat .prod-media { background: #FFE6C7; }
.pet-dog .prod-media { background: #FFF0C2; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--ease), rotate .8s var(--ease); }
.prod-card:hover .prod-media img { scale: 1.08; rotate: -1.5deg; }
.prod-card .prod-tag {
  top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .96); color: var(--brown);
  font-weight: 800; font-size: .78rem; box-shadow: 0 4px 12px -6px rgba(74, 32, 6, .35);
}
[dir="rtl"] .prod-card .prod-tag { padding: 4px 4px 4px 12px; }
.prod-tag svg { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--orange); color: #fff; }
.pet-dog .prod-tag svg { background: #E0A500; }
.pet-both .prod-tag svg { background: var(--brown); }
.prod-card .prod-flag {
  top: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 11px; font-size: .75rem; background: var(--brown); color: #fff;
}
.prod-flag svg { width: 13px; height: 13px; color: #FF9E9E; }
.prod-out {
  position: absolute; inset: auto 10px 10px; padding: 7px; border-radius: 12px; text-align: center;
  background: rgba(46, 20, 5, .82); color: #fff; font-weight: 800; font-size: .82rem;
}
.prod-card.out .prod-media img { filter: grayscale(.6); opacity: .8; }
.prod-card .prod-body { position: relative; z-index: 1; padding: 16px 10px 8px; }
.prod-card .prod-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.prod-cat svg { width: 15px; height: 15px; rotate: -25deg; }
.prod-card h3 { font-size: 1.2rem; margin-top: 4px; }
.card-paw {
  position: absolute; z-index: 0; bottom: -22px; inset-inline-end: -18px; width: 104px; height: 104px;
  color: var(--orange); opacity: .07; rotate: -28deg; pointer-events: none;
  transition: opacity .5s, rotate .6s var(--ease), scale .6s var(--ease);
}
.prod-card:hover .card-paw { opacity: .16; rotate: -8deg; scale: 1.12; }

/* price as a little pet ID tag */
.prod-price.has {
  position: relative; display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.2;
  padding: 6px 14px; padding-inline-start: 26px; border-radius: 14px; background: #FFF1DE;
}
.prod-price.has::before {
  content: ''; position: absolute; top: 50%; inset-inline-start: 9px; width: 9px; height: 9px; translate: 0 -50%;
  border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 2px var(--orange);
}
.prod-price.has b { font-size: 1rem; }
.prod-price.has s { font-size: .74rem; }
.add-btn svg { transition: rotate .35s var(--ease), scale .35s var(--ease); }
.add-btn:hover svg { rotate: -18deg; scale: 1.18; }

.paw-pop {
  position: fixed; z-index: 90; width: 18px; height: 18px; color: var(--orange); pointer-events: none;
  animation: pawpop .9s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes pawpop {
  0% { transform: translate(0, 0) scale(.3); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(1.1); opacity: 0; }
}

/* ---------- product page ---------- */
.pd-stage { position: sticky; top: calc(var(--header-h) + 30px); padding: 6% 6% 9%; }
.pd-blob {
  position: absolute; inset: 2% 4% 6% 2%; z-index: 0; background: linear-gradient(140deg, var(--orange-2), var(--orange));
  border-radius: 46% 54% 40% 60% / 56% 44% 56% 44%; rotate: 6deg; animation: morph 16s ease-in-out infinite;
}
.pd-stage.pet-dog .pd-blob { background: linear-gradient(140deg, #FFD45C, #E9B11F); }
.pd-stage.pet-both .pd-blob { background: linear-gradient(140deg, #FFC27A, #C9692A); }
.pd-stage .pd-media {
  position: relative; top: auto; z-index: 1; border: 8px solid var(--white); border-radius: 38px;
  box-shadow: var(--shadow-lg); rotate: -2deg; transition: rotate .6s var(--ease);
}
.pd-stage:hover .pd-media { rotate: 0deg; }
.pd-paw { position: absolute; z-index: 2; color: var(--brown); opacity: .85; pointer-events: none; }
.pd-paw.a { top: 0; inset-inline-end: 6%; width: 46px; height: 46px; rotate: 20deg; }
.pd-paw.b { top: 34%; inset-inline-start: -1%; width: 30px; height: 30px; rotate: -30deg; color: var(--orange); }
.pd-paw.c { bottom: 2%; inset-inline-end: 22%; width: 26px; height: 26px; rotate: 10deg; opacity: .5; }
.pd-petbadge {
  position: absolute; z-index: 3; bottom: 1%; inset-inline-start: 2%; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-content: center; justify-items: center; gap: 4px; text-align: center;
  background: var(--brown); color: #fff; box-shadow: var(--shadow); border: 5px solid var(--cream);
}
.pd-petbadge svg { width: 36px; height: 36px; color: var(--orange-2); }
.pd-petbadge b { font-family: var(--head); font-size: .9rem; line-height: 1.15; padding-inline: 8px; }
.pd-cat, .pd-flag { display: inline-flex; align-items: center; gap: 6px; }
.pd-cat svg { width: 16px; height: 16px; rotate: -25deg; }
.pd-flag svg { width: 14px; height: 14px; color: #FF9E9E; }
.pd-price-v.has {
  position: relative; padding: 10px 22px; padding-inline-start: 38px; border-radius: 18px; background: #FFF1DE;
}
.pd-price-v.has::before {
  content: ''; position: absolute; top: 50%; inset-inline-start: 14px; width: 12px; height: 12px; translate: 0 -50%;
  border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 3px var(--orange);
}
.pd-facts { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf {
  display: grid; justify-items: start; gap: 2px; padding: 14px; border-radius: 18px; background: var(--white);
  border: 1.5px solid var(--line); transition: border-color .25s, translate .3s var(--ease);
}
a.pf:hover { border-color: var(--orange); translate: 0 -3px; }
.pf-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--orange-soft); color: var(--brown); margin-bottom: 6px; }
.pf-ico svg { width: 20px; height: 20px; }
.pf small { color: var(--muted); font-size: .78rem; font-weight: 700; }
.pf b { color: var(--brown-deep); font-size: .98rem; }
.pf.in .pf-ico { background: #E3F6EE; color: #1A8A55; }
.pf.out .pf-ico { background: #FBE3D5; color: #B3261E; }
.pd-tip {
  margin-top: 24px; display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 20px;
  background: var(--sand); border: 2px dashed #F3C98F;
}
.tip-ico { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff; }
.tip-ico svg { width: 24px; height: 24px; }
.pd-tip b { font-family: var(--head); color: var(--brown-deep); font-size: 1.05rem; }
.pd-tip p { color: var(--muted); font-size: .95rem; line-height: 1.75; margin-top: 2px; }
.pd-points { display: none; }

.pd-steps { margin-top: clamp(50px, 7vw, 80px); padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-sm); }
.pd-steps-title { display: flex; align-items: center; gap: 10px; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--brown-deep); }
.pd-steps-title svg { width: 34px; height: 34px; color: var(--orange); rotate: -20deg; }
.pd-steps ol { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.pd-steps ol::before {
  content: ''; position: absolute; top: 27px; inset-inline: 10% 10%; border-top: 3px dotted #F3C98F; z-index: 0;
}
.pd-steps li { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 12px; }
.st-n {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--brown-deep);
  font: 800 1.4rem 'Nunito', sans-serif; border: 5px solid var(--white); box-shadow: 0 8px 18px -8px rgba(245, 138, 7, .8);
}
.pd-steps li b { font-family: var(--head); font-size: 1.15rem; color: var(--brown-deep); }
.pd-steps li p { color: var(--muted); font-size: .92rem; margin-top: 2px; }

.pd-bar { display: none; }

/* ---------- footer ---------- */
.footer {
  position: relative; overflow: hidden; padding-top: 0; margin-top: clamp(80px, 10vw, 140px);
  background: radial-gradient(800px 400px at 90% 0%, rgba(245, 138, 7, .16), transparent 60%), var(--brown-deep);
  border-radius: clamp(32px, 5vw, 56px) clamp(32px, 5vw, 56px) 0 0;
}
.paw-trail { display: flex; justify-content: space-between; padding: 22px 7% 0; color: var(--orange); }
.paw-trail svg { width: 26px; height: 26px; rotate: 90deg; opacity: 0; animation: pawstep 4s infinite; }
[dir="rtl"] .paw-trail svg { rotate: -90deg; }
.paw-trail svg:nth-child(odd) { translate: 0 -9px; }
.paw-trail svg:nth-child(even) { translate: 0 9px; }
[dir="rtl"] .paw-trail { flex-direction: row-reverse; }
.paw-trail svg:nth-child(1) { animation-delay: 0s; } .paw-trail svg:nth-child(2) { animation-delay: .3s; }
.paw-trail svg:nth-child(3) { animation-delay: .6s; } .paw-trail svg:nth-child(4) { animation-delay: .9s; }
.paw-trail svg:nth-child(5) { animation-delay: 1.2s; } .paw-trail svg:nth-child(6) { animation-delay: 1.5s; }
.paw-trail svg:nth-child(7) { animation-delay: 1.8s; } .paw-trail svg:nth-child(8) { animation-delay: 2.1s; }
@keyframes pawstep { 0% { opacity: 0; scale: .6; } 8% { opacity: .55; scale: 1; } 45% { opacity: .35; } 70%, 100% { opacity: 0; } }

.foot-cta {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px 28px;
  padding: 24px 30px; border-radius: 30px; background: linear-gradient(120deg, var(--orange-2), var(--orange)); color: var(--brown-deep);
  box-shadow: 0 24px 50px -24px rgba(245, 138, 7, .7);
}
.foot-pets { position: relative; display: flex; }
.foot-pets img { width: 74px; height: 74px; border-radius: 50%; object-fit: cover; border: 4px solid #FFF6EA; }
.foot-pets img + img { margin-inline-start: -18px; }
.foot-heart {
  position: absolute; bottom: -4px; left: 50%; translate: -50% 0; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brown); color: #FF9E9E; border: 3px solid #FFF6EA; animation: beat 1.6s ease-in-out infinite;
}
.foot-heart svg { width: 14px; height: 14px; }
@keyframes beat { 0%, 100% { scale: 1; } 15% { scale: 1.18; } 30% { scale: 1; } 45% { scale: 1.12; } }
.foot-cta-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; }
.foot-cta-copy p { margin-top: 2px; font-weight: 600; opacity: .85; }
.foot-cta-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--white); color: var(--brown-deep); font-weight: 800; font-size: .9rem; font-family: 'Nunito', sans-serif;
  transition: translate .3s var(--ease), background-color .25s, color .25s;
}
.fc-btn svg { width: 19px; height: 19px; }
.fc-btn:hover { translate: 0 -3px; }
.fc-btn.ig:hover { background: #DD2A7B; color: #fff; }
.fc-btn.fb:hover { background: #1877F2; color: #fff; }
.fc-btn.wa:hover { background: var(--wa); color: #fff; }

.footer .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 36px; padding-top: 56px; position: relative; z-index: 1; }
.foot-logo { display: inline-flex; align-items: center; gap: 10px; }
.footer .footer-brand .foot-logo img:first-child { width: 50px; margin: 0; }
.footer .footer-brand .foot-logo img:nth-child(2) { width: 150px; }
.footer h4 { display: flex; align-items: center; gap: 8px; }
.footer h4 svg { width: 20px; height: 20px; color: var(--orange-2); }
.footer ul a { display: inline-flex; align-items: center; gap: 10px; }
.footer ul:not(.foot-contact) a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: .5; transition: opacity .2s, scale .2s; }
.footer ul:not(.foot-contact) a:hover::before { opacity: 1; scale: 1.4; }
.foot-pet-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.foot-pet-links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  color: #fff; font-weight: 700; font-size: .9rem; transition: background-color .25s, color .25s;
}
.foot-pet-links svg { width: 20px; height: 20px; color: var(--orange-2); transition: color .25s; }
.foot-pet-links a:hover { background: var(--orange); color: var(--brown-deep); }
.foot-pet-links a:hover svg { color: var(--brown-deep); }
.foot-contact .fci { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); color: var(--orange-2); transition: background-color .25s, color .25s; }
.foot-contact .fci svg { width: 17px; height: 17px; }
.foot-contact a:hover .fci { background: var(--orange); color: var(--brown-deep); }
.foot-watermark { position: absolute; bottom: -70px; inset-inline-start: -50px; width: 360px; height: 360px; color: #fff; opacity: .03; rotate: 22deg; pointer-events: none; }
.footer .footer-bottom { margin-top: 50px; padding-block: 22px; text-align: center; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer .footer-bottom .container { padding-block: 0; }
.footer .footer-bottom p { font-size: .92rem; color: #C9AC92; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .footer-brand { grid-column: 1 / -1; }
  .foot-cta { grid-template-columns: auto 1fr; }
  .foot-cta-btns { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .pd-stage { position: relative; top: 0; max-width: 560px; width: 100%; margin-inline: auto; }
  .pd-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 45; inset-inline: 0; bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 247, .98);
    box-shadow: 0 -10px 30px -12px rgba(74, 32, 6, .3); border-radius: 22px 22px 0 0;
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .pd-bar.show { transform: none; }
  .pd-bar img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
  .pb-txt { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
  .pb-txt b { font-family: var(--head); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--brown-deep); }
  .pb-price { font-size: .8rem; color: var(--muted); font-weight: 700; }
  .pb-price.has { display: flex; gap: 6px; align-items: baseline; }
  .pb-price.has b { color: var(--brown); font-size: .9rem; }
  .pb-price s { font-size: .72rem; }
  .pd-bar .btn { min-height: 46px; padding: 0 18px; font-size: .95rem; }
  body.pd-bar-on .wa-fab { bottom: 92px; }
}
@media (max-width: 640px) {
  .prod-card { padding: 6px; border-radius: 22px; }
  .prod-card:hover { translate: 0 -4px; }
  .prod-media { border-radius: 17px; }
  .prod-card .prod-tag { top: 6px; inset-inline-start: 6px; font-size: .68rem; padding: 3px 9px 3px 3px; gap: 4px; }
  [dir="rtl"] .prod-card .prod-tag { padding: 3px 3px 3px 9px; }
  .prod-tag svg { width: 19px; height: 19px; padding: 3px; }
  .prod-card .prod-flag { top: 6px; inset-inline-end: 6px; font-size: .66rem; padding: 3px 8px; }
  .prod-card .prod-flag svg { display: none; }
  .prod-card .prod-body { padding: 10px 6px 4px; }
  .prod-card h3 { font-size: 1rem; }
  .prod-price.has { align-items: center; width: 100%; padding-inline-start: 22px; }
  .card-paw { width: 70px; height: 70px; bottom: -14px; inset-inline-end: -12px; }
  .pd-stage { padding: 7% 7% 12%; }
  .pd-petbadge { width: 92px; height: 92px; border-width: 4px; }
  .pd-petbadge svg { width: 28px; height: 28px; }
  .pd-petbadge b { font-size: .74rem; }
  .pd-paw.a { width: 34px; height: 34px; }
  .pd-facts { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pf { padding: 10px; border-radius: 14px; }
  .pf-ico { width: 32px; height: 32px; border-radius: 10px; }
  .pf b { font-size: .85rem; }
  .pf small { font-size: .7rem; }
  .pd-steps ol { grid-template-columns: 1fr; gap: 18px; }
  .pd-steps ol::before { inset-inline: auto; inset-inline-start: 27px; top: 10px; bottom: 10px; border-top: 0; border-inline-start: 3px dotted #F3C98F; }
  .pd-steps li { grid-template-columns: auto 1fr; justify-items: start; text-align: start; align-items: center; gap: 14px; }
  .paw-trail { padding-inline: 5%; }
  .paw-trail svg { width: 20px; height: 20px; }
  .paw-trail svg:nth-child(n+7) { display: none; }
  .foot-cta { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 20px; }
  .foot-cta-btns { justify-content: center; }
  .fc-btn span { display: none; }
  .fc-btn { width: 50px; height: 50px; padding: 0; justify-content: center; }
  .fc-btn svg { width: 22px; height: 22px; }
  .footer .footer-grid { gap: 30px 20px; padding-top: 40px; }
}

/* card footer: keep price + button on one line each */
.prod-card .prod-foot { gap: 8px; }
.prod-card .add-btn { white-space: nowrap; padding: 0 14px; flex: none; }
.prod-card .prod-price:not(.has) { font-size: .8rem; line-height: 1.35; }
.prod-card .prod-price.has { white-space: nowrap; }
.card-paw { bottom: 74px; inset-inline-end: -30px; }
