/* ==========================================================================
   NOVERA RESPONSIVE DESIGN — UNIFIED DESKTOP & MOBILE PRESENTATION
   Maintains the exact same side-by-side layout structure and visual
   arrangement on both Mobile Phones and Desktop Computers, scaled
   proportionally to fit every screen size cleanly without overflow.
   ========================================================================== */

@media (max-width: 1100px) {
  .container,
  .container-narrow {
    padding-inline: 16px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 20px;
  }

  .featured-box {
    grid-template-columns: 0.95fr 1.15fr;
    gap: 20px;
    padding: 24px;
  }

  .product-detail-layout {
    grid-template-columns: 1fr 1.05fr;
    gap: 24px;
  }

  .story-panel {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    padding: 32px 24px;
  }

  .cart-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
  }

  .admin-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 860px) {
  /* Header: Keep Logo + Navigation Links + Icons visible like Computer */
  .site-header {
    height: auto;
  }

  .site-header__inner {
    height: 58px;
    gap: 8px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-top-nav {
    display: block;
    border-top: 1px solid var(--color-border);
    background-color: rgba(255, 255, 255, 0.88);
  }

  .mobile-top-nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-block: 7px;
  }

  .mobile-top-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .mobile-top-nav .main-nav__link {
    font-size: 0.82rem;
    padding: 3px 6px;
    white-space: nowrap;
  }

  .section {
    padding-block: 36px;
  }

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

  /* Keep 3-Column Categories Grid like Desktop */
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  /* Keep Multi-Column Products Grid like Desktop */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  /* Keep 5-Column Benefits Row like Desktop */
  .benefits-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
  }

  /* Keep 4-Column Footer like Desktop */
  .site-footer__grid {
    grid-template-columns: 1.3fr 0.9fr 0.9fr 1.1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding-inline: 8px;
  }

  /* Announcement Bar */
  .announcement-bar {
    font-size: 0.68rem;
    min-height: 30px;
    padding: 4px 8px;
  }

  .announcement-bar__links {
    display: none;
  }

  /* Header Proportional Scaling */
  .site-header__inner {
    height: 50px;
    gap: 4px;
  }

  .brand-logo {
    gap: 6px;
  }

  .brand-logo__mark {
    width: 28px;
    height: 28px;
  }

  .brand-logo__name {
    font-size: 1rem;
  }

  .brand-logo__sub {
    font-size: 0.52rem !important;
  }

  .header-actions {
    gap: 2px;
  }

  .icon-btn {
    width: 30px;
    height: 30px;
  }

  .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .icon-btn__badge {
    min-width: 14px;
    height: 14px;
    font-size: 0.55rem;
    top: 1px;
    left: 1px;
  }

  .mobile-top-nav__inner {
    gap: 10px;
    padding-block: 5px;
  }

  .mobile-top-nav .main-nav__link {
    font-size: 0.74rem;
  }

  /* 1. HERO SECTION — Side-by-Side (Right Text + Left Product Stage) like Computer */
  .hero {
    padding-block: 18px 26px;
  }

  .hero__grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 10px;
    align-items: center;
  }

  .hero__content {
    gap: 8px;
  }

  .section-eyebrow {
    font-size: 0.58rem;
    padding: 3px 8px;
    margin-bottom: 4px;
    gap: 4px;
  }

  .hero__title {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .hero__subtitle {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .hero__desc {
    font-size: 0.62rem;
    line-height: 1.5;
  }

  .hero__actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 4px;
    width: 100%;
  }

  .hero__actions .btn {
    padding: 6px 10px;
    font-size: 0.62rem;
    flex: 1;
  }

  .hero__highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-top: 6px;
    padding-top: 8px;
  }

  .hero__highlight-val {
    font-size: 0.68rem;
  }

  .hero__highlight-label {
    font-size: 0.5rem;
    line-height: 1.2;
  }

  /* Hero Product Stage on Left Column */
  .hero__stage {
    padding: 8px;
    border-radius: 14px;
  }

  .hero__stage-top {
    margin-bottom: 6px;
    padding-inline: 2px;
  }

  .badge,
  .badge-model,
  .badge-warranty {
    font-size: 0.52rem;
    padding: 2px 6px;
  }

  .hero__main-img-wrap {
    border-radius: 10px;
  }

  .hero__floating-card {
    margin-top: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    gap: 4px;
  }

  .hero__floating-card strong {
    font-size: 0.62rem !important;
  }

  .hero__floating-card span {
    font-size: 0.54rem !important;
  }

  .hero__floating-pills {
    gap: 3px;
  }

  .hero__floating-pills .spec-pill {
    font-size: 0.5rem;
    padding: 2px 5px;
  }

  .hero__floating-pills .btn {
    font-size: 0.54rem;
    padding: 3px 7px;
  }

  /* 2. FEATURED PRODUCT SECTION — Side-by-Side (Right Gallery + Left 8 Specs) like Computer */
  .section {
    padding-block: 24px;
  }

  .section-title {
    font-size: 1.12rem;
    margin-bottom: 4px;
  }

  .section-subtitle {
    font-size: 0.68rem;
    line-height: 1.45;
  }

  .featured-box {
    grid-template-columns: 0.92fr 1.15fr;
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
    align-items: start;
  }

  .featured-box__gallery {
    gap: 6px;
  }

  .featured-box__main-img {
    border-radius: 10px;
  }

  .featured-box__thumbs {
    gap: 4px;
  }

  .featured-thumb {
    border-width: 1.5px;
    padding: 1px;
    border-radius: 6px;
  }

  .featured-box h2 {
    font-size: 0.92rem !important;
    margin-bottom: 3px !important;
  }

  .featured-box p {
    font-size: 0.6rem !important;
    line-height: 1.45 !important;
    margin-bottom: 6px !important;
  }

  .specs-grid-8 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-block: 6px;
  }

  .spec-card {
    padding: 5px 6px;
    gap: 5px;
    border-radius: 8px;
  }

  .spec-card__icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    font-size: 0.48rem;
  }

  .spec-card__title {
    font-size: 0.56rem;
    line-height: 1.2;
  }

  .spec-card__sub {
    font-size: 0.48rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .featured-box .btn-lg {
    padding: 6px 10px;
    font-size: 0.62rem;
  }

  /* 3. CATEGORIES GRID — 3 Columns Side-by-Side like Computer */
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .category-card {
    padding: 8px;
    gap: 6px;
    border-radius: 12px;
  }

  .category-card__visual {
    height: 68px;
    border-radius: 8px;
  }

  .category-card__title {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .category-card__desc {
    font-size: 0.54rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-card__meta {
    font-size: 0.52rem;
    padding-top: 4px;
  }

  /* 4. UPCOMING & ALL PRODUCTS GRID — Multi-Column like Computer */
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    border-radius: 12px;
  }

  .product-card__media {
    padding: 8px;
    aspect-ratio: 4 / 3;
  }

  .product-card__upcoming-pill {
    padding: 4px 10px;
    font-size: 0.64rem;
  }

  .product-card__upcoming-sub {
    font-size: 0.54rem;
    padding: 2px 8px;
  }

  .product-card__body {
    padding: 10px;
    gap: 4px;
  }

  .product-card__category {
    font-size: 0.58rem;
  }

  .product-card__title {
    font-size: 0.74rem;
  }

  .product-card__body > p {
    font-size: 0.58rem !important;
    line-height: 1.35 !important;
  }

  .spec-pill {
    font-size: 0.52rem;
    padding: 2px 5px;
  }

  .product-card__footer {
    padding-top: 6px;
    gap: 6px;
  }

  .product-card__price,
  .product-card__price--unset {
    font-size: 0.62rem;
  }

  .product-card__actions .btn {
    padding: 5px 8px;
    font-size: 0.58rem;
  }

  /* 5. WHY CHOOSE NOVERA — 5 Columns Side-by-Side like Computer */
  .benefits-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
  }

  .benefit-card {
    padding: 8px 6px;
    border-radius: 10px;
    gap: 5px;
    text-align: center;
    align-items: center;
  }

  .benefit-card__icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }

  .benefit-card__icon svg {
    width: 14px;
    height: 14px;
  }

  .benefit-card h3 {
    font-size: 0.6rem !important;
    line-height: 1.25;
  }

  .benefit-card p {
    font-size: 0.5rem !important;
    line-height: 1.35 !important;
  }

  /* 6. BRAND STORY PANEL — Side-by-Side (Right Text + Left Packaging Image) like Computer */
  .story-panel {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10px;
    padding: 16px 12px;
    border-radius: 16px;
  }

  .story-panel__title {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .story-panel__text {
    font-size: 0.58rem;
    line-height: 1.5;
    margin-bottom: 8px !important;
  }

  .story-panel .btn {
    padding: 6px 10px;
    font-size: 0.58rem;
  }

  /* 7. NEWSLETTER BOX */
  .newsletter-box {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .newsletter-form {
    flex-direction: row;
    gap: 6px;
    margin: 12px auto 6px;
  }

  .newsletter-form .form-control {
    padding: 8px 10px;
    font-size: 0.72rem;
  }

  .newsletter-form .btn {
    padding: 8px 14px;
    font-size: 0.72rem;
  }

  /* 8. PRODUCT DETAILS PAGE — Side-by-Side like Computer */
  .product-detail-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 10px;
  }

  .product-gallery-sticky {
    padding: 10px;
    border-radius: 14px;
  }

  /* 9. FOOTER — 4 Columns Side-by-Side like Computer */
  .site-footer {
    padding-top: 28px;
    padding-bottom: 18px;
  }

  .site-footer__grid {
    grid-template-columns: 1.3fr 0.85fr 0.85fr 1.1fr;
    gap: 8px;
    padding-bottom: 20px;
  }

  .site-footer__brand-desc {
    font-size: 0.54rem;
    line-height: 1.45;
    margin-top: 6px;
  }

  .site-footer__heading {
    font-size: 0.64rem;
    margin-bottom: 6px;
  }

  .site-footer__links {
    gap: 4px;
  }

  .site-footer__links a,
  .site-footer__links li {
    font-size: 0.54rem;
  }

  .social-links {
    gap: 4px;
    margin-top: 8px;
  }

  .social-link {
    width: 24px;
    height: 24px;
  }

  .social-link svg {
    width: 12px;
    height: 12px;
  }

  .site-footer__bottom {
    padding-top: 12px;
    font-size: 0.54rem;
    gap: 8px;
  }

  .site-footer__legal {
    gap: 8px;
  }
}
