/* Carrello E-commerce Styles */

/* Cart Toggle Button */
.cart-toggle {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 999;
    padding: 0.875rem 1.25rem;
    background: rgba(198, 167, 123, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(198, 167, 123, 0.3);
}

.cart-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(198, 167, 123, 0.4);
}

.cart-count {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: #fff;
    color: #C6A77B;
    border-radius: 11px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-panel.open {
    pointer-events: all;
    opacity: 1;
}

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

.cart-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-panel.open .cart-sidebar {
    transform: translateX(0);
}

/* Cart Header */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.75rem;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.cart-close {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Cart Items */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.cart-empty svg {
    margin-bottom: 1rem;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 1rem;
    margin: 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin: 0 0 0.5rem;
}

.cart-item-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #C6A77B;
    margin-bottom: 0.75rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cart-quantity {
    width: 70px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
}

.remove-from-cart {
    padding: 0.5rem;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.2);
    border-radius: 6px;
    color: #ff4757;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-from-cart:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.3);
}

/* Cart Footer */
.cart-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
}

.cart-total-amount {
    font-size: 1.75rem;
    font-weight: 600;
    color: #C6A77B;
}

.cart-checkout {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #C6A77B 0%, #A68B6A 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.cart-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 167, 123, 0.4);
}

.cart-continue {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-continue:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: -100px;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(46, 213, 115, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    color: #fff;
    font-weight: 500;
    box-shadow: 0 6px 25px rgba(46, 213, 115, 0.3);
    transition: all 0.3s ease;
}

.cart-notification.show {
    bottom: 2rem;
}

/* ====================================
   QUICK CHECKOUT MODAL - FluentCart Style
   ==================================== */

.quick-checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quick-checkout-modal.show {
    opacity: 1;
}

.quick-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.quick-checkout-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid rgba(198, 167, 123, 0.2);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.quick-checkout-modal.show .quick-checkout-content {
    transform: scale(1);
}

.quick-checkout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.7);
}

.quick-checkout-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.quick-checkout-content h2 {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #fff;
}

.quick-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0 0 2rem 0;
}

/* Quick Items List */
.quick-items {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.quick-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.quick-item:last-child {
    margin-bottom: 0;
}

.quick-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.quick-item-info {
    flex: 1;
}

.quick-item-name {
    font-weight: 500;
    color: #fff;
    font-size: 0.95rem;
}

.quick-item-qty {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.quick-item-price {
    font-weight: 600;
    color: #C6A77B;
    font-size: 1.1rem;
}

/* Quick Form */
.quick-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
}

.quick-form input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.quick-form input:focus {
    outline: none;
    border-color: #C6A77B;
    background: rgba(255, 255, 255, 0.08);
}

.quick-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Total */
.quick-total {
    background: linear-gradient(135deg, rgba(198, 167, 123, 0.15) 0%, rgba(198, 167, 123, 0.05) 100%);
    border: 1px solid rgba(198, 167, 123, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.quick-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quick-total-row span:first-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.quick-total-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #C6A77B;
}

.quick-shipping {
    color: #4CAF50;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Express Payments */
.express-payments {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.express-divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.express-divider::before,
.express-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.express-divider::before {
    left: 0;
}

.express-divider::after {
    right: 0;
}

.express-divider span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-express {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-paypal {
    background: #0070ba;
    color: #fff;
}

.btn-paypal:hover {
    background: #005ea6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 186, 0.3);
}

.btn-card {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-complete-order {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #C6A77B 0%, #A68B6A 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.btn-complete-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(198, 167, 123, 0.4);
}

.quick-privacy {
    margin-top: 1rem;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
}

.checkbox-inline input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.checkbox-inline a {
    color: #C6A77B;
    text-decoration: none;
}

.checkbox-inline a:hover {
    text-decoration: underline;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal.show {
    opacity: 1;
}

.success-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #4CAF50;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 400px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    animation: successPulse 0.6s ease;
}

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

.success-content h2 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0 0 0.5rem 0;
}

.success-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
}

.btn-primary {
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #C6A77B 0%, #A68B6A 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(198, 167, 123, 0.4);
}

/* Mini Cart Widget - Sticky Bottom (Mobile Optimized) */
.mini-cart-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(42, 42, 42, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-top: 2px solid #C6A77B;
    padding: 1rem;
    display: none;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.mini-cart-widget.visible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mini-cart-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.mini-cart-count {
    background: #C6A77B;
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.mini-cart-details {
    flex: 1;
}

.mini-cart-items-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.mini-cart-total {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
}

.btn-mini-checkout {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #C6A77B 0%, #A68B6A 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-mini-checkout:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(198, 167, 123, 0.4);
}

/* Buy Now Button */
.btn-buy-now {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

/* Add to Cart Button */
.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #C6A77B 0%, #A68B6A 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 167, 123, 0.4);
}

.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .cart-toggle {
        top: auto;
        bottom: 2rem;
        right: 1rem;
    }
    
    .cart-sidebar {
        max-width: 100%;
    }
    
    .cart-notification {
        right: 1rem;
        left: 1rem;
    }
    
    .quick-checkout-content {
        padding: 2rem 1.5rem;
        max-height: 95vh;
    }
    
    .form-row-2 {
        grid-template-columns: 1fr;
    }
    
    .quick-total-amount {
        font-size: 1.5rem;
    }
    
    .btn-mini-checkout {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}
