/* --- Cleaned & Responsive Cart CSS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  color: #2d3748;
  line-height: 1.6;
  padding-top: 70px;
  overflow-x: hidden;
}

/* Hide all scrollbars */
::-webkit-scrollbar, .cart-items-list::-webkit-scrollbar, .navbar::-webkit-scrollbar, .order-summary-container::-webkit-scrollbar {
  width: 0; height: 0; display: none;
}

/* Navbar */
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
  height: 70px; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  width: 100%; position: fixed; top: 0; left: 0; z-index: 99999;
  padding: 0 2rem; min-width: 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.navbar-logo img { height: 45px; }
.navbar-profile img { height: 40px; width: 40px; border-radius: 50%; border: 3px solid #4CAF50; }
#cart-badge {
  position: absolute; top: -3px; right: -3px; background: #ff5722; color: #fff;
  border-radius: 50%; padding: 2px 4px; font-size: 0.7rem; font-weight: 700;
  min-width: 16px; text-align: center; display: none; border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3); z-index: 10;
}

/* Cart Layout */
.cart-content-wrapper {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 1fr 400px; gap: 2rem; align-items: start;
}
.cart-items-panel, .order-summary-container {
  background: #fff; border-radius: 20px; box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}
.cart-items-container, .summary-content, .summary-actions {
  padding: 2rem;
}
.cart-items-list { display: flex; flex-direction: column; gap: 1.5rem; }
.cart-item-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 1.5rem;
  position: relative; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cart-item-header { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.cart-item-icon { width: 48px; height: 48px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); }
.cart-item-details { flex: 1; min-width: 0; }
.cart-item-title { font-family: 'Poppins', sans-serif; font-size: 1.2rem; font-weight: 700; color: #2d3748; margin-bottom: 0.5rem; line-height: 1.3; }
.cart-item-price { font-size: 1.1rem; font-weight: 700; color: #48bb78; margin-bottom: 0.5rem; }
.cart-item-description { font-size: 0.95rem; color: #718096; margin-bottom: 0.75rem; line-height: 1.4; }
.cart-item-date { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: #667eea; font-weight: 600; margin-bottom: 1rem; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid #f7fafc; }
.quantity-controls { display: flex; align-items: center; gap: 0.75rem; }
.quantity-btn { width: 36px; height: 36px; border: 2px solid #e2e8f0; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; color: #4a5568; cursor: pointer; transition: all 0.2s ease; }
.quantity-btn:hover { border-color: #667eea; color: #667eea; background: #f7fafc; }
.quantity-btn:active { transform: scale(0.95); }
.quantity-display { min-width: 40px; text-align: center; font-size: 1.1rem; font-weight: 700; color: #2d3748; padding: 0.5rem; background: #f7fafc; border-radius: 8px; border: 1px solid #e2e8f0; }
.remove-item-btn { width: 36px; height: 36px; border: 2px solid #fed7d7; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #e53e3e; cursor: pointer; transition: all 0.2s ease; }
.remove-item-btn:hover { background: #fed7d7; border-color: #e53e3e; color: #c53030; }
.remove-item-btn:active { transform: scale(0.95); }

/* Empty Cart State */
.empty-cart-state {
text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 50%;
display: flex;
align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.3);
}

.empty-cart-icon i {
    font-size: 2rem;
color: #fff;
}

.empty-cart-state h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.empty-cart-state p {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.browse-offers-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #b166ea 0%, #764ba2 100%);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.browse-offers-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Order Summary Panel */
.order-summary-panel {
    position: sticky;
    top: 2rem;
}

.summary-header {
    background: linear-gradient(135deg, #b166ea 0%, #764ba2 100%);
    color: #fff;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.summary-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.summary-icon i {
    font-size: 1.5rem;
}

/* Summary Content */
.summary-content {
    padding: 2rem;
}

.summary-items-list {
    margin-bottom: 2rem;
}

.summary-items-list > div {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.summary-items-list > div:hover {
    background: #edf2f7;
    transform: translateX(4px);
}

.summary-items-list .cart-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #b331d7 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
}

.summary-items-list .review-details {
    flex: 1;
}

.summary-items-list .review-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.summary-items-list .review-meta {
    font-size: 0.9rem;
    color: #718096;
}

.summary-items-list .review-qty {
    font-size: 0.9rem;
    color: #8c2be7;
    font-weight: 600;
}

.summary-items-list .review-total {
    font-weight: 700;
    color: #48bb78;
    font-size: 1.1rem;
}

/* Summary Date Section */
.summary-date-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
  border-radius: 12px;
    border-left: 4px solid #667eea;
}

.date-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2d3748;
}

.date-display i {
    color: #667eea;
  font-size: 1.2rem;
}

.date-display span {
    font-weight: 500;
}

.date-display strong {
    color: #6f2a88;
    font-weight: 700;
}

/* Summary Total Section */
.summary-total-section {
    border-top: 2px solid #e2e8f0;
    padding-top: 1.5rem;
}

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

.total-label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d3748;
}

.total-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

/* Summary Actions */
.summary-actions {
    padding: 2rem;
    background: #f7fafc;
}

.proceed-payment-btn {
    width: 100%;
display: flex;
align-items: center;
justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    border: none;
    padding: 1.25rem;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
}

.proceed-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
}

.proceed-payment-btn:active {
    transform: translateY(0);
}

/* Modal Styles */
.date-modal-overlay,
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
align-items: center;
justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.date-modal-overlay.active,
.login-modal-overlay.active {
display: flex;
}

.date-modal-content,
.login-modal-content {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 1.5rem 2rem;
display: flex;
    justify-content: space-between;
align-items: center;
}

.modal-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
border: none;
color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2rem;
}

/* Login Modal Specific */
.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.login-icon i {
    font-size: 2rem;
    color: #fff;
}

.login-description {
    text-align: center;
    color: #718096;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f7fafc;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-otp-btn,
.login-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
font-size: 1rem;
}

.send-otp-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.3);
}

.send-otp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(240, 147, 251, 0.4);
}

.login-submit-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(72, 187, 120, 0.3);
}

.login-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(72, 187, 120, 0.4);
}

/* Page Header */
.cart-page-header {
    background: linear-gradient(135deg, #b166ea 0%, #764ba2 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.cart-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
display: flex;
align-items: center;
    gap: 2rem;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.back-button i {
    font-size: 1.1rem;
}

.cart-header-title h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
font-weight: 800;
color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cart-header-title p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Cart Items Panel */
.cart-items-panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
}

.cart-items-container {
    padding: 2rem;
}

.cart-section-header {
    display: flex;
    justify-content: space-between;
align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f7fafc;
}

.cart-section-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3748;
}

.items-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Professional Cart Items List Design */
.cart-items-list {
display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Individual Cart Item Card */
.cart-item-card {
background: #fff;
    border: 1px solid #e2e8f0;
border-radius: 16px;
    padding: 1.5rem;
position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cart-item-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

/* Cart Item Header */
.cart-item-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item-icon {
width: 48px;
height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

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

.cart-item-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.cart-item-price {
    font-size: 1.1rem;
font-weight: 700;
    color: #48bb78;
    margin-bottom: 0.5rem;
}

.cart-item-description {
    font-size: 0.95rem;
    color: #718096;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.cart-item-date {
display: flex;
align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cart-item-date i {
    font-size: 1rem;
}

/* Cart Item Controls */
.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f7fafc;
}

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

.quantity-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    background: #fff;
border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a5568;
cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f7fafc;
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    min-width: 40px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d3748;
    padding: 0.5rem;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.remove-item-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #fed7d7;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #e53e3e;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-item-btn:hover {
    background: #fed7d7;
    border-color: #e53e3e;
    color: #c53030;
}

.remove-item-btn:active {
    transform: scale(0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .cart-content-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }
  .order-summary-panel { position: static; }
}
@media (max-width: 768px) {
  .cart-header-content { flex-direction: column; gap: 1rem; text-align: center; }
  .cart-header-title h1 { font-size: 2rem; }
  .cart-content-wrapper { padding: 0 1rem; }
  .cart-items-container, .summary-content, .summary-actions { padding: 1.5rem; }
  .modal-body { padding: 1.5rem; }
  .cart-item-card { padding: 1.25rem; }
  .cart-item-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .cart-item-controls { flex-direction: column; align-items: stretch; gap: 1rem; }
  .quantity-controls { justify-content: center; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 1rem; height: 56px; }
  .navbar-logo img { height: 36px; }
  .cart-page-header { padding: 2rem 0; }
  .cart-header-content { padding: 0 1rem; }
  .cart-header-title h1 { font-size: 1.75rem; }
  .cart-items-container, .summary-content, .summary-actions { padding: 1rem; }
  .cart-section-header { flex-direction: column; gap: 1rem; text-align: center; }
  .cart-item-card { padding: 1rem; }
  .cart-item-icon { width: 40px; height: 40px; font-size: 1rem; }
  .cart-item-title { font-size: 1.1rem; }
}
