/**
 * Lemme Product Configurator Styles
 */

.lpc-product-configurator {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-radius: 2rem;
    padding: 1rem;
}

.lpc-configurator-inner {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    padding: 2rem;
}

/* Rating Section */
.lpc-rating-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lpc-stars {
    display: flex;
    gap: 0.125rem;
}

.lpc-stars .star {
    font-size: 1.5rem;
    color: #000;
}

.lpc-stars .star.filled {
    color: #000;
}

.lpc-stars .star.half {
    background: linear-gradient(90deg, #000 50%, #ccc 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lpc-review-count {
    font-weight: 700;
    font-size: 1.125rem;
}

.lpc-divider {
    height: 1px;
    background: #1f2937;
    margin-bottom: 1.5rem;
}

/* Product Header */
.lpc-product-header h1 {
    font-size: 3rem;
    font-family: Georgia, serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.lpc-product-header .lpc-subtitle {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 2rem;
}

/* Pack Selection */
.lpc-pack-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.lpc-pack-option {
    position: relative;
    padding: 1rem;
    border-radius: 1.5rem;
    border: 3px solid transparent;
    background: rgba(216, 180, 254, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.lpc-pack-option:hover {
    border-color: #d1d5db;
}

.lpc-pack-option.selected {
    background: #e9d5ff;
    border-color: #000;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.lpc-pack-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-height: 1.75rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.lpc-pack-label {
    display: block;
    font-weight: 700;
    font-size: 0.875rem;
}

.lpc-savings-badge {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
}

/* Purchase Options */
.lpc-purchase-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.lpc-purchase-option {
    width: 100%;
    padding: 1.25rem;
    border-radius: 1.5rem;
    background: rgba(216, 180, 254, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.lpc-purchase-option:hover {
    background: rgba(216, 180, 254, 0.5);
}

.lpc-purchase-option.selected {
    background: #e9d5ff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lpc-option-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lpc-radio {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 3px solid #000;
    background: white;
    position: relative;
}

.lpc-purchase-option.selected .lpc-radio {
    background: #000;
}

.lpc-purchase-option.selected .lpc-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    background: white;
    border-radius: 50%;
}

.lpc-option-label {
    font-weight: 700;
    font-size: 1.125rem;
}

.lpc-option-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lpc-price {
    font-weight: 700;
    font-size: 1.25rem;
}

.lpc-original-price {
    text-decoration: line-through;
    color: #6b7280;
}

.lpc-discount-price {
    color: #2563eb;
}

/* Add to Cart */
.lpc-add-to-cart-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.lpc-add-to-cart-wrapper > .cart {
    display: none;
}

.lpc-add-to-bag-button {
    width: 100%;
    background: linear-gradient(90deg, #bef264 0%, #a3e635 100%);
    color: #000;
    font-weight: 700;
    font-size: 1.25rem;
    padding: 1.25rem;
    border-radius: 9999px;
    border: 3px solid #000;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.lpc-add-to-bag-button:hover {
    background: linear-gradient(90deg, #a3e635 0%, #84cc16 100%);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Product Details Section */
.lpc-product-details {
    margin-bottom: 2rem;
}

.lpc-detail-section {
    margin-bottom: 1.5rem;
}

.lpc-detail-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
}

.lpc-detail-content h3,
.lpc-detail-content h4 {
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.lpc-detail-content p {
    margin-bottom: 0.75rem;
}

.lpc-detail-content ul,
.lpc-detail-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.lpc-flavor-text {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
    font-style: italic;
}

/* Benefits Section (deprecated) */
.lpc-benefits-section {
    margin-bottom: 2rem;
}

.lpc-description {
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #374151;
}

/* Info Tabs */
.lpc-info-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid #000;
    padding-top: 1.5rem;
}

.lpc-tab-button {
    font-weight: 700;
    font-size: 0.875rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.lpc-tab-button:hover {
    color: #000;
}

.lpc-tab-button.active {
    border-bottom-color: #000;
    color: #000;
}

/* Modal Styles */
.lpc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 9999;
}

.lpc-modal {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lpc-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.lpc-modal-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0;
}

.lpc-modal-close {
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    font-size: 2rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
}

.lpc-modal-close:hover {
    background: #f3f4f6;
}

.lpc-modal-content {
    line-height: 1.6;
}

.lpc-modal-content p {
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .lpc-product-header h1 {
        font-size: 2rem;
    }

    .lpc-pack-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .lpc-pack-option {
        padding: 0.75rem 0.5rem;
    }

    .lpc-pack-icon {
        font-size: 1.25rem;
    }

    .lpc-pack-label {
        font-size: 0.75rem;
    }

    .lpc-savings-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.4rem;
        bottom: -0.4rem;
    }

    .lpc-option-label {
        font-size: 0.875rem;
    }

    .lpc-info-tabs {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .lpc-modal {
        padding: 1.5rem;
    }
}
