.registry-header {}

.registry-p {
    margin: -12px;
}

#registry-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.registry-item {
    background: white;
    border-radius: 12px;
    overflow: hidden; /* This ensures images don't break the rounded corners */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #A1AC91;
    flex-direction: column;
    justify-content: flex-start;
    display: flex;
}

.registry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Image container */
.registry-item-image {
    width: 100%;
    min-height: 250px; /* Fixed height for consistent layout */
    max-height: 250px;
    align-content: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.registry-item-image img {
    width: 80%;
    height: 80%;
    object-fit: contain; /* This makes images fill the space properly */
    transition: transform 0.3s ease;
}

.registry-item:hover .registry-item-image img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Content container */
.registry-item-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.registry-item-content h3 {
    color: #3D4351;
    margin: 0 0 15px 0;
    font-size: 1.1em;
    padding-bottom: 15px;
}

.registry-item-content p {
    margin: -22px 0;
    color: #666;
    font-size: 1em;
}

.registry-item-content .price {
    border-top: 1px solid #eee;
    padding-top: 10px;
    color: #3D4351;
    font-weight: bold;
    font-size: 1.1em;
}

.registry-item-content .store {
    color: #777;
    font-style: italic;
}

/* Status styling */
.status-available {
    color: white;
    font-weight: bold;
    background: #395B50;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.status-purchased {
    color: #dc3545;
    font-weight: bold;
    background: #f8d7da;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

.status-reserved {
    color: #ffc107;
    font-weight: bold;
    background: #fff3cd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.9em;
}

/* Loading and error states */
.registry-loading {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.registry-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
#registry-container {
    grid-template-columns: 1fr;
    gap: 20px;
}

.registry-item-image {
    height: 180px; /* Slightly smaller on mobile */
}

.registry-item-content {
    padding: 15px;
}

.registry-item-content h3 {
    font-size: 1.2em;
}
}

@media (max-width: 480px) {
.registry-item-image {
    height: 160px; /* Even smaller on very small screens */
}

.registry-item-content {
    padding: 12px;
}
}

/* Optional: Add a subtle overlay on images for better text readability if needed */
.registry-item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.registry-item:hover .registry-item-image::after {
    opacity: 1;
}

.registry-item.purchased {
    opacity: 0.425;
    filter: grayscale(100%) brightness(0.75);
    border: 3px solid #ff061f;
    pointer-events: none;
    position: relative;
}

.spinner {
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinning {
    display: inline-block;
    animation: spin 1s linear infinite;
}

.details-section h5 {
    color: #495057;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.details-section p {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.details-section strong {
    color: #6c757d;
}

#modal-item-price {
    color: black;
    font-weight: 600;
}

#modal-item-store{
    color: black;
    font-weight: 600;
}

#modal-item-status {
    color: black;
    /*(0, 0, 0);*/
    font-weight: 600;
}

/* #modal-item-description {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    color: #6c757d;
} */
.modal-body {
    padding: 24px;
}

.modal-title {
    color: black;
    font-weight: 800;
}

.form-control {
    font-size: 16px;
    @media (max-width: 768px) {
        font-size: 14px;
    }
}

/* Meal */

.meal-option {
    margin: 10px 0;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.meal-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.meal-option label {
    cursor: pointer;
    display: block;
    width: 100%;
}

.meal-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.meal-option input[type="radio"]:checked + .meal-content {
    color: #007bff;
    font-weight: bold;
}

.meal-option input[type="radio"]:checked {
    accent-color: #007bff;
}

.meal-content {
    display: inline;
    line-height: 1.4;
}

.meal-name {
    font-weight: bold;
    color: #333;
}   
        
.meal-desc {
    color: #666;
    margin-left: 5px;
}

#peopleCount[readonly] {
  background-color: #fff !important;  /* white background */
  opacity: 1;                         /* remove faded look */
}

.stepper-btn {
  width: 60px;          /* wider buttons */
  height: 100%;         /* match input height */
  font-size: 22px;      /* larger symbol */
  border: none;
  background: #A1AC91;
  cursor: pointer;
}

.stepper-btn:active {
  background: #A1AC91;
}

/* Divider between buttons */
.stepper-divider {
  width: 2px;
  background: #ffff;     /* black divider */
  margin: 0;            /* flush against buttons */
}


