@media (max-width: 1200px) {
  #products-grid { grid-template-columns: repeat(3, 1fr); }
  #deals-grid    { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .efootball-inner { grid-template-columns: 1fr; gap: 40px; }
  .efootball-tiers { flex-direction: row; flex-wrap: wrap; }
  .tier-card { flex: 1; min-width: 240px; }
}

@media (max-width: 900px) {
  #products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }

  .checkout-body { grid-template-columns: 1fr; }
  .checkout-form-side { border-right: none; border-bottom: 1px solid var(--border); }
  .checkout-summary-side { padding: 24px 28px; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-left { min-height: 240px; }
  .modal-img  { min-height: 240px; border-radius: var(--r-lg) var(--r-lg) 0 0; }

  
  #hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 24px 4vw 40px;
    padding-top: 160px;
  }

  .hero-content {
    display: contents;
  }

  .hero-title {
    order: 1;
    font-size: clamp(2.8rem, 8.5vw, 4.2rem);
    text-align: center;
    margin-top: 155px;
    margin-bottom: 8px;
    line-height: 0.95;
  }

  .hero-subtitle {
    order: 2;
    font-size: 0.92rem;
    text-align: center;
    max-width: 480px;
    margin-bottom: 12px;
    line-height: 1.55;
  }

  #hero-canvas {
    order: 3;
    position: relative;
    width: 100%;
    max-width: 440px;
    height: clamp(230px, 32vw, 300px);
    margin: 4px auto 14px;
    top: auto;
    right: auto;
    left: auto;
    border-radius: var(--r-lg);
    background: radial-gradient(circle at 50% 50%, rgba(204, 31, 31, 0.12) 0%, transparent 70%);
    touch-action: none;
    cursor: grab;
  }

  [dir="rtl"] #hero-canvas {
    left: auto;
    right: auto;
  }

  .hero-3d-hint {
    order: 3;
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    left: auto;
    transform: none;
    margin-top: -38px;
    margin-bottom: 16px;
    z-index: 5;
  }

  [dir="rtl"] .hero-3d-hint {
    right: auto;
    left: auto;
    transform: none;
  }

  .hero-model-switcher {
    display: none !important;
  }

  .switcher-label {
    text-align: center;
  }

  .switcher-pills {
    justify-content: center;
    gap: 5px;
  }

  .hero-ctas {
    order: 5;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
    max-width: 360px;
  }

  .hero-stats {
    order: 6;
    justify-content: center;
    width: 100%;
    max-width: 360px;
    gap: 16px;
  }

  .hero-scroll { display: none; }
}

@media (max-width: 768px) {
  :root { --section-pad: 4.5rem 5vw; }

  #deals-grid    { grid-template-columns: repeat(2, 1fr); }
  #products-grid { grid-template-columns: repeat(2, 1fr); }

  .testimonial-card { min-width: 100%; }

  .catalog-controls { flex-direction: column; align-items: stretch; }
  .catalog-sort { justify-content: flex-end; }
}

@media (max-width: 640px) {
  #deals-grid,
  #products-grid,
  .products-grid,
  .related-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }

  
  .product-card,
  .deal-card {
    border-radius: var(--r-md, 10px);
    display: flex;
    flex-direction: column;
  }

  .product-card-img {
    height: 135px;
    background: rgba(0, 0, 0, 0.06);
  }

  .deal-card-img {
    height: 120px;
    background: rgba(0, 0, 0, 0.06);
  }

  .product-card-body,
  .deal-card-body {
    padding: 10px 8px !important;
    gap: 5px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
  }

  .product-cat-tag {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .product-name,
  .deal-name {
    font-size: 0.8rem;
    line-height: 1.25;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
  }

  .product-prices,
  .deal-prices {
    gap: 4px;
    flex-wrap: wrap;
    align-items: baseline;
  }

  .product-price,
  .deal-price {
    font-size: 1.12rem;
  }

  .product-price-orig,
  .deal-price-orig {
    font-size: 0.74rem;
  }

  .product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .product-price-row .product-price {
    font-size: 1.12rem;
  }

  .product-price-row .add-to-cart-btn {
    width: auto;
    padding: 5px 8px;
    font-size: 0.72rem;
    margin-top: 0;
  }

  .add-to-cart-btn {
    padding: 7px 6px;
    font-size: 0.76rem;
    border-radius: 6px;
    margin-top: 2px;
  }

  .discount-badge,
  .deal-badge {
    top: 6px;
    left: 6px;
    font-size: 0.58rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .wishlist-btn {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  #cart-sidebar  { width: 100vw; }

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

  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .hero-stat-divider { display: none; }

  .trust-banner { gap: 20px; flex-direction: column; text-align: center; }

  .efootball-tiers { flex-direction: column; }
  .tier-card { flex: auto; min-width: unset; }

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

  #hero-canvas {
    max-width: 360px;
    height: clamp(205px, 28vh, 245px);
    margin: 2px auto 10px;
  }
}

@media (max-width: 400px) {
  .hero-title { font-size: 3.2rem; }
  .hero-ctas  { flex-direction: column; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; justify-content: center; }

  #hero-canvas {
    max-width: 310px;
    height: 190px;
    margin: 0 auto 8px;
  }
}

@media (max-width: 340px) {
  #hero-canvas {
    max-width: 270px;
    height: 175px;
  }
}
