/* ============================================================
   Responsive – all media queries (nothing removed, duplicates merged)
   ============================================================ */

/* ---------- min-width: 700px ---------- */
@media (min-width: 700px) {
  .profile-nav-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- min-width: 768px ---------- */
@media (min-width: 768px) {
  .product-detail {
    grid-template-columns: minmax(280px, 440px) 1fr;
    padding: 28px;
    gap: 40px;
  }
  .auctions-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .auction-detail {
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: start;
  }
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr 340px;
  }
  .profile-layout {
    grid-template-columns: 1fr 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr 1.5fr;
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
  .cart-item {
    grid-template-columns: 80px 1fr auto auto auto;
  }
  .product-slider-item {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }
  .hero {
    min-height: 380px;
  }
  .hero-content {
    padding: 56px 48px;
  }
  #slider-auctions .product-slider-item,
  #slider-sold-auctions .product-slider-item {
    flex: 0 0 calc(50% - 7px) !important;
    max-width: calc(50% - 7px) !important;
  }
  .category-card-image {
    position: relative;
    height: 103px !important;
    overflow: hidden;
    background: var(--bg);
  }
}

/* ---------- min-width: 800px (desktop nav + locked auction) ---------- */
@media (min-width: 800px) {
  .mobile-menu-toggle {
    display: none;
  }
  .main-nav {
    display: flex;
  }
  .profile-forms-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auction-locked-wrap {
    grid-template-columns: 1fr minmax(240px, 380px);
  }
}

/* ---------- min-width: 1024px ---------- */
@media (min-width: 1024px) {
  .auctions-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .product-slider-item {
    flex: 0 0 calc(25% - 11px);
    max-width: calc(25% - 11px);
  }
  .hero {
    min-height: 400px;
  }
  .section {
    padding: 35px 0;
  }
  .container {
    max-width: 1180px;
  }
  #slider-auctions .product-slider-item,
  #slider-sold-auctions .product-slider-item {
    flex: 0 0 calc(25% - 11px) !important;
    max-width: calc(25% - 11px) !important;
  }
}

/* ---------- min-width: 1280px ---------- */
@media (min-width: 1280px) {
  .container {
    max-width: 1240px;
  }
  .hero {
    max-width: 1240px;
  }
}

/* ---------- max-width: 600px ---------- */
@media (max-width: 600px) {
  .soft-close-timer {
    flex-direction: column;
    text-align: center;
  }
  .bid-form-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- max-width: 520px ---------- */
@media (max-width: 520px) {
  .profile-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.4rem; 
  }
  
  
  .about-acc-title {
   
    font-size: 14px;
}
  
  
  .auctions-grid { 
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 14px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    margin: auto;
}


.bid-form-min {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: auto;
}

}

/* ---------- max-width: 500px ---------- */
@media (max-width: 500px) {
  .leave-modal-card {
    padding: 22px 16px 18px;
  }
  .leave-modal-actions {
    flex-direction: column;
  }
  .leave-modal-actions .btn {
    width: 100%;
  }
}

/* ---------- max-width: 767px (mobile) ---------- */
@media (max-width: 767px) {
  .product-detail {
    padding: 12px !important;
    border-radius: 18px;
    gap: 16px !important;
  }
  .btn-add-cart-detail {
    flex: 1 1 auto !important;
    justify-content: center;
  }
  .gallery-main {
    max-height: 280px !important;
    border-radius: 14px;
  }
  .gallery-main img {
    padding: 8px;
  }
  .gallery-thumbs .thumb {
    width: 56px;
    height: 56px;
  }
  .search-bar {
    width: calc(100% - 16px) !important;
    max-width: none !important;
    left: 50% !important;
  }
  .search-form button[type="submit"],
  .search-close {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  .lang-dropdown {
    display: none !important;
  }
  .site-header {
    padding: 0;
  }
  .header-inner {
    border-radius: 0;
    height: 58px;
    padding: 0;
  }
  .hero {
    width: calc(100% - 24px);
    margin-top: 12px;
    min-height: 280px;
    border-radius: 5px;
  }
  .hero-content {
    padding: 32px 24px;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .floater {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 12px;
  }
  .f1 { top: 12%; right: 16%; }
  .f2 { top: 14%; right: 3%; }
  .f3 { top: 42%; right: 18%; }
  .f4 { top: 55%; right: 5%; }
  .f5, .f7, .f9 { display: none; }
  .f6 { top: 70%; right: 22%; width: 36px; height: 36px; font-size: 0.85rem; }
  .f8 { top: 68%; right: 4%; width: 38px; height: 38px; font-size: 0.9rem; }
  .f10 { top: 30%; right: 28%; width: 36px; height: 36px; font-size: 0.85rem; }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }
  .cart-item-qty,
  .cart-item-total,
  .cart-item-remove {
    grid-column: 2;
  }
  .products-page-header {
    align-items: center;
  }
  .products-page-actions {
    margin-left: 0;
  }
  .product-card-image {
    aspect-ratio: 1;
    padding: 8px;
  }
  .category-card-body h3 {
    font-size: 0.85rem;
  }
  .btn-cart-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  .auth-card {
    padding: 28px 20px;
    margin: 0 4px;
    border-radius: 20px;
  }
  .page-header h1,
  .page-title {
    font-size: 1.35rem;
  }
  .section-header h2 {
    font-size: 1.2rem;
  }
  .site-footer {
    border-radius: 24px 24px 0 0;
  }
  #toast-container {
    left: 12px;
    right: 12px;
    bottom: 24px;
    top: auto;
  }
  .toast {
    min-width: 0;
    max-width: 100%;
  }

  /* Mobile: hide desktop nav, show burger */
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}

/* ---------- max-width: 799px – keep burger until desktop nav fits ---------- */
@media (max-width: 799px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
