/* ==========================================
   WITH IMAGES MODAL LAYOUT STYLES
   ========================================== */

/* With Images - Variation Images Layout */
@media (min-width: 769px) {
    .ho-modal.ho-layout-with-images .ho-modal-content {
        display: grid;
        grid-template-columns: 40% 60%;
        grid-template-rows: 1fr auto;
        grid-template-areas: 
            "img body"
            "img actions";
        max-width: 900px;
        height: 650px;
        max-height: 90vh;
    }
    
    .ho-modal.ho-layout-with-images .ho-modal-img {
        grid-area: img;
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 12px 0 0 12px;
    }
    
    .ho-modal.ho-layout-with-images .ho-modal-body {
        grid-area: body;
        overflow-y: auto;
        padding: 30px 25px;
    }
    
    .ho-modal.ho-layout-with-images .ho-modal-actions {
        grid-area: actions;
        border-top: 1px solid #f0f0f0;
        padding: 20px 25px;
    }
}

/* Variation Group Styles for With-Images Layout */
.ho-var-group-images {
    margin-bottom: 25px !important;
}

.ho-var-group-images .ho-var-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ho-var-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

/* Individual Variation Option Card */
.ho-var-option-card {
    position: relative;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ho-var-option-card:hover {
    border-color: #aaa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ho-var-option-card.selected {
    border-color: var(--ho-primary, var(--ho-primary));
    background: #fffbf5;
    box-shadow: 0 4px 16px rgba(255, 159, 28, 0.2);
}

.ho-option-img-wrapper {
    width: 100%;
    height: 90px;
    margin-bottom: 8px;
    overflow: hidden;
    border-radius: 8px;
    background: #f9f9f9;
}

.ho-option-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ho-var-option-card:hover .ho-option-img {
    transform: scale(1.05);
}

.ho-option-details {
    width: 100%;
}

.ho-option-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.ho-option-price {
    font-size: 0.75rem;
    color: #666;
    font-weight: 500;
}

/* Hide the actual input */
.ho-var-option-hidden {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Selection Indicator (Check Mark) */
.ho-option-check-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ho-var-option-card.selected .ho-option-check-indicator {
    opacity: 1;
}

.ho-option-check-indicator svg {
    color: var(--ho-primary, var(--ho-primary));
}

.ho-option-check-indicator .ho-check-fill {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ho-var-option-card.selected .ho-option-check-indicator .ho-check-fill {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ho-modal.ho-layout-with-images .ho-modal-content {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: 90vh;
    }
    
    .ho-modal.ho-layout-with-images .ho-modal-img {
        height: 220px;
        width: 100%;
        border-radius: 12px 12px 0 0;
    }
    
    .ho-modal.ho-layout-with-images .ho-modal-body {
        padding: 20px;
        overflow-y: auto;
    }
    
    .ho-var-options-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .ho-option-img-wrapper {
        height: 75px;
    }
}

/* Simple List Layout - Split (Image Left) */
@media (min-width: 769px) {
    .ho-modal.ho-layout-simple-list .ho-modal-content {
        display: grid;
        grid-template-columns: 45% 55%;
        grid-template-rows: 1fr auto;
        grid-template-areas: 
            "img body"
            "img actions";
        max-width: 850px;
        height: 600px;
        max-height: 85vh;
    }
    
    .ho-modal.ho-layout-simple-list .ho-modal-img {
        grid-area: img;
        height: 100%;
        width: 100%;
        object-fit: cover;
        border-radius: 12px 0 0 12px;
    }
    
    .ho-modal.ho-layout-simple-list .ho-modal-body {
        grid-area: body;
        overflow-y: auto;
        padding: 30px;
    }
    
    .ho-modal.ho-layout-simple-list .ho-modal-actions {
        grid-area: actions;
        border-top: 1px solid #f0f0f0;
        padding: 20px 30px;
    }
}

/* Mobile Fallback for Simple List */
@media (max-width: 768px) {
    .ho-modal.ho-layout-simple-list .ho-modal-content {
        max-width: 100%;
        height: auto;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }
    
    .ho-modal.ho-layout-simple-list .ho-modal-img {
        height: 200px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
    }
    
    .ho-modal.ho-layout-simple-list .ho-modal-body {
        padding: 20px;
        overflow-y: auto;
    }
}

/* Simple List - Variant/Addon Images (Inline, No Borders) */
.ho-modal.ho-layout-simple-list .ho-simple-img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

.ho-modal.ho-layout-simple-list .ho-simple-option-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.ho-modal.ho-layout-simple-list .ho-simple-option-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.ho-modal.ho-layout-simple-list .ho-simple-input-col {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1;
    min-width: 0;
}

.ho-modal.ho-layout-simple-list .ho-simple-meta-col {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-shrink: 0;
}

.ho-modal.ho-layout-simple-list .ho-simple-name {
    font-size: 0.95rem !important;
    color: var(--ho-text-body) !important;
    font-weight: 500;
    line-height: 1.4;
}

.ho-modal.ho-layout-simple-list .ho-simple-price {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: var(--ho-primary) !important;
    white-space: nowrap;
}

/* Mobile adjustments for simple list images */
@media (max-width: 480px) {
    .ho-modal.ho-layout-simple-list .ho-simple-img {
        width: 40px !important;
        height: 40px !important;
    }
    
    .ho-modal.ho-layout-simple-list .ho-simple-meta-col {
        gap: 10px !important;
    }
}

