.collection_input_summary {
    list-style: none;
}
.collection_inputs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1rem;
    gap: 1.5rem;
    border: var(--borderMedium);
    cursor: pointer;
    width: max-content;
}
 .weight_selector_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.5rem;
    gap: 1rem;
    border: var(--borderMedium);
    cursor: pointer;
         
}
.collection_input_label {
    font-size: 1.3rem;
    font-weight: bold;
}



.collection_total_showcase {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
    
}
.collection_total_label, .collection_total_number {
    font-weight: bold;
    text-align: center;
    color: var(--textMain);
    margin-top: 10px;
}
.collection_total_label {
    font-size: 1.5rem;
}
.collection_total_number {
    font-size: 2rem;
    
}



.collection-metal-section {
    width: 1000px;
    /*margin-bottom: 50px;*/
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem;
    gap: 1rem;
    border: var(--borderMedium);
    cursor: pointer;
}

@media (max-width: 1000px) {
    .collection-metal-section {
        width: 100%;
    }
}

.collection_label {
    font-size: 2rem;
    width: 100%;
    list-style: none;
}

.collection_label_hr {
    background-color: var(--green);
    border: none;
    height: 3px;
    margin-top: -5px;
}

.fractionals_container {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    perspective: 1200px; /* Increased slightly for a more natural viewing distance */
    padding: 50px;
    justify-content: center;
}

.coin-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    justify-content: flex-end;
}

.coin {
    position: relative;
    transform-style: preserve-3d;
    /* 70 degrees makes it flatter to the "table", -10 deg Y adds a slight side peek */
    transform: rotateX(30deg) rotateY(25deg); 
    transition: transform 0.6s ease-out;
    margin-bottom: 25px;
}

.coin:hover {
    /* Subtle tilt change on hover rather than a large rotation */
    transform: rotateX(15deg) rotateY(10deg);
}

.side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--color);
    filter: brightness(0.9);
    transition: filter  0.6s ease-out;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: inset 0 0 15px rgba(0,0,0,0.2);
    backface-visibility: visible;
}


/* The front face stays at the top */
.side.front {
    transform: translateZ(0px);
}

/* The back face is moved down by the full depth */
.side.back {
    /* translateZ is handled inline in your PHP, keeping it there is fine */
    filter: brightness(0.5);
}
.side:hover {
    filter: brightness(1.2);
    
}

.thickness {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color);
    filter: brightness(0.2); /* Darker edge for better contrast */
    /* Position the thickness ring halfway between front and back */
    transform: translateZ(calc(var(--depth) * -0.5));
    /* The spread-radius of the inset shadow creates the visible "wall" */
    box-shadow: 0 0 0 calc(var(--depth) / 2) var(--color) inset;
    transform-style: preserve-3d;
}

.fractional_label {
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    color: var(--textMain);
    margin-top: 10px;
}