/* ==========================================
   PAGE-LEVEL EXTRA STYLES
   (Cart, Checkout, Product, Admin, Success)
   ========================================== */

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #6b7280; padding: 20px 0; }
.breadcrumb a { color: #008a68; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #9ca3af; }

/* Page Hero Bar */
.page-hero { background: linear-gradient(135deg, #0f172a, #1e3a5f); color: white; padding: 40px 0; text-align: center; margin-bottom: 0; }
.page-hero h1 { font-size: 2rem; color: white; margin-bottom: 6px; }
.page-hero p { color: #94a3b8; font-size: 0.95rem; }

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 0 60px; align-items: start; }
.product-detail-img { width: 100%; border-radius: 16px; border: 1px solid #e5e7eb; object-fit: contain; height: auto; max-height: 400px; background: #f8fafc; }
.product-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.product-detail-category { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #008a68; background: #e8f5f1; padding: 4px 12px; border-radius: 50px; }
.product-detail-title { font-size: 1.8rem; font-weight: 800; color: #1a1f36; line-height: 1.25; margin-bottom: 16px; }
.product-detail-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.product-detail-price { font-size: 2rem; font-weight: 800; color: #008a68; }
.product-detail-original { font-size: 1.1rem; color: #9ca3af; text-decoration: line-through; }
.product-detail-discount { background: #ef4444; color: white; padding: 4px 12px; border-radius: 6px; font-weight: 800; font-size: 0.85rem; }
.product-detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pd-add-cart { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #e8f5f1; border: 2px solid #008a68; color: #008a68; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.pd-add-cart:hover { background: #008a68; color: white; }
.pd-buy-now { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; background: #008a68; color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; transition: background 0.2s; }
.pd-buy-now:hover { background: #006b50; }
.watching-badge { display: inline-flex; align-items: center; gap: 6px; background: #fef9c3; color: #854d0e; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px; }
.product-meta { border-top: 1px solid #e5e7eb; padding-top: 20px; }
.product-meta p { font-size: 0.875rem; color: #6b7280; margin-bottom: 8px; }
.product-meta strong { color: #1a1f36; }
.product-features { list-style: none; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.product-features li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: #374151; }
.product-features li::before { content: '✅'; flex-shrink: 0; }
.product-tabs { display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; margin-bottom: 24px; }
.product-tab { padding: 12px 24px; background: none; border: none; border-bottom: 3px solid transparent; font-family: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; color: #6b7280; margin-bottom: -2px; transition: all 0.2s; }
.product-tab.active { color: #008a68; border-bottom-color: #008a68; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p { color: #6b7280; line-height: 1.8; }

/* ==========================================
   CART PAGE
   ========================================== */
.cart-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 40px 0 60px; align-items: start; }
.cart-table { width: 100%; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto auto; gap: 16px; align-items: center; background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.cart-item-img { width: 90px; height: 70px; object-fit: cover; border-radius: 8px; }
.cart-item-title { font-weight: 700; color: #1a1f36; font-size: 0.95rem; margin-bottom: 4px; }
.cart-item-cat { font-size: 0.75rem; color: #008a68; font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 30px; height: 30px; border: 1px solid #e5e7eb; background: white; border-radius: 6px; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: 700; transition: all 0.2s; }
.qty-btn:hover { background: #008a68; color: white; border-color: #008a68; }
.qty-display { font-weight: 700; min-width: 24px; text-align: center; }
.cart-item-price { font-weight: 800; color: #008a68; font-size: 1.05rem; text-align: right; white-space: nowrap; }
.cart-remove { background: none; border: none; color: #ef4444; cursor: pointer; font-size: 1.2rem; padding: 4px; }
.cart-summary { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; position: sticky; top: 120px; }
.cart-summary h3 { font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #e5e7eb; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 0.95rem; color: #6b7280; }
.summary-row.total { font-size: 1.1rem; font-weight: 800; color: #1a1f36; border-top: 1px solid #e5e7eb; padding-top: 14px; margin-top: 8px; }
.checkout-btn { width: 100%; padding: 15px; background: linear-gradient(90deg, #008a68, #10b981, #008a68); background-size: 200% auto; color: white; border: none; border-radius: 10px; font-weight: 700; font-size: 1.05rem; cursor: pointer; font-family: inherit; transition: all 0.3s ease; margin-top: 20px; box-shadow: 0 4px 15px rgba(0,138,104,0.3); }
.checkout-btn:hover { background-position: right center; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,138,104,0.4); }
.empty-cart { text-align: center; padding: 80px 24px; }
.empty-cart-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-cart h2 { margin-bottom: 8px; }
.empty-cart p { color: #6b7280; margin-bottom: 28px; }

/* ==========================================
   CHECKOUT PAGE
   ========================================== */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; padding: 40px 0 60px; align-items: start; }
.checkout-form-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px; }
.checkout-section-title { font-size: 1.1rem; font-weight: 700; color: #1a1f36; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid #f1f5f9; display: flex; align-items: center; gap: 10px; }
.checkout-section-title .step-badge { background: #008a68; color: white; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 0; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-label { font-size: 0.85rem; font-weight: 600; color: #374151; }
.form-input { padding: 11px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.95rem; color: #1a1f36; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: #008a68; box-shadow: 0 0 0 3px rgba(0,138,104,0.1); }
.form-input.error { border-color: #ef4444; }

/* Payment section */
.payment-box { background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 12px; padding: 24px; margin-top: 16px; text-align: center; }
.upi-qr { width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 12px; background: white; padding: 8px; border: 2px solid #008a68; }
.upi-id-box { background: #1e293b; color: #00e5ff; padding: 10px 20px; border-radius: 8px; font-family: monospace; font-size: 1rem; font-weight: 700; display: inline-block; margin-bottom: 16px; cursor: pointer; }
.upi-apps { display: flex; justify-content: center; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.upi-app-btn { padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: white; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.upi-app-btn:hover { border-color: #008a68; background: #e8f5f1; }
.utr-section { margin-top: 20px; text-align: left; }
.utr-label { font-size: 0.9rem; font-weight: 700; color: #1a1f36; margin-bottom: 8px; display: block; }
.utr-input-row { display: flex; gap: 10px; }
.utr-input { flex: 1; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 8px; font-family: inherit; font-size: 0.95rem; outline: none; }
.utr-input:focus { border-color: #008a68; }
.place-order-btn { width: 100%; padding: 16px; background: linear-gradient(90deg, #008a68, #10b981, #008a68); background-size: 200% auto; color: white; border: none; border-radius: 10px; font-weight: 800; font-size: 1.1rem; cursor: pointer; font-family: inherit; transition: all 0.3s ease; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 15px rgba(0,138,104,0.3); }
.place-order-btn:hover:not(:disabled) { background-position: right center; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,138,104,0.4); }
.place-order-btn:disabled { background: #9ca3af; cursor: not-allowed; }
.order-summary-card { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; position: sticky; top: 120px; }
.order-summary-card h3 { font-size: 1.1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.order-item-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.order-item-name { font-size: 0.85rem; color: #374151; font-weight: 600; }
.order-item-price { font-size: 0.9rem; font-weight: 700; color: #1a1f36; white-space: nowrap; }
.security-badges { display: flex; justify-content: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.security-badge { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: #6b7280; font-weight: 600; }

/* ==========================================
   ORDER SUCCESS PAGE
   ========================================== */
.success-container { max-width: 620px; margin: 60px auto; padding: 0 24px 80px; text-align: center; }
.success-icon { width: 90px; height: 90px; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 28px; font-size: 2.5rem; }
.success-title { font-size: 2rem; font-weight: 800; color: #1a1f36; margin-bottom: 12px; }
.success-subtitle { font-size: 1rem; color: #6b7280; margin-bottom: 36px; line-height: 1.7; }
.order-details-box { background: white; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; text-align: left; margin-bottom: 32px; }
.order-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; font-size: 0.9rem; }
.order-detail-row:last-child { border-bottom: none; }
.order-detail-label { color: #6b7280; }
.order-detail-value { font-weight: 700; color: #1a1f36; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.success-btn-primary { padding: 13px 32px; background: #008a68; color: white; border-radius: 8px; font-weight: 700; font-size: 0.95rem; transition: background 0.2s; }
.success-btn-primary:hover { background: #006b50; color: white; }
.success-btn-secondary { padding: 13px 32px; border: 2px solid #008a68; color: #008a68; border-radius: 8px; font-weight: 700; font-size: 0.95rem; transition: all 0.2s; }
.success-btn-secondary:hover { background: #008a68; color: white; }

/* ==========================================
   ADMIN PAGE
   ========================================== */
.admin-login { max-width: 420px; margin: 80px auto; padding: 0 24px; }
.admin-login-card { background: white; border: 1px solid #e5e7eb; border-radius: 20px; padding: 40px; text-align: center; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.admin-login-icon { font-size: 2.5rem; margin-bottom: 16px; }
.admin-login-card h2 { margin-bottom: 8px; }
.admin-login-card p { color: #6b7280; font-size: 0.9rem; margin-bottom: 28px; }
.admin-dashboard { display: none; }
.admin-nav { background: #1e293b; color: white; padding: 0; }
.admin-nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-nav-brand { font-weight: 800; font-size: 1.1rem; padding: 16px 0; display: flex; align-items: center; gap: 10px; }
.admin-nav-links { display: flex; }
.admin-nav-link { padding: 16px 18px; color: #94a3b8; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: color 0.2s; border-bottom: 3px solid transparent; }
.admin-nav-link:hover, .admin-nav-link.active { color: white; border-bottom-color: #008a68; }
.admin-content { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card { background: white; border: 1px solid #e5e7eb; border-radius: 14px; padding: 24px; }
.stat-value { font-size: 2rem; font-weight: 800; color: #1a1f36; }
.stat-label { font-size: 0.85rem; color: #6b7280; margin-top: 4px; }
.stat-change { font-size: 0.8rem; font-weight: 700; margin-top: 8px; }
.stat-change.up { color: #10b981; }
.admin-panel { background: white; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.admin-panel-header { padding: 20px 24px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; }
.admin-panel-header h3 { font-size: 1rem; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 20px; text-align: left; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; background: #f8fafc; }
.admin-table td { padding: 16px 20px; border-top: 1px solid #f1f5f9; font-size: 0.9rem; vertical-align: middle; }
.admin-table tr:hover td { background: #f8fafc; }
.status-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.75rem; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-verified { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.admin-btn { padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }
.admin-btn-green { background: #d1fae5; color: #065f46; }
.admin-btn-red { background: #fee2e2; color: #991b1b; }
.add-product-form { padding: 24px; }
.add-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 900px) {
  .product-detail-grid, .cart-grid, .checkout-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .add-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .admin-stats { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-price, .cart-remove { grid-column: 2; }
}
