/* BuyBackEmpire responsive refinements — companion to base.css */

@media (max-width: 1199.98px) {
  .navbar > .container {
    gap: 12px;
  }

  .navbar .main-menu {
    gap: 0;
  }

  .navbar .main-menu .item {
    padding-right: 11px;
    padding-left: 11px;
    font-size: 0.88rem;
  }

  .navbar .main-menu .item::after {
    right: 8px;
    left: 8px;
  }

  .icon-menu .cart .sale-link-text {
    display: none;
  }

  .icon-menu .sale-link {
    width: 42px;
    padding: 0;
  }

  .hero-content {
    padding-right: 18px;
  }

  .hero-chip--tag { left: -4%; }
  .hero-chip--ship { right: -3%; }
  .hero-chip--free { left: -2%; }

  .cta-band {
    padding: 50px 46px;
  }
}

@media (max-width: 991.98px) {
  .navbar > .container {
    min-height: 64px;
    padding-left: 20px;
  }

  .navbar > .container {
    gap: 10px;
  }

  .logo-img-lg,
  .logo-img-default {
    max-width: 180px;
    max-height: 40px;
  }

  .navbar .main-menu {
    display: none;
  }

  .navbar .icon-menu {
    margin-left: auto;
  }

  .toggle-btn {
    display: flex !important;
  }

  .icon-menu .toggle-btn button {
    background: var(--bb-forest);
    color: #fff;
    font-size: 1rem;
  }

  .icon-menu .toggle-btn button:hover,
  .icon-menu .toggle-btn button:focus {
    background: var(--bb-forest-soft);
    color: #fff;
  }

  .search-form-top {
    right: 15px;
  }

  .hero-section {
    padding: 36px 0 64px;
  }

  .hero-content {
    padding-right: 15px;
  }

  .hero-title {
    max-width: 14em;
  }

  .hero-visual-col {
    margin-top: 58px;
  }

  .hero-visual {
    margin-right: auto;
    max-width: 460px;
  }

  .hero-chip--tag { left: 2%; top: -4%; }
  .hero-chip--ship { right: 2%; }
  .hero-chip--free { left: 3%; bottom: 5%; }

  .home-section,
  .why-choose-us,
  .cta-section {
    padding: 72px 0;
  }

  .steps-section {
    padding: 76px 0 80px;
  }

  .steps-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 28px;
  }

  .steps-list::before {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    padding-top: 56px;
  }
}

@media (max-width: 767.98px) {
  body.body-text {
    font-size: 15.5px;
  }

  body .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .demo-banner p {
    padding-right: 40px;
    padding-left: 15px;
  }

  .demo-banner .close-banner {
    right: 13px;
  }

  .navbar > .container {
    min-height: 58px;
    padding: 6px 7px 6px 18px;
    box-shadow: 4px 4px 0 var(--bb-forest);
  }

  header {
    padding-top: 10px;
  }

  .footer-shell {
    border-radius: 28px;
  }

  .footer-intro {
    font-size: 1.3rem;
  }

  .logo-img-lg,
  .logo-img-default {
    max-width: 158px;
    max-height: 34px;
  }

  .icon-menu {
    gap: 0 !important;
  }

  .icon-menu > li:not(.nav-cta) > a,
  .icon-menu .toggle-btn button {
    width: 38px;
    height: 38px;
  }

  .icon-menu .sale-link {
    width: 38px;
    height: 38px;
  }

  .icon-menu .submenu {
    top: calc(100% + 8px);
    right: -10px;
  }

  .search-form-top {
    top: calc(100% + 6px);
    right: 10px;
    width: calc(100vw - 20px);
    padding: 10px;
  }

  .cbp-spmenu.cbp-spmenu-right {
    right: -100vw;
    width: min(88vw, 360px);
  }

  .hero-section {
    padding: 28px 0 56px;
  }

  .hero-title {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 11.4vw, 3.3rem);
    letter-spacing: -0.045em;
  }

  .hero-subtitle {
    margin-bottom: 26px;
    font-size: 1.02rem;
  }

  .home-search-form .input-group {
    padding: 5px;
    box-shadow: 4px 4px 0 var(--bb-forest);
  }

  .search-input.form-control {
    height: 50px;
    padding-left: 16px;
    font-size: 0.95rem;
  }

  .home-search-form .btn-primary {
    min-height: 50px;
    padding-right: 1.15rem;
    padding-left: 1.15rem;
    font-size: 0.92rem;
  }

  .hero-cats-label {
    margin-top: 24px;
  }

  .hero-visual-col {
    margin-top: 50px;
  }

  .hero-visual {
    aspect-ratio: 520 / 500;
    border-radius: 24px;
  }

  .hero-chip {
    padding: 7px 13px 7px 11px;
    font-size: 0.78rem;
  }

  .brand-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .brand-strip-list {
    gap: 2px 20px;
  }

  .brand-strip-list li {
    font-size: 1rem;
  }

  .home-section,
  .why-choose-us,
  .cta-section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 30px;
  }

  .section-header--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .section-header h2,
  .why-intro h2 {
    font-size: 2rem;
  }

  .section-header .lead {
    font-size: 1rem;
  }

  .pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .category-card {
    padding: 8px 8px 14px;
    border-radius: 20px;
  }

  .category-media {
    height: 128px;
    border-radius: 13px;
  }

  .category-image {
    padding: 10px;
  }

  .category-name {
    margin: 12px 6px 0;
    font-size: 1rem;
  }

  .category-go {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
  }

  .device-grid,
  .device-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pick-grid--brands .category-media {
    height: 110px;
  }

  .pick-grid > [data-reveal]:nth-child(2n + 1),
  .device-grid > [data-reveal]:nth-child(2n + 1) { --i: 0; }
  .pick-grid > [data-reveal]:nth-child(2n + 2),
  .device-grid > [data-reveal]:nth-child(2n + 2) { --i: 1; }

  .device-media {
    height: 130px;
  }

  .device-body {
    padding: 12px 14px 14px;
  }

  .device-name {
    font-size: 0.95rem;
  }

  .page-head {
    padding: 32px 0 28px;
  }

  .page-body {
    padding: 32px 0 64px;
  }

  .filters-form {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .steps-section {
    padding: 60px 0 64px;
  }

  .steps-list {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .step-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 0 18px;
    padding-bottom: 32px;
  }

  .step-item:last-child {
    padding-bottom: 0;
  }

  .step-item::before {
    position: absolute;
    top: 54px;
    bottom: 0;
    left: 26px;
    border-left: 2px dashed rgba(216, 240, 226, 0.3);
    content: "";
  }

  .step-item:last-child::before {
    display: none;
  }

  .step-num {
    grid-row: span 3;
    margin-bottom: 0;
  }

  .step-icon {
    display: none;
  }

  .step-item h3 {
    margin-top: 2px;
    font-size: 1.2rem;
  }

  .step-item p {
    max-width: none;
    font-size: 0.95rem;
  }

  .feature-box {
    grid-template-columns: 50px 1fr;
    gap: 2px 16px;
    padding: 20px 0;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 1.1rem;
  }

  .feature-box h3 {
    font-size: 1.15rem;
  }

  .cta-band {
    padding: 38px 26px;
    border-radius: 24px;
  }

  .cta-band .btn-ink {
    width: 100%;
  }

  .footer-top {
    padding: 46px 0 36px;
  }

  .footer-top .row {
    row-gap: 28px;
  }

  .footer-bottom p {
    padding: 16px 0;
    font-size: 0.76rem;
  }
}

@media (max-width: 575.98px) {
  .nav-cta {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .icon-menu .user {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .home-search-form .btn-primary {
    padding-right: 0.95rem;
    padding-left: 0.95rem;
    font-size: 0.86rem;
  }

  .search-input.form-control {
    padding-right: 4px;
    padding-left: 14px;
    font-size: 0.9rem;
  }

  .hero-chip--ship {
    top: 40%;
  }
}
