/* ============================
   Shop / E-Commerce Pages CSS
   ============================ */

/* Cart badge */
.cart-badge { position: absolute; top: 2px; right: -4px; font-size: 0.65rem; }

/* Breadcrumb */
.shop-breadcrumb { background: var(--light-bg); padding: 15px 0; border-bottom: 1px solid #eee; }
.shop-breadcrumb .breadcrumb { margin: 0; font-size: 0.85rem; }

/* Shop Grid */
.shop-sidebar .form-check { margin-bottom: 8px; }
.shop-sidebar .form-check-label { font-size: 0.9rem; }
.price-range-display { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* Product Detail Page */
.product-detail-img {
    width: 100%; height: 400px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 6rem; color: rgba(255,255,255,0.8);
}
.product-detail-info .product-price-lg { font-family: var(--font-display); font-size: 2rem; color: var(--primary-dark); font-weight: 700; }
.product-detail-info .price-old-lg { font-size: 1.1rem; color: #bbb; text-decoration: line-through; }
.qty-input { display: flex; align-items: center; gap: 0; }
.qty-input button { width: 38px; height: 38px; border: 1px solid #ddd; background: #f8f8f8; font-size: 1.1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-input button:first-child { border-radius: 8px 0 0 8px; }
.qty-input button:last-child { border-radius: 0 8px 8px 0; }
.qty-input input { width: 55px; height: 38px; text-align: center; border: 1px solid #ddd; border-left: 0; border-right: 0; font-weight: 600; }
.qty-input input:focus { outline: none; border-color: var(--primary); }

/* Review stars */
.review-stars { color: #ffc107; }
.review-card { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid #f0f0f0; }
.review-card + .review-card { margin-top: 12px; }

/* Cart Page */
.cart-item { background: #fff; border-radius: var(--radius); padding: 15px; border: 1px solid #f0f0f0; display: flex; gap: 15px; align-items: center; }
.cart-item + .cart-item { margin-top: 10px; }
.cart-item-img { width: 80px; height: 80px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,0.8); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-price { color: var(--primary-dark); font-weight: 700; font-family: var(--font-display); }
.cart-item-remove { color: #e74c3c; background: none; border: none; cursor: pointer; font-size: 1.1rem; }
.cart-summary { background: #fff; border-radius: var(--radius-lg); padding: 25px; border: 2px solid var(--gold); position: sticky; top: 90px; }
.cart-summary h5 { font-family: var(--font-display); font-weight: 600; margin-bottom: 20px; }
.cart-summary .summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.9rem; }
.cart-summary .summary-total { border-top: 2px solid #eee; padding-top: 12px; margin-top: 8px; font-size: 1.1rem; font-weight: 700; }

/* Checkout */
.checkout-box { background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid #eee; }
.payment-option { border: 2px solid #eee; border-radius: var(--radius); padding: 15px; cursor: pointer; transition: all 0.3s; }
.payment-option:hover, .payment-option.selected { border-color: var(--gold); background: rgba(14,165,233,0.05); }
.payment-option input[type="radio"] { accent-color: var(--primary); }

/* Orders */
.order-card { background: #fff; border-radius: var(--radius); border: 1px solid #eee; overflow: hidden; margin-bottom: 15px; }
.order-card-header { background: var(--light-bg); padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-card-body { padding: 20px; }
.status-badge { padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #cce5ff; color: #004085; }
.status-shipped { background: #d4edda; color: #155724; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-unpaid { background: #fff3cd; color: #856404; }
.status-paid { background: #d4edda; color: #155724; }
.status-refunded { background: #f8d7da; color: #721c24; }

/* Auth Pages */
.auth-container { min-height: calc(100vh - 200px); display: flex; align-items: center; justify-content: center; padding: 40px 15px; }
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 440px; box-shadow: var(--shadow-md); }
.auth-card h3 { font-family: var(--font-display); font-weight: 700; text-align: center; margin-bottom: 5px; }
.auth-card .subtitle { text-align: center; color: var(--gray); font-size: 0.9rem; margin-bottom: 25px; }

/* Empty State */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-state i { font-size: 4rem; color: #ddd; margin-bottom: 15px; }
.empty-state h5 { color: var(--gray); }
.empty-state p { color: #bbb; font-size: 0.9rem; }

/* Admin/Panel Sidebar */
.panel-wrapper { display: flex; min-height: 100vh; }
.panel-sidebar { width: 260px; background: var(--dark); color: #fff; padding: 20px 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1000; transition: transform 0.3s; }
.panel-sidebar .sidebar-brand { padding: 10px 20px 25px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 15px; }
.panel-sidebar .sidebar-brand i { color: var(--gold); }
.panel-sidebar .sidebar-menu { list-style: none; padding: 0; margin: 0; }
.panel-sidebar .sidebar-menu li a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; transition: all 0.3s; border-left: 3px solid transparent; }
.panel-sidebar .sidebar-menu li a:hover,
.panel-sidebar .sidebar-menu li a.active { background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--gold); }
.panel-sidebar .sidebar-menu li a i { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 15px 0; }
.panel-content { margin-left: 260px; flex: 1; padding: 25px; background: #f4f6f9; min-height: 100vh; }
.panel-topbar { background: #fff; margin: -25px -25px 25px; padding: 15px 25px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow-sm); }
.panel-topbar h4 { font-family: var(--font-display); font-weight: 600; margin: 0; font-size: 1.2rem; }

/* Dashboard Stat Cards */
.stat-card { background: #fff; border-radius: var(--radius); padding: 20px; border-left: 4px solid var(--primary); display: flex; align-items: center; gap: 15px; }
.stat-card.stat-success { border-left-color: #28a745; }
.stat-card.stat-warning { border-left-color: #ffc107; }
.stat-card.stat-danger { border-left-color: #dc3545; }
.stat-card.stat-info { border-left-color: #17a2b8; }
.stat-card .stat-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.stat-card.stat-success .stat-icon { background: rgba(40,167,69,0.1); color: #28a745; }
.stat-card.stat-warning .stat-icon { background: rgba(255,193,7,0.1); color: #ffc107; }
.stat-card.stat-danger .stat-icon { background: rgba(220,53,69,0.1); color: #dc3545; }
.stat-card.stat-info .stat-icon { background: rgba(23,162,184,0.1); color: #17a2b8; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--gray); }

/* Panel Tables */
.panel-table { width: 100%; background: #fff; border-radius: var(--radius); overflow: hidden; }
.panel-table th { background: var(--light-bg); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray); padding: 12px 15px; }
.panel-table td { padding: 12px 15px; font-size: 0.9rem; vertical-align: middle; border-bottom: 1px solid #f0f0f0; }
.panel-table tr:hover td { background: rgba(0,0,0,0.01); }

/* Responsive panel */
@media (max-width: 991.98px) {
    .panel-sidebar { transform: translateX(-100%); }
    .panel-sidebar.show { transform: translateX(0); }
    .panel-content { margin-left: 0; }
    .sidebar-toggle { display: inline-block !important; }
}
.sidebar-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 999; }
.sidebar-overlay.show { display: block; }
