/* static/css/shop.css */

/* Dark theme and white text */
body {
    background-color: #121212;
    color: white;
  }
  
  .shop-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    padding: 30px 0;
  }
  
  /* Sidebar */
  .shop-sidebar {
    padding-right: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .shop-filters h2 {
    font-size: 18px;
    margin: 25px 0 15px;
    color: white;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
  }
  
  .shop-filters h2:first-child {
    margin-top: 0;
  }
  
  .category-filter,
  .collection-filter {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .category-filter li,
  .collection-filter li {
    margin-bottom: 10px;
  }
  
  .filter-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
    display: block;
    padding: 5px 0;
  }
  
  .filter-link:hover {
    color: white;
  }
  
  .filter-link.active {
    color: white;
    font-weight: bold;
  }
  
  /* Price Filter */
  .price-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .price-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .price-input-group label {
    font-size: 14px;
    color: #ccc;
  }
  
  .price-input-group input {
    width: 80px;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: white;
  }
  
  .apply-filter {
    margin-top: 10px;
    background-color: #800000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .apply-filter:hover {
    background-color: #600000;
  }
  
  /* Shop Main Content */
  .shop-main {
    width: 100%;
  }
  
  .shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    background-color: #1a1a1a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .shop-header h1 {
    margin: 0;
    font-size: 28px;
    color: white;
  }
  
  .shop-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
  }
  
  /* Search Box */
  .search-box {
    position: relative;
  }
  
  .search-box input {
    width: 220px;
    padding: 10px 35px 10px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 14px;
    background-color: #333;
    color: white;
  }
  
  .search-box input::placeholder {
    color: #aaa;
  }
  
  .search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
  }
  
  /* Sort Dropdown */
  .sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .sort-dropdown label {
    font-size: 14px;
    color: #ccc;
  }
  
  .sort-dropdown select {
    padding: 8px 25px 8px 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: white;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath fill='%23aaa' d='m5 6 5-6H0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
  }
  
  /* Products Grid */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
  }
  
  /* Product item styling */
  .product-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-name {
    color: white;
    margin-top: 0;
    margin-bottom: 10px;
  }
  
  .product-price {
    color: white;
    font-weight: bold;
  }
  
  .add-to-cart-btn {
    background-color: #800000;
    color: white;
    border: none;
    padding: 8px 15px;
    width: 100%;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  .add-to-cart-btn:hover {
    background-color: #600000;
  }
  
  /* No Products Message */
  #no-products-message {
    text-align: center;
    padding: 50px 0;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  #no-products-message p {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 20px;
  }
  
  #reset-filters {
    background-color: #800000;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
  }
  
  #reset-filters:hover {
    background-color: #600000;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 992px) {
    .shop-container {
      grid-template-columns: 1fr;
    }
    
    .shop-sidebar {
      padding-right: 0;
      border-bottom: 1px solid #333;
      padding-bottom: 20px;
    }
    
    .shop-filters {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
    }
  }
  
  @media (max-width: 768px) {
    .shop-header {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .shop-controls {
      width: 100%;
      justify-content: space-between;
    }
    
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
  }
  
  @media (max-width: 480px) {
    .shop-filters {
      grid-template-columns: 1fr;
    }
    
    .shop-controls {
      flex-direction: column;
      align-items: stretch;
    }
    
    .search-box {
      width: 100%;
    }
    
    .search-box input {
      width: 100%;
    }
    
    .sort-dropdown {
      width: 100%;
    }
    
    .sort-dropdown select {
      flex-grow: 1;
    }
    
    .products-grid {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }