@media (min-width: 861px) {
  .header-actions .icon-btn {
    border-inline-start: 0;
  }
}

@media (max-width: 1100px) {
  .category-switch,
  .story-grid,
  .contact-grid,
  .admin-layout,
  .quick-panel,
  .promo-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .product-mosaic .product-card {
    grid-column: auto !important;
  }

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

  .product-grid .product-card:nth-child(even) {
    transform: none;
  }

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

  .hero {
    min-height: 88vh;
  }

  .hero-bg {
    object-position: 22% center;
  }

  .quick-media img {
    min-height: 280px;
  }
}

@media (max-width: 860px) {
  :root {
    --header: 64px;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
    height: calc(var(--header) + env(safe-area-inset-top));
  }

  .header-inner {
    width: calc(100% - 28px);
    display: flex;
    direction: ltr;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .header-actions {
    order: 1;
    direction: ltr;
    display: flex;
    flex-shrink: 0;
  }

  .header-actions .icon-btn {
    width: 44px;
    height: 44px;
    border-inline-start: 0;
    border-right: 1px solid rgba(245, 197, 24, 0.2);
  }

  .header-actions .icon-btn:last-child {
    border-right: 0;
  }

  .brand {
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
  }

  .brand img {
    height: 42px;
  }

  .brand-meta {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    background: #070707;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.menu-open .menu-toggle {
    background: var(--gold);
    color: var(--ink);
  }

  .mobile-panel {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 95;
    color: #fff;
    direction: rtl;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }

  .mobile-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .mobile-panel-shade {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 100% 0%, rgba(245, 197, 24, 0.16), transparent 42%),
      linear-gradient(180deg, #070707 0%, #111111 55%, #0a0a0a 100%);
  }

  .mobile-panel-shade::after {
    content: "AT";
    position: absolute;
    inset-inline-end: -6%;
    inset-block-end: 4%;
    font-size: 42vw;
    font-weight: 900;
    line-height: 0.8;
    color: rgba(245, 197, 24, 0.05);
    pointer-events: none;
  }

  .mobile-panel-inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--header) + env(safe-area-inset-top) + 28px) 28px 40px;
    gap: 6px;
  }

  .mobile-panel-kicker {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.28em;
    margin-bottom: 18px;
  }

  .mobile-panel a:not(.btn):not(.mobile-panel-wa) {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-panel a.is-active,
  .mobile-panel a:not(.btn):not(.mobile-panel-wa):hover {
    color: var(--gold);
  }

  .mobile-panel-cta {
    margin-top: 28px;
    width: 100%;
  }

  .mobile-panel-wa {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.62);
    font-weight: 700;
  }

  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero-copy {
    padding: calc(var(--header) + 28px) 20px 28px;
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.6rem);
    max-width: none;
  }

  .hero-lead {
    margin-top: 14px;
    font-size: 0.95rem;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .hero-stats {
    gap: 14px;
    margin-top: 22px;
    padding-top: 16px;
  }

  .hero-stats div strong {
    font-size: 1.25rem;
  }

  .section {
    padding-block: 56px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .container {
    width: min(1280px, calc(100% - 28px));
  }

  .cat-card {
    min-height: 340px;
    padding: 28px;
  }

  .story-visual,
  .story-visual img {
    min-height: 280px;
  }

  .cart-drawer {
    width: 100%;
    left: 0;
  }

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

  .page-hero {
    padding: 40px 0 24px;
  }
}

@media (max-width: 640px) {
  .product-mosaic,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .store-toolbar,
  .toolbar-side {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box input {
    min-width: 0;
    width: 100%;
  }

  .filter-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }

  .filter-tabs button {
    white-space: nowrap;
    padding: 10px 6px;
    font-size: 0.78rem;
  }

  .hero-actions .btn,
  .cat-card-body .btn,
  .section-head .btn,
  .checkout-form .btn,
  .btn-full {
    width: 100%;
  }

  .icon-btn,
  .header-actions .icon-btn,
  .qty-box button,
  .size-row button {
    width: auto;
  }

  .header-actions .icon-btn {
    width: 44px;
  }

  .quick-modal {
    padding: 0;
    align-items: stretch;
  }

  .quick-panel {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    grid-template-columns: 1fr;
  }

  .quick-media img {
    min-height: 0;
    height: 28vh;
    max-height: 260px;
  }

  .qv-actions {
    flex-direction: column;
  }

  .qv-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .countdown {
    flex-wrap: wrap;
  }

  .count-box {
    flex: 1;
    min-width: 70px;
  }

  .product-media {
    aspect-ratio: 3 / 4;
  }

  .drawer-body {
    max-height: 22vh;
  }
}
