/**
 * LaraWebFlow SDK Styles v1.0.1
 * Complete styling for e-commerce components
 */

/* ===========================================
   CORE SDK CLASSES
   =========================================== */

/* Loading States */
.lwf-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
    overflow: hidden;
}

.lwf-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: lwf-shimmer 1.5s infinite;
}

@keyframes lwf-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Success and Error States */
.lwf-success {
    border-color: #28a745 !important;
    background-color: rgba(40, 167, 69, 0.1);
    transition: all 0.3s ease;
}

.lwf-error {
    border-color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
    animation: lwf-shake 0.5s ease-in-out;
}

@keyframes lwf-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Wishlist States */
.in-wishlist {
    color: #dc3545 !important;
    background-color: rgba(220, 53, 69, 0.1);
}

.in-wishlist i {
    color: #dc3545 !important;
}

/* ===========================================
   CART COMPONENT STYLES
   =========================================== */

/* Default Cart Component */
lwf-cart {
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lwf-cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.lwf-cart {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.lwf-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.lwf-cart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.lwf-cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lwf-cart-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Cart Content */
.lwf-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem;
}

/* Cart Items */
.lwf-cart-items {
    max-height: none;
    overflow-y: visible;
    padding: 0;
    margin-bottom: 1.5rem;
}

.lwf-cart-items::-webkit-scrollbar {
    width: 6px;
}

.lwf-cart-items::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.lwf-cart-items::-webkit-scrollbar-thumb {
    background: #c1c8cd;
    border-radius: 3px;
}

.lwf-cart-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.lwf-cart-item:last-child {
    border-bottom: none;
}

.lwf-cart-item-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}

.lwf-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwf-cart-item-details {
    flex: 1;
    min-width: 0;
}

.lwf-cart-item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lwf-cart-item-variant {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.lwf-cart-item-price {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.lwf-cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.lwf-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lwf-quantity-input {
    width: 60px;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.lwf-quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lwf-cart-item-total {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.lwf-cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: underline;
}

.lwf-cart-item-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
    text-decoration: none;
}

/* Cart Empty State */
.lwf-cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.lwf-cart-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.lwf-cart-empty-message {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #334155;
}

.lwf-cart-empty-submessage {
    font-size: 0.875rem;
    color: #64748b;
}

/* Cart Notes */
.lwf-cart-notes {
    margin-bottom: 1.5rem;
}

.lwf-cart-notes-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.lwf-cart-notes-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.lwf-cart-notes-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lwf-cart-notes-input::placeholder {
    color: #9ca3af;
}

/* Cart Coupon */
.lwf-cart-coupon {
    margin-bottom: 1.5rem;
}

.lwf-coupon-input-group {
    display: flex;
    gap: 0.75rem;
}

.lwf-coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.lwf-coupon-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lwf-coupon-apply {
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lwf-coupon-apply:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.lwf-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.lwf-coupon-code {
    font-size: 0.875rem;
    font-weight: 500;
    color: #065f46;
}

.lwf-coupon-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.lwf-coupon-remove:hover {
    text-decoration: none;
}

/* Cart Footer */
.lwf-cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

/* Cart Summary */
.lwf-cart-summary {
    margin-bottom: 1.5rem;
}

.lwf-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.lwf-cart-summary-row:last-child {
    margin-bottom: 0;
}

.lwf-cart-total-row {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.lwf-cart-summary-label {
    color: #64748b;
    font-weight: 500;
}

.lwf-cart-summary-value {
    font-weight: 600;
    color: #1e293b;
}

.lwf-cart-total-value {
    font-size: 1.25rem;
    color: #1e293b;
}

.lwf-cart-discount {
    color: #059669;
}

.lwf-cart-discount .lwf-cart-summary-label,
.lwf-cart-discount .lwf-cart-summary-value {
    color: #059669;
}

/* Cart Actions */
.lwf-cart-actions {
    display: flex;
    gap: 0.75rem;
}

.lwf-cart-checkout {
    flex: 1;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lwf-cart-checkout:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.lwf-cart-checkout:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Quantity Controls */
.lwf-quantity-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lwf-quantity-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.lwf-quantity-minus {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.lwf-quantity-plus {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.lwf-quantity-input {
    width: 60px;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-right: none;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.lwf-quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 640px) {
    lwf-cart {
        padding: 0.5rem;
    }

    .lwf-cart {
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .lwf-cart-footer {
        border-radius: 0;
    }

    .lwf-cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lwf-cart-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .lwf-cart-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}


/* ===========================================
   PRODUCT COMPONENTS
   =========================================== */

.lwf-product-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.lwf-product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #007bff;
}

.lwf-product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

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

.lwf-product-card:hover .lwf-product-image img {
    transform: scale(1.05);
}

.lwf-featured-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #ffc107;
    color: #212529;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lwf-product-details {
    padding: 1rem;
}

.lwf-product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.lwf-product-brand {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.lwf-product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 0.75rem;
}

.lwf-compare-price {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.5rem;
    font-weight: normal;
}

.lwf-product-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
}

.lwf-add-to-cart {
    flex: 1;
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lwf-add-to-cart:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.lwf-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.lwf-add-to-wishlist {
    background: none;
    border: 2px solid #e9ecef;
    color: #6c757d;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.lwf-add-to-wishlist:hover {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.lwf-add-to-wishlist.in-wishlist {
    border-color: #dc3545;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* ===========================================
   SEARCH & FILTERS
   =========================================== */

.lwf-search-container {
    position: relative;
}

.lwf-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.lwf-search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.lwf-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.lwf-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.lwf-autocomplete-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lwf-autocomplete-item:hover {
    background-color: #f8f9fa;
}

.lwf-autocomplete-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 0.75rem;
}

.lwf-autocomplete-details {
    flex: 1;
}

.lwf-autocomplete-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.lwf-autocomplete-price {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Filter Styles */
.lwf-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.lwf-filter-group {
    margin-bottom: 1rem;
}

.lwf-filter-group:last-child {
    margin-bottom: 0;
}

.lwf-filter-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.lwf-filter-option {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lwf-filter-option input[type="checkbox"],
.lwf-filter-option input[type="radio"] {
    margin-right: 0.5rem;
}

.lwf-filter-option label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
}

/* ===========================================
   AUTHENTICATION FORMS
   =========================================== */

.lwf-auth-form {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    margin: 0 auto;
}

.lwf-form-group {
    margin-bottom: 1rem;
}

.lwf-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #212529;
}

.lwf-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.lwf-form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.lwf-form-submit {
    width: 100%;
    background: #007bff;
    color: #ffffff;
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lwf-form-submit:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.lwf-form-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

/* ===========================================
   MESSAGE COMPONENTS
   =========================================== */

.lwf-message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-weight: 500;
    display: none;
}

.lwf-message-success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.lwf-message-error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.lwf-message-info {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.lwf-message-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.lwf-hidden {
    display: none !important;
}

.lwf-visible {
    display: block !important;
}

.lwf-text-center {
    text-align: center;
}

.lwf-text-left {
    text-align: left;
}

.lwf-text-right {
    text-align: right;
}

.lwf-mt-1 {
    margin-top: 0.25rem;
}

.lwf-mt-2 {
    margin-top: 0.5rem;
}

.lwf-mt-3 {
    margin-top: 1rem;
}

.lwf-mt-4 {
    margin-top: 1.5rem;
}

.lwf-mt-5 {
    margin-top: 3rem;
}

.lwf-mb-1 {
    margin-bottom: 0.25rem;
}

.lwf-mb-2 {
    margin-bottom: 0.5rem;
}

.lwf-mb-3 {
    margin-bottom: 1rem;
}

.lwf-mb-4 {
    margin-bottom: 1.5rem;
}

.lwf-mb-5 {
    margin-bottom: 3rem;
}

.lwf-p-1 {
    padding: 0.25rem;
}

.lwf-p-2 {
    padding: 0.5rem;
}

.lwf-p-3 {
    padding: 1rem;
}

.lwf-p-4 {
    padding: 1.5rem;
}

.lwf-p-5 {
    padding: 3rem;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 768px) {
    .lwf-cart {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        border-radius: 0;
        height: 100vh;
        overflow-y: auto;
        z-index: 9999;
    }

    .lwf-cart-actions {
        flex-direction: column;
    }

    .lwf-product-actions {
        flex-direction: column;
    }

    .lwf-autocomplete-results {
        position: fixed;
        top: auto;
        left: 1rem;
        right: 1rem;
        z-index: 9999;
    }

    .lwf-auth-form {
        margin: 1rem;
        max-width: none;
    }
}

/* LaraWebFlow SDK - Dropdown Styles */
/* Add this to your app.css file */

/* Country and Phone Code Dropdown Styles */
.lwf-dropdown-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.2s ease;
}

.lwf-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    width: 100%;
}

.lwf-country-flag {
    display:none;
}
.lwf-option-text{
    display: flex;
        gap: 20px;
        align-items: center;
}
/* When using emoji flags, remove background properties */
.lwf-country-flag:before {
    content: attr(data-flag);
    font-size: 18px;
}

.lwf-option-text,
.lwf-selected-text {
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Webflow dropdown enhancements */
.lwf-dropdown {
    width: 100%;
}

.lwf-dropdown .w-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    width: 100%;
}

.lwf-dropdown .w-dropdown-toggle:hover {
    border-color: #9ca3af;
}

.lwf-dropdown .w-dropdown-toggle:focus,
.lwf-dropdown .w-dropdown-toggle:focus-within {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.lwf-dropdown .w-dropdown-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
    display: none;
    width: 100%;
}

.lwf-dropdown .w-dropdown-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.lwf-dropdown .w-dropdown-link:hover {
    background-color: transparent;
    text-decoration: none;
}

.lwf-dropdown .w-dropdown-link:hover .lwf-option-text {
    color: #1f2937;
}

.lwf-dropdown .w-dropdown-link:focus {
    outline: none;
    background-color: transparent;
}

/* Country-specific dropdown styles */
.lwf-country-option,
.lwf-phone-option {
    border: none;
    background: none;
    margin: 0;
}

.lwf-country-option:hover,
.lwf-phone-option:hover {
    background-color: transparent;
}

.lwf-country-option:hover .lwf-option-text,
.lwf-phone-option:hover .lwf-option-text {
    color: #111827;
}

/* Dropdown arrow styling */
.lwf-dropdown .w-dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #6b7280;
    transition: transform 0.2s ease;
    margin-left: 8px;
    flex-shrink: 0;
}

.lwf-dropdown.w--open .w-dropdown-toggle::after {
    transform: rotate(180deg);
    border-top-color: #374151;
}

/* Custom scrollbar for dropdown list */
.lwf-dropdown .w-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.lwf-dropdown .w-dropdown-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.lwf-dropdown .w-dropdown-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.lwf-dropdown .w-dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Loading state for dropdowns */
.lwf-dropdown-loading .w-dropdown-toggle {
    pointer-events: none;
    opacity: 0.6;
}

.lwf-dropdown-loading .w-dropdown-toggle::after {
    border: 2px solid #e5e7eb;
    border-top: 2px solid #6366f1;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    animation: lwf-spin 1s linear infinite;
}

@keyframes lwf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error state */
.lwf-dropdown-error .lwf-dropdown .w-dropdown-toggle {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* Form field wrapper */
.lwf-form-field {
    margin-bottom: 16px;
}

.lwf-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.lwf-form-label.required::after {
    content: ' *';
    color: #ef4444;
}

/* Phone number input group */
.lwf-phone-input-group {
    display: flex;
    gap: 8px;
}

.lwf-phone-code-dropdown {
    min-width: 120px;
    flex-shrink: 0;
}

.lwf-phone-number-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.lwf-phone-number-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lwf-phone-input-group {
        flex-direction: column;
        gap: 12px;
    }

    .lwf-phone-code-dropdown {
        min-width: auto;
        width: 100%;
    }

    .lwf-dropdown .w-dropdown-list {
        max-height: 200px;
    }

    .lwf-dropdown-option {
        padding: 10px 12px;
        gap: 10px;
    }

    .lwf-option-text,
    .lwf-selected-text {
        font-size: 13px;
    }

    .lwf-country-flag {
        width: 20px;
        height: 15px;
        font-size: 16px;
        line-height: 15px;
    }
}

/* Dark mode support (if needed later) */

/* Accessibility improvements */
.lwf-dropdown .w-dropdown-link:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: -2px;
}

.lwf-dropdown .w-dropdown-toggle:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Animation for dropdown open/close */
.lwf-dropdown .w-dropdown-list {
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.lwf-dropdown.w--open .w-dropdown-list {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

/* Custom styles for specific country flags (fallback) */
.lwf-country-flag[data-country="us"]::before {
    content: "🇺🇸";
}

.lwf-country-flag[data-country="gb"]::before {
    content: "🇬🇧";
}

.lwf-country-flag[data-country="ca"]::before {
    content: "🇨🇦";
}

.lwf-country-flag[data-country="au"]::before {
    content: "🇦🇺";
}

.lwf-country-flag[data-country="de"]::before {
    content: "🇩🇪";
}

.lwf-country-flag[data-country="fr"]::before {
    content: "🇫🇷";
}

.lwf-country-flag[data-country="it"]::before {
    content: "🇮🇹";
}

.lwf-country-flag[data-country="es"]::before {
    content: "🇪🇸";
}

.lwf-country-flag[data-country="mk"]::before {
    content: "🇲🇰";
}

.lwf-country-flag[data-country="nl"]::before {
    content: "🇳🇱";
}

/* Loading skeleton for dropdown options */
.lwf-dropdown-skeleton {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.lwf-dropdown-skeleton .lwf-skeleton-flag {
    width: 24px;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: lwf-skeleton-loading 1.5s infinite;
    border-radius: 3px;
}

.lwf-dropdown-skeleton .lwf-skeleton-text {
    height: 14px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: lwf-skeleton-loading 1.5s infinite;
    border-radius: 4px;
    flex: 1;
}

.lwf-dropdown-search {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 4px;
}

@keyframes lwf-skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Custom validation styles */
.lwf-field-error .lwf-dropdown .w-dropdown-toggle {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.lwf-field-success .lwf-dropdown .w-dropdown-toggle {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.lwf-field-error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}


/* ===========================================
   WISHLIST COMPONENT STYLES
   =========================================== */

/* Default Wishlist Component */
lwf-wishlist {
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lwf-wishlist-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.lwf-wishlist {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.lwf-wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.lwf-wishlist-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.lwf-wishlist-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lwf-wishlist-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

/* Cart Content */
.lwf-wishlist-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem;
}

/* Cart Items */
.lwf-wishlist-items {
    max-height: none;
    overflow-y: visible;
    padding: 0;
    margin-bottom: 1.5rem;
}

.lwf-wishlist-items::-webkit-scrollbar {
    width: 6px;
}

.lwf-wishlist-items::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.lwf-wishlist-items::-webkit-scrollbar-thumb {
    background: #c1c8cd;
    border-radius: 3px;
}

lwf-order {
    display: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.lwf-order-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.lwf-order {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.lwf-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.lwf-order-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.lwf-order-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.lwf-order-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.lwf-order-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 1.5rem;
}

.lwf-order-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.lwf-order-table th,
.lwf-order-table td {
    border: 1px solid #e9ecef;
    padding: 0.5rem;
    text-align: left;
}

.lwf-order-info {
    padding-bottom: 1rem;
}

.lwf-wishlist-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.lwf-wishlist-item:last-child {
    border-bottom: none;
}

.lwf-wishlist-item-image {
    width: 80px;
    height: 80px;
    margin-right: 1rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8fafc;
}

.lwf-wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwf-wishlist-item-details {
    flex: 1;
    min-width: 0;
}

.lwf-wishlist-item-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.lwf-wishlist-item-variant {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.lwf-wishlist-item-price {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.lwf-wishlist-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.lwf-wishlist-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lwf-quantity-input {
    width: 60px;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.lwf-quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lwf-wishlist-item-total {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.lwf-wishlist-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-decoration: underline;
}

.lwf-wishlist-item-remove:hover {
    background-color: rgba(239, 68, 68, 0.1);
    text-decoration: none;
}

/* Cart Empty State */
.lwf-wishlist-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.lwf-wishlist-empty-icon {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.lwf-wishlist-empty-message {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #334155;
}

.lwf-wishlist-empty-submessage {
    font-size: 0.875rem;
    color: #64748b;
}

/* Cart Notes */
.lwf-wishlist-notes {
    margin-bottom: 1.5rem;
}

.lwf-wishlist-notes-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.lwf-wishlist-notes-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.lwf-wishlist-notes-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lwf-wishlist-notes-input::placeholder {
    color: #9ca3af;
}

/* Cart Coupon */
.lwf-wishlist-coupon {
    margin-bottom: 1.5rem;
}

.lwf-coupon-input-group {
    display: flex;
    gap: 0.75rem;
}

.lwf-coupon-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.lwf-coupon-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.lwf-coupon-apply {
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.lwf-coupon-apply:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.lwf-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 8px;
    margin-top: 0.75rem;
}

.lwf-coupon-code {
    font-size: 0.875rem;
    font-weight: 500;
    color: #065f46;
}

.lwf-coupon-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: underline;
}

.lwf-coupon-remove:hover {
    text-decoration: none;
}

/* Cart Footer */
.lwf-wishlist-footer {
    padding: 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

/* Cart Summary */
.lwf-wishlist-summary {
    margin-bottom: 1.5rem;
}

.lwf-wishlist-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.lwf-wishlist-summary-row:last-child {
    margin-bottom: 0;
}

.lwf-wishlist-total-row {
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.lwf-wishlist-summary-label {
    color: #64748b;
    font-weight: 500;
}

.lwf-wishlist-summary-value {
    font-weight: 600;
    color: #1e293b;
}

.lwf-wishlist-total-value {
    font-size: 1.25rem;
    color: #1e293b;
}

.lwf-wishlist-discount {
    color: #059669;
}

.lwf-wishlist-discount .lwf-wishlist-summary-label,
.lwf-wishlist-discount .lwf-wishlist-summary-value {
    color: #059669;
}

/* Cart Actions */
.lwf-wishlist-actions {
    display: flex;
    gap: 0.75rem;
}

.lwf-wishlist-checkout {
    flex: 1;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lwf-wishlist-checkout:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.lwf-wishlist-checkout:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Quantity Controls */
.lwf-quantity-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lwf-quantity-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

.lwf-quantity-minus {
    border-radius: 6px 0 0 6px;
    border-right: none;
}

.lwf-quantity-plus {
    border-radius: 0 6px 6px 0;
    border-left: none;
}

.lwf-quantity-input {
    width: 60px;
    padding: 0.5rem;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    border-left: none;
    border-right: none;
    text-align: center;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.lwf-quantity-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Responsive Design */
@media (max-width: 640px) {
    lwf-wishlist {
        padding: 0.5rem;
    }

    .lwf-wishlist {
        max-width: none;
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    .lwf-wishlist-footer {
        border-radius: 0;
    }

    .lwf-wishlist-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lwf-wishlist-item-image {
        width: 100%;
        height: 200px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

.lwf-wishlist-item-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Profile Dropdown */
[data-profile-dropdown] {
    position: relative;
    display: inline-block;
}

.lwf-profile-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 1px solid #e5e7eb;
}

.lwf-profile-menu {
    position: absolute;
    right: 0;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 0.25rem 0;
    z-index: 9999;
    min-width: 180px;
}

.lwf-profile-menu a {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.lwf-profile-menu a:hover {
    background: #f9fafb;
}
.lwf-dropdown {
    position: relative;
}
/* Adjust SweetAlert2 toast title */
.swal2-toast .swal2-title { line-height: 100%; }

/* LaraWebFlow Preloader Styles */
.lwf-preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.lwf-preloader {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: lwf-spin 1s linear infinite;
}

.lwf-preloader-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

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

/* Button Loading States */
.lwf-button-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    overflow: hidden;
}

.lwf-button-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: lwf-spin 0.6s linear infinite;
}

/* Dynamic Element Preloader */
[data-lwf-loading="true"] {
    position: relative;
    min-height: 100px;
}

[data-lwf-loading="true"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
}

[data-lwf-loading="true"]::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    margin-left: -15px;
    margin-top: -15px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: lwf-spin 0.8s linear infinite;
    z-index: 2;
}

/* Country/Phone Dropdown Styles */
.lwf-country-select,
.lwf-phone-input {
    position: relative;
}

.lwf-country-flag {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.lwf-country-dropdown {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    min-height: 46px;
}

.lwf-country-dropdown[data-lwf-loading="true"] {
    color: transparent;
}

.lwf-country-dropdown[data-lwf-loading="true"] .lwf-country-flag {
    visibility: hidden;
}

/* Phone Input with Flag */
.lwf-phone-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.lwf-phone-wrapper .lwf-country-code {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-radius: 6px 0 0 6px;
}

.lwf-phone-wrapper input[type="tel"] {
    border-radius: 0 6px 6px 0 !important;
    border-left: none !important;
}

/* Container Preloader */
.lwf-container-preloader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    padding: 40px;
}

.lwf-container-preloader .lwf-preloader {
    width: 50px;
    height: 50px;
}

/* Skeleton Loading for Lists */
.lwf-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: lwf-skeleton 1.5s infinite;
    border-radius: 4px;
}

@keyframes lwf-skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.lwf-skeleton-item {
    height: 80px;
    margin-bottom: 12px;
}
/**
 * LaraWebFlow SDK v2.0 - Modular System Styles
 * Core styles for the modular e-commerce SDK
 */

/* ===========================================
   CORE UTILITIES
   =========================================== */

.lwf-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.lwf-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: lwf-spin 1s linear infinite;
}

@keyframes lwf-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lwf-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
}

.lwf-success {
    border-color: #10b981 !important;
    background-color: #f0fdf4;
}

/* ===========================================
   MESSAGES
   =========================================== */

.lwf-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.4;
}

.lwf-message-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.lwf-message-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.lwf-message-warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #d97706;
}

.lwf-message-info {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

/* ===========================================
   SKELETON LOADING
   =========================================== */

.lwf-skeleton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    animation: lwf-pulse 1.5s ease-in-out infinite;
}

.lwf-skeleton-text {
    height: 16px;
    background-color: #e5e7eb;
    border-radius: 4px;
    flex: 1;
}

.lwf-skeleton-text.short {
    flex: 0.6;
}

.lwf-skeleton-flag {
    width: 20px;
    height: 15px;
    background-color: #e5e7eb;
    border-radius: 2px;
    flex-shrink: 0;
}

.lwf-skeleton-image {
    width: 60px;
    height: 60px;
    background-color: #e5e7eb;
    border-radius: 4px;
    flex-shrink: 0;
}

@keyframes lwf-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===========================================
   DROPDOWNS
   =========================================== */

.lwf-dropdown {
    position: relative;
}

.lwf-dropdown-loading .w-dropdown-list {
    display: block !important;
}

.lwf-dropdown-error {
    border-color: #ef4444;
}

.lwf-dropdown-search {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 8px;
    font-size: 14px;
}

.lwf-dropdown-search:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.lwf-dropdown-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lwf-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lwf-flag-image {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.lwf-option-text,
.lwf-selected-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lwf-dropdown-error-message {
    padding: 12px;
    text-align: center;
    color: #ef4444;
    font-size: 14px;
}

/* ===========================================
   MODALS
   =========================================== */

lwf-cart,
lwf-wishlist,
lwf-order {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.lwf-cart-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.lwf-cart {
    position: relative;
    width: 90%;
    max-width: 500px;
    max-height: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lwf-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #fafafa;
}

.lwf-cart-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #111827;
}

.lwf-cart-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 6px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.lwf-cart-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.lwf-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.lwf-cart-footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px 24px;
    background: #fafafa;
}

/* ===========================================
   CART ITEMS
   =========================================== */

.lwf-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.lwf-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.lwf-cart-empty-message {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #374151;
}

.lwf-cart-empty-submessage {
    font-size: 14px;
}

.lwf-cart-item {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f3f4f6;
}

.lwf-cart-item:last-child {
    border-bottom: none;
}

.lwf-cart-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f9fafb;
}

.lwf-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lwf-cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lwf-cart-item-name {
    font-weight: 500;
    color: #111827;
    line-height: 1.3;
}

.lwf-cart-item-variant {
    font-size: 12px;
    color: #6b7280;
}

.lwf-cart-item-price {
    font-weight: 600;
    color: #059669;
}

.lwf-cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.lwf-cart-item-quantity {
    display: flex;
    align-items: center;
    border-radius: 6px;
    overflow: hidden;
}

.lwf-quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lwf-quantity-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.lwf-quantity-input {
    width: 60px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    background: white;
}

.lwf-quantity-input:focus {
    outline: none;
}

.lwf-cart-item-total {
    font-weight: 600;
    color: #111827;
}

.lwf-cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 4px;
    align-self: flex-start;
}

.lwf-cart-item-remove:hover {
    color: #dc2626;
}

/* ===========================================
   CART SUMMARY
   =========================================== */

.lwf-cart-summary {
    margin-bottom: 16px;
}

.lwf-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.lwf-cart-total-row {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 8px;
    font-weight: 600;
    font-size: 16px;
}

.lwf-cart-summary-label {
    color: #6b7280;
}

.lwf-cart-summary-value {
    color: #111827;
    font-weight: 500;
}

/* ===========================================
   CART ACTIONS
   =========================================== */

.lwf-cart-checkout {
    width: 100%;
    padding: 12px 24px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lwf-cart-checkout:hover {
    background: #047857;
}

.lwf-cart-checkout:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

/* ===========================================
   COUPON
   =========================================== */

.lwf-cart-coupon {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.lwf-coupon-input-group {
    display: flex;
    gap: 8px;
}

.lwf-coupon-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
}

.lwf-coupon-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.lwf-coupon-apply {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.lwf-coupon-apply:hover {
    background: #2563eb;
}

.lwf-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    margin-top: 8px;
}

.lwf-coupon-code {
    font-weight: 500;
    color: #059669;
}

.lwf-coupon-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}

/* ===========================================
   ORDER DETAILS
   =========================================== */

.lwf-order-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.lwf-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: lwf-spin 1s linear infinite;
    margin: 0 auto 16px;
}

.lwf-order-header {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.lwf-order-number {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.lwf-order-date {
    color: #6b7280;
    font-size: 14px;
}

.lwf-order-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.lwf-order-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.lwf-order-status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.lwf-order-status-shipped {
    background: #d1fae5;
    color: #065f46;
}

.lwf-order-status-delivered {
    background: #dcfce7;
    color: #166534;
}

.lwf-order-status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.lwf-order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.lwf-order-table th,
.lwf-order-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.lwf-order-table th {
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    font-size: 14px;
}

.lwf-order-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lwf-order-item-image {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.lwf-order-item-name {
    font-weight: 500;
    color: #111827;
}

.lwf-order-item-variant {
    font-size: 12px;
    color: #6b7280;
}

.lwf-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lwf-order-action {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lwf-order-action:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.lwf-track-button {
    border-color: #3b82f6;
    color: #3b82f6;
}

.lwf-track-button:hover {
    background: #eff6ff;
}

.lwf-cancel-button {
    border-color: #ef4444;
    color: #ef4444;
}

.lwf-cancel-button:hover {
    background: #fef2f2;
}

/* ===========================================
   PRODUCT CARDS
   =========================================== */

.lwf-product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
    background: white;
}

.lwf-product-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #d1d5db;
}

.lwf-product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f9fafb;
}

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

.lwf-featured-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #f59e0b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.lwf-product-details {
    padding: 16px;
}

.lwf-product-title {
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.3;
}

.lwf-product-price {
    font-weight: 600;
    color: #059669;
    margin-bottom: 4px;
}

.lwf-compare-price {
    color: #9ca3af;
    text-decoration: line-through;
    font-weight: normal;
    margin-left: 8px;
}

.lwf-product-brand {
    font-size: 12px;
    color: #6b7280;
}

.lwf-product-actions {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid #f3f4f6;
}

.lwf-add-to-cart {
    flex: 1;
    padding: 8px 16px;
    background: #059669;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lwf-add-to-cart:hover:not(:disabled) {
    background: #047857;
}

.lwf-add-to-cart:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.lwf-add-to-wishlist {
    width: 40px;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.lwf-add-to-wishlist:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.lwf-add-to-wishlist.in-wishlist {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 640px) {
    .lwf-cart {
        width: 95%;
        max-height: 95%;
    }

    .lwf-cart-header,
    .lwf-cart-content,
    .lwf-cart-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lwf-cart-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .lwf-cart-item-image {
        width: 60px;
        height: 60px;
    }

    .lwf-order-actions {
        flex-direction: column;
    }

    .lwf-order-action {
        text-align: center;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

.lwf-hidden {
    display: none !important;
}

.lwf-visible {
    display: block !important;
}

.lwf-text-center {
    text-align: center;
}

.lwf-text-left {
    text-align: left;
}

.lwf-text-right {
    text-align: right;
}

.lwf-font-bold {
    font-weight: 600;
}

.lwf-font-semibold {
    font-weight: 500;
}

.lwf-text-sm {
    font-size: 14px;
}

.lwf-text-xs {
    font-size: 12px;
}

.lwf-mb-2 {
    margin-bottom: 8px;
}

.lwf-mb-4 {
    margin-bottom: 16px;
}

.lwf-mt-2 {
    margin-top: 8px;
}

.lwf-mt-4 {
    margin-top: 16px;
}
/* SweetAlert2 Custom Styles - Professional Look */

/* Toast Container */
.swal2-container.swal2-backdrop-show {
    background: transparent !important;
}

/* Toast Base Styles */
.swal2-toast {
    width: 400px !important;
    padding: 16px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 
                0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Toast Typography */
.swal2-toast .swal2-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px 0 !important;
    color: #1f2937 !important;
}

.swal2-toast .swal2-html-container {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* Success Toast */
.swal2-toast.swal2-icon-success {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border-left: 4px solid #10b981 !important;
}

.swal2-toast.swal2-icon-success .swal2-title {
    color: #065f46 !important;
}

.swal2-toast.swal2-icon-success .swal2-html-container {
    color: #047857 !important;
}

.swal2-toast.swal2-icon-success .swal2-icon {
    border-color: #10b981 !important;
    color: #10b981 !important;
}

.swal2-toast.swal2-icon-success .swal2-icon .swal2-success-ring {
    border-color: #10b981 !important;
}

.swal2-toast.swal2-icon-success .swal2-icon .swal2-success-fix {
    background-color: #f0fdf4 !important;
}

/* Error Toast */
.swal2-toast.swal2-icon-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%) !important;
    border-left: 4px solid #ef4444 !important;
}

.swal2-toast.swal2-icon-error .swal2-title {
    color: #991b1b !important;
}

.swal2-toast.swal2-icon-error .swal2-html-container {
    color: #dc2626 !important;
}

.swal2-toast.swal2-icon-error .swal2-icon {
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

.swal2-toast.swal2-icon-error .swal2-x-mark {
    color: #ef4444 !important;
}

/* Warning Toast */
.swal2-toast.swal2-icon-warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-left: 4px solid #f59e0b !important;
}

.swal2-toast.swal2-icon-warning .swal2-title {
    color: #92400e !important;
}

.swal2-toast.swal2-icon-warning .swal2-html-container {
    color: #d97706 !important;
}

.swal2-toast.swal2-icon-warning .swal2-icon {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

/* Info Toast */
.swal2-toast.swal2-icon-info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border-left: 4px solid #3b82f6 !important;
}

.swal2-toast.swal2-icon-info .swal2-title {
    color: #1e40af !important;
}

.swal2-toast.swal2-icon-info .swal2-html-container {
    color: #2563eb !important;
}

.swal2-toast.swal2-icon-info .swal2-icon {
    border-color: #3b82f6 !important;
    color: #3b82f6 !important;
}

/* Icon Improvements */
.swal2-toast .swal2-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin: 0 12px 0 0 !important;
    border-width: 0 !important;
    background: transparent !important;
}

.swal2-toast .swal2-icon::before {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Success Check Mark */
.swal2-toast .swal2-icon.swal2-success::before {
    content: '✓' !important;
    font-weight: bold !important;
}

.swal2-toast .swal2-icon.swal2-success [class^="swal2-success-"] {
    display: none !important;
}

/* Error X Mark */
.swal2-toast .swal2-icon.swal2-error::before {
    content: '✕' !important;
    font-weight: bold !important;
}

.swal2-toast .swal2-icon.swal2-error .swal2-x-mark {
    display: none !important;
}

/* Warning Exclamation */
.swal2-toast .swal2-icon.swal2-warning::before {
    content: '⚠' !important;
    font-weight: bold !important;
}

.swal2-toast .swal2-icon.swal2-warning .swal2-icon-content {
    display: none !important;
}

/* Info Symbol */
.swal2-toast .swal2-icon.swal2-info::before {
    content: 'ℹ' !important;
    font-weight: bold !important;
}

.swal2-toast .swal2-icon.swal2-info .swal2-icon-content {
    display: none !important;
}

/* Progress Bar */
.swal2-toast .swal2-timer-progress-bar {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 0 0 12px 12px !important;
}

.swal2-toast.swal2-icon-success .swal2-timer-progress-bar {
    background: #10b981 !important;
}

.swal2-toast.swal2-icon-error .swal2-timer-progress-bar {
    background: #ef4444 !important;
}

.swal2-toast.swal2-icon-warning .swal2-timer-progress-bar {
    background: #f59e0b !important;
}

.swal2-toast.swal2-icon-info .swal2-timer-progress-bar {
    background: #3b82f6 !important;
}

/* Animation Improvements */
.swal2-toast.swal2-show {
    animation: swal2-toast-show 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.swal2-toast.swal2-hide {
    animation: swal2-toast-hide 0.3s ease-in-out !important;
}

@keyframes swal2-toast-show {
    0% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

@keyframes swal2-toast-hide {
    0% {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(100%) scale(0.8);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .swal2-toast {
        width: calc(100vw - 32px) !important;
        max-width: 360px !important;
        margin: 0 16px !important;
    }

    .swal2-toast .swal2-title {
        font-size: 14px !important;
    }

    .swal2-toast .swal2-html-container {
        font-size: 12px !important;
    }

    .swal2-toast .swal2-icon {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        margin-right: 10px !important;
    }

    .swal2-toast .swal2-icon::before {
        font-size: 16px !important;
    }
}
/* LaraWebFlow Enhanced Cart & Wishlist Modal Styles */

/* ===========================================
   CART MODAL STYLES
   ========================================== */
.lwf-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lwf-cart-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 450px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lwf-cart-modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.lwf-cart-header {
    background: linear-gradient(135deg, #690dac 0%, #8b1ec7 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.lwf-cart-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    gap:12px;
}

.lwf-cart-header .cart-count {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 14px;
    margin-left: 12px;
}

.lwf-cart-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lwf-cart-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lwf-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 50vh;
}

.lwf-cart-items {
    padding: 16px 0;
}

.lwf-cart-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.lwf-cart-item:hover {
    background: #fafafa;
}

.lwf-cart-item:last-child {
    border-bottom: none;
}

.lwf-cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
    background: #f8f9fa;
}

.lwf-cart-item-details {
    flex: 1;
    min-width: 0;
}

.lwf-cart-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lwf-cart-item-price {
    font-weight: 600;
    color: #690dac;
    font-size: 16px;
    margin-bottom: 8px;
}

.lwf-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lwf-quantity-btn {
    background: #f0f0f0;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.lwf-quantity-btn:hover {
    background: #e0e0e0;
}

.lwf-quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lwf-quantity-input {
    width: 40px;
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px;
    font-size: 14px;
}

.lwf-cart-item-actions {
    margin-left: 12px;
}

.lwf-remove-item-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    font-size: 16px;
}

.lwf-remove-item-btn:hover {
    background: rgba(220, 53, 69, 0.1);
}

.lwf-cart-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.lwf-cart-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.lwf-cart-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px 24px;
    background: #fafbfc;
}

.lwf-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
}

.lwf-cart-actions {
    display: flex;
    gap: 12px;
}

.lwf-view-cart-btn,
.lwf-checkout-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 30px;
    height:60px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lwf-view-cart-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e0e0e0;
}

.lwf-view-cart-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.lwf-checkout-btn {
    background: linear-gradient(135deg, #00ff85 0%, #00e676 100%);
    color: white;
}

.lwf-checkout-btn:hover {
    background: linear-gradient(135deg, #00e676 0%, #00d865 100%);
    transform: translateY(-1px);
}

/* ===========================================
   WISHLIST MODAL STYLES
   ========================================== */
.lwf-wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lwf-wishlist-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
}

.lwf-wishlist-modal.visible {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.lwf-wishlist-header {
    background: linear-gradient(135deg, #690dac 0%, #8b1ec7 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

.lwf-wishlist-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lwf-wishlist-header .heart-icon {
    color: #ff6b9d;
}

.lwf-wishlist-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lwf-wishlist-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lwf-wishlist-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    max-height: 50vh;
}

.lwf-wishlist-items {
    padding: 16px 0;
}

.lwf-wishlist-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.lwf-wishlist-item:hover {
    background: #fafafa;
}

.lwf-wishlist-item:last-child {
    border-bottom: none;
}

.lwf-wishlist-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 16px;
    background: #f8f9fa;
}

.lwf-wishlist-item-details {
    flex: 1;
    min-width: 0;
}

.lwf-wishlist-item-name {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: #1a1a1a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lwf-wishlist-item-price {
    font-weight: 600;
    color: #690dac;
    font-size: 16px;
}

.lwf-wishlist-item-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.lwf-add-to-cart-btn,
.lwf-remove-wishlist-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.lwf-add-to-cart-btn {
    background: #00ff85;
    color: white;
}

.lwf-add-to-cart-btn:hover {
    background: #00e676;
    transform: translateY(-1px);
}

.lwf-remove-wishlist-btn {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.lwf-remove-wishlist-btn:hover {
    background: #dc3545;
    color: white;
}

.lwf-wishlist-empty {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}

.lwf-wishlist-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ===========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {

    .lwf-cart-modal,
    .lwf-wishlist-modal {
        width: 95%;
        max-width: none;
        max-height: 90vh;
    }

    .lwf-cart-item,
    .lwf-wishlist-item {
        padding: 12px 16px;
    }

    .lwf-cart-item-image,
    .lwf-wishlist-item-image {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .lwf-cart-actions {
        flex-direction: column;
    }

    .lwf-cart-header,
    .lwf-wishlist-header {
        padding: 16px 20px;
    }

    .lwf-cart-footer {
        padding: 16px 20px;
    }
}

/* ===========================================
   LOADING & ERROR STATES
   ========================================== */
.lwf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: #6b7280;
}

.lwf-error {
    text-align: center;
    padding: 32px;
    color: #dc3545;
}

.lwf-retry-btn {
    background: #690dac;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 12px;
    transition: background 0.2s;
}

.lwf-retry-btn:hover {
    background: #5a0b92;
}

/* ===========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, -40%) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.lwf-cart-modal.animating,
.lwf-wishlist-modal.animating {
    animation: slideUp 0.3s ease-out;
}

/* ===========================================
   WEBKIT SCROLLBAR STYLING
   ========================================== */
.lwf-cart-body::-webkit-scrollbar,
.lwf-wishlist-body::-webkit-scrollbar {
    width: 6px;
}

.lwf-cart-body::-webkit-scrollbar-track,
.lwf-wishlist-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.lwf-cart-body::-webkit-scrollbar-thumb,
.lwf-wishlist-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.lwf-cart-body::-webkit-scrollbar-thumb:hover,
.lwf-wishlist-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ===========================================
   MODAL OPEN STATE FIXES
   ========================================== */

/* Ensure navigation remains visible when modals are open - using fixed positioning instead of overflow hidden to preserve sticky navigation */
body.lwf-modal-open {
    /* overflow: hidden; - Removed as it breaks sticky positioning */
}

/* Ensure navigation has higher z-index than modal overlays but preserve positioning */
body.lwf-modal-open nav,
body.lwf-modal-open .nav,
body.lwf-modal-open .navbar,
body.lwf-modal-open .navigation,
body.lwf-modal-open [class*="nav"],
body.lwf-modal-open header {
    z-index: 10000 !important; /* Above modal overlay (9998) and modal content (9999) to keep navigation visible */
}

/* Specifically preserve sticky positioning for sticky navigation */
body.lwf-modal-open nav[style*="position: sticky"],
body.lwf-modal-open .header[style*="position: sticky"],
body.lwf-modal-open header[style*="position: sticky"],
body.lwf-modal-open [class*="nav"][style*="position: sticky"],
body.lwf-modal-open .navigation[style*="position: sticky"],
body.lwf-modal-open .navbar[style*="position: sticky"] {
    position: sticky !important;
}

/* Common sticky navigation classes and inline styles */
body.lwf-modal-open .header,
body.lwf-modal-open nav,
body.lwf-modal-open header {
    position: sticky !important;
}

/* Ensure modal elements maintain proper z-index hierarchy */
.lwf-cart-overlay,
.lwf-wishlist-overlay {
    z-index: 9998 !important; /* Modal overlays */
}

.lwf-cart-modal,
.lwf-wishlist-modal {
    z-index: 9999 !important; /* Modal content */
}

/* Smooth animation improvements */
.lwf-cart-modal,
.lwf-wishlist-modal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.lwf-cart-overlay,
.lwf-wishlist-overlay {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ===========================================
   WISHLIST HEART ICON ANIMATIONS
   ========================================== */

/* Smooth transitions for favorite button heart icons */
.favorite-button-image {
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* Ensure proper stacking and display for heart icons */
.favorite-button .favorite-button-image.empty {
    display: block;
}

.favorite-button .favorite-button-image.full {
    display: none;
}

/* When in wishlist, show full heart */
.favorite-button.in-wishlist .favorite-button-image.empty {
    display: none !important;
}

.favorite-button.in-wishlist .favorite-button-image.full {
    display: block !important;
}

/* Add hover effect for favorite buttons */
.favorite-button:hover .favorite-button-image {
    transform: scale(1.1);
}

/* Loading state for favorite buttons */
.favorite-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ===========================================
   VARIANT SELECTOR MODAL
   ========================================== */

/* Variant selector modal overlay */
.lwf-variant-selector-overlay {
    z-index: 9998 !important;
}

/* Variant selector modal */
.lwf-variant-selector-modal {
    z-index: 9999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Variant option button states */
.lwf-variant-option {
    transition: all 0.2s ease !important;
}

.lwf-variant-option:hover {
    border-color: #d1d5db !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.lwf-variant-option.selected {
    border-color: #7c3aed !important;
    background-color: #ede9fe !important;
    color: #7c3aed !important;
    font-weight: 600;
}

.lwf-variant-option:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
}

/* Variant selector loading states */
.lwf-variant-selector-modal .loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive variant selector */
@media (max-width: 768px) {
    .lwf-variant-selector-modal {
        width: 95% !important;
        max-width: none !important;
    }
    
    .lwf-variant-selector-header,
    .lwf-variant-selector-content,
    .lwf-variant-selector-footer {
        padding: 16px !important;
    }
    
    .lwf-variant-options-list {
        flex-direction: column !important;
    }
    
    .lwf-variant-option {
        width: 100% !important;
        text-align: left !important;
    }
}