/* Enhanced Combo Offer System Styles */

.combo-offers-container {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
}

.combo-offer {
    margin-bottom: 0px;
}

.combo-offer-header {
    margin-bottom: 25px;
    text-align: center;
}

.combo-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.combo-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.combo-price {
    font-size: 32px;
    font-weight: 800;
    color: #059669;
    background: linear-gradient(135deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.original-price {
    font-size: 20px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.savings {
    font-size: 16px;
    color: #dc2626;
    font-weight: 600;
    background: #fef2f2;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #fecaca;
}

/* Selection Area */
.combo-selection-area {
    margin-bottom: 0px;
}

.combo-selection-boxes {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.combo-selection-box {
    width: 140px;
    height: 140px;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
    position: relative;
}

.combo-selection-box:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.combo-selection-box.selected {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
    border-style: solid;
}

.selection-box-content {
    text-align: center;
    padding: 0px;
    width: 100%;
}

.selection-box-content i {
    font-size: 32px;
    color: #9ca3af;
    margin-bottom: 12px;
    display: block;
}

.selection-box-content span {
    font-size: 13px;
    color: #6b7280;
    display: block;
    line-height: 1.4;
    font-weight: 500;
}

.selection-box-content.selected img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 2px solid #e5e7eb;
}

.selection-box-content.selected span {
    font-size: 12px;
    color: #374151;
    font-weight: 600;
}

/* Selection Summary */
.combo-selection-summary {
    margin-bottom: 20px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
}

.selection-summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.selection-summary-item:last-child {
    border-bottom: none;
}

.selection-summary-item i {
    font-size: 16px;
    color: #9ca3af;
    width: 20px;
}

.selection-summary-item span {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.selection-summary-item i.fa-check {
    color: #059669;
}

/* Validation Message */
.combo-validation-message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border-left: 4px solid #059669;
    margin-bottom: 0px;
}

.combo-validation-message i {
    font-size: 18px;
    color: #059669;
}

.combo-validation-message i.fa-info {
    color: #3b82f6;
}

.combo-validation-message span {
    font-size: 14px;
    color: #065f46;
    font-weight: 500;
}

/* Actions */
.combo-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.combo-quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
    color: #3b82f6;
}

.combo-quantity {
    width: 70px;
    height: 40px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    background: #fff;
}

.combo-buttons {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.combo-add-to-cart,
.combo-buy-now {
    padding: 15px 35px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 140px;
}

.combo-add-to-cart {
    background: #6b7280;
    color: #fff;
}

.combo-add-to-cart:hover:not(:disabled) {
    background: #4b5563;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
}

.combo-buy-now {
    background: #000;
    color: #fff;
}

.combo-buy-now:hover:not(:disabled) {
    background: #1f2937;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.combo-add-to-cart:disabled,
.combo-buy-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Enhanced Popup Styles */
.combo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.combo-popup {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    border: 1px solid #e5e7eb;
}

.combo-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    background: #f8fafc;
    border-radius: 16px 16px 0 0;
}

.combo-popup-header h3 {
    margin: 0;
    font-size: 22px;
    color: #1f2937;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.combo-popup-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.combo-popup-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.combo-popup-content {
    padding: 30px;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.color-option {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.color-option:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    transform: translateY(-3px);
}

.color-option.selected {
    border-color: #059669;
    background: #f0fdf4;
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
}

.color-option-image {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.color-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.color-option:hover .color-option-image img {
    transform: scale(1.05);
}

.color-option-name {
    font-size: 16px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 600;
}

.color-option-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.color-option-pricing .original-price {
    font-size: 14px;
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: 500;
}

.color-option-pricing .offer-price {
    font-size: 16px;
    color: #059669;
    font-weight: 700;
}

/* Size Selection */
.size-selection-step {
    padding-top: 20px;
}

.selected-color-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.selected-color-info h4 {
    margin: 0;
    font-size: 18px;
    color: #065f46;
    font-weight: 600;
}

.back-to-colors {
    background: #059669;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-colors:hover {
    background: #047857;
    transform: translateY(-1px);
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.size-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    overflow: hidden;
    min-height: 120px;
}

.size-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.size-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.size-item-content {
    display: block;
    align-items: center;
    padding: 0px;
    gap: 20px;
    height: 100%;
}

.size-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.size-item:hover .size-image img {
    transform: scale(1.05);
}

.size-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.size-circle {
display: none;
}

.size-item:hover .size-circle {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: scale(1.1);
}

.size-item.selected .size-circle {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
    transform: scale(1.1);
}

.size-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.size-price {
    font-size: 18px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 4px;
}

.size-stock {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

/* Variation Grid Styles */
.variation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.variation-item {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.variation-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.variation-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.variation-image {
    width: 100%;
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 10px;
}

.variation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variation-details h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.variation-price {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #10b981;
}

.variation-stock {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}

/* Selected Item Styles */
.selected-item {
    display: block;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #10b981;
}

.selected-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
}

.selected-item span {
    font-size: 15px;
    font-weight: 500;
    color: #1f2937;
}

/* Combo Popup Styles */
.combo-popup {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.combo-popup-header {
    background: #1f2937;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.combo-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.combo-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.combo-popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.combo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

/* Color Selection Styles */
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.color-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.color-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.color-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
}

.color-item:hover .color-circle {
    border-color: #3b82f6;
}

.color-item.selected .color-circle {
    border-color: #10b981;
}

.color-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.color-count {
    font-size: 12px;
    color: #6b7280;
}

/* Size Selection Styles */
.size-selection-step {
    padding: 20px;
}

.selected-color-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #10b981;
}

.selected-color-info h4 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.back-to-colors {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.back-to-colors:hover {
    background: #059669;
}

.size-grid {
    display: block;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.size-options {
    display: flex;
    gap: 7px;
}

.size-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    width: 160px;
}

.size-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.size-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
}

.size-circle {
display: none;
}

.size-item:hover .size-circle {
    border-color: #3b82f6;
    background: #eff6ff;
}

.size-item.selected .size-circle {
    border-color: #10b981;
    background: #d1fae5;
    color: #065f46;
}

.size-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.size-price {
    font-size: 14px;
    font-weight: 700;
    color: #10b981;
}

/* Product Selection Styles */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
    min-height: 200px;
}

.product-item:hover {
    border-color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.product-item.selected {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.combo-popup-content .product-image {
    width: 100%;
    height: 140px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.combo-popup-content .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.combo-popup-content .product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-details h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-variations {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    display: inline-block;
}

/* Selected Product Info Styles */
.selected-product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0fdf4;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 0px;
    border: 1px solid #10b981;
}

.selected-product-info h4 {
    margin: 0;
    font-size: 16px;
    color: #1f2937;
}

.back-to-products {
    background: #10b981;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.back-to-products:hover {
    background: #059669;
}

.selected-item {
    border: 0px solid #10b981;
}


/* Responsive Design */
@media (max-width: 768px) {
    .combo-offers-container {
        margin-top: 20px;
        padding: 10px;
    }
    .combo-popup-overlay {
        padding: 0px;
    }
    .combo-offer {
        margin-bottom: 4px;
    }
    .combo-selection-boxes {
        margin-bottom: 14px;
        justify-content: space-around;
        gap: 10px;
    }
    
    .combo-selection-box {
        width: 120px;
        height: 120px;
    }
    
    .combo-actions {
        flex-direction: column;
        gap: 20px;
    }
    
    .combo-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .combo-add-to-cart,
    .combo-buy-now {
        flex: 1;
        min-width: 120px;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .size-options {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .combo-popup {
        width: 98%;
        margin: 6px;
        max-height: 90vh;
    }
    
    .combo-popup-header {
        padding: 20px;
    }
    
    .combo-popup-content {
        padding: 0px;
    }
    
    .combo-popup-header h3 {
        font-size: 18px;
    }
    .product-grid {
        display: flex;
        grid-template-columns: repeat(auto-fit, minmax(300px, 2fr));
        gap: 8px;
        padding: 8px;
    }
    .product-item {
        padding: 3px;
    }
    .combo-popup-content .product-image {
        width: 100%;
        height: 140px;
        margin-bottom: 6px;
        padding: 5px;
    }
    .product-variations {
        margin: 0;
        font-size: 11px;
        padding: 3px 6px;
    
    }
    .product-details h4 {
        margin: 0 0 0px 0;
        font-size: 14px;
        line-height: 1.2;
    }
    .combo-popup-header {
        padding: 10px;
    }
    .size-selection-step {
        padding: 6px;
    }
    .size-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 10px;
        padding: 0px;
        margin-top: 7px;
    }
    
    .selected-product-info {
        padding: 6px;
    }
    
    .selected-product-info h4 {
        font-size: 12px;
    }
    
    .back-to-products {
        padding: 6px 6px;
        font-size: 12px;
    }
    
    .size-details {
        gap: 0px;
    }
    
    .size-name {
        font-size: 12px;
        margin-bottom: 0px;
    }
    
    .size-price {
        margin-bottom: 0px;
    }
    .size-stock {
        font-size: 12px;
    }
    .combo-validation-message {
        padding: 8px 2px;
        margin-bottom: -2px;
    }

    .selected-item {
        gap: 5px;
        padding: 0px;
    }

    .selected-item img {
        width: 55px;
        height: 55px;
    }
    .combo-selection-box.selected {
        box-shadow: 0 4px 5px rgba(5, 150, 105, 0.15);
    }
}

@media (max-width: 480px) {
    .combo-selection-boxes {
        gap: 5px;
    }
    
    .combo-selection-box {
        width: 100px;
        height: 100px;
    }
    
    .selection-box-content {
        padding: 5px;
    }
    
    .selection-box-content i {
        font-size: 24px;
    }
    
    .selection-box-content span {
        font-size: 12px;
    }
    
    .color-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .size-options {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }
    
    .combo-title {
        font-size: 22px;
    }
    
    .combo-price {
        font-size: 26px;
    }
} 

span.selectplus {
    font-size: 34px;
    margin-bottom: -5px;
    margin-top: -12px;
}