.product-hero__mobile{
  display: none;
}

.product-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  box-sizing: border-box;

}

.product-hero__image {
  height: 240px;
  padding-right:5rem;
  text-align: right;
  order: 2;
}

.product-hero__text {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-hero__text .btn{
  font-weight: 400;
  width: fit-content;
}

.product-hero__image img {
  height: 100%;
  display: inline;
  width: auto;
}

.product-hero__text h1 {
  font-size: 3.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.product-hero__text p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Main Content Layout ===== */
.content-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1.25rem;
}
.content-layout--no-categories {
  grid-template-columns: minmax(0, 1fr);
}
.sidebar-pc{
  border-right: 1px solid #e5e7eb;
}
.sidebar-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0rem 5px 1rem 0;
}
.panel{
  padding: 2rem 0;
}

.mobile-product-nav {
  display: none;
}

.mobile-panel-back {
  display: none;
}

.mobile-panel-header {
  display: none;
}

@media (max-width: 899px) {
  .panel{
    padding: 0;
  }
  .nav-wrapper {
    display: none;
  }
  .product-hero__mobile{
    display: block;
  }
  .product-hero__pc {
    display: none;
  }
  .mobile-product-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    padding: 1rem 0 0;
  }
  .container:not(.mobile-panel-open) > .mobile-panel-content {
    display: none !important;
  }

  .mobile-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 0.5rem;
  }

  .mobile-panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    width: 80%
  }

  .mobile-panel-back {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #090909;
    color: #fff;
    cursor: pointer;
  }

  .mobile-panel-back svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
  }

  .mobile-panel-back:hover {
    background: #333;
  }

  .mobile-panel-back:focus-visible {
    outline: 3px solid #005eb1;
    outline-offset: 3px;
  }

  .mobile-panel-back + h2 {
    margin: 0;
  }

  /* Keep the standalone button rule scoped to the icon button. */
  .mobile-panel-header .mobile-panel-back {
    background: transparent;
    background: #090909;
  }

  .mobile-product-nav__item {
    display: flex;
    min-height: 8.5rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    padding: 1rem;
    border: 0;
    background: #e9eaf2;
    cursor: pointer;
    line-height: 1.35;
    text-align: center;
  }


  .mobile-product-nav__item svg {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    fill: none;
  }

  .mobile-product-nav__item:focus-visible {
    outline: 3px solid #005eb1;
    outline-offset: 3px;
  }
}

/* Sidebar / Categories styles moved to css/components/sidebar.css */
.search-box {
  width: 55%;
}

/* ===== FAQ ===== */
.category-item .icon{
  width: 1.5rem;
  height: 1.5rem;
  fill: #000;
}
.faq-section {
  padding: 0;
  border: none;
  background: transparent;
  position: relative;
}

/* Desktop: plain inline wrapper. Mobile: becomes a bottom-sheet popup (see media query below). */
.faq-close-btn {
  display: none;
}

.faq-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-collapse-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 9999px;
  background: #f2f3f5;
  color: #1e293b;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.faq-collapse-btn:hover {
  background: #e5e7eb;
}

.faq-collapse-btn .icon {
  transition: transform 0.2s ease;
}

.faq-collapse-btn[aria-expanded="false"] .icon {
  transform: rotate(180deg);
}

.faq-content {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== Software / Warranty card grids ===== */
.soft-grid,
.warranty-grid {
  display: grid;
  width: 100%;
  margin: 0 auto;
  gap: 1rem;
}

.soft-grid {
  grid-template-columns: repeat(4, 1fr);
}

.warranty-grid {
  grid-template-columns: repeat(3, 1fr);
}

.soft-card,
.warranty-card {
  background: #f8f8f8;
  border: 1px solid #f8f8f8;
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: #000
}
.soft-card>div,.warranty-card>div{
  font-weight: 400;
  margin-top:10px
}

.soft-card:hover,
.warranty-card:hover {
  background: #fff;
  border: 1px solid #ccc;
}

.soft-card img,
.warranty-card img {
  width: 50px;
  height: 50px;
}

.soft-card.active,
.warranty-card.active {
  background: #fff;
  border: 1px solid #ccc;
}

/* ===== Android Updates panel ===== */
.android-updates {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
}
.android-updates__hero{
  text-align: center;
}
.android-updates__hero h3{
  margin:1rem 0
}
.android-updates__hero img{
  display: inline;
  height: 128px;
}
.android-divider {
  max-width: 660px;
  margin: 1.5rem auto;
  border-top:1px solid #ccc;
}

.android-updates__icon{
  text-align: center;
}

.android-updates__icon img {
  width: 110px;
  height: auto;
  margin-bottom: 1rem;
  
}

.android-updates__headline {
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.android-updates__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #005eb1;
  font-weight: 600;
  text-decoration: underline;
}

.android-updates__title {
  margin-top: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.android-updates__divider{
  width: 800px;
  margin: 1.5rem auto;
  border-top: 1px solid #ccc;
}

.android-updates__security{
  text-align: left;
}

.android-updates__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.6;
}

.android-updates__footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1.5rem 2rem;
  background: #f5f3f1;
  text-align: left;
}

.android-updates__path {
  margin: 0;
  font-size: 0.875rem;
  color: #1f2937;
  text-align: left;
}

.software-fix__hero-image img{
  height: 229px;
  width: auto;
}

/* ===== Security Updates panel (desktop inline; mobile uses .security-modal) ===== */
.security-updates {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  position: relative;
}

/* ===== Warranty lookup panel ===== */
.warranty-lookup {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.warranty-lookup__title {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
}

.warranty-lookup__input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
}

.warranty-lookup__input-icon {
  width: 20px;
  height: 20px;
  stroke: #6b7280;
}

.warranty-lookup__input {
  flex: 1;
  border: none;
  background: none;
  font-size: 0.95rem;
  color: #1f2937;
}

.warranty-lookup__input::placeholder {
  color: #9ca3af;
}

.warranty-lookup__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.warranty-lookup__footer {
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

/* ===== "My devices" modal ===== */
.device-modal {
  padding: 1.5rem;
}

.device-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.device-modal__header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
}

.device-modal__header .modal-close {
  flex-shrink: 0;
}

.device-modal__subtitle {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.device-modal__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
  max-height: min(55vh, 30rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.device-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
}

.device-option--active {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.device-option__radio {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: #005eb1;
}

.device-option__img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-option__img img {
  max-width: 100%;
  max-height: 100%;
}

.device-option__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.device-option__name {
  font-size: 0.9rem;
  color: #1f2937;
}

.device-option__status {
  color: #059669;
  font-weight: 600;
}

.device-modal__actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ===== More Resource ===== */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  overflow-x: visible;
}

.resource-card {
  background: #ffffff;
  border-radius: 0.5rem;
  height: 150px;
}
.device-support-empty{
  padding: 5rem 0;
  text-align: center;
}
/* =========================================================
   Tablet: max-width: 899px
   ========================================================= */
@media (max-width: 899px) {

  .android-updates__hero h3{
    display: none;
  }

  .drivers-heading__title{
    display: none;
  }

  .software-fix__hero-text h2{
    display: none;
  }

  .product-hero__image {
    height: 139px;
    text-align: center;
    padding: 0;
    order: 1;
  }

  .product-hero__mobile .btn{
    width: 100%;
    text-align: center;
  }

  .product-hero__text {
    order: 2;
    justify-content: center;
  }

  .product-hero__text h1 {
    font-size: 1.75rem;
  }

  .faq-section {
    padding: 1.5rem;
    border: none;
  }

  .soft-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .modal-panel{
    height: 70vh;
    overflow-y: auto;
  }

  .android-updates {
    padding: 1.5rem;
  }

  .android-updates__icon img {
    width: 90px;
  }

  .android-updates__footer {
    flex-direction: column;
    justify-content: flex-start;
    padding: 1.25rem 1rem;
    align-items: flex-start;
  }

  .warranty-lookup {
    padding: 1.5rem;
  }

  /* two cards per row, no horizontal scroll */
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .faq-collapse-btn{
    display:none
  }
  .content-layout {
    grid-template-columns: 1fr;
    gap: 0rem;
    margin-top: 1.5rem
  }
  .soft-grid,
  .warranty-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .warranty-lookup__actions {
    flex-direction: column;
  }

  .device-modal__actions {
    flex-direction: column;
  }

  .product-hero__text h1 {
    font-size: 1.5rem;
  }

  .product-hero__text p {
    font-size: 0.875rem;
  }

  .faq-section {
    padding: 1rem;
  }
  .faq-section .search-box {
    width:100%
  }

  .resource-grid {
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    overflow-x: auto;
  }
   .faq-collapse-btn{
    display:none
  }

  .issue-selector--mobile .accordion-item{
    padding: 0 1rem;
    border: 1px solid #e5e7eb;
    margin-bottom: 1rem;
  }
  .issue-selector--mobile .accordion-item[aria-expanded="true"] {
   background: #F5F3F1;
  }
  .issue-selector--mobile .accordion-content {
    border-top: 1px solid #9ca3af;
    padding-top: 1rem !important;
  }

}
