/* Ensure UI Layer doesn't block clicks */
#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

#ui-layer * {
    pointer-events: auto;
}

/* Ring Info Box */
.ring-info-box {
    position: absolute;
    width: 250px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 10px;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto; /* Allow clicking */
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
    z-index: 1000; /* Increased z-index */
    cursor: pointer;
}

.ring-info-box.visible {
    opacity: 1;
    transform: translateY(0);
}

.ring-info-header {
    font-weight: bold;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ring-info-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.ring-info-box.expanded .ring-info-content {
    max-height: 200px; /* Adjust based on content */
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.ring-info-box.expanded .toggle-icon {
    transform: rotate(180deg);
}

/* Cart Icon */
.cart-icon-btn {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 1000; /* Increased z-index */
    opacity: 0;
    pointer-events: auto;
}

.cart-icon-btn.visible {
    opacity: 1;
}

.cart-icon-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.cart-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

/* Close Button */
.close-ring-btn {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: white;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);


.close-ring-btn.visible {
    opacity: 1;
}

.close-ring-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.close-ring-btn svg {
    width: 20px;
    height: 20px;
    fill: #333;
}
