/* ===================================================================
   ITEM CARDS ENHANCEMENT - Professional Typography & Spacing
   Applied to: Catering, Grazing Tables, Cheese Boards pages
   =================================================================== */

/* Desktop: Enhanced item cards with better typography */
.option-card,
.item-card {
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 20px 16px;
    text-align: center;
    background: white;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-card:hover,
.item-card:hover {
    border-color: #EDD2A1;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(237, 210, 161, 0.35);
}

.option-card.selected,
.item-card.selected {
    border-color: #272727;
    background: linear-gradient(135deg, #fafafa, #ffffff);
    box-shadow: 0 6px 20px rgba(39, 39, 39, 0.25);
}

.option-card.selected::after,
.item-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #272727;
    color: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Enhanced typography for item names */
.option-name,
.item-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    hyphens: auto;
}

/* Better grid layout with optimal spacing */
.options-grid,
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 28px;
}

/* Tablet optimization (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .options-grid,
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 16px;
        padding: 24px;
    }
    
    .option-name,
    .item-name {
        font-size: 16px;
    }
    
    .option-card,
    .item-card {
        padding: 18px 14px;
        min-height: 80px;
    }
}

/* Mobile optimization (below 768px) */
@media (max-width: 767px) {
    .options-grid,
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }
    
    .option-card,
    .item-card {
        padding: 16px 10px;
        min-height: 75px;
        border-radius: 8px;
    }
    
    .option-name,
    .item-name {
        font-size: 14px;
        line-height: 1.3;
        letter-spacing: 0.2px;
        font-weight: 600;
    }
    
    .option-card.selected::after,
    .item-card.selected::after {
        top: 6px;
        right: 6px;
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* Small mobile devices (below 400px) */
@media (max-width: 399px) {
    .options-grid,
    .items-grid {
        gap: 10px;
        padding: 12px;
    }
    
    .option-card,
    .item-card {
        padding: 14px 8px;
        min-height: 70px;
    }
    
    .option-name,
    .item-name {
        font-size: 13px;
        line-height: 1.25;
    }
}

/* Section headers - improved readability */
.section-header {
    background: linear-gradient(135deg, #EDD2A1, #272727);
    color: white;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.section-subtitle {
    background: rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    font-weight: 600;
    color: white;
}

@media (max-width: 767px) {
    .section-header {
        padding: 18px 16px;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .section-subtitle {
        font-size: 12px;
        padding: 5px 12px;
    }
}

/* Improved selection section spacing */
.selection-section {
    background: white;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

@media (max-width: 767px) {
    .selection-section {
        margin-bottom: 18px;
        border-radius: 10px;
    }
}

/* Better visual hierarchy for empty states */
.option-card:empty::before,
.item-card:empty::before {
    content: 'Loading...';
    color: #999;
    font-size: 14px;
    font-style: italic;
}
