/* Select Multiple Products Plugin Styles */


.smp-container h2 {
    text-align: center;
    color: #335144;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: -0.5px;
}

/* Table Styles */
.smp-categories-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(51, 81, 68, 0.08);
    margin-bottom: 40px;
    border: 1px solid #e8e8e8;
	font-size: 1rem;
}

.smp-categories-table th {
    background: #335144;
    color: white;
    padding: 20px 15px;
    text-align: left;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.smp-categories-table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.smp-categories-table tr:hover {
    background-color: #fafafa;
}

.smp-categories-table tr:last-child td {
    border-bottom: none;
}

/* Button Styles */
.smp-select-category-btn {
    background: #335144;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(51, 81, 68, 0.2);
}

.smp-select-category-btn:hover {
    background: #2a4236;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(51, 81, 68, 0.3);
}

.smp-select-category-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.smp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 81, 68, 0.3);
    backdrop-filter: blur(3px);
}

.smp-modal-content {
    background-color: #fff;
    margin: 8% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 75vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(51, 81, 68, 0.15);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid #e8e8e8;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.smp-modal-header {
    background: #335144;
    color: white;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.smp-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.3px;
}

.smp-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.smp-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.smp-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Products List Styles */
#smp-products-list {
    display: grid;
    gap: 12px;
}

.smp-product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
}

.smp-product-item:hover {
    border-color: #335144;
    background: #fafafa;
    transform: translateX(2px);
}

.smp-product-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
}

.smp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

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

.smp-no-image {
    font-size: 24px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
#smp-modal-title{
	margin: 0;
    color: #fff ;
}
.smp-product-info {
    flex: 1;
    min-width: 0;
}

.smp-product-info h4 {
    margin: 0 0 4px 0;
    color: #335144;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.smp-product-price {
    margin: 0;
    color: #666;
    font-weight: 400;
}

.smp-add-product-btn {
    background: #335144;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(51, 81, 68, 0.2);
}

.smp-add-product-btn:hover {
    background: #2a4236;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(51, 81, 68, 0.3);
}

.smp-add-product-btn:active {
    transform: translateY(0);
}

/* Selected Products Styles */
.smp-selected-products {

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.smp-selected-product {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e8e8e8;
    max-width: 400px;
    animation: productSlideIn 0.3s ease-out;
}

.smp-selected-product-image {
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
}

.smp-selected-product-image img {
    object-fit: cover;
}

.smp-selected-no-image {
    font-size: 12px;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smp-selected-product-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.smp-input[type="number"]{
	width: 50px;
	font-size: 16px !important;
    padding: 0 5px !important;
}
@keyframes productSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.smp-selected-product .smp-product-name {
    font-weight: 400;
    color: #335144;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.smp-selected-product .smp-product-price {
    font-weight: 400;
    color: #666;
    line-height: 1.2;
}

.smp-remove-product-btn {
    background: #999;
    color: white;
    border: none;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.smp-remove-product-btn:hover {
    background: #666;
    transform: scale(1.05);
}

/* Loading State */
.smp-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.smp-loading::after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #335144;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    
    .smp-container h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .smp-categories-table {
        font-size: 13px;
        border-radius: 8px;
    }
    
    .smp-categories-table th,
    .smp-categories-table td {
        padding: 15px 12px;
    }
    
    .smp-modal-content {
        width: 95%;
        margin: 15% auto;
        border-radius: 8px;
    }
    
    .smp-product-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }
    
    .smp-product-image {
        width: 50px;
        height: 50px;
    }
    
    .smp-product-info h4 {
        font-size: 14px;
    }
    
    
    .smp-add-product-btn {
        align-self: center;
    }
    
    .smp-selected-product {
        max-width: 100%;
    }
    
    .smp-cart-summary {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .smp-cart-stats {
        align-items: center;
    }
    
    .smp-add-all-to-cart-btn {
        min-width: 100%;
        padding: 16px 24px;
    }
    
    .smp-cart-section {
        padding: 20px;
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .smp-categories-table {
        display: block;
        overflow-x: auto;
    }
    
    .smp-modal-header {
        padding: 15px;
    }
    
    .smp-modal-header h3 {
        font-size: 18px;
    }
    
    .smp-modal-body {
        padding: 15px;
    }
    
    .smp-product-item {
        gap: 10px;
        padding: 10px;
    }
    
    .smp-product-image {
        width: 45px;
        height: 45px;
    }
    
    .smp-product-info h4 {
        font-size: 13px;
    }
    
    .smp-selected-product {
        max-width: 100%;
        padding: 6px 10px;
    }
}

/* Empty State */
.smp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.smp-empty-state::before {
    content: '📦';
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

/* Success Animation */
.smp-success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Cart Section Styles */
.smp-cart-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(51, 81, 68, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.smp-cart-section:hover {
    border-color: #335144;
    box-shadow: 0 4px 12px rgba(51, 81, 68, 0.12);
}

.smp-cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.smp-cart-info {
    font-size: 15px;
    color: #335144;
    font-weight: 400;
}

.smp-cart-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.smp-cart-count {
    background: #335144;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    min-width: 28px;
    text-align: center;
    font-size: 13px;
}

.smp-cart-total {
    font-size: 13px;
    color: #335144;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.smp-total-price {
    font-weight: 700;
    color: #2c4a3a;
    font-size: 14px;
}

.smp-add-all-to-cart-btn {
    background: #335144;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(51, 81, 68, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
    justify-content: center;
}

.smp-add-all-to-cart-btn:hover:not(:disabled) {
    background: #2a4236;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(51, 81, 68, 0.3);
}

.smp-add-all-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

.smp-add-all-to-cart-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.smp-cart-icon {
    font-size: 16px;
    animation: cartBounce 3s infinite;
}

@keyframes cartBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Cart Success Animation */
.smp-cart-success {
    animation: cartSuccessPulse 0.6s ease-out;
}

@keyframes cartSuccessPulse {
    0% { 
        transform: scale(1);
        background: #335144;
    }
    50% { 
        transform: scale(1.02);
        background: #2a4236;
    }
    100% { 
        transform: scale(1);
        background: #335144;
    }
}

/* Loading Spinner */
.smp-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
} 