/* ===========================================================================
   MOBILE — Sticky bar & responsive overrides
   Petz.gr

   Merged and cleaned by script.
   =========================================================================== */

/* ===========================================================================
   MOBILE — Sticky bar & responsive overrides
   Petz.gr
   =========================================================================== */

/* ── Mobile sticky bar ───────────────────────────────────── */

.mobile-sticky-bar {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  width: auto;
  background: transparent;
  box-shadow: none;
  z-index: 1000;
  display: none;
  animation: slideUpFade 0.4s ease-out;
  pointer-events: none;
  padding: 0;
}

.mobile-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--petz-primary, #27ae60);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: auto;
  flex: 1;
  justify-content: center;
  padding: 10px 16px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.mobile-phone-btn:hover,
.mobile-phone-btn:active {
  background: #219a52;
  color: #fff;
  text-decoration: none;
}

/* Service sticky: message button is blue */

.mobile-message-btn {
  background: #2196f3 !important;
  border-color: #2196f3 !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  flex: 1;
}

.mobile-message-btn:hover,
.mobile-message-btn:active {
  background: #1976d2 !important;
  border-color: #1976d2 !important;
}

.mobile-sticky-buttons {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.mobile-sticky-bar .btn {
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  font-weight: 700;
  justify-content: center;
}

.mobile-sticky-bar .mobile-contact-btn {
  flex: 1;
}

.mobile-sticky-bar .mobile-share-btn {
  flex: 0 0 auto;
}

/* ── Tablet & below (≤991px) ─────────────────────────────── */

/* ── Phone (≤767px) ──────────────────────────────────────── */

@media (max-width: 992px) {
  .row-product .col-product,
  .row-product .col-product-5,
  .row-product .col-product-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }
  .petz-directory-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .petz-directory-hero {
    padding: 32px 20px;
    border-radius: 14px;
  }
  .petz-directory-hero-title {
    font-size: 1.6rem;
  }
  .petz-directory-tab {
    min-width: 100px;
    padding: 14px 16px 10px;
  }
  .petz-tab-icon {
    width: 46px;
    height: 46px;
  }
  .petz-tab-icon img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 991px) {
  /* Sticky bar visibility toggled by JS */
  .mobile-sticky-bar {
    display: none !important;
  }
  .mobile-sticky-bar.show {
    display: block !important;
  }
  .petz-hero {
    margin-bottom: 30px;
  } /* Stack content vertically */
  .petz-content-row {
    display: flex;
    flex-direction: column;
  }
  .petz-content-row > div:nth-child(1) {
    order: 1;
  }
  .petz-content-row > div:nth-child(2) {
    order: 2;
  }
  .petz-content-row > div:nth-child(3) {
    order: 3;
  }
  /* Service pages: description → contact card → catalog on mobile */
  .petz-content-row > .svc-mobile-description { order: 1; }
  .petz-content-row > .svc-mobile-contact     { order: 2; }
  .petz-content-row > .svc-mobile-catalog      { order: 3; } /* Share icons full width */
  .sidebar-share .share-icons,
  .sidebar-share .share-icons ul {
    justify-content: space-between !important;
    width: 100% !important;
    gap: 0 !important;
  }
  .petz-profile-header-card {
    margin-top: -60px;
    padding: 1.25rem;
  }
  .petz-profile-header-inner {
    flex-direction: column;
    text-align: center;
  }
  .petz-profile-header-info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .petz-profile-header-meta {
    justify-content: center;
  }
  .petz-profile-header-rating {
    justify-content: center;
  }
  .petz-profile-header-actions {
    margin-left: 0;
    align-items: center;
    width: 100%;
  }
  .petz-profile-header-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  .petz-profile-header-social {
    justify-content: center;
  } /* Mobile Stacking */
  .profile-content-container {
    flex-direction: column;
    gap: 2rem;
  }
  .profile-main-column {
    text-align: center;
  }
  .profile-sidebar-column {
    width: 100%;
  }
  .product-filters-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 10px 0 !important;
  }
  .pet-adoption-page #wrapper::after,
  .pet-adoption-page #wrapper::before {
    display: none;
  }
  #pet-reviews,
  #pet-comments {
    order: 2;
  }
  /* Tighter review spacing on mobile (Modesy default: 30px+30px = 60px) */
  .reviews-container .list-reviews .media {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  .reviews-container .review-total {
    margin-bottom: 16px;
  }
  .pet-hero-title {
    font-size: 2rem;
  }
  .product-content-details {
    margin-top: 30px !important;
    position: static !important;
  }
  .col-product-details-left,
  .col-product-details-right {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .pet-section {
    padding: 24px;
    margin-bottom: 20px;
  }
  #pet-characteristics,
  #pet-location {
    order: 1;
  } /* Hide top poster button on mobile */
  .breadcrumb-poster-row .petz-poster-btn-top {
    display: none !important;
  } /* Show mobile poster button */
  .mobile-poster-btn {
    display: block;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .petz-poster-btn-mobile {
    display: block;
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    background: #737373;
    border: 1px solid #444;
    color: #fff;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  .petz-poster-btn-mobile:hover {
    background: #333333;
    border-color: #222;
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
  }
  .petz-poster-btn-mobile i {
    margin-right: 8px;
  }
  .petz-hc-hero {
    padding: 36px 20px 32px;
    border-radius: 12px;
  }
  .petz-hc-hero h1 {
    font-size: 1.5rem;
  }
  .petz-hc-categories {
    grid-template-columns: 1fr;
  }
  .petz-hc-sidebar {
    display: none;
  }
  .petz-hc-mobile-nav {
    display: block;
  }
  .petz-hc-article-card {
    padding: 24px 20px;
  }
  .petz-hc-article-card h2 {
    font-size: 1.3rem;
  }
  .petz-hc-sidebar-nav {
    position: static;
  }
  .petz-hc-cta {
    padding: 32px 20px;
  } /* !important — overrides Bootstrap column padding */
  .col-petz-gallery,
  .col-petz-sidebar {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .col-petz-sidebar {
    margin-top: 24px;
  }
  .petz-sidebar-card {
    position: static;
  }
  .gallery-main {
    aspect-ratio: 16/10;
  }
  .svc-mobile-gallery{
    margin-left: -6px;
    margin-right: -6px;
  }
  .col-petz-sidebar .petz-sidebar-card,
  .petz-sidebar-card {
    overflow-y: visible;
    max-height: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom: 6px !important; /* Reduce gap before next section */
  }
  .col-petz-sidebar .petz-sidebar-card::-webkit-scrollbar,
  .petz-sidebar-card::-webkit-scrollbar {
    display: none;
  }
  .svc-sticky-contact-card {
    position: relative;
    top: 0;
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .svc-quick-info {
    gap: 6px;
  }
  .svc-quick-info-pill {
    font-size: 0.78rem;
    padding: 5px 10px;
  }
 .svc-catalog {
    margin-right: -15px;
}
  .svc-catalog-inner {
    padding: 20px 16px 16px 16px !important;
  }
  .svc-catalog-item {
    flex-wrap: wrap;
  }
  .svc-catalog-dots {
    display: none;
  }
  .svc-catalog-price {
    margin-top: 2px;
    font-size: 0.9rem;
  }
  .svc-catalog-footer {
    padding-top: 12px;
    margin-top: 8px;
    padding-bottom: 0;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .petz-hc-categories {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-hover-zones {
    display: none;
  }
  .petz-product-card .product-image-container.has-gallery::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    z-index: 10;
  }
  .donation-teaser-strip {
    border-radius: 12px;
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding: 1.25rem;
  }
  .teaser-content {
    flex-direction: column;
  }
  .profile-page-top .profile-details {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .profile-page-top .profile-details .left {
    width: 100%;
    text-align: center;
  }
  .profile-details .img-profile {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .profile-details .username {
    justify-content: center;
    font-size: 1.5rem;
  }
  .profile-details .profile-buttons .buttons,
  .profile-details .social ul {
    justify-content: center;
  }
  .profile-info-cards {
    grid-template-columns: 1fr;
  }
  .donation-methods-grid {
    grid-template-columns: 1fr;
  }
  .donation-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .donation-field-value {
    text-align: left;
  }
  .ts-wrapper .ts-control {
    min-height: 44px;
    font-size: 16px;
  }
  .tom-select-option .option-secondary {
    font-size: 11px;
  }
  #custom_fields_container {
    grid-template-columns: 1fr;
  }
  #custom_fields_container .checkbox-options-container:first-of-type {
    grid-column: 1;
  }
  .breed-dropdown-row {
    flex-direction: column;
    align-items: stretch;
  }
  .breed-select-wrapper {
    width: 100%;
  }
  .breed-mixed-checkbox {
    padding-top: 8px;
  }
  .pet-hero-title {
    font-size: 1.75rem;
    margin-top: 16px;
  }
  .pet-hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .petz-title-poster-row .petz-seo-h1 {
    font-size: 0.88rem;
    margin-bottom: 8px;
  }
  .breadcrumb-poster-row .breadcrumb-item:first-child a svg,
  .breadcrumb-row .breadcrumb-item:first-child a svg {
    display: inline-block !important;
    width: 18px;
    height: 18px;
  }
  .pet-section {
    padding: 20px;
  }
  .pet-section-title {
    font-size: 1.4rem;
  }
  .description {
    font-size: 16px;
  }
  .pet-characteristics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .description-fade {
    height: 100px;
  }
  .btn-read-more {
    padding: 10px 24px;
    font-size: 0.9rem;
  }
  .svc-qualifications-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  /* Push scroll-up button above sticky bar */
  .scrollup,
  button.scrollup {
    bottom: 90px !important;
    right: 15px !important;
  } /* Smaller text for highlight boxes */
  .highlight-item-label,
  .pet-highlight-label {
    font-size: 11px;
  }
  .highlight-item-value,
  .pet-highlight-value {
    font-size: 13px;
    font-weight: 600;
  } /* Tighter section titles */
  .pet-section-title {
    font-size: 18px;
  }
  .pet-story-subtitle {
    font-size: 15px;
  } /* Compact card text */
  .petz-product-card .product-title,
  .product-card .product-title {
    font-size: 14px !important;
  }
  .petz-card-location {
    font-size: 12px;
  }
  .petz-attr,
  .petz-card-attributes li {
    font-size: 12px;
  } /* ── Edge-to-Edge Containers (Native App Feel) ──────────────────── */

  /* Reclaim lost space from Bootstrap container gutters */
  .pet-adoption-page .container,
  .pet-listing-page .container,
  .pet-service-page .container {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .pet-adoption-page .col-12,
  .pet-listing-page .col-12,
  .pet-service-page .col-12 {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  /* Reset ALL row gaps on mobile — flush sections everywhere */
  .petz-content-row,
  .petz-gallery-row,
  .petz-hero {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  /* Remove vertical padding on stacked columns so sections flow seamlessly */
  .petz-content-row > [class*="col-"] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .petz-sidebar-sticky-wrapper,
  .petz-sidebar-bottom-fixed {
    margin: 0 !important;
    padding: 0 !important;
  } /* Make .pet-section & .petz-sidebar-card break out of their shell */
  .pet-section,
  .petz-sidebar-card,
  .svc-sticky-contact-card,
  .svc-location-wrapper,
  .svc-map-card,
  .svc-hours-card,
  .svc-reviews-section,
  .svc-mobile-catalog,
  .pet-prominent-boxes,
  .pet-highlights-container {
    margin-left: -8px;
    margin-right: -8px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    border-bottom: 3px solid #f1f5f9;
    padding: 20px 16px;
    background: #fff;
  }
  /* Location wrapper: inner .svc-card-location already has padding */
  .svc-location-wrapper {
    padding: 0;
  }
  .svc-map-link {
    padding: 6px;
  } /* Adjust titles to fit new layout */
  h2.pet-section-title {
    font-size: 1.1rem; /* Slightly smaller for balance */
    margin-bottom: 12px;
    padding-bottom: 8px;
  } /* Remove border only on the very last section in the page flow */
  .petz-content-row:last-of-type > [class*="col-"]:last-child > .pet-section:last-child,
  .petz-content-row:last-of-type > [class*="col-"]:last-child > .petz-sidebar-sticky-wrapper > .pet-section:last-child,
  .petz-content-row:last-of-type > [class*="col-"]:last-child > .petz-sidebar-bottom-fixed > .pet-section:last-child {
    border-bottom: none;
  } /* Adjust specific sections */
  #pet-story {
    margin-bottom: 0 !important;
    padding-bottom: 12px !important;
  }
  #pet-story .description-wrapper,
  .description-wrapper {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
  }
  .product-description-container .description {
    padding: 0 !important;
  }
  .product-description-container .description p:last-child {
    margin-bottom: 0 !important;
  } /* Service Details list compaction */
  .svc-logistics-list li {
    padding: 10px 0 !important;
    gap: 8px !important;
  }
  .svc-logistics-icon {
    width: 28px !important;
    height: 28px !important;
  }
  .svc-logistics-icon svg {
    width: 16px !important;
    height: 16px !important;
  } /* Characteristics lists compaction */
  /* Characteristics lists & Tables flattening inside edge-to-edge section */
  .pet-details-table,
  .pet-details-group {
    margin-bottom: 24px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
  }
  .pet-details-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 16px;
  }
  .pet-details-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .pet-details-table td,
  .pet-details-table td.label-cell,
  .pet-details-table td.value-cell {
    padding-left: 0;
    padding-right: 0;
  }
  .pet-details-label {
    padding-left: 0;
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .pet-details-list {
    padding-left: 38px; /* Keep checkmarks aligned with text */
  }
  .pet-details-list li {
    margin-bottom: 6px;
    font-size: 0.9rem;
  }
  .pet-details-table tr:hover,
  .pet-details-group:hover {
    background-color: transparent;
    box-shadow: none;
  } /* ── Directory (Phase 2) ─────────────────────────────────── */
  .petz-directory-grid {
    gap: 0; /* Stack without gaps natively */
  }
  .petz-directory-card {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    border-bottom: 6px solid #f1f5f9;
    margin-left: -15px; /* Overrides .container padding */
    margin-right: -15px;
    width: calc(100% + 30px);
  }
  .petz-directory-card:last-child {
    border-bottom: none;
  }
  .petz-directory-card-name {
    font-size: 1.15rem;
  } /* ── User Profiles (Phase 3) ─────────────────────────────── */
  .profile-page-top {
    padding-bottom: 0;
  }
  .sidebar-tabs-content {
    margin-left: -15px; /* Overrides .container padding */
    margin-right: -15px;
    width: calc(100% + 30px);
    padding: 20px 16px;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 6px solid #f1f5f9;
  } /* ── Micro Adjustments (Phase 4) ───────────────────────── */
  .pet-prominent-boxes {
    margin-bottom: 0;
    padding: 0 !important;
    border-bottom: 6px solid #f1f5f9 !important;
  } /* Flatten inner prominent boxes inside edge-to-edge containers */
  .pet-prominent-boxes .prominent-box,
  .pet-prominent-boxes .prominent-box-vertical {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  .petz-sidebar-card .prominent-box,
  .petz-sidebar-card .prominent-box-vertical,
  .petz-sidebar-card .sidebar-info-boxes,
  .petz-sidebar-card .sidebar-info-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
  }
  .petz-sidebar-card .sidebar-info-boxes {
    padding: 0; /* Wrapper needs 0 padding, inner boxes get the 12px */
    border-bottom: none;
  }
  .pet-prominent-boxes > div:last-child .prominent-box,
  .pet-prominent-boxes > div:last-child .prominent-box-vertical,
  .petz-sidebar-card .prominent-box:last-child,
  .petz-sidebar-card .prominent-box-vertical:last-child,
  .petz-sidebar-card .sidebar-info-box:last-child {
    border-bottom: none;
  }
  .pet-prominent-boxes .prominent-box:hover,
  .pet-prominent-boxes .prominent-box-vertical:hover,
  .petz-sidebar-card .prominent-box:hover,
  .petz-sidebar-card .prominent-box-vertical:hover,
  .petz-sidebar-card .sidebar-info-box:hover {
    box-shadow: none;
    transform: none;
    background: transparent;
  }
  .share-buttons,
  .social-share,
  .fp-share-icons {
    gap: 10px !important;
  }
  .share-buttons a,
  .share-link,
  .social-share a,
  .product-share button.button-link {
    width: 46px !important;
    height: 46px !important;
  }
  .share-buttons svg,
  .share-link svg,
  .social-share svg,
  .product-share svg {
    width: 22px !important;
    height: 22px !important;
  }
  .pet-location-date-box .row {
    flex-direction: column;
  }
  .pet-location-date-box .col-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-bottom: 10px;
  }
  .pet-location-date-box .col-12.col-md-4 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }
  /* Adoption Highlights: 2×2 grid with cross separators (matching prominent boxes) */
  .pet-highlights-container {
    padding: 0 !important;
    border-bottom: 6px solid #f1f5f9 !important; /* Force bottom separator */
  }
  .pet-highlights-container .row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0;
    margin: 0;
  }
  .pet-highlights-container .col-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 !important;
    margin-bottom: 0;
    border-bottom: 6px solid #f1f5f9;
  }
  .pet-highlights-container .col-6:nth-child(odd) {
    border-right: 6px solid #f1f5f9;
  }
  /* Last row: no bottom border */
  .pet-highlights-container .col-6:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .pet-highlights-container .highlight-item {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 8px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    margin: 0;
  }
  .hl-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hl-icon svg {
    width: 22px;
    height: 22px;
  }
  .hl-label {
    font-size: 0.7rem;
    margin-bottom: 0;
  }
  .hl-value {
    font-size: 0.85rem;
  }
  .prominent-box {
    min-height: auto;
  } /* Highlight boxes: 2×2 grid with cross separators */
  .pet-prominent-boxes .row {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 0;
    margin: 0;
  }
  .pet-prominent-boxes .col-4,
  .pet-prominent-boxes .col-6 {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    padding: 0 !important;
    margin-bottom: 0;
    border-bottom: 6px solid #f1f5f9;
  }
  .pet-prominent-boxes .col-4:nth-child(odd),
  .pet-prominent-boxes .col-6:nth-child(odd) {
    border-right: 6px solid #f1f5f9;
  }
  /* Last row: no bottom border */
  .pet-prominent-boxes .col-4:nth-last-child(-n+2),
  .pet-prominent-boxes .col-6:nth-last-child(-n+2) {
    border-bottom: none;
  }
  .prominent-box-vertical {
    padding: 10px 8px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
  }
  .prominent-box-vertical .pb-icon-top {
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
  }
  .prominent-box-vertical .pb-icon-top svg {
    width: 22px;
    height: 22px;
  }
  .prominent-box-vertical .pb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .prominent-box-vertical .pb-label {
    font-size: 0.7rem;
    text-align: center;
  }
  .prominent-box-vertical .pb-value {
    font-size: 0.85rem;
    text-align: center;
  }
  .description-wrapper {
    padding: 18px 16px;
  }
  .description-wrapper::before {
    font-size: 36px;
    top: 6px;
    left: 12px;
  }
  .prominent-box {
    padding: 12px;
  }
  .pet-section-title {
    font-size: 1.1rem;
    margin-bottom: 14px;
  }
  .pet-details-group {
    padding: 14px 16px;
    margin-bottom: 12px;
  }
  .owner-edit-badge {
    top: 8px;
    right: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  .owner-edit-badge span {
    display: none;
  }
  .owner-edit-badge svg {
    width: 18px;
    height: 18px;
  }
  .gallery-main {
    aspect-ratio: 4/3;
  } /* !important — overrides Swiper inline sizing */
  .gallery-thumb {
    width: 80px !important;
    height: 60px !important;
  }
  .petz-sidebar-card {
    padding: 20px;
  } /* !important — overrides Modesy .product-card .product-title (L2931) */
  .petz-sidebar-card .product-title {
    font-size: 1.5rem !important;
  } /* ── Full-width mobile layout ─────────────────────── */
  /* All !important below needed (overrides Bootstrap/Modesy) */

  .container,
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .product-details-container,
  .product-content,
  .product-content-inner,
  .product-page .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .section,
  .section-related-products,
  .section-description,
  .petz-info-section,
  .petz-actions-section,
  .petz-related-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .section-related-products {
    margin-top: 20px !important;
    margin-bottom: 0 !important;
  }
  .section-related-products + .section-related-products {
    margin-top: 8px !important;
  }
  .petz-gallery,
  .product-gallery-container,
  .col-petz-gallery {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
  .petz-info-box,
  .pet-info-box,
  .info-box-card {
    margin-left: 0;
    margin-right: 0;
  }
  .related-scroll-container {
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin-left: -12px !important;
    margin-right: -12px !important;
    width: calc(100% + 24px) !important;
  }
  .section-related-services .petz-service-row .card-body,
  .section-related-products .petz-product-card .card-body {
    padding: 6px 8px !important;
    gap: 1px !important;
  }
  .related-scroll-container .petz-service-row {
    gap: 8px !important;
  }
  /* ── Scroll progress indicator (Edge-to-edge separator) ── */
  .scroll-progress-track {
    height: 6px;
    background: #f1f5f9; /* Same as petz edge-to-edge borders */
    margin: 16px -12px 0 -12px; /* Pulls out to edges on mobile */
    width: calc(100% + 24px); /* Accounts for mobile container padding */
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .scroll-progress-track.visible {
    opacity: 1;
  }
  .scroll-progress-thumb {
    height: 100%;
    background: var(--petz-primary, #5cb85c);
    border-radius: 4px;
    width: 30%;
    transition: transform 0.15s ease-out;
    transform: translateX(0);
  }

  /* Equal height cards */
  .related-scroll-container {
    align-items: stretch !important;
  }
  .related-scroll-item {
    display: flex !important;
  }
  .related-scroll-item .petz-product-card,
  .related-scroll-item .petz-service-row {
    height: 100% !important;
    flex: 1 !important;
  }
  .related-scroll-item .petz-service-row .card-body {
    flex: 1 !important;
  }
  .related-scroll-container .petz-service-row .card-content-wrapper {
    padding-right: 6px !important;
  }
  /* Match adoption card tightness */
  .related-scroll-container .petz-service-row .product-title {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }
  .related-scroll-container .petz-service-row .petz-svc-card-columns {
    gap: 0 !important;
    margin: 0 !important;
  }
  .related-scroll-container .petz-service-row .petz-meta-row {
    margin-top: auto !important;
    padding-top: 2px !important;
  }
  .related-scroll-container .petz-service-row .petz-svc-title-row {
    margin-bottom: 0 !important;
  }
  .row {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }
  .row > [class*="col-"] {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
  .product-title-section,
  .pet-hero-title,
  .product-header {
    padding-left: 12px;
    padding-right: 12px;
  }
  .svc-identity-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
  }
  .svc-identity-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    border-left: 3px solid var(--petz-primary, #5cb85c);
    padding: 10px 16px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 8px;
    line-height: 1.4;
  }
  .svc-identity-meta {
    gap: 4px 8px;
    font-size: 0.8rem;
    padding-left: 2px;
  } /* Hide experience on mobile — shown in details table below */
  .svc-meta-experience {
    display: none;
  } /* Compact pills on mobile — keep styling, reduce size */
  .svc-hero-pill {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    gap: 3px;
  }
  .svc-hero-pill svg,
  .svc-hero-pill i {
    width: 12px;
    height: 12px;
  }
  .svc-hero-hours-status {
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 12px;
    gap: 4px;
  }
  .svc-hours-dot {
    width: 6px;
    height: 6px;
  }
  .svc-identity-header-actions {
    gap: 4px 8px;
    flex-wrap: wrap;
    padding-left: 2px;
  }

  /* ── Mobile List View (Global) ────────────────── */
  .row-product .col-product,
  .row-product .col-product-5,
  .row-product .col-product-6 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .row-product {
    margin-left: 0 !important;
    margin-right: 0 !important;
    gap: 0;
  }

  #productListResultContainer .petz-product-card,
  #productListResultContainer .petz-service-row,
  #productListResultContainer .petz-dynamic-card {
    flex-direction: row !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
    border-bottom: 6px solid #f1f5f9 !important;
    margin-bottom: 0 !important;
    height: auto !important;
    padding: 12px 16px !important;
    gap: 6px !important;
    background: #fff !important;
  }

  /* Service Row — mobile adjustments */
  .petz-service-row .card-image-column {
    flex: 0 0 100px !important;
    width: 100px !important;
  }

  .petz-service-row .product-image-container {
    width: 100px !important;
    aspect-ratio: 1/1 !important;
    border-radius: 10px !important;
  }

  .petz-service-row .card-body {
    padding: 0 !important;
    gap: 4px !important;
  }

  .petz-service-row .petz-svc-pills {
    gap: 4px;
  }

  .petz-service-row .petz-svc-pill {
    font-size: 0.6rem;
    padding: 2px 7px;
  }

  .petz-service-row .petz-card-attributes {
    flex-direction: column !important;
    gap: 0px !important;
  }

  /* Hide right column on mobile — show only universal highlights */
  .petz-svc-col-right {
    display: none !important;
  }

  .petz-svc-card-columns {
    flex-direction: column !important;
    gap: 0 !important;
  }

  #productListResultContainer .petz-product-card:last-child {
    border-bottom: none !important;
  }

  /* Image Column (Left Side) — listing pages only */
  #productListResultContainer .petz-product-card .card-image-column {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 130px !important;
    width: 130px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Inside Image Container — listing pages only */
  #productListResultContainer .petz-product-card .product-image-container {
    width: 130px !important;
    height: auto !important;
    aspect-ratio: 3/4 !important; /* Portrait — matches right column height */
    border-radius: 12px !important; /* All corners rounded */
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #productListResultContainer .petz-product-card .lazyload.img-fluid.product-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: static !important;
    transform: none !important;
  }

  #productListResultContainer .petz-product-card .gallery-hover-zones,
  #productListResultContainer .petz-product-card .gallery-dots {
    display: none !important;
  }

  #productListResultContainer .petz-product-card .image-count-badge {
    display: inline-flex !important;
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    padding: 0px 8px !important;
    font-size: 0.65rem !important;
    z-index: 5 !important;
  }

  #productListResultContainer .petz-product-card .product-image-container {
    position: relative !important;
  }

  /* Card Body (Right Side) — listing pages only */
  #productListResultContainer .petz-product-card .card-body {
    flex: 1 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  /* Badges (wishlist/status) */
  .petz-card-badge {
    top: 8px !important;
    left: 6px !important;
    right: auto !important;
    padding: 2px 6px !important;
    font-size: 0.6rem !important;
    border-radius: 8px !important;
  }

  .petz-card-badge-emergency + .petz-card-badge-open,
  .petz-card-featured + .petz-card-badge-open,
  .petz-card-featured + .petz-card-badge-emergency {
    top: 30px !important;
  }

  .petz-product-card .product-actions-overlay {
    top: 8px !important;
    right: 8px !important;
  }

  .petz-product-card .action-btn.wishlist-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .petz-product-card .action-btn.wishlist-btn i {
    font-size: 14px !important;
    line-height: 28px !important;
  }

  /* Text Truncation & Sizing — listing pages only */
  #productListResultContainer .petz-product-card .card-body {
    padding: 0 !important;
  }

  #productListResultContainer .petz-product-card .product-title {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #productListResultContainer .card-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important; /* Prevents overflow */
    padding: 0 15px 12px !important;
  }

  .petz-card-location {
    font-size: 0.8rem !important;
    margin-bottom: 4px !important;
  }

  /* Date banner is now in the footer (right column), styled via .petz-card-footer rules */

  /* On listing mobile, meta row stacks vertically and matches highlights */
  #productListResultContainer .petz-meta-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  #productListResultContainer .petz-meta-row .petz-attr {
    font-size: 0.8rem !important;
    color: var(--petz-text-black) !important;
  }

  .petz-card-divider {
    height: 1px !important;
    background-color: var(--petz-border) !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .petz-card-attributes {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
  }

  .petz-attr {
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .petz-card-details {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
  }

  .petz-card-footer {
    margin-top: 0 !important;
    padding: 0 !important;
    border-top: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    list-style: none !important;
  }

  .petz-card-date {
    font-size: 0.75rem !important;
  }
}

@media (max-width: 576px) {
  .petz-profile-avatar {
    width: 90px;
    height: 90px;
  }
  .petz-profile-header-name {
    font-size: 1.3rem;
  }
  .petz-profile-header-buttons {
    flex-direction: column;
    width: 100%;
  }
  .petz-profile-header-btn {
    width: 100%;
    justify-content: center;
  }
  .fp-share-icons .product-share ul li button {
    width: 38px !important;
    height: 38px !important;
  }
  .fp-share-icons .product-share ul li button i {
    font-size: 18px;
  }
  .auth-box {
    padding: 35px 25px;
    border-radius: 16px;
  }
  .auth-box .title {
    font-size: 24px;
  }
  .auth-form-input,
  .auth-box .form-control {
    height: 50px;
    font-size: 14px;
  }
  .auth-box .btn-custom {
    height: 50px;
    font-size: 15px;
  }
  .pet-characteristics-grid {
    grid-template-columns: 1fr;
  }
  .btn-contact-seller {
    font-size: 1rem !important;
    padding: 12px 20px !important;
  }
  /* ── Global modal fix: center all modals on mobile ── */
  .modal-dialog {
    margin: 12px auto !important;    /* Symmetric horizontal centering */
    max-width: calc(100% - 16px);    /* 8px margin on each side */
  }
  .modal-content {
    border-radius: var(--petz-radius, 12px);
  }
  .modal-custom .modal-header {
    padding: 20px 20px 12px;
  }
  .modal-custom .modal-header .modal-title {
    font-size: 18px;
  }
  .modal-custom .modal-body {
    padding: 16px 20px;
  }
  .modal-custom .modal-footer {
    padding: 12px 20px 20px;
  }
  #profile-rating-display i {
    font-size: 32px;
  }
  .msg-recipient {
    gap: 10px;
    padding: 12px;
  }
  .msg-recipient-avatar img {
    width: 44px;
    height: 44px;
  }
  .msg-verified-badge {
    width: 16px;
    height: 16px;
  }
  .msg-verified-badge svg {
    width: 11px;
    height: 11px;
  }
  .petz-directory-tabs {
    justify-content: flex-start;
    gap: 8px;
    padding: 4px 0;
  }
  .petz-directory-tab {
    min-width: 85px;
    padding: 12px 12px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
  }
  .petz-tab-icon {
    width: 40px;
    height: 40px;
  }
  .petz-tab-icon img {
    width: 28px;
    height: 28px;
  }
  .petz-directory-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .petz-directory-hero {
    padding: 24px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .petz-directory-hero-title {
    font-size: 1.35rem;
  }
  .petz-directory-hero-subtitle {
    font-size: 0.95rem;
  }
  .petz-directory-search-inner {
    padding: 4px 4px 4px 12px;
  }
  .petz-directory-card-header {
    padding: 14px 16px 0;
  }
  .petz-directory-card-body {
    padding: 12px 16px 0;
  }
  .petz-directory-card-footer {
    padding: 12px 16px 14px;
  }
  .petz-directory-card-avatar {
    width: 56px;
    height: 56px;
  }
  .petz-directory-card-name {
    font-size: 0.98rem;
  }
  .extras-card-body {
    padding: 12px;
  }
  .pricelist-row .repeater-row-inline {
    flex-direction: column !important;
  }
  .repeater-col-service,
  .repeater-col-price,
  .repeater-col-note {
    width: 100%;
    flex: auto;
  }
  .repeater-col-action {
    position: absolute;
    top: 8px;
    right: 8px;
  }
  .pricelist-row.repeater-row {
    position: relative;
    margin-left: 4px;
    padding-right: 40px;
  }
  .extras-card-actions {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .petz-review-card {
    padding: 16px;
  }
  .petz-review-body,
  .petz-review-report {
    padding-left: 0;
    margin-top: 10px;
  }
  .petz-owner-reply {
    margin-left: 0;
  }
  .petz-reviews-header .btn-write-review {
    margin-left: 0;
    width: 100%;
    margin-top: 4px;
  }
}

@media (max-width: 575px) {
  .svc-quick-info-pill {
    font-size: 0.75rem;
    padding: 4px 8px;
    gap: 4px;
  }
  .svc-quick-info-pill svg {
    width: 14px;
    height: 14px;
  }
  .svc-faq-question {
    padding: 12px 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .petz-product-card .card-body {
    padding: 12px;
  }
}

@media (max-width: 400px) {
  .pet-highlights-container .highlight-item {
    padding: 12px 6px;
    min-height: 100px;
  }
  .hl-icon svg {
    width: 28px;
    height: 28px;
  }
  .hl-label {
    font-size: 0.65rem;
  }
  .hl-value {
    font-size: 0.75rem;
  }
}
