/* Cart Page Styles */

/* Force font application */
* {
  font-family: "Lexend", "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif !important;
}

/* Professional Order Summary Styles */
.order-summary-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.order-summary-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    text-align: center;
}

.coupon-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.coupon-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.coupon-input-group input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
}

.coupon-input-group button {
    padding: 8px 16px;
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.coupon-input-group button:hover {
    background: #7c3aed;
}

.coupon-actions {
    text-align: center;
}

.btn-link {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 13px;
    cursor: pointer;
    background: none;
    border: none;
}

.btn-link:hover {
    text-decoration: underline;
}

.coupon-message {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.coupon-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.coupon-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.order-details {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.order-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
}

.order-line:last-child {
    border-bottom: none;
}

.gift-wrap-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-wrap-toggle input[type="checkbox"] {
    margin: 0;
}

.gift-wrap-toggle label {
    margin: 0;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 2px solid #e5e7eb;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.checkout-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.terms-checkbox {
    margin-bottom: 12px;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 8px;
}

.terms-checkbox label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

.checkout-buttons {
    display: flex;
    gap: 8px;
}

.checkout-buttons .tf-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-buttons .tf-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.checkout-buttons .btn-outline {
    background: transparent;
    border: 2px solid #6b7280;
    color: #6b7280;
}

.checkout-buttons .btn-outline:hover {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

.checkout-buttons .btn-fill {
    background: linear-gradient(135deg, #1f2937, #374151);
    border: 2px solid #1f2937;
    color: white;
}

.checkout-buttons .btn-fill:hover {
    background: linear-gradient(135deg, #374151, #4b5563);
    border-color: #374151;
}

.applied-coupon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.applied-coupon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.coupon-code-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.remove-coupon-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.remove-coupon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.text-success {
    color: #8b5cf6 !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* Promo Codes Popup - Compact Design */
.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.promo-popup {
    background: white;
    border-radius: 16px;
    padding: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Hide scrollbar but keep functionality */
.promo-popup::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.promo-popup {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.promo-popup.show {
    transform: scale(1);
}

.promo-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}

.promo-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.promo-close-btn {
    background: #f3f4f6;
    border: none;
    font-size: 18px;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.promo-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.promo-list {
    display: grid;
    gap: 8px;
}

.promo-item {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.promo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.promo-item:hover {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #f3f0ff 0%, #e9d5ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.promo-item:hover::before {
    transform: scaleX(1);
}

.promo-code {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.promo-description {
    color: #6b7280;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.promo-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.promo-discount {
    color: #8b5cf6;
    font-weight: 700;
    background: #f3f0ff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
}

.promo-minimum {
    color: #6b7280;
    font-size: 12px;
}

.promo-apply-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.promo-apply-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
}

/* Cart Item Styles */
.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
    padding-left: 15px;
}

.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 5px;
}

.cart-item-variation {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: #8b5cf6;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    transition: all 0.2s;
}

.quantity-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-item-total {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    text-align: right;
    min-width: 80px;
}

.remove-item-btn {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.remove-item-btn:hover {
    background: #dc2626;
}

/* Empty Cart Styles */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 20px 0;
}

.empty-cart-icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.empty-cart-title {
    font-size: 24px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 10px;
}

.empty-cart-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
}

.empty-cart-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.empty-cart-btn:hover {
    background: #7c3aed;
}

/* Confirmation Popup Styles */
.confirmation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.confirmation-popup {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.confirmation-popup.show {
    transform: scale(1);
}

.confirmation-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 15px;
}

.confirmation-message {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 30px;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.confirmation-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.confirmation-btn.cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.confirmation-btn.cancel:hover {
    background: #e5e7eb;
}

.confirmation-btn.confirm {
    background: #ef4444;
    color: white;
}

.confirmation-btn.confirm:hover {
    background: #dc2626;
}
