/* Responsive Breakpoints */

/* Laptop & Desktop adjustments */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Tablet view */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-main-card {
    min-height: 420px;
  }

  .hero-right-stack {
    flex-direction: row;
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
  }

  .offer-card {
    flex: 1 1 calc(33.333% - 12px);
    min-width: 200px;
    height: auto;
    min-height: auto;
    padding: 16px 18px;
  }

  .spotlight-banner-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-shop-grid-3 {
    grid-template-columns: 1fr;
  }

  .testimonial-stats-wrapper {
    grid-template-columns: 1fr;
  }

  .top-features-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-list {
    gap: 16px;
  }
}

/* Mobile Navigation & Screen Adjustments */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-med);
}

.mobile-nav.open {
  visibility: visible;
  opacity: 1;
}

.mobile-nav-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: #FFFFFF;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
  transform: translateX(-100%);
  transition: transform var(--transition-med);
}

.mobile-nav.open .mobile-nav-panel {
  transform: translateX(0);
}

.close-mobile {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--muted);
  cursor: pointer;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links,
  #desktopSearchBar {
    display: none;
  }

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

  .feature-grid-6 {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* Hero mobile adjustments */
  .hero-main-card {
    min-height: unset;
    height: auto;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background-color: var(--surface);
  }

  .hero-slide {
    padding: 0;
    height: 100%;
    aspect-ratio: 16 / 9;
  }

  .hero-slide .hero-bg-collage,
  video.hero-bg-collage {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero-dots-row {
    bottom: 4px;
    padding: 2px 6px;
    gap: 3px;
    max-width: calc(100% - 12px);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 25, 16, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .hero-dots-row::-webkit-scrollbar {
    display: none;
  }

  .hero-nav-arrow-inline {
    font-size: 0.6rem;
    padding: 1px 2px;
  }

  .hero-dots-list {
    gap: 3px;
    flex-shrink: 0;
  }

  .hero-dot {
    width: 4.5px;
    height: 4.5px;
  }

  .hero-dot.active {
    width: 12px;
  }

  .hero-info-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }

  .hero-info-title {
    font-size: 1.15rem;
  }

  .hero-info-desc {
    white-space: normal;
    font-size: 0.88rem;
    line-height: 1.45;
  }

  .hero-info-action {
    width: 100%;
  }

  .hero-info-action .btn-sm-green,
  .hero-info-action a {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .hero-right-stack {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 12px;
  }

  .offer-card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 16px 18px;
  }

  .top-announcement-inner {
    font-size: 0.72rem;
    gap: 16px;
  }

  .top-announcement-item:nth-child(3) {
    display: none;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-main-card {
    min-height: unset;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .hero-dots-row {
    bottom: 6px;
    padding: 2px 6px;
    gap: 3px;
  }

  .hero-dots-list {
    gap: 3px;
  }

  .hero-dot {
    width: 4.5px;
    height: 4.5px;
  }

  .hero-dot.active {
    width: 12px;
  }

  .hero-right-stack {
    flex-direction: column;
    width: 100%;
    height: auto;
    gap: 12px;
  }

  .offer-card {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 14px 16px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:has(.mobile-nav.open) {
    overflow: hidden;
  }

  nav#mainNav .nav-inner {
    position: relative;
    min-height: 68px;
    padding: 10px 14px;
  }

  nav#mainNav .nav-logo {
    position: static;
    z-index: auto;
    margin: 0;
    transform: none;
    flex-shrink: 0;
  }

  nav#mainNav .nav-logo img {
    height: 40px;
    max-width: 120px;
  }

  nav#mainNav .nav-actions {
    display: grid;
    grid-template-columns: repeat(4, 38px);
    align-items: center;
    gap: 6px;
    width: auto;
    margin-left: auto;
  }

  nav#mainNav #desktopSearchBar,
  nav#mainNav .lang-toggle-container {
    display: none;
  }

  nav#mainNav .hamburger {
    grid-column: 1;
    grid-row: 1;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 6px;
  }

  nav#mainNav #ordersToggle {
    grid-column: 2;
    grid-row: 1;
  }

  nav#mainNav #wishlistToggle {
    grid-column: 3;
    grid-row: 1;
  }

  nav#mainNav #cartToggle {
    grid-column: 4;
    grid-row: 1;
  }

  nav#mainNav .icon-btn {
    width: 38px;
    height: 38px;
  }

  .mobile-nav {
    inset: 0;
    width: 100%;
    height: 100dvh;
    pointer-events: none;
    transition: opacity var(--transition-med), visibility var(--transition-med);
  }

  .mobile-nav.open {
    pointer-events: auto;
  }

  .mobile-nav-overlay {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
  }

  .mobile-nav-panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(88vw, 360px);
    max-width: 100%;
    height: 100%;
    min-height: 100%;
    padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-101%);
  }

  .mobile-nav.open .mobile-nav-panel {
    transform: translateX(0);
  }

  .mobile-nav-panel .close-mobile {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
  }

  .mobile-nav-panel>.nav-logo {
    align-self: flex-start;
    margin: 28px 0 32px !important;
    height: auto;
  }

  .mobile-nav-panel>.nav-logo img {
    height: 48px !important;
    width: auto;
    max-width: 180px;
  }

  .mobile-nav-panel>a:not(.nav-logo) {
    display: block;
    padding: 10px 0;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .mobile-nav-panel>hr {
    width: 100%;
    margin: 18px 0 14px;
  }

  .mobile-nav-panel>.search-bar {
    width: 100% !important;
    min-height: 46px;
    padding: 6px 16px;
    flex-shrink: 0;
  }

  .mobile-nav-panel>.lang-toggle-container {
    align-self: flex-start !important;
    margin-top: 16px;
    min-height: 40px;
  }

  .mobile-nav-panel>.lang-toggle-container .lang-toggle-option {
    min-width: 36px;
    text-align: center;
  }

  .top-features-bar,
  .section-shell,
  .hero-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .top-features-bar {
    gap: 14px;
  }

  .features-list {
    width: 100%;
    gap: 12px 18px;
  }

  .countdown-box {
    width: 100%;
    justify-content: space-between;
  }

  .footer-inner {
    padding: 40px 20px 24px;
    gap: 28px;
  }

  .footer-bottom {
    padding: 18px 20px;
  }

  .page-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sidebar {
    display: none;
  }

  .product-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .controls-right {
    justify-content: space-between;
  }

  .product-card {
    min-width: 0;
  }

  .card-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .card-body {
    padding: 12px;
  }
}

@media (max-width: 420px) {
  nav#mainNav .nav-inner {
    padding-left: 10px;
    padding-right: 10px;
  }

  nav#mainNav .nav-actions {
    grid-template-columns: repeat(4, 34px);
    width: auto;
    gap: 4px;
  }

  nav#mainNav .hamburger,
  nav#mainNav .icon-btn {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
  }

  nav#mainNav .nav-logo img {
    height: 36px;
    max-width: 108px;
  }

  .mobile-nav-panel {
    width: 88vw;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 360px) {
  nav#mainNav .nav-inner {
    padding-left: 8px;
    padding-right: 8px;
  }

  nav#mainNav .nav-actions {
    grid-template-columns: repeat(4, 32px);
    gap: 3px;
  }

  nav#mainNav .hamburger,
  nav#mainNav .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
  }

  nav#mainNav .nav-logo img {
    height: 32px;
    max-width: 90px;
  }
}