@media (min-width: 781px) {
  .browseTableArea {
    width: 100%;
    margin-top: 25px;
    margin-bottom: 40px;
    font-size: 16px;
  }
  .browseTableArea h2 {
    margin-left: 20px;
    margin-bottom: 12px;
    font-size: 22px;
    color: #222;
  }
  .browse-table {
    width: 98%;
    margin: auto;
    border-collapse: collapse;
    table-layout: fixed;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
  }
  .browse-table th {
    padding: 10px 12px;
    background-color: #f5f5f5;
    color: #444;
    text-align: left;
    border-bottom: 2px double #c4c4c4;
    font-size: 16px;
    font-weight: 600;
  }
  .browse-table th:nth-child(1),
  .browse-table td:nth-child(1) {
    width: 12%;
  }

  .browse-table th:nth-child(2),
  .browse-table td:nth-child(2) {
    width: 13%;
  }

  .browse-table th:nth-child(3),
  .browse-table td:nth-child(3) {
    width: 12%;
  }

  .browse-table th:nth-child(4),
  .browse-table td:nth-child(4) {
    width: 38%;
  }

  .browse-table th:nth-child(5),
  .browse-table td:nth-child(5) {
    width: 11%;
  }
  .browse-table th:nth-child(6),
  .browse-table td:nth-child(6) {
    width: 15%;
  }
  .browse-table tr {
    transition: background 0.18s ease, color 0.18s ease;
    cursor: pointer;
  }
  .browse-table tr:hover {
    background-color: #e4e4e4;
    color: #0c2fbd;
  }
  .browse-table td {
    padding: 12px 10px;
    border-bottom: 2px dashed #d0d0d0;
    vertical-align: top;
    font-size: 15px;
    color: #222;
  }
  .cellImage {
    padding: 10px;
    height: 110px;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .browse-table-thumb {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #ccc; 
    background-color: #fafafa;
  }

  .browse-cellTitle {
    padding-top: 15px; /* Keeps the vertical alignment inside the row */
    vertical-align: top; 
  }
  /* The Title Text specifically */
  .browse-cellTitle-text {
    font-weight: 600; /* or bold */
    font-size: 16px;
    color: #333;
    line-height: 1.2;
    display: block; /* Ensures it stays on its own line above the rating */
  }

  /* The Rating Wrapper */
  .browse-table-rating-block {
    margin-top: 6px; /* Space between title and rating */
    display: block;  /* Forces it to be on its own line */
  }

  /* The Badge reset */
  .browse-table-rating-block .browse-rating-badge {
    position: relative; /* CRITICAL: Breaks the absolute float from cards */
    bottom: auto;       
    left: auto;         
    display: inline-flex;
    align-items: center;
    box-shadow: none;   
    padding: 2px 6px;   
    font-size: 13px;    /* Slightly smaller looks better in tables */
  }

  .browse-cellDescription {
    font-size: 15px;
    line-height: 1.35;
    color: #444;
    padding-right: 10px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .browse-cellPrice {
    font-size: 16px;
    font-weight: 700;
    color: #0b4e0b;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .browse-noResults {
    margin: 25px 20px;
    font-size: 18px;
    color: #555;
    font-style: italic;
  }
}
@media (max-width: 780px) {
  .browseTableArea {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 0;
  }

  .browse-table {
    display: table;
    width: 100% !important;
    margin: 0;
    table-layout: fixed;
    border-collapse: collapse;
    background-color: #fff;
  }

  /* --- Headers (same as search) --- */
  .browse-table th {
    padding: 8px 4px;
    background-color: #f5f5f5;
    color: #444;
    text-align: left;
    border-bottom: 2px solid #ddd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .browse-table td {
    padding: 10px 4px;
    vertical-align: top;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    overflow: visible;
  }

  /* --- Column widths (JS-driven via classes, not nth-child) --- */
  .browse-col-main { width: 30%; }
  .browse-col-info { width: 45%; }
  .browse-col-meta {
    width: 25%;
    text-align: right;
    vertical-align: top;
    padding-right: 5px;
  }

  /* --- Hide desktop-only columns if present --- */
  .browse-table th:nth-child(4),
  .browse-table td:nth-child(4),
  .browse-table th:nth-child(5),
  .browse-table td:nth-child(5),
  .browse-table th:nth-child(6),
  .browse-table td:nth-child(6) {
    display: none;
  }

  /* --- Image (search parity) --- */
  .browse-table-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
    display: block;
  }

   .browse-table-rating-block {
        display: block;
        width: 100%;
    }
    /* The badge itself */
    .browse-table-rating-block .browse-rating-badge {
        position: relative !important; /* Resets the absolute position from cards */
        bottom: auto !important;
        left: auto !important;
        /* Plane Alignment Fix */
        display: inline-flex;
        align-items: center;      /* Vertically centers rating and count */
        justify-content: center;
        gap: 3px;                 /* Horizontal space between 9 and (1) */
        line-height: 1;           /* Removes extra vertical space */
        font-size: 11px;
        padding: 2px 6px;
        box-shadow: none;
        border-radius: 4px;
        color: white !important;
    }
    /* The review count inside the badge */
    .browse-table-rating-block .rating-count {
        font-size: 10px;
        line-height: 1;           /* Keeps it on the same plane as the number */
        display: inline-block;
    }


  /* --- Info column --- */
  .browse-cellTitle {
    font-size: 11px;
    font-weight: 700;
    color: #219ebc;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .browse-cellName {
    font-size: 11px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
    display: block;
  }

  .browse-cellDescription {
    font-size: 10px;
    line-height: 1.3;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* --- Meta column --- */
  .browse-cellCity {
    font-size: 11px;
    color: #444;
    display: block;
    margin-bottom: 4px;
    word-wrap: break-word;
    line-height: 1.2;
  }

  .browse-cellPrice {
    font-size: 13px;
    font-weight: 700;
    color: #0b4e0b;
    display: block;
    margin-bottom: 4px;
  }

  .browse-cellDate {
    font-size: 10px;
    color: #999;
    display: block;
  }

  /* --- No results --- */
  .browse-noResults {
    margin: 20px 10px;
    font-size: 16px;
    color: #777;
    text-align: center;
    width: 100%;
  }
}
