/**
 * OGA Lamb Addon Styles
 * Divi-compatible styling
 */

.oga-lamb-addon {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.oga-lamb-addon h3 {
    margin: 0 0 5px 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.oga-lamb-addon > p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

/* Lamb option card */
.lamb-option {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lamb-option:last-child {
    margin-bottom: 0;
}

.lamb-option:hover {
    border-color: #2ea3f2;
    box-shadow: 0 2px 8px rgba(46, 163, 242, 0.15);
}

/* Image area */
.lamb-option-image {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.lamb-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* Info section */
.lamb-option-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lamb-option-info strong {
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
}

.lamb-price {
    color: #2ea3f2;
    font-weight: 600;
    font-size: 15px;
}

/* Quantity controls */
.lamb-option-qty {
    flex-shrink: 0;
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 0;
}

.lamb-qty-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.lamb-qty-minus {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.lamb-qty-plus {
    border-radius: 0 4px 4px 0;
    border-left: none;
}

.lamb-qty-btn:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.lamb-qty-btn:active {
    background: #e8e8e8;
}

.lamb-qty-input {
    width: 50px;
    height: 36px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    -moz-appearance: textfield;
    background: #fff;
}

.lamb-qty-input::-webkit-outer-spin-button,
.lamb-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.lamb-qty-input:focus {
    outline: none;
    border-color: #2ea3f2;
}

/* Lamb addon badge for shop loop */
.oga-lamb-badge {
    display: block;
    background: linear-gradient(135deg, #7b4c3a 0%, #5a3628 100%);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    text-align: center;
    margin-top: 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 480px) {
    .lamb-option {
        flex-wrap: wrap;
    }

    .lamb-option-image {
        width: 60px;
        height: 60px;
        margin-right: 10px;
    }

    .lamb-option-info {
        flex: 1;
        min-width: 0;
    }

    .lamb-option-info strong {
        font-size: 14px;
    }

    .lamb-price {
        font-size: 14px;
    }

    .lamb-option-qty {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        justify-content: flex-start;
    }
}
