/* Ürün kataloğunun ekran boyutuna uyumlu görünümü. */
@media screen {
  :root { color: #192e4b; background: #f3f6fb; }
  body { background: #f3f6fb; }
  header {
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: #173a72;
    box-shadow: 0 4px 18px rgb(23 50 88 / 14%);
  }
  .brand { min-width: 0; }
  .brand img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 11px; }
  .brand strong { font-size: 1.12rem; line-height: 1.2; }
  .brand span { display: block; margin-top: 3px; font-size: .84rem; }
  .cart-link { min-height: 44px; padding: 9px 14px; border-radius: 10px; }
  main { padding-top: 26px; }
  h1 { color: #18345a; line-height: 1.2; }
  .delivery-banner {
    display: block;
    max-width: 100%;
    padding: 12px 15px;
    border: 1px solid #c5e6d5;
    border-radius: 11px;
    background: #edf9f3;
    color: #285b46;
    font-size: .9rem;
    line-height: 1.55;
  }
  #catalog-count { color: #526986; line-height: 1.5; }
  .catalog-actions { gap: 8px; margin-bottom: 18px; }
  .catalog-actions .refresh, .tools .refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-color: #d0ddf0;
    border-radius: 10px;
    color: #244d87;
    background: #fff;
    font-size: .9rem;
    line-height: 1.3;
  }
  .tools { gap: 10px; align-items: stretch; }
  .search {
    min-width: min(220px, 100%);
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid #afc5e4;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgb(25 52 88 / 4%);
    font-size: 1rem;
  }
  .search:focus-visible, button:focus-visible, a:focus-visible,
  .checkout-fields :is(input, textarea):focus-visible, .basket-controls input:focus-visible {
    outline: 3px solid #9cbbf5;
    outline-offset: 2px;
  }
  .categories { gap: 8px; padding: 4px 0 15px; }
  .categories button { min-height: 42px; padding: 8px 15px; font-weight: 600; }
  .categories button[aria-pressed="true"] { background: #1d55bd; border-color: #1d55bd; }
  .status { font-size: .88rem; line-height: 1.4; }
  .grid { gap: 16px; align-items: stretch; }
  .card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-color: #dbe5f2;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgb(25 48 79 / 5%);
  }
  .photo { height: 190px; padding: 14px; background: #f8fafd; }
  .photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .photo .placeholder { color: #617b9c; font-size: .85rem; line-height: 1.4; text-align: center; }
  .discount-sticker {
    padding: 6px 9px;
    border-radius: 8px;
    background: #c83235;
    font-size: .72rem;
    box-shadow: none;
    transform: none;
  }
  .details { display: flex; flex: 1; flex-direction: column; gap: 0; min-width: 0; padding: 15px; }
  .category { margin-bottom: 6px; color: #637d9a; font-weight: 650; }
  .name { min-height: 2.8em; color: #203756; font-size: .96rem; line-height: 1.4; }
  .stock { margin-top: 9px; font-size: .82rem; }
  .campaign { margin-top: 9px; padding: 5px 8px; font-size: .78rem; line-height: 1.35; }
  .card .bestseller-ribbon {
    max-width: 100%;
    margin-bottom: 9px;
    padding: 4px 7px;
    border-color: #d0a54e;
    background: #fff3d3;
    color: #6b4610;
    box-shadow: none;
    font-size: .72rem;
  }
  .old-price { color: #b42318; font-size: .86rem; }
  .price { margin-top: auto; padding-top: 10px; color: #164da8; font-size: 1.28rem; line-height: 1.25; }
  .campaign-price { color: #b1262a; }
  .add-to-cart { min-height: 44px; margin-top: 12px; border-radius: 9px; background: #1b56c5; }
  .add-to-cart:disabled { background: #dce3ec; color: #65758a; }
  .basket-panel { margin-top: 28px; padding: 22px; border-radius: 14px; }
  .basket-heading h2 { color: #17345e; }
  .clear-basket, .basket-controls button { min-height: 42px; min-width: 42px; }
  .basket-controls input { min-height: 42px; font-size: 1rem; }
  .basket-line { gap: 10px 14px; line-height: 1.45; }
  .basket-line strong { overflow-wrap: anywhere; }
  .basket-total { min-height: 46px; gap: 10px; line-height: 1.35; }
  .basket-total strong { color: #164da8; }
  .basket-delivery { line-height: 1.5; }
  .checkout-card { padding: 18px; border-radius: 12px; background: #f7faff; }
  .checkout-fields label { min-width: 0; line-height: 1.4; }
  .checkout-fields :is(input, textarea) { min-height: 44px; font-size: 1rem; }
  .payment-choice { min-height: 44px; }
  .order-submit, #checkout button[type="submit"] { min-height: 46px; }
}

@media screen and (max-width: 600px) {
  header { padding: 12px 14px; }
  .brand { gap: 9px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: .98rem; }
  .brand span { font-size: .73rem; }
  .cart-link { padding: 8px 10px; font-size: .88rem; }
  main { padding: 20px 14px 44px; }
  .delivery-banner { padding: 10px 12px; font-size: .84rem; }
  .catalog-actions .refresh { flex: 1 1 auto; }
  .tools .search { flex: 1 1 100%; min-width: 0; order: -1; }
  .tools .refresh { flex: 1 1 auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo { height: 150px; padding: 9px; }
  .details { padding: 11px; }
  .name { font-size: .9rem; }
  .price { font-size: 1.12rem; }
  .basket-panel { padding: 15px; }
}

@media screen and (max-width: 330px) {
  .grid { grid-template-columns: 1fr; }
  .photo { height: 185px; }
  .brand span { font-size: .7rem; }
}
