/* Responsive rules remain with each page-scoped stylesheet so media-query cascade stays identical to the original files. */

/* Global mobile card density: keep service/info boxes two per row on phones. */
@media (max-width:640px){
  body.pg-index-updated .gd-card-grid,
  body.pg-index-updated .cards-grid,
  body.pg-index-updated .grid-4,
  body.pg-index-updated .grid-3,
  body.pg-index-updated .grid-2,
  body.pg-index-updated .stats-strip,
  body.pg-index-updated .cleaner-grid,
  body.page-archive-cleaner .statGrid,
  body.page-archive-cleaner .taxArchiveGrid,
  body.page-archive-cleaner .rankingArchiveGrid,
  body.page-archive-cleaner .contextPostGrid,
  body.single-carpet_cleaner .gd-service-grid,
  body.single-carpet_cleaner .gd-gallery,
  body.single-carpet_cleaner .gd-feature-group-grid,
  body.single-carpet_cleaner .gd-review-criteria-grid,
  body.pg-user-profile-ghalishoei-5-tabs .cards-grid,
  body.pg-user-profile-ghalishoei-5-tabs .mini-metrics,
  body.pg-owner-dashboard-ghalishoei .grid-5,
  body.pg-owner-dashboard-ghalishoei .grid-4,
  body.pg-owner-dashboard-ghalishoei .grid-3,
  body.pg-owner-dashboard-ghalishoei .gd-owner-create-service-grid,
  body.pg-owner-dashboard-ghalishoei .gd-owner-feature-groups,
  body.pg-owner-dashboard-ghalishoei .gd-owner-plans,
  body.pg-owner-dashboard-ghalishoei .gd-payment-stat-grid,
  body.pg-owner-dashboard-ghalishoei .gd-card-payments-stats,
  body.pg-owner-dashboard-ghalishoei .gd-owner-rank-slot-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  body.pg-index-updated .gd-info-card,
  body.pg-index-updated .info-card,
  body.pg-index-updated .card,
  body.page-archive-cleaner .seoCard,
  body.page-archive-cleaner .transparency,
  body.page-archive-cleaner .taxArchiveCard,
  body.single-carpet_cleaner .gd-service-card,
  body.single-carpet_cleaner .gd-feature-group-card,
  body.pg-owner-dashboard-ghalishoei .card,
  body.pg-user-profile-ghalishoei-5-tabs .saved-card,
  body.pg-user-profile-ghalishoei-5-tabs .review-card,
  body.pg-user-profile-ghalishoei-5-tabs .section-card{
    min-width:0!important;
    padding:12px!important;
    border-radius:18px!important;
  }

  body.pg-index-updated .gd-info-card h3,
  body.pg-index-updated .info-card h3,
  body.single-carpet_cleaner .gd-service-card h3,
  body.single-carpet_cleaner .gd-feature-group-card h3,
  body.page-archive-cleaner .taxArchiveCard strong{
    font-size:13px!important;
    line-height:1.55!important;
  }

  body.pg-index-updated .gd-info-card p,
  body.pg-index-updated .info-card p,
  body.single-carpet_cleaner .gd-service-card p{
    font-size:11px!important;
    line-height:1.75!important;
  }

  body.pg-index-updated .gd-info-card strong,
  body.pg-index-updated .info-card strong,
  body.single-carpet_cleaner .gd-service-card p,
  body.page-archive-cleaner .taxArchiveCard span{
    overflow-wrap:anywhere;
  }

  body.page-archive-cleaner .taxArchiveCard{grid-template-columns:36px minmax(0,1fr)!important;align-items:center}
  body.page-archive-cleaner .taxArchiveIcon{width:36px!important;height:36px!important;border-radius:13px!important}
  body.single-carpet_cleaner .gd-service-icon,
  body.pg-index-updated .gd-info-card .gd-icon,
  body.pg-index-updated .info-icon{width:36px!important;height:36px!important;border-radius:13px!important;margin-bottom:8px!important}
  body.single-carpet_cleaner .gd-gallery-item img{height:150px!important}

  body.pg-user-profile-ghalishoei-5-tabs .empty-state,
  body.pg-owner-dashboard-ghalishoei .gd-owner-empty-plans,
  body.page-archive-cleaner .cards > .empty,
  body.page-archive-cleaner .cards.list > .empty{
    grid-column:1/-1!important;
  }
}

/* ===== Site-wide mobile polish pass ===== */
@media (max-width:760px){
  html{font-size:15px;}
  body{overflow-x:hidden;}
  .container,.gd-container,
  body.pg-index-updated .container,
  body.page-archive-cleaner .container,
  body.single-carpet_cleaner .gd-container,
  body.page-ranking .container{
    width:min(100% - 24px,1180px)!important;
    max-width:100%!important;
  }
  .section,.gd-section,
  body.pg-index-updated .section,
  body.page-archive-cleaner .section,
  body.single-carpet_cleaner .gd-section,
  body.page-ranking .section{
    padding-top:34px!important;
    padding-bottom:34px!important;
  }
  .section-head,
  body.pg-index-updated .section-head,
  body.page-archive-cleaner .section-head,
  body.single-carpet_cleaner .gd-section-head,
  body.page-ranking .section-head{
    display:grid!important;
    gap:10px!important;
    margin-bottom:16px!important;
  }
  h1{font-size:clamp(25px,8vw,34px)!important;line-height:1.35!important;}
  h2{font-size:clamp(21px,6vw,28px)!important;line-height:1.45!important;}
  h3{line-height:1.55!important;}
  p{line-height:1.85;}
  .btn,.gd-btn,
  body.pg-index-updated .btn,
  body.page-archive-cleaner .btn,
  body.single-carpet_cleaner .gd-btn,
  body.page-ranking .btn,
  body.pg-owner-dashboard-ghalishoei .btn,
  body.pg-user-profile-ghalishoei-5-tabs .primary-btn,
  body.pg-user-profile-ghalishoei-5-tabs .ghost-btn,
  body.pg-user-profile-ghalishoei-5-tabs .soft-btn,
  body.pg-user-profile-ghalishoei-5-tabs .danger-btn{
    min-height:42px!important;
    border-radius:14px!important;
    padding:10px 12px!important;
    font-size:12px!important;
    font-weight:900!important;
  }
  input,select,textarea,
  body.pg-owner-dashboard-ghalishoei input,
  body.pg-owner-dashboard-ghalishoei select,
  body.pg-owner-dashboard-ghalishoei textarea{
    min-height:44px!important;
    border-radius:14px!important;
    font-size:13px!important;
  }
  .card,.gd-card,.gd-info-card,.gd-panel,
  body.pg-index-updated .info-card,
  body.page-archive-cleaner .listingCard,
  body.page-archive-cleaner .taxArchiveCard,
  body.single-carpet_cleaner .gd-panel,
  body.pg-owner-dashboard-ghalishoei .card,
  body.pg-user-profile-ghalishoei-5-tabs .panel,
  body.pg-user-profile-ghalishoei-5-tabs .section-card{
    border-radius:20px!important;
  }

  body.pg-index-updated .cards-grid,
  body.pg-index-updated .cleaner-grid,
  body.pg-index-updated .stats-strip,
  body.pg-index-updated .gd-card-grid,
  body.page-archive-cleaner .taxArchiveGrid,
  body.page-archive-cleaner .rankingArchiveGrid,
  body.page-archive-cleaner .contextPostGrid,
  body.page-ranking .rankingArchiveGridLarge,
  .gd-sponsored-strip-grid,
  body.pg-owner-dashboard-ghalishoei .gd-owner-plans,
  body.pg-owner-dashboard-ghalishoei .pricing.gd-owner-plans,
  body.pg-owner-dashboard-ghalishoei .gd-rank-plan-grid,
  body.pg-owner-dashboard-ghalishoei .gd-owner-feature-groups,
  body.pg-owner-dashboard-ghalishoei .gd-owner-service-grid-pro,
  body.pg-owner-dashboard-ghalishoei .gd-owner-rank-slot-grid,
  body.pg-user-profile-ghalishoei-5-tabs .cards-grid,
  body.pg-user-profile-ghalishoei-5-tabs .mini-metrics{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }

  body.pg-index-updated .info-card,
  body.page-archive-cleaner .taxArchiveCard,
  body.page-ranking .rankingArchiveCardLarge,
  .gd-sponsored-strip .gd-ad-slot,
  body.pg-owner-dashboard-ghalishoei .gd-service-card-pro,
  body.pg-owner-dashboard-ghalishoei .gd-owner-feature-group,
  body.pg-owner-dashboard-ghalishoei .gd-owner-plans .plan,
  body.pg-owner-dashboard-ghalishoei .gd-rank-plan-card{
    min-width:0!important;
    padding:12px!important;
  }

  body.page-archive-cleaner .taxArchiveCard{grid-template-columns:36px minmax(0,1fr)!important;}
  body.page-archive-cleaner .taxArchiveIcon{width:36px!important;height:36px!important;border-radius:13px!important;}
  body.page-archive-cleaner .taxArchiveCard strong,
  body.pg-index-updated .info-card h3,
  body.page-ranking .rankingArchiveCardTop strong{
    font-size:13px!important;
    line-height:1.55!important;
  }
  body.page-archive-cleaner .taxArchiveCard span,
  body.pg-index-updated .info-card p,
  body.page-ranking .rankingArchiveCardTop p,
  .gd-sponsored-strip .gd-ad-link{
    font-size:11px!important;
    line-height:1.75!important;
    overflow-wrap:anywhere;
  }
  body.pg-index-updated .info-icon{width:36px!important;height:36px!important;border-radius:13px!important;margin-bottom:8px!important;}
  .gd-sponsored-strip .gd-ad-slot{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:9px!important;align-items:center!important;}
  .gd-sponsored-strip .gd-ad-slot img{width:44px!important;height:44px!important;border-radius:14px!important;}
  .gd-sponsored-strip .gd-ad-badge{position:static!important;grid-column:1/-1;justify-self:start;margin:0!important;font-size:10px!important;padding:5px 8px!important;}
  .gd-sponsored-strip .gd-ad-link{padding-left:0!important;}

  body.pg-owner-dashboard-ghalishoei .main,
  body.pg-user-profile-ghalishoei-5-tabs .main{
    padding:14px 12px 92px!important;
  }
  body.pg-owner-dashboard-ghalishoei .topbar,
  body.pg-user-profile-ghalishoei-5-tabs .topbar{
    margin:-14px -12px 16px!important;
    padding:10px 12px!important;
    gap:8px!important;
  }
  body.pg-owner-dashboard-ghalishoei .topbar-left,
  body.pg-owner-dashboard-ghalishoei .topbar-right,
  body.pg-user-profile-ghalishoei-5-tabs .top-actions{
    gap:7px!important;
  }
  body.pg-owner-dashboard-ghalishoei .searchbox,
  body.pg-user-profile-ghalishoei-5-tabs .search-mini{
    min-width:0!important;
    width:100%!important;
    padding:8px 10px!important;
    border-radius:15px!important;
  }
  body.pg-owner-dashboard-ghalishoei .status-chip{display:none!important;}
  body.pg-owner-dashboard-ghalishoei .section-head h2,
  body.pg-user-profile-ghalishoei-5-tabs .top-title h1{font-size:22px!important;}
  body.pg-owner-dashboard-ghalishoei .section-head p,
  body.pg-user-profile-ghalishoei-5-tabs .top-title p{font-size:12px!important;line-height:1.8!important;}
  body.pg-owner-dashboard-ghalishoei .mobile-bottom,
  body.pg-user-profile-ghalishoei-5-tabs .mobile-bottom-nav{
    right:10px!important;
    left:10px!important;
    bottom:10px!important;
    border-radius:22px!important;
    padding:7px!important;
    box-shadow:0 -10px 34px rgba(16,42,54,.12)!important;
  }
  body.pg-user-profile-ghalishoei-5-tabs .mobile-bottom-nav{right:10px!important;left:10px!important;width:auto!important;}
}

@media (max-width:430px){
  .container,.gd-container,
  body.pg-index-updated .container,
  body.page-archive-cleaner .container,
  body.single-carpet_cleaner .gd-container,
  body.page-ranking .container{width:min(100% - 18px,1180px)!important;}
  body.pg-owner-dashboard-ghalishoei .gd-owner-plans .plan .price{font-size:18px!important;}
  body.pg-owner-dashboard-ghalishoei .gd-owner-plans .plan ul{gap:6px!important;}
  body.pg-owner-dashboard-ghalishoei .gd-owner-feature-checks label{font-size:10.5px!important;}
}


/* ===== Final requested overrides ===== */
:root{--gd-font-iran:var(--gd-font-vazir);}
html,body,button,input,select,textarea{font-family:var(--gd-font-iran)!important;}
@media (max-width:760px){
  /* Homepage featured cleaners should be one card per row on mobile. */
  body.pg-index-updated .cleaner-grid,
  body.home .gd-cleaner-grid{grid-template-columns:1fr!important;}
  /* Best/ranking boxes stay two per row on mobile. */
  body.page-ranking .rankingArchiveGridLarge,
  body.page-archive-cleaner .rankingArchiveGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:430px){
  body.page-ranking .rankingArchiveGridLarge,
  body.page-archive-cleaner .rankingArchiveGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}


/* Force archive service/category cards to remain two-up on mobile */
@media (max-width:760px){
  body.page-archive-cleaner .taxArchiveGrid,
  body.page-archive-cleaner .taxArchiveGrid.servicesGrid,
  body.page-archive-cleaner .contextBlock .taxArchiveGrid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  body.page-archive-cleaner .taxArchiveGrid > .taxArchiveCard,
  body.page-archive-cleaner .taxArchiveGrid.servicesGrid > .taxArchiveCard,
  body.page-archive-cleaner .contextBlock .taxArchiveGrid > .taxArchiveCard{
    width:auto!important;
    min-width:0!important;
    grid-column:auto!important;
  }
  .gd-ranking-v2 .ranking-list{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:14px!important;
  }
  .gd-ranking-v2 .ranking-list .rank-card{
    min-width:0!important;
    grid-column:1/-1!important;
  }
  .gd-ranking-v2 .side-actions,
  .gd-ranking-v2 .rank-side .side-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .gd-ranking-v2 .mini-ratings{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .gd-ranking-v2 .side-actions .btn,
  .gd-ranking-v2 .side-actions .btn-primary,
  .gd-ranking-v2 .side-actions .btn-green,
  .gd-ranking-v2 .side-actions .profile-link{
    grid-column:auto!important;
    min-width:0!important;
  }
  body.page-archive-cleaner .cards,
  body.page-archive-cleaner .cards:not(.list),
  body.page-archive-cleaner .cards.list{
    display:grid!important;
    grid-template-columns:1fr!important;
  }
  body.page-archive-cleaner .listingCard,
  body.page-archive-cleaner .listingCard--compact{
    grid-column:1/-1!important;
    width:100%!important;
  }
}



@media (max-width:780px){
  .gd-ranking-v2 .side-actions,
  .gd-ranking-v2 .rank-side .side-actions{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:10px !important;
  }
  .gd-ranking-v2 .side-actions > *,
  .gd-ranking-v2 .rank-side .side-actions > *{
    grid-column:auto !important;
    width:100% !important;
    min-width:0 !important;
  }
}
@media (max-width:480px){
  .gd-ranking-v2 .side-actions,
  .gd-ranking-v2 .rank-side .side-actions{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
}

/* Mobile override for redesigned homepage services: keep icons visible, not compressed. */
@media(max-width:640px){
  body.pg-index-updated .gd-services-redesign .gd-service-card-grid,
  .gd-services-redesign .gd-service-card-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card,
  .gd-services-redesign .gd-service-card{
    min-height:214px!important;
    padding:16px 11px 14px!important;
    border-radius:22px!important;
    gap:10px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card::before,
  .gd-services-redesign .gd-service-card::before{
    inset:10px 10px auto 10px;
    height:82px;
    border-radius:18px;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__icon,
  body.pg-index-updated .gd-services-redesign .gd-service-card .info-icon.gd-service-card__icon,
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-icon.gd-service-card__icon,
  .gd-services-redesign .gd-service-card .gd-service-card__icon,
  .gd-services-redesign .gd-service-card .info-icon.gd-service-card__icon,
  .gd-services-redesign .gd-service-card .gd-icon.gd-service-card__icon{
    width:68px!important;
    height:68px!important;
    min-width:68px!important;
    border-radius:22px!important;
    margin:0!important;
    padding:0!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__icon svg,
  .gd-services-redesign .gd-service-card .gd-service-card__icon svg{
    width:31px!important;
    height:31px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__icon.has-image img,
  .gd-services-redesign .gd-service-card .gd-service-card__icon.has-image img{
    transform:scale(1.26)!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card h3,
  .gd-services-redesign .gd-service-card h3{
    font-size:14px!important;
    line-height:1.55!important;
    margin-bottom:4px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card p,
  .gd-services-redesign .gd-service-card p{
    font-size:11.5px!important;
    line-height:1.75!important;
    max-width:140px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card__link,
  .gd-services-redesign .gd-service-card__link{
    min-height:34px!important;
    padding:7px 10px!important;
    font-size:12px!important;
  }
}
@media(max-width:370px){
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__icon,
  .gd-services-redesign .gd-service-card .gd-service-card__icon{
    width:62px!important;
    height:62px!important;
    min-width:62px!important;
    border-radius:20px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card,
  .gd-services-redesign .gd-service-card{
    min-height:204px!important;
  }
}


@media(max-width:760px){
  body.pg-index-updated .gd-services-redesign .gd-service-card,
  .gd-services-redesign .gd-service-card{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    text-align:center!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__icon,
  body.pg-index-updated .gd-services-redesign .gd-service-card .info-icon.gd-service-card__icon,
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-icon.gd-service-card__icon,
  .gd-services-redesign .gd-service-card .gd-service-card__icon,
  .gd-services-redesign .gd-service-card .info-icon.gd-service-card__icon,
  .gd-services-redesign .gd-service-card .gd-icon.gd-service-card__icon{
    align-self:center!important;
    justify-self:center!important;
    margin-inline:auto!important;
    margin-bottom:2px!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__body,
  .gd-services-redesign .gd-service-card .gd-service-card__body{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
  }
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__body h3,
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__body p,
  body.pg-index-updated .gd-services-redesign .gd-service-card .gd-service-card__link,
  .gd-services-redesign .gd-service-card .gd-service-card__body h3,
  .gd-services-redesign .gd-service-card .gd-service-card__body p,
  .gd-services-redesign .gd-service-card .gd-service-card__link{
    text-align:center!important;
    margin-inline:auto!important;
  }
}
