@media (max-width: 600px) {
  
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 5px 10px;
  }

  header h1 {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: var(--text);
    box-shadow: 0 4px 12px rgba(122, 120, 120, 0.281);
    cursor: pointer;
    border-radius: 8px;
  }

  nav ul {
    flex-direction: column;
    background: var(--muted);
    position: absolute;
    top: 60px;
    right: 5px;
    width: 150px;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    box-shadow: var(--border);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 6px 0;
  }

  nav ul li a {
    color: var(--subtext);
    font-weight: 600;
    background: transparent;
    padding: 10px 15px;
    display: inline-block;
  }

  .hero {
    height: 520px;
  }

  .featuredSection { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    justify-content: center; 
    align-items: stretch;
  }

  .featuredProducts { 
    background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(0,0,0,0.01)); 
    border-radius: 12px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    padding: 5px; 
    height: 220px; 
  } 
  
  .featuredProducts a { 
    display: inline-block; 
    margin: 6px; 
    padding: 6px 10px; 
  } 

  #offerBanner {
    height: auto;
    width: 100%;
  }
  

  #offerBanner img {
  height:100%; 
  width:100%; 
  border-radius:12px; 
  object-fit:cover; 
}

  .cart-count {
    top: -12px;
    right: 25px;
  }

  .dropdown-content {
    position: static;
    background: transparent;
    box-shadow: none;
    display: none;
    flex-direction: column;
    width: 100%;
    text-align: left;
  }

  .dropdown-content li a {
    padding: 8px 0;
  }

  .dropdown.active .dropdown-content {
    display: flex;
  }

  .cart-item { 
    flex-direction: column; 
    align-items: flex-start; 
  } 
  
  .cart-item img { 
    width: 80px; 
    height: 80px; 
  } 
  
  .quantity-controls button { 
    width: 20px; 
    height: 20px; 
  } 
  
  .cart-summary { 
    padding: 15px; 
  }

  #checklist-items {
    column-count: 2;
  }

  
  .auth-container,
  .checkout-page {
    width: 90%;
    margin: 20px auto;
    padding: 25px 20px;
  }

  .checkout-page h2 {
    font-size: 1.5rem;
  }

  .checkout-page .btn {
    width: 100%;
    padding: 14px;
  }

  
  footer {
    font-size: 0.85rem;
    padding: 15px;
    margin-bottom: 25px;
  }

  .offer-admin-box {
    margin-bottom: 25px;
  }

  
  .top-section { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    justify-content: center; 
    align-items: stretch; 
  }

  .categories { 
    background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(0,0,0,0.01)); 
    border-radius: 12px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    padding: 5px; 
    height: 380px; 
  } 
  
  .categories a { 
    display: inline-block; 
    margin: 6px; 
    padding: 6px 10px; 
  } 
  
  .top-selling { 
    width: 100%; 
    height: 450px !important;
  }


  
  .banner-box {
    width: 100%;
    height: auto;
    text-align: center;
    margin: 5px 0;
  }

  .banner-box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin: 0;
  }

  .products-banner {
    width: 100%;
    height: 190px;
  }

  .products-banner img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
    margin: 0;
  }

  
.products-grid,
.offers-grid {
  column-count: 2;
}

  .offer-admin-box{
    width: 250px;
  }

  
  .search-bar {
    width: 90%;
    flex-direction: row;
    gap: 5px;
    padding: 5px 8px;
  }

  .search-bar input {
    font-size: 0.9rem;
    padding: 8px;
  }

  .search-bar button {
    padding: 8px 14px;
    font-size: 0.9rem;
  }

  .admin-container {
    width: 95%;
    margin: 1rem auto;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
  }

  td {
    padding: 10px;
    text-align: right;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
    color: var(--subtext);
  }

  #resultsContainer {
    column-count: 2;
    gap: 3px;
    padding: 3px;
  }

  #resultsContainer h2 {
    font-size: 1.2rem;
  }

   .bottom-bar {
    padding: 0 2px;             
    border-radius: 0;           
    justify-content: space-around;
  }

  .bottom-bar .nav-item {
    font-size: 14px;            
    flex: 1;
    margin: 0 2px;
  }

  .bottom-bar .nav-item i {
    font-size: 18px;            
    margin-bottom: 2px;
    line-height: 1;             
  }

  .bottom-bar .nav-item span {
    font-size: 9px;             
  }

  
  .bottom-bar .nav-item:hover i {
    transform: scale(1.05);
  }

  
  .bottom-bar .nav-item:not(:last-child) {
    margin-right: 2px;
  }

  .admin-products {
    margin: 12px 16px;
    border-radius: 8px;
  }

  .product-form {
    gap: 10px;
  }

  .product-form input,
  .product-form select,
  .product-form textarea,
  .product-form button {
    font-size: 0.95rem;
    padding: 10px;
  }

  #adminProductList li {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .admin-products h2,
  .admin-products h3 {
    text-align: center;
  }

  .product-form {
    gap: 14px;
  }

  .product-form input,
  .product-form select,
  .product-form textarea,
  .product-form button {
    font-size: 0.95rem;
  }

  #variantsBox h4 {
    text-align: center;
  }

  #variantsBox button {
    width: 100%;
  }

  #adminProductList li {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  #adminProductList button {
    width: 100%;
  }
   #variantsBox h4 {
    text-align: center;
  }

  #variantsBox > div {
    grid-template-columns: 1fr;
  }

  #variantsBox > div input {
    width: 100%;
  }

   #variantsBox h4 {
    text-align: center;
  }

  #variantsBox div {
    flex-direction: column;
  }

  #variantsBox > div input {
    width: 100%;
  }

}



@media (min-width: 601px) and (max-width: 992px) {

  .menu-toggle {
    display: block;
    font-size: 1.8rem;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(122, 120, 120, 0.281);
    cursor: pointer;
    border-radius: 8px;
  }

  nav ul {
    flex-direction: column;
    background: whitesmoke;
    position: absolute;
    top: 60px;
    right: 5px;
    width: 150px;
    text-align: center;
    padding: 5px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    display: none;
  }

  nav ul.active {
    display: flex;
  }

  #checklist-items {
    column-count: 3;
  }

  nav ul li {
    margin: 6px 0;
  }

  nav ul li a {
    color: #111;
    font-weight: 600;
    background: transparent;
    padding: 10px 15px;
    display: inline-block;
  }
  
  header h1 {
    font-size: 1.4rem;
  }

  .hero{
    height: 400px;
  }

  .featuredSection { 
    display: flex; 
    flex-direction: column; 
    gap: 5px; 
    justify-content: center; 
    align-items: stretch;
  }

  .featuredProducts { 
    background: linear-gradient(180deg, rgba(250,250,250,0.6), rgba(0,0,0,0.01)); 
    border-radius: 12px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    padding: 5px; 
    height: 220px; 
  } 
  
  .featuredProducts a { 
    display: inline-block; 
    margin: 6px; 
    padding: 6px 10px; 
  } 

  #offerBanner {
    height: auto;
    width: 100%;
  }

  #offerBanner img {
  height:100%; 
  width:100%; 
  border-radius:12px; 
  object-fit:cover; 
}

  nav ul {
    gap: 5px;
  }

  footer {
    padding: 20px;
  }

  .products-grid,
  .offers-grid {column-count: 3;
  }

  .top-section {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
  }

  .categories,
  .banner-box,
  .top-selling {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
  }

  .banner-box img {
    width: 100%;
    height: auto;
  }

  .top-selling {
  height: 450px;
  }

  
  .admin-container {
    width: 95%;
    margin: 1rem auto;
  }

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none; 
  }

  tr {
    margin-bottom: 1rem;
    border-bottom: 2px solid #ddd;
  }

  td {
    padding: 10px;
    text-align: right;
    position: relative;
    border: none;
    border-bottom: 1px solid #eee;
  }

  td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 50%;
    padding-left: 15px;
    font-weight: bold;
    text-align: left;
    color: var(--subtext);
  }

  #resultsContainer {
    column-count: 3;
  }


.cart-count {
    top: -4px;
    right: 52px;
  }

  .admin-products {
    padding: 16px;
  }

  .product-form {
    grid-template-columns: 1fr;
  }

  #variantsBox div {
    flex-direction: column;
  }

   #variantsBox > div {
    grid-template-columns: 1fr 1fr;
  }

  #variantsBox > div input:last-child {
    grid-column: span 2;
  }

}


@media (min-width: 993px) {
  nav ul {
    display: flex !important;
  }

  .menu-toggle {
    display: none;
  }
}
