/* ==========================================================================
   Responsive — TCG Store
   Mobile-first approach:
     Base styles (no query) = mobile / smallest screens
     min-width: 480px  = small phones
     min-width: 768px  = tablets
     min-width: 1024px = desktop
     min-width: 1200px = wide desktop
     min-width: 1400px = extra-wide
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base (< 480px) — Mobile defaults
   -------------------------------------------------------------------------- */

/* Visibility helpers — base state */
.hide-mobile  { }
.hide-tablet  { }
.hide-desktop { }
.show-mobile  { display: none; }
.show-tablet  { display: none; }
.show-desktop { display: none; }

/* Container: compact padding on mobile */
.container {
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

/* Header: hide topbar on small screens */
.topbar {
  display: none;
}

/* On mobile: topbar is hidden, navbar is hidden — only header-top is fixed */
#main-content {
  padding-top: var(--header-height);
}

/* Header inner: hamburger + logo + actions (search hidden) */
.header-wrapper {
  gap: var(--space-3);
}

/* Hide search bar on mobile */
.header-search {
  display: none;
}

/* Hide action labels on mobile (icon-only buttons) */
.action-label,
.header-action__label {
  display: none;
}

/* Hide category navbar on mobile */
.header-navbar {
  display: none;
}

/* Show hamburger button on mobile */
.hamburger-btn {
  display: flex;
}

/* Hide desktop navigation bar on mobile */
.site-nav {
  display: none;
}

/* Mobile nav overlay: layout.css handles visibility via visibility:hidden/visible
   and pointer-events:none/auto for smooth transitions. No display:none here. */

/* Desktop language switcher hidden on mobile (use mobile nav version) */
.lang-switcher {
  display: none;
}

/* Product grids: 2 columns on mobile */
.product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-sm);
}

.product-grid--3,
.product-grid--4,
.product-grid--5 {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--grid-gap-sm);
}

.product-grid--list {
  grid-template-columns: 1fr;
}

/* Compact product cards on mobile */
.product-card__info {
  padding: var(--space-2) var(--space-3) var(--space-3);
}

.product-card__name-link {
  font-size: var(--font-size-xs);
  -webkit-line-clamp: 2;
}

.product-card__category {
  font-size: 10px;
}

.product-card__current-price {
  font-size: var(--font-size-sm);
}

.product-card__add-to-cart {
  height: 32px;
  font-size: var(--font-size-xs);
}

.product-card__add-to-cart span {
  display: none;
}

.product-card__add-to-cart i {
  font-size: var(--font-size-sm);
}

/* Catalog layout: single column on mobile */
.catalog-layout {
  grid-template-columns: 1fr;
}

/* Filters sidebar: hidden by default, slides up as bottom drawer */
.filters-sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  top: auto;
  z-index: var(--z-modal);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.filters-sidebar.is-open {
  transform: translateY(0);
}

/* Filter toggle button: show on mobile */
.filter-toggle-btn {
  display: flex;
}

/* Product detail: single column on mobile */
.product-detail__layout {
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.product-detail__gallery {
  position: static;
}

/* Account dashboard: single column on mobile */
.account-layout {
  grid-template-columns: 1fr;
  padding: var(--space-4) 0;
}

.account-sidebar {
  position: static;
}

/* Auth card: single column on mobile */
.auth-card--wide {
  grid-template-columns: 1fr;
}

.auth-brand-panel {
  display: none;
}

/* Cart sidebar: full width on mobile */
.cart-sidebar {
  width: 100%;
}

/* Cart page: single column */
.cart-page {
  grid-template-columns: 1fr;
}

.cart-summary {
  position: static;
}

/* Footer: single column on mobile */
.footer-main > .footer-container,
.site-footer__grid {
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.footer-bottom-inner,
.site-footer__bottom {
  flex-direction: column;
  text-align: center;
}

/* Footer newsletter: stack vertically on mobile */
.newsletter-wrapper {
  flex-direction: column;
  gap: var(--space-4);
  text-align: center;
}

.newsletter-form {
  max-width: 100%;
}

/* Account stats: 2 columns on mobile */
.account-stats {
  grid-template-columns: repeat(2, 1fr);
}

/* Address grid: single column */
.address-grid {
  grid-template-columns: 1fr;
}

/* Profile form row: single column */
.profile-form__row {
  grid-template-columns: 1fr;
}

/* Auth form row: single column */
.auth-form__row {
  grid-template-columns: 1fr;
}

/* Product guarantees: 1 column on mobile */
.product-guarantees {
  grid-template-columns: 1fr;
}

/* Features bar: 1 column on mobile */
.features-bar {
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature-item {
  padding: var(--space-3);
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

/* Categories grid: 2 columns on mobile */
.categories-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

/* Hero carousel aspect ratio on mobile */
.hero-carousel {
  aspect-ratio: 16 / 9;
}

/* Hero slider: mobile */
.hero-slider__track {
  height: 300px;
}

/* Stronger overlay so text is always readable */
.hero-slider__slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(26,26,46,0.92) 0%,
    rgba(26,26,46,0.7) 50%,
    rgba(26,26,46,0.3) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-slider__content {
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
}

.hero-slider__text {
  max-width: 75%;
}

.hero-slider__title {
  font-size: 18px;
  margin-bottom: 6px;
  line-height: 1.25;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-slider__subtitle {
  font-size: 11px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.hero-slider__cta {
  font-size: 12px;
  padding: 8px 20px;
  gap: 6px;
}

.hero-slider__cta svg {
  width: 14px;
  height: 14px;
}

.hero-slider__arrow {
  display: none;
}

.hero-slider__arrow svg {
  width: 14px;
  height: 14px;
}

.hero-slider__dots {
  bottom: 12px;
  gap: 6px;
}

.hero-slider__dot {
  width: 8px;
  height: 8px;
}

.hero-slider__dot.is-active {
  width: 22px;
}

/* Counter hidden on smallest screens */
.hero-slider__counter {
  display: none;
}

/* Preorder countdown: compact on mobile */
.countdown {
  gap: 0;
  padding: var(--space-1) var(--space-2);
}

.countdown__item {
  min-width: 32px;
}

.countdown__value {
  font-size: var(--font-size-sm);
}

.countdown__label {
  font-size: 7px;
}

.countdown__separator {
  font-size: var(--font-size-sm);
  margin-top: -8px;
}

/* Preorder card wrapper: prevent overflow */
.preorder-card-wrapper {
  overflow: hidden;
}

/* Section title smaller on mobile */
.section-title,
.section__title {
  font-size: var(--font-size-xl);
}

.section__header {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

/* Page hero padding */
.page-hero {
  padding: var(--space-8) 0;
}

.page-hero__title {
  font-size: var(--font-size-2xl);
}

/* Product info title */
.product-info__title,
.product-detail__name {
  font-size: var(--font-size-xl);
}

/* Gallery thumbs: fewer columns */
.product-gallery__thumbs {
  grid-template-columns: repeat(4, 1fr);
}

/* Grid sidebar: single column on mobile */
.grid--sidebar,
.grid--sidebar-right {
  grid-template-columns: 1fr;
}

/* Newsletter block: stack on mobile */
.newsletter-block {
  flex-direction: column;
  text-align: center;
  padding: var(--space-6);
}

.newsletter-block__form {
  max-width: 100%;
}

.newsletter-block__title {
  font-size: var(--font-size-xl);
}

/* Scroll container arrows hidden on mobile (swipe instead) */
.scroll-container__arrow {
  display: none;
}

/* Catalog layout: single column on mobile (sidebar is off-canvas, not in flow) */
.catalog__layout {
  grid-template-columns: 1fr;
}

/* Catalog sidebar: off-canvas on mobile, below the fixed header */
.catalog__sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: min(320px, 90vw);
  z-index: calc(var(--z-fixed) - 1);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  overflow-y: auto;
}

.catalog__sidebar.is-open {
  transform: translateX(0);
}

.catalog__sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border);
}

.catalog__sidebar-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: calc(var(--z-fixed) - 2);
  display: none;
}

.catalog__sidebar-overlay.is-open,
.catalog__sidebar-overlay.is-visible {
  display: block;
}

.catalog__filter-toggle {
  display: inline-flex;
}

/* Catalog toolbar: stack on mobile */
.catalog__toolbar {
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
}

.catalog__toolbar-left {
  width: 100%;
}

.catalog__toolbar-right {
  width: 100%;
  justify-content: space-between;
  gap: var(--space-2);
}

.catalog__sort {
  flex: 1;
  min-width: 0;
}

.catalog__sort-select {
  width: 100%;
  height: 32px;
  font-size: 12px;
  padding: 0 var(--space-6) 0 var(--space-2);
}

.catalog__count {
  font-size: 11px;
  white-space: nowrap;
}

.catalog__view-toggle {
  flex-shrink: 0;
}

.catalog__view-btn {
  width: 30px;
  height: 28px;
  font-size: 12px;
}

/* Catalog heading: smaller on mobile */
.catalog__heading {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

/* Catalog: prevent horizontal overflow */
.catalog {
  overflow-x: hidden;
}

.catalog__content {
  min-width: 0;
  overflow: hidden;
}

/* Badges: smaller on mobile to avoid overlap */
.product-card__badges {
  top: var(--space-2);
  left: var(--space-2);
  gap: 2px;
}

.product-card__badges .badge {
  height: 18px;
  font-size: 9px;
  padding: 0 5px;
  border-radius: var(--radius-sm);
}

/* Product card body: tighter on mobile */
.product-card__body {
  padding: var(--space-2) var(--space-3);
  gap: var(--space-1);
}

.product-card__name {
  font-size: 11px;
  -webkit-line-clamp: 2;
}

.product-card__set {
  font-size: 9px;
}

.product-card__price-wrap {
  gap: var(--space-1);
}

.product-card__price {
  font-size: var(--font-size-sm);
}

.product-card__price--old {
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   sm — 480px and up (larger phones)
   -------------------------------------------------------------------------- */

@media (min-width: 480px) {
  .show-mobile {
    display: block;
  }

  .hide-mobile {
    display: none;
  }

  /* Product grid still 2 cols on small phones but with slightly more gap */
  .product-grid {
    gap: var(--grid-gap-sm);
  }

  /* Cart sidebar slightly narrower on wider phones */
  .cart-sidebar {
    width: min(380px, 100vw);
  }

  /* Auth card: more comfortable padding */
  .auth-card__body,
  .auth-card__header {
    padding-left: var(--space-10);
    padding-right: var(--space-10);
  }

  .auth-tabs {
    margin-left: var(--space-10);
    margin-right: var(--space-10);
  }

  /* Hero slider: slightly taller on wider phones */
  .hero-slider__track {
    height: 320px;
  }

  .hero-slider__title {
    font-size: 20px;
  }

  .hero-slider__subtitle {
    font-size: 12px;
  }

  .hero-slider__text {
    max-width: 70%;
  }

  .hero-slider__cta {
    font-size: 13px;
    padding: 10px 24px;
  }

  .hero-slider__arrow {
    display: flex;
    width: 34px;
    height: 34px;
  }

  /* Counter visible on wider phones */
  .hero-slider__counter {
    display: block;
    font-size: 12px;
    bottom: 16px;
  }

  .hero-slider__counter-current {
    font-size: 16px;
  }
}

/* --------------------------------------------------------------------------
   md — 768px and up (tablets)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) {

  .show-tablet {
    display: block;
  }

  .hide-tablet {
    display: none;
  }

  /* Main content offset: topbar (36px) + header-top (70px) + navbar (48px).
     The topbar re-appears at this breakpoint (it's display:none on mobile). */
  #main-content {
    }

  /* Show search bar on tablet+ */
  .header-search {
    display: block;
  }

  /* Show category navbar on tablet+ */
  .header-navbar {
    display: flex;
  }

  /* Desktop language switcher: visible on tablet+ */
  .lang-switcher {
    display: flex;
  }

  /* Hamburger: hidden above 768px */
  .hamburger-btn {
    display: none;
  }

  /* Mobile nav overlay: not needed on tablet+ */
  .mobile-nav-overlay {
    display: none !important;
  }

  /* Product grid: 3 columns on tablet */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap-sm);
  }

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

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

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

  .product-grid--list {
    grid-template-columns: 1fr;
  }

  /* Reset compact mobile card styles for tablet+ */
  .product-card__info {
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .product-card__name-link {
    font-size: var(--font-size-sm);
  }

  .product-card__category {
    font-size: var(--font-size-xs);
  }

  .product-card__current-price {
    font-size: var(--font-size-base);
  }

  .product-card__add-to-cart {
    height: 38px;
    font-size: var(--font-size-sm);
  }

  .product-card__add-to-cart span {
    display: inline;
  }

  /* Scroll container arrows: show on tablet+ */
  .scroll-container__arrow {
    display: flex;
  }

  /* Catalog layout: sidebar + content on tablet */
  .catalog-layout {
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
  }

  /* Filters sidebar: static on tablet+ (not a drawer) */
  .filters-sidebar {
    position: static;
    transform: none;
    border-radius: var(--radius-xl);
    max-height: none;
    overflow-y: visible;
  }

  /* Filter toggle button: hide on tablet+ */
  .filter-toggle-btn {
    display: none;
  }

  /* Catalog layout: restore 2-column grid on tablet+ */
  .catalog__layout {
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
  }

  /* Catalog sidebar: back to sticky sidebar mode on tablet+ */
  .catalog__sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
    transform: none;
    border-radius: var(--radius-xl);
    overflow: hidden;
    width: auto;
    z-index: auto;
  }

  .catalog__sidebar-header {
    display: none;
  }

  .catalog__filter-toggle {
    display: none;
  }

  /* Catalog toolbar: restore horizontal on tablet+ */
  .catalog__toolbar {
    flex-wrap: nowrap;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-6);
  }

  .catalog__toolbar-left {
    width: auto;
  }

  .catalog__toolbar-right {
    width: auto;
    justify-content: flex-end;
    gap: var(--space-4);
  }

  .catalog__sort-select {
    width: auto;
    height: 36px;
    font-size: var(--font-size-sm);
    padding: 0 var(--space-8) 0 var(--space-3);
  }

  .catalog__count {
    font-size: var(--font-size-sm);
  }

  .catalog__view-btn {
    width: 36px;
    height: 32px;
    font-size: var(--font-size-sm);
  }

  /* Catalog heading: restore on tablet+ */
  .catalog__heading {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-6);
  }

  /* Badges: restore on tablet+ */
  .product-card__badges {
    top: var(--space-3);
    left: var(--space-3);
    gap: var(--space-1);
  }

  .product-card__badges .badge {
    height: var(--badge-height);
    font-size: var(--font-size-xs);
    padding: 0 var(--badge-padding-x);
    border-radius: var(--radius-sm);
  }

  /* Product card body: restore on tablet+ */
  .product-card__body {
    padding: var(--space-3) var(--space-4);
    gap: var(--space-2);
  }

  .product-card__name {
    font-size: var(--font-size-sm);
  }

  .product-card__set {
    font-size: var(--font-size-xs);
  }

  .product-card__price {
    font-size: var(--font-size-base);
  }

  .product-card__price--old {
    font-size: var(--font-size-xs);
  }

  /* Product detail: 2 columns on tablet */
  .product-detail__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .product-detail__gallery {
    position: sticky;
    top: calc(var(--topbar-height) + var(--header-height) + var(--nav-height) + var(--space-4));
  }

  /* Features bar: 2 columns on tablet */
  .features-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .feature-item {
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
  }

  /* Categories grid: 3 columns on tablet */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
  }

  /* Footer: 2 columns on tablet */
  .footer-main > .footer-container,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  /* Newsletter: side by side on tablet */
  .newsletter-wrapper {
    flex-direction: row;
    text-align: left;
  }

  .newsletter-form {
    max-width: 440px;
  }

  /* Footer bottom: row on tablet */
  .footer-bottom-inner,
  .site-footer__bottom {
    flex-direction: row;
    text-align: left;
  }

  /* Account dashboard: sidebar + content on tablet */
  .account-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--space-6);
  }

  .account-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
  }

  /* Account stats: 4 columns on tablet */
  .account-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Address grid: 2 columns */
  .address-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Profile form row: 2 columns */
  .profile-form__row {
    grid-template-columns: 1fr 1fr;
  }

  /* Auth form row: 2 columns */
  .auth-form__row {
    grid-template-columns: 1fr 1fr;
  }

  /* Auth card wide: 2 columns (brand + form) */
  .auth-card--wide {
    grid-template-columns: 1fr 1fr;
  }

  .auth-brand-panel {
    display: flex;
  }

  /* Cart page: 2 columns */
  .cart-page {
    grid-template-columns: 1fr 320px;
  }

  .cart-summary {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
  }

  /* Product guarantees: 3 columns */
  .product-guarantees {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Hero carousel aspect ratio */
  .hero-carousel {
    aspect-ratio: 16 / 7;
  }

  /* Hero slider: larger on tablet — remove mobile overlay */
  .hero-slider__track {
    height: 400px;
  }

  /* Remove mobile full overlay, let product.css data-overlay handle it */
  .hero-slider__slide::before {
    content: none;
  }

  .hero-slider__content {
    padding: var(--space-12) 0;
  }

  .hero-slider__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
  }

  .hero-slider__subtitle {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-6);
  }

  .hero-slider__text {
    max-width: 600px;
  }

  .hero-slider__cta {
    font-size: var(--font-size-base);
    padding: var(--space-3) var(--space-6);
  }

  .hero-slider__cta svg {
    width: 18px;
    height: 18px;
  }

  .hero-slider__dots {
    bottom: 24px;
    gap: var(--space-2);
  }

  .hero-slider__dot {
    width: 10px;
    height: 10px;
  }

  .hero-slider__dot.is-active {
    width: 28px;
  }

  .hero-slider__arrow {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .hero-slider__counter {
    font-size: 14px;
    bottom: 20px;
  }

  .hero-slider__counter-current {
    font-size: 20px;
  }

  /* Section title: normal size on tablet */
  .section-title,
  .section__title {
    font-size: var(--font-size-2xl);
  }

  .section__header {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
  }

  /* Newsletter block: side by side */
  .newsletter-block {
    flex-direction: row;
    text-align: left;
    padding: var(--space-8);
  }

  .newsletter-block__form {
    max-width: 440px;
  }

  .newsletter-block__title {
    font-size: var(--font-size-2xl);
  }

  /* Grid sidebar: 2 columns */
  .grid--sidebar {
    grid-template-columns: var(--sidebar-width) 1fr;
  }

  .grid--sidebar-right {
    grid-template-columns: 1fr var(--sidebar-width);
  }

  /* Catalog layout filters */
  .catalog-layout__filters {
    position: sticky;
    top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
  }

  /* Product info title: normal size */
  .product-info__title,
  .product-detail__name {
    font-size: var(--font-size-2xl);
  }
}

/* --------------------------------------------------------------------------
   lg — 1024px and up (small desktop)
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {

  .show-desktop {
    display: block;
  }

  .hide-desktop {
    display: none;
  }

  /* Header: show action labels on desktop */
  .action-label,
  .header-action__label {
    display: block;
  }

  /* Product grid: 4 columns on desktop */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--grid-gap);
  }

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

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

  .product-grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }

  /* Features bar: 4 columns on desktop */
  .features-bar {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }

  /* Categories grid: auto-fill on desktop */
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-5);
  }

  /* Footer: 4 columns on desktop */
  .footer-main > .footer-container,
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-10);
  }

  /* Footer bottom: flex row */
  .footer-bottom-inner,
  .site-footer__bottom {
    flex-direction: row;
    text-align: left;
  }

  /* Cart page: wider summary */
  .cart-page {
    grid-template-columns: 1fr 360px;
  }

  /* Account layout: wider sidebar */
  .account-layout {
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
  }

  /* Catalog layout: wider sidebar */
  .catalog-layout {
    grid-template-columns: 260px 1fr;
    gap: var(--space-8);
  }

  /* Hero carousel */
  .hero-carousel {
    aspect-ratio: 16 / 6;
  }

  /* Hero slider: full size */
  .hero-slider__track {
    height: 1024px;
  }

  .hero-slider__title {
    font-size: var(--font-size-4xl);
  }

  .hero-slider__subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-slider__arrow {
    width: 48px;
    height: 48px;
  }

  .hero-slider__arrow svg {
    width: 22px;
    height: 22px;
  }

  /* Product detail: larger gap */
  .product-detail__layout {
    gap: var(--space-12);
  }

  /* Product info title: larger */
  .product-info__title,
  .product-detail__name {
    font-size: var(--font-size-2xl);
  }

  /* Newsletter block: comfortable padding */
  .newsletter-block {
    padding: var(--space-10) var(--space-12);
  }
}

/* --------------------------------------------------------------------------
   xl — 1200px and up (wide desktop)
   -------------------------------------------------------------------------- */

@media (min-width: 1200px) {

  /* Container: more padding */
  .container {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  /* Full 4-col desktop grid */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Preserve explicit column overrides */
  .product-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid--list {
    grid-template-columns: 1fr;
  }

  /* Wide auth card */
  .auth-card--wide {
    max-width: 960px;
  }

  /* Product detail gap */
  .product-detail__layout {
    gap: var(--space-16);
  }

  /* Thumb gallery: 5 columns */
  .product-gallery__thumbs {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* --------------------------------------------------------------------------
   2xl — 1400px and up (extra-wide screens)
   -------------------------------------------------------------------------- */

@media (min-width: 1400px) {
  .product-grid--5 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Print styles
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .site-nav,
  .topbar,
  .site-footer,
  .cart-sidebar,
  .cart-overlay,
  .hamburger-btn,
  .header-actions,
  .filters-sidebar,
  .product-card__actions,
  .product-card__quickview,
  .product-add-section,
  .toast-container,
  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }

  #main-content {
    padding-top: 0;
  }

  .product-detail__layout {
    grid-template-columns: 1fr 1fr;
    page-break-inside: avoid;
  }

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

  body {
    background-color: white;
    color: black;
  }

  a {
    color: black;
  }

  .price,
  .price--current {
    color: black;
  }
}

/* --------------------------------------------------------------------------
   High contrast / forced colors mode
   -------------------------------------------------------------------------- */

@media (forced-colors: active) {
  .btn--primary,
  .btn--accent {
    border: 2px solid ButtonText;
  }

  .product-card {
    border: 1px solid ButtonText;
  }

  .badge {
    border: 1px solid ButtonText;
  }
}

/* --------------------------------------------------------------------------
   Landscape phone — specific tweaks
   -------------------------------------------------------------------------- */

@media (max-width: 767px) and (orientation: landscape) {
  .cart-sidebar {
    width: min(420px, 75vw);
  }

  .auth-page {
    align-items: flex-start;
    padding-top: var(--space-4);
  }

  .page-hero {
    padding: var(--space-6) 0;
  }

  .page-hero__title {
    font-size: var(--font-size-xl);
  }

  .hero-slider__track {
    height: 220px;
  }
}

/* --------------------------------------------------------------------------
   Touch devices: always show card actions (no hover state)
   -------------------------------------------------------------------------- */

@media (hover: none) {
  .product-card__actions {
    opacity: 1;
    transform: none;
  }

  .product-card__quickview {
    display: none;
  }

  .product-card__wishlist-btn {
    opacity: 1;
  }

  .cart-item__remove {
    opacity: 1;
  }

  .product-card:hover {
    transform: none;
  }
}


/* FIX CSS HERO SLIDER */

.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-slider__track {
  display: flex;
  width: 100%;
  will-change: transform;
}

.hero-slider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  min-height: clamp(320px, 55vw, 720px);
  overflow: hidden;
}

.hero-slider__image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.08) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-slider__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(320px, 55vw, 720px);
  height: 100%;
  width: 100%;
  padding-top: clamp(20px, 4vw, 48px);
  padding-bottom: clamp(20px, 4vw, 48px);
}

.hero-slider__text {
  width: min(100%, 640px);
  max-width: 100%;
}

.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.hero-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.hero-slider__arrow--prev {
  left: 16px;
}

.hero-slider__arrow--next {
  right: 16px;
}

.hero-slider__arrow svg {
  width: 20px;
  height: 20px;
}

.hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  max-width: calc(100% - 32px);
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.hero-slider__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 4;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-slider__progress-bar {
  height: 100%;
  width: 0;
}

.hero-slider__counter {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  gap: 4px;
  align-items: center;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.hero-slider,
.hero-slider * {
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .hero-slider__slide {
    min-height: clamp(280px, 62vw, 520px);
  }

  .hero-slider__content {
    min-height: clamp(280px, 62vw, 520px);
  }

  .hero-slider__arrow {
    width: 42px;
    height: 42px;
  }

  .hero-slider__arrow--prev {
    left: 12px;
  }

  .hero-slider__arrow--next {
    right: 12px;
  }

  .hero-slider__counter {
    right: 12px;
    bottom: 12px;
  }

  .hero-slider__dots {
    bottom: 14px;
  }
}

@media (max-width: 767px) {
  .hero-slider__slide {
    min-height: clamp(220px, 70vw, 420px);
  }

  .hero-slider__content {
    align-items: flex-end;
    min-height: clamp(220px, 70vw, 420px);
    padding-top: 16px;
    padding-bottom: 44px;
  }

  .hero-slider__slide::after {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0.22) 42%,
      rgba(0, 0, 0, 0.52) 100%
    );
  }

  .hero-slider__arrow {
    top: auto;
    bottom: 56px;
    transform: none;
    width: 38px;
    height: 38px;
  }

  .hero-slider__arrow--prev {
    left: 10px;
  }

  .hero-slider__arrow--next {
    right: 10px;
  }

  .hero-slider__arrow svg {
    width: 18px;
    height: 18px;
  }

  .hero-slider__dots {
    bottom: 12px;
    gap: 8px;
  }

  .hero-slider__dot {
    width: 9px;
    height: 9px;
  }

  .hero-slider__counter {
    right: 10px;
    bottom: 10px;
    font-size: 12px;
  }

  .hero-slider__progress {
    height: 2px;
  }
}

@media (max-width: 480px) {
  .hero-slider__slide {
    min-height: 200px;
  }

  .hero-slider__content {
    min-height: 200px;
    padding-bottom: 42px;
  }

  .hero-slider__arrow {
    width: 34px;
    height: 34px;
    bottom: 52px;
  }

  .hero-slider__arrow--prev {
    left: 8px;
  }

  .hero-slider__arrow--next {
    right: 8px;
  }

  .hero-slider__counter {
    font-size: 11px;
  }
}


.hero-slider__slide {
  min-height: clamp(220px, 42vw, 560px);
}

.hero-slider__content {
  min-height: clamp(220px, 42vw, 560px);
}

.hero-slider__image {
  object-fit: cover;
  object-position: center center;
}