.filter-shell {
  min-width: 0;
}

.filters-mobile-toggle {
  display: none;
}

/* The footer keeps the Jalal Shops navy identity in both color modes. */
.site-footer {
  background: #0b1d36;
  color: #fff;
}

.site-footer .social-icon-link:hover {
  color: #0b1d36;
}

@media (max-width: 900px) {
  .site-header .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .site-header .mobile-menu {
    flex: 0 0 auto;
  }

  .site-header .header-actions {
    width: 100%;
    flex: 0 0 100%;
    order: 6;
    display: grid;
    grid-template-columns: 42px minmax(70px, 1fr) 42px auto;
    gap: 5px;
  }

  .header-actions .icon-button,
  .header-actions .language-button {
    width: 100%;
    min-width: 0;
    height: 42px;
    display: grid;
  }

  .header-actions .cart-button {
    min-width: 0;
    justify-content: center;
    padding-inline: 9px;
  }

  .header-actions .language-button,
  .header-actions [data-theme-toggle] {
    display: grid;
  }

  .filters-mobile-toggle {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
  }

  .filters-mobile-toggle span:last-child {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
  }

  .filter-shell .filters {
    display: none;
    margin-top: 8px;
  }

  .filter-shell.open .filters {
    display: block;
  }

  .filter-shell.open .filters-mobile-toggle {
    border-color: var(--gold);
  }

  .filter-shell.open .filters-mobile-toggle span:last-child {
    color: var(--gold);
  }
}

@media (max-width: 640px) {
  .site-header .header-actions {
    grid-template-columns: 42px minmax(96px, 1fr) 42px 54px;
  }

  .header-actions .cart-button {
    width: 54px;
    gap: 4px;
    padding-inline: 5px;
    overflow: hidden;
    font-size: 0;
  }

  .header-actions .cart-icon {
    width: 21px;
    height: 21px;
  }

  .header-actions .cart-button span {
    min-width: 18px;
    width: 18px;
    height: 18px;
    font-size: 11px;
  }
}
