.home-accessories-section {
  position: relative;
}

.home-accessories-wrap {
  display: flex;
  flex-direction: column;
}

.home-accessories-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.5rem;
}

.home-shelf-title {
  display: block;
  width: 100%;
  margin: 0 0 1.5rem;
  color: #000;
  text-align: left;
  font-family: "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.62rem, 1.5rem + 0.72vw, 1.98rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.14;
}

.home-accessories-title {
  margin-bottom: 0;
}

.home-accessories-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-accessories-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.home-accessories-footer {
  display: flex;
  justify-content: center;
  padding: 10px 12px 0;
}

.home-iphones-section {
  position: relative;
}

.home-iphones-wrap {
  display: flex;
  flex-direction: column;
}

.home-iphones-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-macbook-section {
  position: relative;
}

.home-macbook-wrap {
  display: flex;
  flex-direction: column;
}

.home-macbook-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-ipads-section {
  position: relative;
}

.home-ipads-wrap {
  display: flex;
  flex-direction: column;
}

.home-ipads-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-best-devices-section {
  position: relative;
}

.home-best-devices-wrap {
  display: flex;
  flex-direction: column;
}

.home-best-devices-track {
  display: grid;
  gap: 18px;
}

.home-best-devices-page {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* استثناء قسم Best Selling من هذا التعديل */
/* نقل السعر إلى الجهة اليسرى داخل الكارت */
/* ضبط محاذاة السعر لكروت الصفحة */
.home-accessories-track > .home-product-card .home-product-card__purchase,
.home-iphones-track > .home-product-card .home-product-card__purchase,
.home-macbook-track > .home-product-card .home-product-card__purchase,
.home-ipads-track > .home-product-card .home-product-card__purchase,
.home-best-devices-page > .home-product-card .home-product-card__purchase {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.home-accessories-track > .home-product-card .home-product-card__prices,
.home-iphones-track > .home-product-card .home-product-card__prices,
.home-macbook-track > .home-product-card .home-product-card__prices,
.home-ipads-track > .home-product-card .home-product-card__prices,
.home-best-devices-page > .home-product-card .home-product-card__prices {
  margin-right: auto !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  direction: ltr !important;
}

.home-accessories-track > .home-product-card .home-product-card__price-line,
.home-iphones-track > .home-product-card .home-product-card__price-line,
.home-macbook-track > .home-product-card .home-product-card__price-line,
.home-ipads-track > .home-product-card .home-product-card__price-line,
.home-best-devices-page > .home-product-card .home-product-card__price-line {
  margin-right: auto !important;
}

@media (max-width: 575.98px) {
  .home-shelf-title {
    margin-bottom: 1.125rem;
    font-size: 1.42rem;
    line-height: 1.14;
  }

  :root {
    --home-two-card-width: calc((((100vw - 24px - 12px) / 2) - 28px) * 0.98);
    --home-two-card-radius: 18px;
    --home-two-card-shadow: none;
    --home-two-card-gap: 12px;
    --home-two-card-image-wrap-height: 134px;
    --home-two-card-image-height: 120px;
    --home-two-card-body-x: 11px;
    --home-two-card-body-top: 7px;
    --home-two-card-purchase-bottom: 11px;
    --home-two-card-buybox-height: 38px;
    --home-two-card-buybox-min: 40px;
  }

  .home-accessories-section {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }

  .home-accessories-header {
    margin-bottom: 1.125rem;
    padding: 0 12px;
  }

  .home-accessories-viewport {
    overflow: visible;
    padding: 0 12px 6px;
  }

  .home-accessories-viewport::-webkit-scrollbar {
    display: none;
  }

  .home-accessories-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .home-accessories-track > .home-product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto !important;
    border-radius: var(--home-two-card-radius) !important;
    box-shadow: var(--home-two-card-shadow) !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__media {
    padding: 8px 8px 0 !important;
    margin-bottom: 0 !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__image-wrap {
    min-height: var(--home-two-card-image-wrap-height) !important;
    border-radius: 14px !important;
    padding: 7px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__image {
    height: var(--home-two-card-image-height) !important;
    max-height: var(--home-two-card-image-height) !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__body {
    padding: var(--home-two-card-body-top) var(--home-two-card-body-x) 0 !important;
    margin-top: 0 !important;
    gap: 4px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__title {
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.25em !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__short {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 2em !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__purchase {
    padding: 9px var(--home-two-card-body-x) var(--home-two-card-purchase-bottom) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__prices {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* منع تمدد زر إضافة للسلة داخل كروت قسم Apple Accessories */
  .home-accessories-track > .home-product-card .ik-buybox {
    --ik-card-buybox-width: 132px;
    width: var(--ik-card-buybox-width) !important;
    min-width: var(--ik-card-buybox-width) !important;
  }

  .home-accessories-track > .home-product-card .ik-buybox-pill {
    min-height: var(--home-two-card-buybox-height) !important;
  }

  .home-accessories-track > .home-product-card .ik-buybox-btn,
  .home-accessories-track > .home-product-card .ik-buybox-value {
    min-width: var(--home-two-card-buybox-min) !important;
    height: var(--home-two-card-buybox-height) !important;
  }

  .home-accessories-footer {
    display: flex;
    justify-content: center;
    padding: 10px 12px 0;
  }

  .home-accessories-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
    border-radius: 999px;
  }

  .home-iphones-viewport {
    overflow: visible;
    padding: 0 12px 6px;
  }

  .home-iphones-viewport::-webkit-scrollbar {
    display: none;
  }

  .home-iphones-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .home-iphones-track > .home-product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto !important;
    border-radius: var(--home-two-card-radius) !important;
    box-shadow: var(--home-two-card-shadow) !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__media {
    padding: 8px 8px 0 !important;
    margin-bottom: 0 !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__image-wrap {
    min-height: var(--home-two-card-image-wrap-height) !important;
    border-radius: 14px !important;
    padding: 7px !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__image {
    height: var(--home-two-card-image-height) !important;
    max-height: var(--home-two-card-image-height) !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__body {
    padding: var(--home-two-card-body-top) var(--home-two-card-body-x) 0 !important;
    margin-top: 0 !important;
    gap: 4px !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__title {
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.25em !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__short {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 2em !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__purchase {
    padding: 9px var(--home-two-card-body-x) var(--home-two-card-purchase-bottom) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .home-iphones-track > .home-product-card .home-product-card__prices {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* منع تمدد زر إضافة للسلة داخل كروت قسم iPhones */
  .home-iphones-track > .home-product-card .ik-buybox {
    --ik-card-buybox-width: 132px;
    width: var(--ik-card-buybox-width) !important;
    min-width: var(--ik-card-buybox-width) !important;
  }

  .home-iphones-track > .home-product-card .ik-buybox-pill {
    min-height: var(--home-two-card-buybox-height) !important;
  }

  .home-iphones-track > .home-product-card .ik-buybox-btn,
  .home-iphones-track > .home-product-card .ik-buybox-value {
    min-width: var(--home-two-card-buybox-min) !important;
    height: var(--home-two-card-buybox-height) !important;
  }

  .home-macbook-viewport {
    overflow: visible;
    padding: 0 12px 6px;
  }

  .home-macbook-viewport::-webkit-scrollbar {
    display: none;
  }

  .home-macbook-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .home-macbook-track > .home-product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto !important;
    border-radius: var(--home-two-card-radius) !important;
    box-shadow: var(--home-two-card-shadow) !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__media {
    padding: 8px 8px 0 !important;
    margin-bottom: 0 !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__image-wrap {
    min-height: var(--home-two-card-image-wrap-height) !important;
    border-radius: 14px !important;
    padding: 7px !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__image {
    height: var(--home-two-card-image-height) !important;
    max-height: var(--home-two-card-image-height) !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__body {
    padding: var(--home-two-card-body-top) var(--home-two-card-body-x) 0 !important;
    margin-top: 0 !important;
    gap: 4px !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__title {
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.25em !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__short {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 2em !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__purchase {
    padding: 9px var(--home-two-card-body-x) var(--home-two-card-purchase-bottom) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .home-macbook-track > .home-product-card .home-product-card__prices {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* منع تمدد زر إضافة للسلة داخل كروت قسم MacBook */
  .home-macbook-track > .home-product-card .ik-buybox {
    --ik-card-buybox-width: 132px;
    width: var(--ik-card-buybox-width) !important;
    min-width: var(--ik-card-buybox-width) !important;
  }

  .home-macbook-track > .home-product-card .ik-buybox-pill {
    min-height: var(--home-two-card-buybox-height) !important;
  }

  .home-macbook-track > .home-product-card .ik-buybox-btn,
  .home-macbook-track > .home-product-card .ik-buybox-value {
    min-width: var(--home-two-card-buybox-min) !important;
    height: var(--home-two-card-buybox-height) !important;
  }

  .home-ipads-viewport {
    overflow: visible;
    padding: 0 12px 6px;
  }

  .home-ipads-viewport::-webkit-scrollbar {
    display: none;
  }

  .home-ipads-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .home-ipads-track > .home-product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto !important;
    border-radius: var(--home-two-card-radius) !important;
    box-shadow: var(--home-two-card-shadow) !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__media {
    padding: 8px 8px 0 !important;
    margin-bottom: 0 !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__image-wrap {
    min-height: var(--home-two-card-image-wrap-height) !important;
    border-radius: 14px !important;
    padding: 7px !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__image {
    height: var(--home-two-card-image-height) !important;
    max-height: var(--home-two-card-image-height) !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__body {
    padding: var(--home-two-card-body-top) var(--home-two-card-body-x) 0 !important;
    margin-top: 0 !important;
    gap: 4px !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__title {
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.25em !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__short {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 2em !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__purchase {
    padding: 9px var(--home-two-card-body-x) var(--home-two-card-purchase-bottom) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .home-ipads-track > .home-product-card .home-product-card__prices {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* منع تمدد زر إضافة للسلة داخل كروت قسم iPads */
  .home-ipads-track > .home-product-card .ik-buybox {
    --ik-card-buybox-width: 132px;
    width: var(--ik-card-buybox-width) !important;
    min-width: var(--ik-card-buybox-width) !important;
  }

  .home-ipads-track > .home-product-card .ik-buybox-pill {
    min-height: var(--home-two-card-buybox-height) !important;
  }

  .home-ipads-track > .home-product-card .ik-buybox-btn,
  .home-ipads-track > .home-product-card .ik-buybox-value {
    min-width: var(--home-two-card-buybox-min) !important;
    height: var(--home-two-card-buybox-height) !important;
  }

  .home-dynamic-products-section .home-best-devices-viewport {
    overflow: visible;
    padding: 0 12px 6px;
  }

  .home-dynamic-products-section .home-best-devices-viewport::-webkit-scrollbar {
    display: none;
  }

  .home-dynamic-products-section .home-best-devices-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .home-dynamic-products-section .home-best-devices-page {
    display: contents;
  }

  .home-dynamic-products-section .home-best-devices-page > .home-product-card {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto !important;
    border-radius: var(--home-two-card-radius) !important;
    box-shadow: var(--home-two-card-shadow) !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__media {
    padding: 8px 8px 0 !important;
    margin-bottom: 0 !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__image-wrap {
    min-height: var(--home-two-card-image-wrap-height) !important;
    border-radius: 14px !important;
    padding: 7px !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__image {
    height: var(--home-two-card-image-height) !important;
    max-height: var(--home-two-card-image-height) !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__body {
    padding: var(--home-two-card-body-top) var(--home-two-card-body-x) 0 !important;
    margin-top: 0 !important;
    gap: 4px !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__title {
    font-size: 0.86rem !important;
    line-height: 1.28 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 2.25em !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__short {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    min-height: 2em !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__purchase {
    padding: 9px var(--home-two-card-body-x) var(--home-two-card-purchase-bottom) !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  .home-best-devices-page > .home-product-card .home-product-card__prices {
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* منع تمدد زر إضافة للسلة داخل كروت قسم Best Selling Devices */
  .home-best-devices-page > .home-product-card .ik-buybox {
    --ik-card-buybox-width: 132px;
    width: var(--ik-card-buybox-width) !important;
    min-width: var(--ik-card-buybox-width) !important;
  }

  .home-best-devices-page > .home-product-card .ik-buybox-pill {
    min-height: var(--home-two-card-buybox-height) !important;
  }

  .home-best-devices-page > .home-product-card .ik-buybox-btn,
  .home-best-devices-page > .home-product-card .ik-buybox-value {
    min-width: var(--home-two-card-buybox-min) !important;
    height: var(--home-two-card-buybox-height) !important;
  }
}


/* =========================================================
   PATCH v20 - precise mobile width + buttons + best devices
   ========================================================= */
@media (max-width: 575.98px) {
  :root {
    --home-two-card-radius: 16px;
    --home-two-card-gap: 8px;
    --home-two-card-image-wrap-height: 146px;
    --home-two-card-image-height: 132px;
    --home-two-card-body-x: 10px;
    --home-two-card-body-top: 8px;
    --home-two-card-purchase-bottom: 10px;
  }

  .home-accessories-wrap,
  .home-iphones-wrap,
  .home-macbook-wrap,
  .home-ipads-wrap,
  .home-best-devices-wrap,
  .home-dynamic-products-wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-radius: 22px !important;
  }

  .home-accessories-header,
  .home-iphones-title,
  .home-macbook-title,
  .home-ipads-title,
  .home-best-devices-title,
  .home-dynamic-products-title {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .home-accessories-viewport,
  .home-iphones-viewport,
  .home-macbook-viewport,
  .home-ipads-viewport,
  .home-best-devices-viewport,
  .home-dynamic-products-section .home-best-devices-viewport {
    padding-left: 2px !important;
    padding-right: 2px !important;
    padding-bottom: 6px !important;
  }

  .home-accessories-track,
  .home-iphones-track,
  .home-macbook-track,
  .home-ipads-track,
  .home-best-devices-track,
  .home-dynamic-products-section .home-best-devices-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .home-best-devices-page,
  .home-dynamic-products-section .home-best-devices-page {
    display: contents !important;
  }

  .home-accessories-track > .home-product-card,
  .home-iphones-track > .home-product-card,
  .home-macbook-track > .home-product-card,
  .home-ipads-track > .home-product-card,
  .home-best-devices-page > .home-product-card,
  .home-dynamic-products-section .home-best-devices-page > .home-product-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 16px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__media,
  .home-iphones-track > .home-product-card .home-product-card__media,
  .home-macbook-track > .home-product-card .home-product-card__media,
  .home-ipads-track > .home-product-card .home-product-card__media,
  .home-best-devices-page > .home-product-card .home-product-card__media {
    padding: 8px 8px 0 !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__image-wrap,
  .home-iphones-track > .home-product-card .home-product-card__image-wrap,
  .home-macbook-track > .home-product-card .home-product-card__image-wrap,
  .home-ipads-track > .home-product-card .home-product-card__image-wrap,
  .home-best-devices-page > .home-product-card .home-product-card__image-wrap {
    min-height: 146px !important;
    border-radius: 12px !important;
    padding: 6px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__image,
  .home-iphones-track > .home-product-card .home-product-card__image,
  .home-macbook-track > .home-product-card .home-product-card__image,
  .home-ipads-track > .home-product-card .home-product-card__image,
  .home-best-devices-page > .home-product-card .home-product-card__image {
    height: 132px !important;
    max-height: 132px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__title,
  .home-iphones-track > .home-product-card .home-product-card__title,
  .home-macbook-track > .home-product-card .home-product-card__title,
  .home-ipads-track > .home-product-card .home-product-card__title,
  .home-best-devices-page > .home-product-card .home-product-card__title {
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    min-height: 2.2em !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__short,
  .home-iphones-track > .home-product-card .home-product-card__short,
  .home-macbook-track > .home-product-card .home-product-card__short,
  .home-ipads-track > .home-product-card .home-product-card__short,
  .home-best-devices-page > .home-product-card .home-product-card__short {
    font-size: 0.72rem !important;
    min-height: 2.25em !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__purchase,
  .home-iphones-track > .home-product-card .home-product-card__purchase,
  .home-macbook-track > .home-product-card .home-product-card__purchase,
  .home-ipads-track > .home-product-card .home-product-card__purchase,
  .home-best-devices-page > .home-product-card .home-product-card__purchase {
    padding: 8px 10px 10px !important;
    gap: 6px !important;
  }

  .home-accessories-footer,
  .home-iphones-footer,
  .home-macbook-footer,
  .home-ipads-footer,
  .home-best-devices-footer,
  .home-dynamic-products-footer,
  .home-accessories-wrap .text-center.mt-3,
  .home-iphones-wrap .text-center.mt-3,
  .home-macbook-wrap .text-center.mt-3,
  .home-ipads-wrap .text-center.mt-3,
  .home-best-devices-wrap .text-center.mt-3 {
    margin-top: 12px !important;
    padding-top: 0 !important;
  }

  .home-accessories-wrap .btn.btn-outline-danger,
  .home-iphones-wrap .btn.btn-outline-danger,
  .home-macbook-wrap .btn.btn-outline-danger,
  .home-ipads-wrap .btn.btn-outline-danger,
  .home-best-devices-wrap .btn.btn-outline-danger,
  .home-dynamic-products-wrap .btn.btn-outline-danger {
    color: #111827 !important;
    border-color: rgba(229, 57, 53, 0.42) !important;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 100%) !important;
    box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.04), 0 7px 18px rgba(229, 57, 53, 0.10) !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
  }

  .home-accessories-wrap .btn.btn-outline-danger:hover,
  .home-iphones-wrap .btn.btn-outline-danger:hover,
  .home-macbook-wrap .btn.btn-outline-danger:hover,
  .home-ipads-wrap .btn.btn-outline-danger:hover,
  .home-best-devices-wrap .btn.btn-outline-danger:hover,
  .home-dynamic-products-wrap .btn.btn-outline-danger:hover {
    color: #111827 !important;
    background: #ffffff !important;
    border-color: rgba(229, 57, 53, 0.52) !important;
  }
}


/* =========================================================
   PATCH v23 - precise mobile width + buttons restore
   ========================================================= */
.home-view-more-btn,
.home-shop-now-btn {
  color: #111827 !important;
  border-color: rgba(229, 57, 53, 0.42) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.94) 100%) !important;
  box-shadow: 0 0 0 1px rgba(229, 57, 53, 0.04), 0 7px 18px rgba(229, 57, 53, 0.10) !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
}

.home-view-more-btn:hover,
.home-shop-now-btn:hover {
  color: #111827 !important;
  background: #ffffff !important;
  border-color: rgba(229, 57, 53, 0.52) !important;
}

@media (max-width: 575.98px) {
  .home-accessories-wrap,
  .home-iphones-wrap,
  .home-macbook-wrap,
  .home-ipads-wrap,
  .home-best-devices-wrap,
  .home-dynamic-products-wrap {
    padding-left: 6px !important;
    padding-right: 6px !important;
    border-radius: 20px !important;
  }

  .home-accessories-header,
  .home-iphones-title,
  .home-macbook-title,
  .home-ipads-title,
  .home-best-devices-title,
  .home-dynamic-products-title {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .home-accessories-viewport,
  .home-iphones-viewport,
  .home-macbook-viewport,
  .home-ipads-viewport,
  .home-best-devices-viewport,
  .home-dynamic-products-section .home-best-devices-viewport {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 6px !important;
  }

  .home-accessories-track,
  .home-iphones-track,
  .home-macbook-track,
  .home-ipads-track {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .home-best-devices-track,
  .home-dynamic-products-section .home-best-devices-track {
    display: block !important;
    width: 100% !important;
  }

  .home-best-devices-page,
  .home-dynamic-products-section .home-best-devices-page {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .home-accessories-track > .home-product-card,
  .home-iphones-track > .home-product-card,
  .home-macbook-track > .home-product-card,
  .home-ipads-track > .home-product-card,
  .home-best-devices-page > .home-product-card,
  .home-dynamic-products-section .home-best-devices-page > .home-product-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-radius: 14px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__media,
  .home-iphones-track > .home-product-card .home-product-card__media,
  .home-macbook-track > .home-product-card .home-product-card__media,
  .home-ipads-track > .home-product-card .home-product-card__media,
  .home-best-devices-page > .home-product-card .home-product-card__media,
  .home-dynamic-products-section .home-best-devices-page > .home-product-card .home-product-card__media {
    padding: 6px 6px 0 !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__image-wrap,
  .home-iphones-track > .home-product-card .home-product-card__image-wrap,
  .home-macbook-track > .home-product-card .home-product-card__image-wrap,
  .home-ipads-track > .home-product-card .home-product-card__image-wrap,
  .home-best-devices-page > .home-product-card .home-product-card__image-wrap,
  .home-dynamic-products-section .home-best-devices-page > .home-product-card .home-product-card__image-wrap {
    min-height: 158px !important;
    border-radius: 10px !important;
    padding: 6px !important;
  }

  .home-accessories-track > .home-product-card .home-product-card__image,
  .home-iphones-track > .home-product-card .home-product-card__image,
  .home-macbook-track > .home-product-card .home-product-card__image,
  .home-ipads-track > .home-product-card .home-product-card__image,
  .home-best-devices-page > .home-product-card .home-product-card__image,
  .home-dynamic-products-section .home-best-devices-page > .home-product-card .home-product-card__image {
    height: 146px !important;
    max-height: 146px !important;
  }
}
