 /* Marketplace Layout Styles */
  .marketplace-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    flex-direction: row-reverse;
  }

  /* Main Products Grid */
  .products-grid {
    flex: 1;
  }

  .grid-header {
    margin-bottom: 30px;
    text-align: right;
  }

  .grid-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
  }

  .grid-subtitle {
    color: #666;
    font-size: 16px;
  }

  .products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
  }

  .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    text-align: right;
    cursor: pointer;
  }

  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  .product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
  }

  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

  .product-card:hover .product-image img {
    transform: scale(1.05);
  }

  .verification-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
  }

  .auction-timer {
    position: absolute;
    display: none !important;
    bottom: 15px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    z-index: 2;
  }

  .countdown-container {
    display: flex;
    justify-content: space-around;
    margin-top: 5px;
  }

  .countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .countdown-value {
    font-size: 16px;
    font-weight: bold;
    color: #ff9900;
    line-height: 1;
  }

  .countdown-label {
    font-size: 9px;
    margin-top: 2px;
  }

  .ended-badge {
    background: #ff4444;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 11px;
  }

  .condition-badge {
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: auto;
  }

  .product-content {
    padding: 20px;
  }

  .product-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
  }

  .product-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 45px;
    overflow: hidden;
  }

  .highlight {
    background-color: #ffeb3b;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
  }

  .rating-favorites {
    display: flex;
    gap: 15px;
    margin: 8px 0;
    font-size: 14px;
    color: #666;
  }

  .product-price {
    margin-bottom: 15px;
  }

  .current-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff9900;
    margin-left: 8px;
  }

  .seller-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
  }

  .product-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }

  .buy-btn,
  .bid-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    position: relative;
    z-index: 10;
  }

  .buy-btn {
    background: #ff9900;
    color: white;
    flex: 1;
  }

  .buy-btn:hover {
    background: #e68a00;
  }

  .bid-btn {
    background: #ff4444;
    color: white;
    flex: 1;
  }

  .bid-btn:hover {
    background: #ff2222;
  }

  .bid-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
  }

  /* Filters Sidebar */
  .filters-sidebar {
    width: 320px;
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    direction: rtl;
  }

  .filters-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    text-align: right;
  }

  .filters-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
  }

  .results-count {
    color: #666;
    font-size: 14px;
  }

  .filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
  }

  .filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }

  .clear-filter {
    color: #ff9900;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
  }

  .clear-filter:hover {
    background-color: #fff8e1;
  }

  .filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
  }

  .filter-option {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    width: 100%;
    justify-content: space-between;
  }

  .filter-option input[type="checkbox"] {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9900;
  }

  .filter-option-count {
    background: #f5f5f5;
    color: #666;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    min-width: 24px;
    text-align: center;
  }

  .location-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
  }

  .location-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: right;
  }

  .apply-price-btn {
    background: #ff9900;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
    width: 100%;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
  }

  .apply-price-btn:hover {
    background: #e68a00;
  }

  .reset-all-btn {
    background: #666;
    margin-top: 20px;
  }

  .reset-all-btn:hover {
    background: #555;
  }

  .location-checkbox {
    margin-bottom: 15px;
  }

  .location-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    gap: 8px;
  }

  .location-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ff9900;
  }

  .location-info {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  /* Search and Sort Bar */
  .action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 15px;
    direction: rtl;
  }

  .search-box {
    flex: 1;
    min-width: 300px;
    position: relative;
  }

  .search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 15px;
    text-align: right;
    direction: rtl;
  }

  .search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    font-size: 18px;
  }

  .sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sort-label {
    color: #666;
    font-size: 14px;
  }

  .sort-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
    text-align: right;
    direction: rtl;
  }

  .refresh-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
  }

  .refresh-btn:hover {
    background: #3d8b40;
  }

  /* Loading States */
  .loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
  }

  .loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #ff9900;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  /* Notification Styles */
  .custom-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 6px;
    z-index: 10000;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInDown 0.3s ease;
    font-family: inherit;
    min-width: 300px;
    max-width: 90%;
  }

  @keyframes slideInDown {
    from {
      transform: translate(-50%, -100%);
      opacity: 0;
    }

    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }

  @keyframes slideOutUp {
    from {
      transform: translate(-50%, 0);
      opacity: 1;
    }

    to {
      transform: translate(-50%, -100%);
      opacity: 0;
    }
  }

  /* Price Filter */
  .price-filter-container {
    margin-top: 15px;
  }

  .price-range {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
  }

  .price-input {
    flex: 1;
    min-width: 100px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    direction: rtl;
  }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    direction: rtl;
  }

  .page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    color: #333;
    transition: all 0.3s ease;
    font-family: inherit;
  }

  .page-btn:hover {
    background: #f5f5f5;
  }

  .page-btn.active {
    background: #ff9900;
    color: white;
    border-color: #ff9900;
  }

  /* Back to all categories link */
  .back-to-all {
    display: inline-block;
    margin-bottom: 15px;
    color: #ff9900;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
  }

  .back-to-all:hover {
    color: #e68a00;
    text-decoration: underline;
  }

  /* Responsive */
  @media (max-width: 1024px) {
    .marketplace-container {
      flex-direction: column;
    }

    .filters-sidebar {
      width: 100%;
      position: static;
      max-height: none;
      order: -1;
    }

    .products-container {
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
  }

  @media (max-width: 768px) {
    .action-bar {
      flex-direction: column;
      align-items: stretch;
    }

    .search-box {
      min-width: 100%;
    }

    .products-container {
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .countdown-value {
      font-size: 14px;
    }

    .countdown-label {
      font-size: 8px;
    }
  }

  @media (max-width: 480px) {
    .marketplace-container {
      padding: 0 10px;
    }

    .products-container {
      grid-template-columns: 1fr;
    }

    .product-actions {
      flex-direction: column;
    }

    .location-inputs {
      flex-direction: column;
    }

    .sort-options {
      width: 100%;
      justify-content: space-between;
    }

    .sort-select {
      flex: 1;
    }
  }