/* Pets Area mobile banner sync and full-width fix */
@media only screen and (max-width: 767px) {
  body.home .main-content > .row > .full-width-content.first-section {
    width: 113.6364% !important;
    min-width: 113.6364% !important;
    max-width: none !important;
    flex: 0 0 113.6364% !important;
    left: 50% !important;
    margin-left: -56.8182% !important;
    margin-right: 0 !important;
  }

  body.home .main-content > .row > .full-width-content.first-section .nectar-slider-wrap {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .nectar-slider-wrap .swiper-slide .image-bg {
    background-position: center center !important;
  }
}

/* Pets Area loyalty rewards mobile copy */
@media only screen and (max-width: 767px) {
  .nectar-slider-wrap .swiper-slide.pa-banner-loyalty-rewards .content {
    width: 52% !important;
    max-width: 52% !important;
    margin-left: 3% !important;
    margin-right: auto !important;
    top: 16px !important;
    text-align: left !important;
  }

  .nectar-slider-wrap .swiper-slide.pa-banner-loyalty-rewards .content h2 {
    font-size: 21px !important;
    line-height: 1.08 !important;
    margin-bottom: 5px !important;
  }

  .nectar-slider-wrap .swiper-slide.pa-banner-loyalty-rewards .content p {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin-bottom: 7px !important;
  }

  .nectar-slider-wrap .swiper-slide.pa-banner-loyalty-rewards .content .buttons {
    margin-top: 0 !important;
  }

  .nectar-slider-wrap .swiper-slide.pa-banner-loyalty-rewards .content .button a {
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 9px 12px !important;
  }
}

/* Pets Area loyalty rewards mobile heading */
@media only screen and (max-width: 767px) {
  body .nectar-slider-wrap .swiper-wrapper .swiper-slide.pa-banner-loyalty-rewards .container .content h2.ns-heading-el {
    font-size: 21px !important;
    line-height: 23px !important;
    margin-bottom: 5px !important;
  }
}

/* Pets Area loyalty rewards mobile vertical alignment */
@media only screen and (max-width: 767px) {
  body .nectar-slider-wrap .swiper-wrapper .swiper-slide.pa-banner-loyalty-rewards .container .content {
    transform: none !important;
    top: 16px !important;
  }
}

/* Keep the mobile homepage hero below the transparent header */
@media only screen and (max-width: 767px) {
  body.home .nectar-slider-wrap {
    margin-top: 72px !important;
  }
}

/* Pets Area mobile navigation tap target */
@media only screen and (max-width: 767px) {
  .slide-out-widget-area-toggle.mobile-icon a[aria-label="Navigation Menu"] {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Pets Area shop category and brand discovery */
body.post-type-archive-product .nectar-shop-filter-trigger {
  border-radius: 10px;
  font-weight: 700;
}

#sidebar #block-34 .wp-block-categories-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 8px 10px 8px 0;
  scrollbar-width: thin;
}

#sidebar #block-34.pa-brands-expanded .wp-block-categories-list {
  max-height: none;
}

#sidebar .pa-brand-toggle {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid #0191b6;
  border-radius: 8px;
  background: #fff;
  color: #017d9d;
  font-weight: 700;
  cursor: pointer;
}

#sidebar .pa-brand-toggle:hover,
#sidebar .pa-brand-toggle:focus {
  background: #0191b6;
  color: #fff;
}

@media only screen and (max-width: 767px) {
  body.post-type-archive-product .nectar-shop-filter-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px !important;
    background: #0191b6;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(1, 145, 182, 0.22);
  }

  body.post-type-archive-product #sidebar .inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  body.post-type-archive-product #sidebar .inner > .widget {
    margin-bottom: 0 !important;
  }

  body.post-type-archive-product #sidebar .inner > #block-13,
  body.post-type-archive-product #sidebar .inner > #block-35,
  body.post-type-archive-product #sidebar .inner > #block-34 {
    grid-column: 1 / -1;
  }

  body.post-type-archive-product #sidebar .inner > #block-13 h4,
  body.post-type-archive-product #sidebar .inner > #block-35 h4 {
    margin: 14px 0 6px;
    color: #143642;
  }

  body.post-type-archive-product #sidebar .inner > .widget:not(#block-13):not(#block-35):not(#block-34) h2,
  body.post-type-archive-product #sidebar .inner > .widget:not(#block-13):not(#block-35):not(#block-34) h3 {
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  body.post-type-archive-product #sidebar .inner > .widget:not(#block-13):not(#block-35):not(#block-34) a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #d9ecef;
    border-radius: 9px;
    background: #f3fafb;
    color: #143642;
  }

  body.post-type-archive-product #sidebar #block-34 .wp-block-categories-list {
    max-height: 220px;
  }
}

/* Pets Area Shop mega-menu category artwork */
@media only screen and (min-width: 1000px) {
  #header-outer #menu-item-13964 > a,
  #header-outer #menu-item-13966 > a,
  #header-outer #menu-item-13970 > a,
  #header-outer #menu-item-13971 > a {
    box-sizing: border-box;
    display: flex !important;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    height: 52px !important;
    min-height: 52px;
    padding: 8px 10px !important;
    overflow: hidden;
    border-radius: 4px;
    color: #fff !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-size: cover !important;
    isolation: isolate;
  }

  #header-outer #menu-item-13964 > a::before,
  #header-outer #menu-item-13966 > a::before,
  #header-outer #menu-item-13970 > a::before,
  #header-outer #menu-item-13971 > a::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, rgba(12, 30, 38, 0.58) 0%, rgba(12, 30, 38, 0.20) 66%, rgba(12, 30, 38, 0.06) 100%);
    transition: background-color 0.25s ease;
  }

  #header-outer #menu-item-13964 > a .menu-title-text,
  #header-outer #menu-item-13966 > a .menu-title-text,
  #header-outer #menu-item-13970 > a .menu-title-text,
  #header-outer #menu-item-13971 > a .menu-title-text {
    position: relative;
    z-index: 1;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  }

  #header-outer #menu-item-13964 > a { background-image: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-asian-pet-food-menu.jpg") !important; }
  #header-outer #menu-item-13966 > a { background-image: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-new-arrivals-menu.jpg") !important; }
  #header-outer #menu-item-13970 > a { background-image: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-dog-food-menu.jpg") !important; }
  #header-outer #menu-item-13971 > a { background-image: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-cat-food-menu.jpg") !important; }
}

/* Pets Area checkout visual polish */
body.woocommerce-checkout.has-fluid-checkout {
  --pa-teal:#0191b6;
  --pa-teal-dark:#01758f;
  --pa-ink:#143642;
  --pa-soft:#f4fafb;
  --pa-line:#d7e7ea;
  background:#f7fbfc !important;
  color:var(--pa-ink);
}
body.woocommerce-checkout.has-fluid-checkout .fc-checkout-header {
  background:#fff;
  border-bottom:1px solid var(--pa-line);
  box-shadow:0 2px 14px rgba(20,54,66,.05);
}
body.woocommerce-checkout.has-fluid-checkout .fc-wrapper {
  max-width:1180px;
  margin:0 auto;
  padding:28px 22px 60px;
}
body.woocommerce-checkout.has-fluid-checkout .fc-inside { gap:30px; }
body.woocommerce-checkout.has-fluid-checkout .fc-step__substep {
  margin:0 0 16px !important;
  padding:24px !important;
  background:#fff !important;
  border:1px solid var(--pa-line) !important;
  border-radius:14px !important;
  box-shadow:0 5px 18px rgba(20,54,66,.055);
  overflow:visible;
}
body.woocommerce-checkout.has-fluid-checkout .fc-step__substep-title,
body.woocommerce-checkout.has-fluid-checkout .fc-checkout-order-review-title {
  color:var(--pa-ink) !important;
  font-size:17px !important;
  font-weight:800 !important;
  letter-spacing:.02em;
}
body.woocommerce-checkout.has-fluid-checkout .form-row label {
  color:var(--pa-ink);
  font-weight:700;
  margin-bottom:7px;
}
body.woocommerce-checkout.has-fluid-checkout input.input-text,
body.woocommerce-checkout.has-fluid-checkout select,
body.woocommerce-checkout.has-fluid-checkout textarea {
  min-height:48px !important;
  padding:11px 13px !important;
  background:#fff !important;
  border:1px solid #b9d0d5 !important;
  border-radius:9px !important;
  box-shadow:none !important;
  color:var(--pa-ink) !important;
  transition:border-color .2s ease,box-shadow .2s ease;
}
body.woocommerce-checkout.has-fluid-checkout input.input-text:focus,
body.woocommerce-checkout.has-fluid-checkout select:focus,
body.woocommerce-checkout.has-fluid-checkout textarea:focus {
  border-color:var(--pa-teal) !important;
  box-shadow:0 0 0 3px rgba(1,145,182,.14) !important;
  outline:none !important;
}
body.woocommerce-checkout.has-fluid-checkout .fc-step__substep-text-content--shipping_method,
body.woocommerce-checkout.has-fluid-checkout .payment_methods {
  border:1px solid var(--pa-line) !important;
  border-radius:11px !important;
  overflow:hidden;
  background:#fff;
}
body.woocommerce-checkout.has-fluid-checkout .fc-checkout-order-review {
  background:#fff !important;
  border:1px solid var(--pa-line) !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(20,54,66,.09) !important;
  overflow:hidden;
}
body.woocommerce-checkout.has-fluid-checkout .fc-checkout-order-review .order-total {
  background:var(--pa-soft);
  color:var(--pa-ink);
}
body.woocommerce-checkout.has-fluid-checkout a { color:var(--pa-teal-dark); }
body.woocommerce-checkout.has-fluid-checkout #place_order {
  width:100%;
  min-height:54px;
  padding:14px 22px !important;
  background:linear-gradient(135deg,var(--pa-teal),#00a9c7) !important;
  border:0 !important;
  border-radius:11px !important;
  box-shadow:0 8px 20px rgba(1,145,182,.24);
  color:#fff !important;
  font-size:17px !important;
  font-weight:800 !important;
  letter-spacing:.01em;
}
body.woocommerce-checkout.has-fluid-checkout #place_order:hover,
body.woocommerce-checkout.has-fluid-checkout #place_order:focus {
  background:linear-gradient(135deg,var(--pa-teal-dark),var(--pa-teal)) !important;
  transform:translateY(-1px);
}
body.woocommerce-checkout.has-fluid-checkout .fc-expansible-form-section__toggle {
  font-weight:700;
}
@media only screen and (max-width:767px) {
  body.woocommerce-checkout.has-fluid-checkout .fc-wrapper { padding:16px 12px 42px; }
  body.woocommerce-checkout.has-fluid-checkout .fc-inside { gap:16px; }
  body.woocommerce-checkout.has-fluid-checkout .fc-step__substep {
    margin-bottom:12px !important;
    padding:18px 15px !important;
    border-radius:12px !important;
  }
  body.woocommerce-checkout.has-fluid-checkout .fc-checkout-order-review { border-radius:12px !important; }
  body.woocommerce-checkout.has-fluid-checkout input.input-text,
  body.woocommerce-checkout.has-fluid-checkout select,
  body.woocommerce-checkout.has-fluid-checkout textarea { min-height:50px !important; font-size:16px !important; }
  body.woocommerce-checkout.has-fluid-checkout #place_order { min-height:56px; }
}

/* Pets Area mobile compact order summary */
@media only screen and (max-width: 767px) {
  body.woocommerce-checkout.has-fluid-checkout #fc-checkout-order-review .fc-checkout-order-review__inner {
    height: auto !important;
    max-height: calc(100dvh - 76px) !important;
    padding-bottom: 0 !important;
    overflow-y: auto !important;
  }
  body.woocommerce-checkout.has-fluid-checkout #fc-checkout-order-review .fc-checkout-order-review__actions-mobile {
    position: static !important;
    width: 100% !important;
    margin-top: 0 !important;
  }
}

/* Pets Area homepage category artwork safe fit — 2026-07-29 */
body.home .nectar-category-grid .nectar-category-grid-item-bg::after {
  inset: 6px !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
@media only screen and (max-width: 690px) {
  body.home .nectar-category-grid .nectar-category-grid-item-bg::after {
    inset: 4px !important;
  }
}

/* Pets Area needs cards complete artwork — 2026-07-29 */
body.home .pa-need-card {
  --pa-need-art: none;
  isolation: isolate !important;
  background-color: #143642 !important;
  background-image: none !important;
}
body.home .pa-need-card:nth-child(1) { --pa-need-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-asian-pet-food-menu.jpg"); }
body.home .pa-need-card:nth-child(2) { --pa-need-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-dog-food-menu.jpg"); }
body.home .pa-need-card:nth-child(3) { --pa-need-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-cat-food-menu.jpg"); }
body.home .pa-need-card:nth-child(4) { --pa-need-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-new-arrivals-menu.jpg"); }
body.home .pa-need-card::before,
body.home .pa-need-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  background-image: var(--pa-need-art) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
}
body.home .pa-need-card::before {
  z-index: 0 !important;
  background-size: cover !important;
  filter: blur(18px) saturate(.9) !important;
  opacity: .48 !important;
  transform: scale(1.12) !important;
}
body.home .pa-need-card::after {
  z-index: 1 !important;
  background-image: linear-gradient(180deg, rgba(10,38,48,.08) 8%, rgba(10,38,48,.92) 88%), var(--pa-need-art) !important;
  background-size: 100% 100%, contain !important;
  background-position: center center, center center !important;
  background-repeat: no-repeat, no-repeat !important;
}
body.home .pa-need-card > * {
  position: relative !important;
  z-index: 2 !important;
}

/* Pets Area category artwork protected edge spacing — 2026-07-29 */
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item-bg::after {
  top: 6px !important;
  right: 6px !important;
  bottom: 6px !important;
  left: 6px !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
@media only screen and (max-width: 690px) {
  body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item-bg::after {
    top: 4px !important;
    right: 4px !important;
    bottom: 4px !important;
    left: 4px !important;
  }
}

/* Pets Area category cards use uncropped originals — 2026-07-29 */
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item:nth-child(1) .nectar-category-grid-item-bg { --pa-category-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-asian-pet-food-menu-wide.jpg"); }
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item:nth-child(2) .nectar-category-grid-item-bg { --pa-category-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-all-food-menu-wide.jpg"); }
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item:nth-child(3) .nectar-category-grid-item-bg { --pa-category-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-health-grooming-menu-wide.jpg"); }
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item:nth-child(4) .nectar-category-grid-item-bg { --pa-category-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-flea-worming-menu-wide.jpg"); }
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item:nth-child(5) .nectar-category-grid-item-bg { --pa-category-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-toys-menu-wide.jpg"); }
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item:nth-child(6) .nectar-category-grid-item-bg { --pa-category-art: url("https://www.petsarea.com.au/wp-content/uploads/2026/07/pets-area-beds-bowls-others-menu-wide.jpg"); }
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item-bg {
  background-image: none !important;
}
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item-bg::before {
  background-image: var(--pa-category-art) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
body.home #ajax-content-wrap .nectar-category-grid .nectar-category-grid-item-bg::after {
  background-image: var(--pa-category-art) !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* Pets Area mobile inner-row overflow fix 2026-08-01 */
@media only screen and (max-width: 767px) {
  body.page-id-5818 .wpb_row.full-width-section.top_padding_tablet_8pct
  .wpb_row.inner_row.vc_row-o-equal-height.vc_row-o-content-middle
  > .row_col_wrap_12_inner,
  .nectar-global-section.nectar_hook_global_section_footer
  .wpb_row.inner_row.top_padding_tablet_15pct.bottom_padding_tablet_10pct
  > .row_col_wrap_12_inner {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* Pets Area Contact mobile floating-widget spacing */
@media only screen and (max-width: 600px) {
  body.page-id-177 .mcforms-wrapper {
    display: none !important;
  }
  body.page-id-177 .grecaptcha-badge {
    right: -186px !important;
    bottom: 12px !important;
    z-index: 80 !important;
  }
}