/* =========================================================
   Home page (resources/views/welcome.blade.php)
   Everything is scoped under .home-page so other pages keep style.css as is.
   Spacing scale: --home-space between sections (80 / 64 / 56 / 40px).
   ========================================================= */

.home-page {
  --home-space: 80px;
  --home-card-radius: 20px;
  --home-sand: #f7dba7;
}

/* ---------- section rhythm ---------- */
.home-page > .section {
  padding: 0;
  margin-top: var(--home-space);
}
.home-page > .separation {
  margin-top: 0;
  padding: 14px 0;
}
@media (max-width: 1199.98px) {
  .home-page .separation .text-box .title .inner-title {
    display: block;
    margin-bottom: 4px;
  }
}
.home-page .heading-box {
  margin-bottom: 32px;
  align-items: center;
}
.home-page .heading-box .icon-box img {
  display: block;
}

/* ---------- hero ---------- */
.home-page .hero .image-box img {
  height: auto;
}
.home-page .hero .button-box {
  margin-bottom: 64px;
}

/* ---------- shop cards (dog / cat / fish) ---------- */
.home-page .shop-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 40px;
}
.home-page .shop-card-grid .shop-card-dog {
  grid-row: span 2;
}
.home-page .pet-card-container .button-image {
  position: relative;
  top: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 28px 28px 0;
  border-radius: var(--home-card-radius);
  isolation: isolate;
}
.home-page .pet-card-container .button-image::after,
.home-page .pet-card-container .button-image::before {
  left: 0;
  width: 100%;
  height: calc(100% - 28px);
  background-color: var(--home-sand);
}
.home-page .pet-card-container .button-image::before {
  background-color: var(--secondary);
}
.home-page .pet-card-container .button-image:hover::before {
  top: 16px;
  left: -16px;
  height: calc(100% - 28px);
}
.home-page .pet-card-container .button-box {
  position: relative;
  z-index: 1;
}
/* picture area: fixed height for cat / fish, fills the rest of the card for the tall cards;
   the picture itself is absolutely placed so it never stretches the card */
.home-page .pet-card-container {
  --pet-img-h: 220px;
  --pet-img-min: 300px;
}
.home-page .pet-card-container .button-image .image-box {
  position: relative;
  flex: 0 0 auto;
  height: var(--pet-img-h);
  margin-top: 12px;
  z-index: 1;
}
.home-page .pet-card-container .button-image .image-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
}
.home-page .shop-card-grid .shop-card-dog .image-box,
.home-page .pet-products .button-image .image-box {
  flex: 1 1 auto;
  height: auto;
  min-height: var(--pet-img-min);
}
.home-page .pet-card-container .text-box {
  left: 28px;
  pointer-events: none;
}
.home-page .pet-card-container .shop-button {
  padding: 10px 24px;
}

/* ---------- marquee ---------- */
.home-page .marquee .news_ticker {
  padding-block: 20px;
}
.home-page .marquee .news-group {
  display: flex;
  flex-wrap: nowrap;
  margin: 0;
}
.home-page .marquee .news-group li {
  flex: 0 0 auto;
}

/* ---------- shop by category ---------- */
.home-page .shop-by-category .cards-box {
  padding-top: 70px;
}
.home-page .shop-by-category .margined-row {
  margin-top: calc(-1 * var(--bs-gutter-y));
  --bs-gutter-x: 24px;
  --bs-gutter-y: 94px;
}
.home-page .shop-by-category .card {
  height: 100%;
  border-radius: var(--home-card-radius);
}
.home-page .shop-by-category .card-body {
  display: flex;
  flex-direction: column;
  padding: 0 16px 24px;
}
.home-page .shop-by-category .card-body .image-box {
  width: 140px;
  height: 140px;
  top: -70px;
  box-shadow: 0 6px 18px rgba(0, 52, 89, 0.1);
}
.home-page .shop-by-category .card-body .image-box.is-placeholder img {
  object-fit: contain;
  padding: 28%;
  border-radius: 0;
  opacity: 0.35;
}
.home-page .shop-by-category .card-body .text-box {
  flex: 1 1 auto;
  margin-top: 86px;
}
.home-page .shop-by-category .card-body .text-box .text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  height: 100%;
}
.home-page .shop-by-category .card-body .text-box h3 {
  margin: 0;
  overflow-wrap: anywhere;
}
.home-page .shop-by-category .card .shop-button {
  margin-top: auto;
}

/* ---------- treat your pet ---------- */
.home-page .treat-your-pet::after {
  height: 72%;
  min-height: 260px;
}
.home-page .treat-your-pet .text-image {
  position: relative;
  z-index: 1;
  gap: 32px;
}
.home-page .treat-your-pet .text-image .text-box {
  flex: 1 1 50%;
}
.home-page .treat-your-pet .image-box {
  flex: 0 1 42%;
  max-width: 520px;
}
.home-page .treat-your-pet .image-box img {
  display: block;
}

/* ---------- product cards (all home grids + carousels) ---------- */
.home-page .product-card {
  height: 100%;
}
.home-page .product-card:not(.alt) .card {
  height: 100%;
  border-radius: var(--home-card-radius);
}
.home-page .product-card:not(.alt) .card .card-body {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
}
.home-page .product-card:not(.alt) .image-box {
  aspect-ratio: 6 / 5;
  background: #ebe7e4;
  border-radius: 12px;
  overflow: hidden;
}
.home-page .product-card:not(.alt) .image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-page .product-card img[src$="paw-logo.png"] {
  object-fit: contain !important;
  padding: 22%;
  opacity: 0.3;
}
.home-page .product-card:not(.alt) .product-details {
  margin-top: auto;
  margin-bottom: 0 !important;
}
.home-page .product-card:not(.alt) .product-details h4 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: 2.7em;
  overflow-wrap: anywhere;
}
.home-page .product-card .product-details .price {
  margin: 0;
}
.home-page .product-card .product-details .price small {
  font-weight: 500;
  font-size: 0.8em;
}

/* ---------- carousels (best sellers / trending) ---------- */
.home-page .product-carousel .owl-stage {
  display: flex;
  margin: 0 auto;
}
.home-page .product-carousel .owl-item {
  display: flex;
  flex-shrink: 0;
  /* room for the hover lift + shadow inside the carousel's clipped viewport */
  padding-block: 8px 22px;
}
.home-page .product-carousel .owl-item > .item {
  display: flex;
  width: 100%;
}
.home-page .product-carousel .owl-item > .item > .product-card {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}
.home-page .product-carousel .owl-dots {
  margin-top: 8px;
}
.home-page .product-carousel .owl-dots button {
  transition: width 0.25s ease, background-color 0.25s ease;
}
.home-page .product-carousel .owl-dots button.active {
  width: 28px;
  border-radius: 6px;
}
.home-page .carousel-nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.home-page .carousel-nav.disabled {
  display: none;
}
.home-page .carousel-nav button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--secondary) !important;
  border-radius: 50%;
  background: var(--light) !important;
  color: var(--secondary) !important;
  font-size: 14px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.home-page .carousel-nav button:hover,
.home-page .carousel-nav button:focus-visible {
  background: var(--secondary) !important;
  color: var(--light) !important;
}
.home-page .carousel-nav button.disabled {
  opacity: 0.35;
  cursor: default;
}

/* ---------- image with product hotspots ---------- */
.home-page .image-products .image-box {
  border-radius: var(--home-card-radius);
}
.home-page .image-products .image-box > img {
  display: block;
  border-radius: var(--home-card-radius);
  aspect-ratio: 740 / 259;
  object-fit: cover;
}
.home-page .image-products .pointers-box .plot {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
}
.home-page .image-products .pointers-box .plot::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  animation: home-plot-pulse 2.4s ease-out infinite;
}
.home-page .image-products .pointers-box .plot::after {
  box-shadow: none;
}
@keyframes home-plot-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
.home-page .pointers-box .plot-popup:focus {
  outline: none;
}
.home-page .pointers-box .plot-popup:focus-visible .plot {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.home-page .pointers-box .plot-popup:hover .product-card,
.home-page .pointers-box .plot-popup:focus-within .product-card {
  opacity: 1;
  pointer-events: all;
  z-index: 3;
}
.home-page .pointers-box .plot-popup:hover,
.home-page .pointers-box .plot-popup:focus-within {
  z-index: 3;
}
/* hotspots in the lower part of the picture open upwards so the card stays inside the image */
.home-page .pointers-box .plot-popup:not(.plot-popup4) .product-card {
  top: auto;
  bottom: 100%;
  padding-top: 0;
  padding-bottom: 10px;
}
.home-page .pointers-box .plot-popup.plot-popup5 {
  left: auto;
  right: 2.5%;
}
.home-page .pointers-box .product-card.alt .card {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.home-page .pointers-box .product-card.alt .image-box {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background: #ebe7e4;
}
.home-page .pointers-box .product-card.alt .image-box img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}

/* ---------- dog / cat / fish product blocks ---------- */
.home-page .pet-products .button-image {
  min-height: 100%;
}
/* the picture card is as tall as the product grid next to it */
.home-page .pet-products .pet-card-container {
  --pet-img-min: 220px;
}
.home-page .pet-products .product-card {
  width: 100%;
  margin: 0 !important;
}
.home-page .pet-products .product-column {
  display: flex;
}
.home-page .pet-products .tagline {
  margin-top: 24px;
}
.home-page .pet-products .tagline h3 {
  margin-left: 8px;
  gap: 20px;
  font-size: 30px;
}
.home-page .pet-products .tagline h3 img {
  width: 48px;
}
.home-page .pet-products.is-reversed .tagline h3 {
  justify-content: flex-end;
  margin-left: 0;
  margin-right: 8px;
}
.home-page .pet-products.pet-products-1 .tagline h3 {
  justify-content: center;
  margin: 0;
}

/* ---------- policy cards ---------- */
.home-page .payment-policy .card {
  padding: 8px 20px;
  border-radius: 14px;
}
.home-page .payment-policy .icon-text .icon {
  flex: 0 0 52px;
  width: 52px;
}

/* ---------- offer banner ---------- */
/* the artwork is anchored left at full section height; its plain background colour continues across the band.
   The file repeats the tin + bowl at its right edge, which is clipped off. */
.home-page > .offer-section {
  padding: 72px 0;
  background: #e7f2ec;
}
.home-page .offer-section .background-image-box {
  width: 100%;
  overflow: hidden;
}
.home-page .offer-section .background-image-box img {
  width: auto;
  max-width: none;
  height: 100%;
  object-fit: fill;
  clip-path: inset(0 12% 0 0);
}

/* ---------- faq + contact (shared includes, only re-spaced on the home page) ---------- */
.home-page .faq .row {
  align-items: center !important;
}
.home-page .faq .image-box img {
  max-width: 460px;
}
.home-page > .contact-us {
  padding: var(--home-space) 0;
}
.home-page .contact-us .image-box img {
  max-width: 440px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1199.98px) {
  .home-page {
    --home-space: 64px;
  }
  .home-page .shop-card-grid {
    gap: 28px;
  }
  .home-page .pet-card-container {
    --pet-img-h: 190px;
    --pet-img-min: 260px;
  }
  /* tall picture cards on tablets / small laptops: the outlined pet name (a hover effect on desktop) fills the empty top */
  .home-page .pet-products .pet-card-container .text-box {
    opacity: 1;
    top: 84px;
  }
  .home-page .pet-products .tagline h3 {
    font-size: 26px;
  }
}

@media (max-width: 991.98px) {
  .home-page {
    --home-space: 56px;
  }
  .home-page .hero .image-box img {
    max-width: 420px;
  }
  .home-page .hero .button-box {
    margin-bottom: 8px;
  }
  .home-page .pet-card-container .button-image {
    padding: 22px 22px 0;
    margin-bottom: 0;
  }
  .home-page .pet-card-container {
    --pet-img-h: 160px;
    --pet-img-min: 220px;
  }
  /* policy cards: icon above the text so three fit side by side */
  .home-page .payment-policy .icon-text {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 8px 0;
  }
  .home-page .shop-by-category .margined-row {
    --bs-gutter-y: 90px;
  }
  .home-page .pet-products .button-image {
    position: relative;
  }
  .home-page .pet-products .tagline h3,
  .home-page .pet-products.is-reversed .tagline h3 {
    justify-content: center;
    margin: 0;
  }
  .home-page .treat-your-pet .image-box {
    flex-basis: 40%;
  }
  .home-page .offer-section .text-box {
    background: rgba(255, 255, 255, 0.88);
  }
  .home-page .faq .image-box img,
  .home-page .contact-us .image-box img {
    width: 60%;
    max-width: 340px;
  }
}

@media (max-width: 767.98px) {
  .home-page {
    --home-space: 40px;
  }
  .home-page .heading-box {
    margin-bottom: 20px;
    gap: 12px;
  }
  .home-page .hero .image-box img {
    max-width: 300px;
    margin: 0 auto;
    display: block;
  }
  .home-page > .separation {
    padding: 10px 0;
  }

  /* shop cards: dog full width, cat + fish side by side */
  .home-page .shop-card-grid {
    gap: 16px;
  }
  .home-page .shop-card-grid .shop-card-dog {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .home-page .pet-card-container .button-image {
    padding: 16px 16px 0;
  }
  .home-page .pet-card-container .button-image::after,
  .home-page .pet-card-container .button-image::before {
    height: calc(100% - 16px);
  }
  .home-page .pet-card-container .button-image:hover::before {
    top: 8px;
    left: -8px;
    height: calc(100% - 16px);
  }
  .home-page .pet-card-container .text-box {
    display: none;
  }
  .home-page .pet-card-container .shop-button {
    padding: 7px 16px;
    font-size: 14px;
  }
  .home-page .pet-card-container {
    --pet-img-h: 120px;
    --pet-img-min: 200px;
  }
  .home-page .shop-card-grid .shop-card-dog .image-box {
    flex: 0 0 auto;
    height: 210px;
  }
  .home-page .payment-policy .icon-text {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .home-page .marquee .news_ticker {
    padding-block: 14px;
  }

  .home-page .shop-by-category .cards-box {
    padding-top: 48px;
  }
  .home-page .shop-by-category .margined-row {
    --bs-gutter-x: 14px;
    --bs-gutter-y: 64px;
  }
  .home-page .shop-by-category .card-body {
    padding: 0 10px 16px;
  }
  .home-page .shop-by-category .card-body .image-box {
    width: 96px;
    height: 96px;
    top: -48px;
    padding: 4px;
  }
  .home-page .shop-by-category .card-body .text-box {
    margin-top: 60px;
  }
  .home-page .shop-by-category .card-body .text-box h3 {
    font-size: 17px;
  }
  .home-page .shop-by-category .card .shop-button {
    padding: 5px 16px;
    font-size: 14px;
  }

  .home-page .treat-your-pet::after {
    height: 100%;
    min-height: 0;
  }
  .home-page .treat-your-pet .text-image {
    padding: 32px 0 0;
    gap: 16px;
  }
  .home-page .treat-your-pet .image-box {
    width: 70%;
    max-width: 320px;
  }

  .home-page .product-carousel .owl-dots {
    margin-top: 16px;
  }
  .home-page .carousel-nav {
    display: none;
  }
  .home-page .product-card:not(.alt) .card .card-body {
    padding: 8px 8px 12px;
  }
  .home-page .product-card .product-details h4 {
    font-size: 13px;
  }

  .home-page .pointers-box .product-card {
    min-width: 200px;
    max-width: 220px;
  }
  .home-page .image-products .image-box > img {
    aspect-ratio: 2 / 1;
  }
  .home-page .image-products .pointers-box .plot {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  }
  .home-page .image-products .pointers-box .plot::after {
    width: 6px;
    height: 6px;
  }

  .home-page .pet-products .tagline {
    margin-top: 16px;
  }
  .home-page .pet-products .tagline h3 {
    font-size: 24px;
    gap: 12px;
  }
  .home-page .pet-products .tagline h3 img {
    width: 36px;
  }

  .home-page .payment-policy .card {
    padding: 4px 12px;
  }

  /* phones: picture strip on top, text below */
  .home-page > .offer-section {
    padding: 0 0 28px;
  }
  .home-page .offer-section .background-image-box {
    position: relative;
    height: 190px;
  }
  .home-page .offer-section .background-image-box img {
    height: 100%;
  }
  .home-page .offer-section .text-box {
    background: transparent;
    padding: 20px 0 0;
    text-align: center;
  }

  .home-page .faq .image-box img,
  .home-page .contact-us .image-box img {
    width: 70%;
    max-width: 280px;
  }
}

/* ---------- motion ---------- */
/* Light, transform/opacity-only motion. Everything is CSS: nothing depends on JavaScript to become visible. */
.home-page {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --hover-speed: 0.25s;
}

/* AOS: shorter travel than the library default (100px) so reveals stay subtle */
.home-page [data-aos="fade-up"] {
  transform: translate3d(0, 24px, 0);
}
.home-page [data-aos="fade-left"] {
  transform: translate3d(32px, 0, 0);
}

/* hero entrance: one time on load, headline -> sub heading -> text -> buttons, picture fades/scales in.
   fill-mode "both" + short delays: all hero content is fully visible ~0.85s after first paint. */
@keyframes home-rise-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes home-zoom-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}
.home-page .hero .banner-content > .heading,
.home-page .hero .banner-content > .sub-heading,
.home-page .hero .banner-content > p,
.home-page .hero .banner-content > .button-box {
  animation: home-rise-in 0.5s var(--ease-out) both;
}
.home-page .hero .banner-content > .sub-heading { animation-delay: 0.1s; }
.home-page .hero .banner-content > p { animation-delay: 0.2s; }
.home-page .hero .banner-content > .button-box { animation-delay: 0.3s; }
.home-page .hero .image-box {
  animation: home-zoom-in 0.7s var(--ease-out) 0.15s both;
  transform-origin: center bottom;
}

/* gentle floating loop on two decorative illustrations only (not on content) */
@keyframes home-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -5px, 0); }
}
.home-page .hero .sub-heading span img {
  animation: home-float 5s ease-in-out 1s infinite;
}
.home-page .separation .text-box .title span img {
  display: inline-block;
  animation: home-float 4.5s ease-in-out 1.5s infinite;
}

/* hover micro-interactions (~250ms) */
.home-page .product-card .card {
  transition: transform var(--hover-speed) var(--ease-out), box-shadow var(--hover-speed) var(--ease-out), background-color var(--hover-speed) ease;
}
.home-page .product-card:hover .card,
.home-page .product-card:focus-visible .card {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 12px 24px rgba(0, 52, 89, 0.12);
}
.home-page .product-card:not(.alt) .image-box img {
  transition: transform 0.35s var(--ease-out);
}
.home-page .product-card:not(.alt):hover .image-box img {
  transform: scale(1.04);
}
.home-page .shop-by-category .card {
  transition: transform var(--hover-speed) var(--ease-out), box-shadow var(--hover-speed) var(--ease-out);
}
.home-page .shop-by-category .card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 12px 24px rgba(0, 52, 89, 0.1);
}
@keyframes home-icon-bounce {
  0%, 100% { transform: translate3d(-50%, 0, 0); }
  40% { transform: translate3d(-50%, -8px, 0); }
  70% { transform: translate3d(-50%, -2px, 0); }
}
.home-page .shop-by-category .card:hover .card-body .image-box {
  animation: home-icon-bounce 0.5s var(--ease-out);
}
.home-page .button,
.home-page .shop-button {
  transition: transform var(--hover-speed) var(--ease-out), background-color var(--hover-speed) ease, color var(--hover-speed) ease, border-color var(--hover-speed) ease, box-shadow var(--hover-speed) ease;
}
.home-page .button:hover,
.home-page a.shop-button:hover {
  transform: translate3d(0, -2px, 0);
  box-shadow: 0 6px 14px rgba(0, 52, 89, 0.15);
}
.home-page .pet-card-container .button-image .image-box img {
  transition: transform 0.35s var(--ease-out);
  transform-origin: center bottom;
}
.home-page .pet-card-container .button-image:hover .image-box img {
  transform: scale(1.03);
}
.home-page .payment-policy .card {
  transition: transform var(--hover-speed) var(--ease-out), border-color var(--hover-speed) ease, box-shadow var(--hover-speed) ease;
}
.home-page .payment-policy .card:hover {
  transform: translate3d(0, -3px, 0);
  border-color: var(--home-sand);
  box-shadow: 0 10px 20px rgba(0, 52, 89, 0.08);
}
.home-page .payment-policy .icon-text .icon img {
  transition: transform var(--hover-speed) var(--ease-out);
}
.home-page .payment-policy .card:hover .icon-text .icon img {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation: none !important;
    transition: none !important;
  }
  .home-page .product-card:hover .card,
  .home-page .product-card:focus-visible .card,
  .home-page .product-card .card:hover,
  .home-page .product-card:not(.alt):hover .image-box img,
  .home-page .shop-by-category .card:hover,
  .home-page .button:hover,
  .home-page a.shop-button:hover,
  .home-page .pet-card-container .button-image:hover .image-box img,
  .home-page .payment-policy .card:hover,
  .home-page .payment-policy .card:hover .icon-text .icon img {
    transform: none;
  }
}
