/* Opus product UI — extracted from site snippets + legacy grid helpers */



.slab-card, .series-card, .thumb {
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
  transition: transform .2s;
}
.slab-card:hover, .series-card:hover, .thumb:hover {
  transform: scale(1.03);
}

.slab-card img, .series-card img, .thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.back-btn {
  grid-column: 1 / -1;
  margin: .5rem 0;
  color: #0073aa;
  cursor: pointer;
}

#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#lightbox img {
  max-width: 90%;
  max-height: 90%;
}



.tile-card {
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  cursor:pointer;
  transition:transform .2s;
}
.tile-card:hover { transform:scale(1.03); }
.tile-card img { width:100%; display:block; }
.tile-info { padding:.75rem; }
.tile-info .subtitle span { margin-right:.3rem; color:#666; font-size:.9em; }
.tile-detail { display:flex; flex-wrap:wrap; gap:2rem; margin-top:1rem; }
.tile-detail .tile-image img { width:100%; max-width:480px; border-radius:8px; }
.tile-detail .tile-meta { flex:1; min-width:260px; }
.branch-list { margin-top:.5rem; padding-left:1.2rem; }
.branch-list li { line-height:1.6; }


.generic-card {
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
  cursor:pointer;
  transition:transform .2s;
}
.generic-card:hover { transform:scale(1.03); }
.generic-card img { width:100%; display:block; }
.generic-info { padding:.75rem; }
.generic-info .subtitle span { margin-right:.3rem; color:#666; font-size:.9em; }

.generic-detail { display:flex; flex-wrap:wrap; gap:2rem; margin-top:1rem; }
.generic-detail .generic-image img { width:100%; max-width:480px; border-radius:8px; }
.generic-detail .generic-meta { flex:1; min-width:260px; }
.branch-list { margin-top:.5rem; padding-left:1.2rem; }
.branch-list li { line-height:1.6; }



/* ======= GRID LAYOUT ======= */
#opus-grid.opus-grid--cols-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: start;
}

@media (max-width: 1400px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 1100px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  #opus-grid.opus-grid--cols-5 {
    grid-template-columns: 1fr;
  }
}

/* ======= PRODUCT CARD ======= */
.opus-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease;
}
.opus-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.opus-image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.opus-info {
  padding: 12px;
}
.opus-info h2 {
  font-size: 16px;
  margin: 0 0 4px;
  font-weight: 600;
}
.opus-info .subtitle {
  font-size: 13px;
  color: #666;
}

/* ======= PAGINATION ======= */
#opus-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}
#opus-pagination .page-btn {
  background: #f4f4f4;
  border: 1px solid #ccc;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}
#opus-pagination .page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
#opus-pagination .page-number {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  padding: 4px;
  border-radius: 4px;
}


/* ---- Consolidated snippet styles ---- */

/* ============================================================
   OPUS PRODUCT GRID
   ============================================================ */

.opus-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}
/* Tablet (Breakdance: tablet portrait & down) */
@media (max-width: 1024px) {
    .opus-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .opus-grid {
        grid-template-columns: 1fr;
    }
}

.opus-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.opus-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.opus-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.opus-detail-link {
    text-decoration: none;
}
.opus-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(4);
    transition: transform 0.5s ease;
}
.opus-card:hover .opus-image-wrapper img {
    transform: scale(3.5);
}

.opus-info {
    padding: 14px 14px 16px;
}

.opus-info h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 6px;
    font-weight: 600;
}

.opus-info .subtitle {
    font-size: 12px;
    color: #777;
}

/* ============================================================
   FAVORITE HEART
   ============================================================ */

.opus-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #aaa;
    fill: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.opus-fav-btn:hover {
    transform: scale(1.08);
    color: #d11;
    fill: #d11;
}

.opus-fav-btn.active {
    color: #d11;
    fill: #d11 !important;
}

/* ============================================================
   OPUS FAVORITES MODAL (matches #opus-favorites-modal markup)
   ============================================================ */

#opus-favorites-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;

    /* hidden by default */
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease !important;
}

/* show state */
#opus-favorites-modal.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* overlay */
#opus-favorites-modal .opus-fav-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    z-index: 99999 !important;
}

/* modal box */
#opus-favorites-modal .opus-fav-box {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    width: min(560px, 94vw) !important;
    max-height: 82vh !important;
    overflow: hidden !important;

    background: #fff !important;
    border-radius: 14px !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4) !important;

    z-index: 100000 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* header */
#opus-favorites-modal .opus-fav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;

    padding: 16px 18px !important;
    border-bottom: 1px solid #eee !important;
}

#opus-favorites-modal .opus-fav-header strong {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* close button */
#opus-favorites-modal .opus-fav-close {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #444 !important;
}

#opus-favorites-modal .opus-fav-close:hover {
    background: #f5f5f5 !important;
}

/* content area */
#opus-favorites-modal .opus-fav-content {
    padding: 14px 18px 18px !important;
    overflow: auto !important;
    max-height: calc(82vh - 64px) !important;
}

/* favorite row */
#opus-favorites-modal .opus-fav-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;

    padding: 10px !important;
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    background: #fff !important;

    margin-bottom: 10px !important;
}

#opus-favorites-modal .opus-fav-item img {
    width: 76px !important;
    height: 56px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    background: #f3f3f3 !important;
    flex: 0 0 auto !important;
}

#opus-favorites-modal .opus-fav-item a {
    flex: 1 !important;
    text-decoration: none !important;
    color: inherit !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

#opus-favorites-modal .opus-fav-item a:hover {
    text-decoration: underline !important;
}

/* remove X */
#opus-favorites-modal .opus-fav-remove {
    width: 30px !important;
    height: 30px !important;
    border-radius: 8px !important;
    border: 1px solid #e6e6e6 !important;
    background: #fff !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    color: #666 !important;
}

#opus-favorites-modal .opus-fav-remove:hover {
    color: #d11 !important;
    border-color: #f1b3b3 !important;
    background: #fff7f7 !important;
}

/* mobile tweaks */
@media (max-width: 520px) {
    #opus-favorites-modal .opus-fav-box {
        width: 94vw !important;
    }

    #opus-favorites-modal .opus-fav-item img {
        width: 64px !important;
        height: 48px !important;
    }
}

/* Defensive: ensure nothing hides it */
#opus-favorites-box[hidden],
#opus-favorites-overlay[hidden] {
    display: block !important;
}

/* ============================================================
   FAVORITES CONTENT
   ============================================================ */

#opus-favorites-box h3 {
    margin: 0 0 16px;
    font-size: 20px;
    font-weight: 600;
}

#opus-favorites-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opus-fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.opus-fav-item img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    background: #f4f4f4;
}

.opus-fav-item span {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.opus-fav-remove {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

.opus-fav-remove:hover {
    color: #d11;
}

#opus-favorites-close {
    margin-top: 18px;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: none;
    background: #111;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

#opus-favorites-close:hover {
    background: #000;
}

/* ============================================================
   OPUS DETAIL (SPA)
   ============================================================ */
.opus-detail-image-card {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}
.opus-detail-image-card img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-position: center;
    /*transform: scale(2.5);*/
}
.modal-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.opus-detail-body {
    width: 100%;
    align-items: flex-start;
    max-width: 1280px;
    display: flex;
    flex-direction: row;
    gap: 40px;
}
/* Mobile */
@media (max-width: 767px) {
    .opus-detail-body {
        width: 100%;
        align-items: flex-start;
        max-width: 1280px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .opus-detail-specs {
        width: 100% !important;
    }
}

#opus-product-detail {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
}
.image-detail-wrapper {
    width: 50%;
    overflow: hidden;
}
.image-detail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(2.5);
}
.opus-detail-specs {
    width: 50%;
    border: 1px solid #d8d8d8;
    padding: 40px;
}
.opus-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 0;
}

.opus-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 999px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.opus-back-btn:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.opus-detail-wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.opus-detail-media {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.opus-detail-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f6f6f6;
}

/* tiny fade when swapping slab hero image */
.opus-fade-in {
    animation: opusFadeIn 180ms ease-out;
}
@keyframes opusFadeIn {
    from {
        opacity: 0.6;
        transform: scale(0.99);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.opus-detail-info {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px;
}

.opus-detail-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.opus-detail-info h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.opus-detail-meta {
    margin-top: 12px;
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.opus-detail-availability {
    margin-top: 18px;
}

.opus-detail-availability h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
}

.opus-avail-list {
    display: grid;
    gap: 8px;
}

.opus-avail-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.opus-avail-branch {
    font-weight: 600;
}
.opus-avail-sqf {
    color: #555;
}

/* ============================================================
   SLAB THUMBNAILS + NAV
   ============================================================ */

.opus-slab-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

.opus-thumb {
    padding: 0;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
}

.opus-thumb img {
    width: 100%;
    height: 54px;
    object-fit: cover;
    display: block;
}

.opus-thumb:hover {
    border-color: #bbb;
}

.opus-slab-nav {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.opus-slab-prev,
.opus-slab-next {
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
}

.opus-slab-prev:disabled,
.opus-slab-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.opus-slab-count {
    font-weight: 700;
    color: #444;
}

/* ============================================================
   RESPONSIVE DETAIL
   ============================================================ */

@media (max-width: 980px) {
    .opus-detail-wrap {
        grid-template-columns: 1fr;
    }
    .opus-slab-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================================
   DETAIL HEADER + BACK
   ============================================================ */
.opus-detail-header-title {
    display: flex;
    align-items: center;
    flex-direction: row;
    align-content: center;
    justify-content: center;
}
.opus-detail-header-title h2{font-weight: bold!important;color:#535353!important;}
.opus-detail-header {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-direction: row;
    align-content: center;
    justify-content: space-between;
}
.favs {
    border-radius: 10px;
    border: 1px solid #818387;
    background-color: #818387;
    padding: 14px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 3px;
    transition-timing-function: ease-in-out;
    transition-property: all;
    transition-duration: 300ms;
}
.favs:hover {
    background-color: #fff;
    color: #818387;
}
.favs svg {
    fill: #fff;
    width: 20px;
}
.favs:hover svg {
    fill: #818387;
}
.opus-back-btn {
    border-radius: 10px;
    border: 1px solid #818387;
    background-color: #818387;
    padding: 14px 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 3px;
    transition-timing-function: ease-in-out;
    transition-property: all;
    transition-duration: 300ms;
}
.opus-back-btn:hover {
    background-color: #fff;
    color: #818387;
}
.opus-back-btn svg {
    fill: #fff;
    width: 20px;
}
.opus-back-btn:hover svg {
    fill: #818387;
}

.opus-detail-title h1 {
    margin: 0;
    font-size: 22px;
}
.opus-detail-sub {
    opacity: 0.75;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ============================================================
   BLOCK + SLAB CARDS
   ============================================================ */
.opus-block-card,
.opus-slab-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}
.opus-block-card:hover,
.opus-slab-card:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.opus-slab-imgbtn {
    border: 0;
    padding: 0;
    background: transparent;
    width: 100%;
    cursor: pointer;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
#opus-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
}
#opus-lightbox.show {
    display: block;
}

.opus-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    transition: opacity 0.18s ease;
}
#opus-lightbox.show .opus-lightbox-overlay {
    opacity: 1;
}

.opus-lightbox-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.98);
    width: min(1100px, 92vw);
    max-height: 86vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}
#opus-lightbox.show .opus-lightbox-panel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.opus-lightbox-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 86vh;
    object-fit: contain;
    background: #111;
}
.opus-lightbox-close {
    position: absolute;
    z-index: 999;
    top: 10px;
    right: 10px;
    border: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}
.opus-lightbox-close svg {
    pointer-events: none;
}

/* Optional: lock scroll when modal/lightbox open */
body.opus-modal-open {
    overflow: hidden;
}

/* ============================================================
   FAVORITES MODAL styling (new structure)
   ============================================================ */
#opus-favorites-modal {
    position: fixed;
    inset: 0;
    z-index: 999990;
    display: none;
}
#opus-favorites-modal.show {
    display: block;
}

.opus-fav-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.18s ease;
}
#opus-favorites-modal.show .opus-fav-overlay {
    opacity: 1;
}

.opus-fav-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.98);
    width: min(640px, 94vw);
    max-height: 80vh;
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}
#opus-favorites-modal.show .opus-fav-box {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.opus-fav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
}
.opus-fav-close {
    border: 0;
    background: rgba(0, 0, 0, 0.06);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

.opus-fav-content {
    padding: 16px 18px;
}

.opus-fav-section-title {
    font-weight: 700;
    margin: 12px 0 10px;
}
.opus-fav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.opus-fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 12px;
}
.opus-fav-link {
    display: flex;
    gap: 12px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    flex: 1;
}
.opus-fav-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 10px;
    background: #f4f4f4;
}
.opus-fav-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.opus-fav-label {
    font-size: 12px;
    opacity: 0.7;
}
.opus-fav-name {
    font-weight: 700;
}
.opus-fav-sub {
    font-size: 12px;
    opacity: 0.7;
}

.opus-fav-remove {
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
}
.opus-fav-remove:hover {
    opacity: 1;
}

.opus-fav-footer {
    margin-top: 14px;
}
.opus-fav-close-btn {
    width: 100%;
    border: 0;
    padding: 12px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    cursor: pointer;
}
#opus-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#opus-pagination .page-input {
    width: 56px;
    text-align: center;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}
#opus-pagination {
    width: 100%;
    text-align: center;
}
#opus-pagination button {
    background-color: #e9e8e8;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center;
}
#opus-pagination button svg {
    width: 15px;
    height: 15px;
    fill: #aaa;
}
#opus-pagination button:hover svg {
    fill: #000;
}
.opus-search {
    width: 100%;position: relative;
}

.opus-search input {
    font-size: 16px;
    padding: 8px 15px;
    width: 100%;
    border: 1px solid #C7C7CE;
    border-radius:5px;
    color:#535353;
    font-weight:500;
    padding-left: 42px;
}
.opus-search input::placeholder {
  color: #C7C7CE;
  opacity: 1; /* Firefox */
}
.opus-search:focus{color:#535353}
.opus-search::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 18px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;

  background-color: currentColor;

  /* SVG mask */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/></svg>") no-repeat center;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'><path d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/></svg>") no-repeat center;

  pointer-events: none;
  opacity: 0.6;
}

#search-results {
    padding-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
}
.search-result {
    display: flex;
    gap: 10px;
    text-decoration: none;
    align-content: center;
    align-items: center;
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
    padding: 2px;
}
.search-result:hover {
    background-color: #ededed;
}
.search-result .thumb {
    width: 100px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.search-result .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(2.5);
    transition: transform 0.5s ease;
}
.search-result:hover .thumb img {
    transform: scale(3);
}
.search-result .details {
    display: flex;
    flex-direction: column;
}
#slab-tile-btns a {border:2px solid #818387;background-color:#818387;color:#fff;font-weight:500;padding:0px 3px;width:100%;display: block;border-radius:5px;text-align:center;
     transition: background-color 300ms ease-in-out;}
#slab-tile-btns a:hover, #slab-tile-btns a.is-active{background-color:#fff; color:#818387;}
#filter-title h1 {
    text-transform: capitalize;
}
#value-btns a {border:2px solid #818387;background-color:#818387;color:#fff;font-weight:500;padding:0px 3px;width:100%;display: block;border-radius:5px;text-align:center;
     transition: background-color 300ms ease-in-out;}

#value-btns a:hover{background-color:#fff; color:#818387;}

#filters {
  overflow: hidden;
  transition: grid-template-rows 0.3s ease, opacity 0.2s ease;
}

/* collapsed state */
#filters.is-collapsed {
  display: none;
}
#filter-branch .opus-filter-option:last-child{display:none;}
.range-inputs input{width:100%;}
.range-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.dimension-hint{display:inline;font-size:13px;}

.opus-slab-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
/* Mobile */
@media (max-width: 767px) {
  .opus-slab-header {
  grid-template-columns: 1fr;
  gap: 20px;
}
}

.opus-slab-hero img {
    max-width:80%;
  width: 100%;
  height: auto;
  display: block;
}
.opus-slab-meta {padding:0px 20px;}

.opus-slab-meta .meta-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #535353;
}
.opus-slab-meta .meta-row span{font-weight:700;}
.opus-slab-imgbtn{text-align: left;}

.opus-slab-table {
  width: 100%;
}

.opus-slab-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr 1fr 1fr 0.6fr;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e5e5;
  align-items: center;
}

.opus-slab-row.header {
  background: #eee;
  font-weight: 600;
}

@media (max-width: 767px) {
  .opus-slab-row {
    min-width: max-content;
  }
}

.photo-btn svg{width:30px;height:auto;fill:#535353;}
.photo-btn svg:hover{fill:#000}

/* Wrapper scroll container */
.opus-slab-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* smooth iOS scroll */
}

/* Mobile */
@media (max-width: 767px) {
.opus-slab-row.header{grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr 1fr 1fr 0.6fr;}
}
@media (max-width: 767px) {
.opus-slab-row {
  display: grid;
   grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr 1fr 1fr 0.6fr;
  white-space: nowrap;
  align-items: center;
}
.opus-slab-row > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
}

@media (max-width: 768px) {
  .opus-slab-table::after {
    content: "Swipe →";
    display: block;
    font-size: 12px;
    color: #999;
    padding: 6px 10px;
  }
}

.opus-tile-lots{width:100%;}
.opus-tile-lot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
  .opus-tile-lot-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .opus-tile-lot-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.opus-tile-lot-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 14px;
  background: #fff;
}

.opus-tile-lot-card  {
  font-weight: 600;
  margin-bottom: 4px;
}

/* ============================================================
   SLAB TABLE — MOBILE FIX
   ============================================================ */

@media (max-width: 767px) {

  /* Make entire table scroll horizontally */
  .opus-slab-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Force consistent column widths (KEY FIX) */
  .opus-slab-row,
  .opus-slab-row.header {
    display: grid;
    grid-template-columns: 
      140px  /* Serial */
      110px  /* Length */
      110px  /* Width */
      110px  /* Thickness */
      110px  /* SQ FT */
      140px  /* Location */
      120px  /* Status */
      80px;  /* Photo */

    min-width: 900px; /* forces horizontal scroll */
    gap: 16px; /* spacing between columns */
    align-items: center;
  }

  /* Remove truncation so titles show fully */
  .opus-slab-row > div {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
  }

  /* Optional: make header clearer */
  .opus-slab-row.header {
    background: #f3f3f3;
    font-size: 13px;
  }

}

@media (max-width: 767px) {

  .opus-slab-table {
    overflow-x: auto;
  }

  /* KEY FIX */
  .opus-slab-row,
  .opus-slab-row.header {
    min-width: 900px;
    width: max-content; /* <-- THIS FIXES IT */
  }

}