
#cartModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
}

.modal-box {
    background: #fff;
    width: 500px;
    padding: 20px;
}
.modal-wishlist-block {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-wishlist-main {
    transform: translateY(50px);
    opacity: 0;
    transition: 0.3s;
}

.modal-wishlist-main.open {
    transform: translateY(0);
    opacity: 1;
}

.modal-wishlist-block.open {
    display: flex;
}

#topcart_items {
     min-height: 0; 
}

 .stone-table td,
.stone-table th {
    border: 1px solid #000;
    padding: 8px;
}
.size-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-item.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}
.hidden { display: none !important; }

#selectedTags1 {
    display: flex;
    align-items: center;
    gap: 6px;

    width: 100%; 
    max-width: 260px; 

    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;

    box-sizing: border-box;
}
#selectedTags1 .tag {
    display: inline-flex;
    align-items: center;

    white-space: nowrap;
    flex-shrink: 0; 
}
#multiSelect1 {
    overflow: visible !important;
}

.blink-error {
    border: 2px solid #e11d48; /* red */
    animation: blink 0.8s linear 3;
}

@keyframes blink {
    0%   { border-color: #e11d48; }
    50%  { border-color: transparent; }
    100% { border-color: #e11d48; }
}

/* Optional: nicer scrollbar (Chrome/Edge) */
#selectedTags1::-webkit-scrollbar {
    height: 4px;
}
#selectedTags1::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}


/* Card */
.product-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    overflow: hidden; /* important */
}

/* Create border-safe area */
.product-thumb {
    padding: 6px; 
    box-sizing: border-box;
}

/* Image container */
.product-img {
    overflow: hidden;
    border-radius: 6px;
}

/* Image */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Hover */
.product-item:hover .product-img img {
    transform: scale(1.05);
    opacity: 0.92;
}

.cart-block {
    height: 100vh; /* or modal height */
    display: flex;
    flex-direction: column;
}

.stone-list {
    flex: 1;
    overflow-y: auto;
	max-height: 420px;
   /* padding-bottom: 220px;*/ /* space for footer */
}

/* Small height screens (inspect, small laptops) */
@media (max-height: 700px) {
    .stone-list {
        max-height: 300px;
		overflow-y:scroll;
		padding-bottom: 220px;
    }
}

/* Very small height */
@media (max-height: 500px) {
    .stone-list {
        max-height: 200px;
		overflow-y:scroll;
		padding-bottom: 220px;
    }
}

body.no-scroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.footer-modal {
    position: sticky;  
    bottom: 0;
    z-index: 10;
}

.footer-modal{
    box-shadow: 6px 0 15px rgba(0,0,0,0.15);
}
 .tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
  cursor: pointer;  
}

.tooltiptext {
  visibility: hidden;
  width: 165px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: 150%;
  left: -25%;
  margin-left: -60px;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent black transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
}

.lightbox-content {
    position: relative; /* So caption is positioned relative to the image */
    display: inline-block;
}
 
.multi-select {
    position: relative;
     font-family: Arial, sans-serif;
}

/* Selected box */
.selected-tags {
    min-height: 38px;
    border: 1px solid #ccc;
    border-radius:5px;
    padding: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    cursor: pointer;
}

.placeholder {
    color: #999;
}

/* Dropdown hidden initially */
.dropdown-wrapper {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 999;
}

/* Search */
.search-input {
    width: 100%;
    padding: 6px;
    border: none;
    border-bottom: 1px solid #ccc;
}

/* Options */
.multi-dropdown {
    max-height: 180px;
    overflow-y: auto;
}

.multi-dropdown label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.multi-dropdown label:hover {
    background: #f3f4f6;
}

.tag {
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-tag {
    cursor: pointer;
    font-weight: bold;
}



/* Dropdown hidden initially */
.dropdown-wrapper1 {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff;
    border: 1px solid #ccc;
    z-index: 999;
}

/* Search */
.search-input1 {
    width: 100%;
    padding: 6px;
    border: none;
    border-bottom: 1px solid #ccc;
}

/* Options */
.multi-dropdown1 {
    max-height: 180px;
    overflow-y: auto;
}

.multi-dropdown1 label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    cursor: pointer;
}

.multi-dropdown1 label:hover {
    background: #f3f4f6;
}

.tag1 {
    background: #e5e7eb;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.remove-tag1 {
    cursor: pointer;
    font-weight: bold;
}
/* Suggestion container */
.suggestion-box {
    position: absolute;
    margin-top: 4px;
    background: #ffffff;
    border: 1px solid #d1d5db; /* light gray */
    border-radius: 6px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.08);
    width: 70px;
    display: none;
    z-index: 9999;
    font-size: 13px;
}

/* Single suggestion item */
.suggestion-box div {
    padding: 8px 10px;
    cursor: pointer;
    color: #111827;
    text-align: center;
}

/* Hover effect */
.suggestion-box div:hover {
    background: #f3f4f6;
}

/* Optional smooth animation */
.suggestion-box {
    animation: fadeIn 0.15s ease-in;
}




@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 20;
}

.img-nav.prev { left: 10px; }
.img-nav.next { right: 10px; }

.img-nav:hover {
    background: rgba(0,0,0,0.8);
}
.img-nav.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

body.modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
}
 
#pageWrapper.scroll-lock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}
