/* ===== COMPONENTS - Shop, Product Detail, Cart, Checkout, Account, Admin ===== */

/* ===== SHOP PAGE ===== */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; }

/* Sidebar Filter */
.filter-sidebar .sidebar-sticky { position: sticky; top: 90px; }
.filter-block { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.filter-block:last-child { border-bottom: none; }
.filter-title {
  font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--primary); margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.filter-title i { font-size: 12px; transition: var(--transition); }
.filter-title.collapsed i { transform: rotate(-90deg); }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-checkbox { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; color: var(--dark-gray); }
.filter-checkbox input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.filter-checkbox:hover { color: var(--accent); }
.filter-count { margin-left: auto; font-size: 11px; color: var(--gray); background: var(--light-gray); padding: 1px 6px; border-radius: 10px; }
.price-slider-wrap { padding: 8px 0; }
.price-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-inputs input { flex: 1; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; text-align: center; }
.price-inputs span { color: var(--gray); font-size: 13px; flex-shrink: 0; }
.size-options { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt {
  width: 42px; height: 36px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--text);
}
.size-opt:hover, .size-opt.selected { background: var(--primary); color: white; border-color: var(--primary); }
.size-opt.out-of-stock { opacity: .35; pointer-events: none; text-decoration: line-through; }
.color-filter-options { display: flex; flex-wrap: wrap; gap: 10px; }
.color-filter-item { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.color-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; transition: var(--transition); }
.color-filter-item:hover .color-swatch, .color-filter-item.selected .color-swatch { border-color: var(--text); transform: scale(1.15); }
.color-filter-item span { font-size: 10px; color: var(--gray); }
.filter-actions { display: flex; gap: 8px; margin-top: 20px; }

/* Shop Toolbar */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding: 14px 18px; background: white;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.shop-results { font-size: 13px; color: var(--gray); }
.shop-results strong { color: var(--text); }
.shop-controls { display: flex; align-items: center; gap: 12px; }
.sort-select {
  padding: 8px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; background: white; cursor: pointer; outline: none;
}
.sort-select:focus { border-color: var(--accent); }
.view-toggle { display: flex; gap: 2px; }
.view-btn { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--gray); border: 1.5px solid var(--border); transition: var(--transition); }
.view-btn.active, .view-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; background: #fff0f3; color: var(--accent);
  border-radius: 20px; font-size: 12px; font-weight: 500;
}
.filter-tag button { color: var(--accent); opacity: .7; font-size: 12px; }

/* List View */
.products-list .product-card { display: flex; flex-direction: row; height: 160px; }
.products-list .product-image-wrap { width: 140px; aspect-ratio: auto; flex-shrink: 0; }
.products-list .product-info { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; justify-content: space-between; }
.products-list .product-actions { position: static; display: flex; }
.products-list .btn-add-cart { max-width: 180px; }

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail { padding: 40px 0 60px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { position: sticky; top: 90px; }
.gallery-main { aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden; background: var(--off-white); margin-bottom: 12px; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.thumb-item { width: 72px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; transition: var(--transition); }
.thumb-item:hover, .thumb-item.active { border-color: var(--accent); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-brand { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.product-detail-name { font-family: var(--font-heading); font-size: 30px; line-height: 1.25; color: var(--primary); margin-bottom: 14px; }
.product-detail-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; font-size: 13px; color: var(--gray); }
.product-detail-price { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.detail-price-current { font-size: 30px; font-weight: 800; color: var(--accent); }
.detail-price-original { font-size: 18px; color: var(--gray); text-decoration: line-through; }
.detail-price-save { background: #fff0f3; color: var(--accent); padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 700; }

.variant-section { margin-bottom: 22px; }
.variant-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.variant-label span { font-weight: 400; color: var(--accent); }
.color-variants { display: flex; gap: 10px; flex-wrap: wrap; }
.color-variant-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent;
  cursor: pointer; transition: var(--transition); position: relative;
}
.color-variant-btn:hover, .color-variant-btn.selected { border-color: var(--text); transform: scale(1.1); }
.color-variant-btn.selected::after { content:'✓'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:13px; color:white; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.size-variants { display: flex; gap: 8px; flex-wrap: wrap; }
.size-variant-btn {
  min-width: 48px; height: 40px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; padding: 0 10px; cursor: pointer; transition: var(--transition); color: var(--text);
}
.size-variant-btn:hover, .size-variant-btn.selected { background: var(--primary); color: white; border-color: var(--primary); }
.size-variant-btn.out-of-stock { opacity: .4; text-decoration: line-through; pointer-events: none; }
.size-guide-link { font-size: 12px; color: var(--accent); text-decoration: underline; margin-top: 6px; display: inline-block; }

.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.qty-selector { display: flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-selector button { width: 42px; height: 42px; font-size: 18px; color: var(--text); transition: var(--transition); }
.qty-selector button:hover { background: var(--light-gray); }
.qty-selector input { width: 56px; height: 42px; text-align: center; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border); font-size: 15px; font-weight: 600; outline: none; }
.stock-info { font-size: 12px; color: var(--success); }
.stock-info.low { color: var(--warning); }
.stock-info.out { color: var(--danger); }

.detail-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.btn-add-cart-detail { padding: 15px; font-size: 15px; font-weight: 700; }
.btn-buy-now { background: var(--primary); color: white; padding: 15px; font-size: 15px; font-weight: 700; border-radius: var(--radius); text-align: center; transition: var(--transition); }
.btn-buy-now:hover { background: var(--primary-light); }
.btn-wishlist-detail { border: 2px solid var(--border); color: var(--text); padding: 12px; border-radius: var(--radius); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--transition); }
.btn-wishlist-detail:hover, .btn-wishlist-detail.active { border-color: var(--accent); color: var(--accent); }

.product-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dark-gray); }
.trust-item i { color: var(--success); font-size: 14px; }

.product-tabs { border-top: 1px solid var(--border); padding-top: 24px; }
.tabs-nav { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tabs-nav button { padding: 12px 24px; font-size: 14px; font-weight: 600; color: var(--gray); border-bottom: 3px solid transparent; margin-bottom: -1px; transition: var(--transition); }
.tabs-nav button.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.product-description { font-size: 14px; line-height: 1.8; color: var(--dark-gray); }
.product-description ul { padding-left: 20px; list-style: disc; margin: 12px 0; }
.product-description li { margin-bottom: 6px; }

/* Reviews */
.reviews-summary { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; padding: 24px; background: var(--off-white); border-radius: var(--radius); }
.rating-big { text-align: center; }
.rating-big .num { font-size: 56px; font-weight: 800; color: var(--primary); line-height: 1; }
.rating-big .stars { font-size: 18px; color: var(--gold); margin: 6px 0; }
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 12px; }
.rating-bar-row .bar-wrap { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rating-bar-row .bar-fill { height: 100%; background: var(--gold); border-radius: 3px; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex-shrink: 0; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.reviewer-date { font-size: 11px; color: var(--gray); }
.review-text { font-size: 13px; line-height: 1.7; color: var(--dark-gray); }

/* ===== CART PAGE ===== */
.cart-page { padding: 40px 0 80px; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.cart-table { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.cart-table-head { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; padding: 14px 20px; background: var(--off-white); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); border-bottom: 1px solid var(--border); }
.cart-item { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; padding: 16px 20px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-product { display: flex; align-items: center; gap: 14px; }
.cart-item-product img { width: 70px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--gray); }
.cart-item-price { font-size: 14px; font-weight: 600; }
.cart-item-total { font-size: 15px; font-weight: 700; color: var(--accent); }
.cart-item-remove { color: var(--gray); font-size: 15px; transition: var(--transition); }
.cart-item-remove:hover { color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; width: 200px; }
.coupon-row input:focus { border-color: var(--accent); outline: none; }

/* Order Summary */
.order-summary { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; position: sticky; top: 90px; }
.order-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-size: 18px; font-weight: 800; color: var(--primary); padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--border); }
.summary-row .discount { color: var(--success); font-weight: 600; }

/* ===== CHECKOUT PAGE ===== */
.checkout-page { padding: 40px 0 80px; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
.checkout-section { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.checkout-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.checkout-section h3 .step-num { width: 26px; height: 26px; background: var(--accent); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; }
.payment-method-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 16px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
}
.payment-method-btn:hover { border-color: var(--accent); }
.payment-method-btn.selected { border-color: var(--accent); background: #fff0f3; }
.payment-method-btn input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; }
.payment-method-btn .pm-icon { width: 40px; height: 28px; object-fit: contain; }
.pm-info { flex: 1; }
.pm-info strong { font-size: 14px; display: block; margin-bottom: 2px; }
.pm-info small { font-size: 12px; color: var(--gray); }

/* QR Payment */
.qr-payment-box { text-align: center; padding: 24px; background: var(--off-white); border-radius: var(--radius); border: 1px dashed var(--border); }
.qr-payment-box img { max-width: 200px; margin: 0 auto 16px; border-radius: 8px; border: 3px solid white; box-shadow: var(--shadow-sm); }
.qr-amount { font-size: 24px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.qr-content-text { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.qr-content-text strong { color: var(--text); }
.qr-timer { font-size: 14px; font-weight: 600; color: var(--warning); }
.qr-status { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px; border-radius: var(--radius-sm); margin-top: 12px; }
.qr-status.checking { background: #fff3cd; color: #856404; }
.qr-status.paid { background: #d4edda; color: #155724; }
.qr-bank-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.qr-bank-item { background: white; padding: 10px; border-radius: var(--radius-sm); text-align: left; }
.qr-bank-item label { font-size: 11px; color: var(--gray); display: block; margin-bottom: 3px; }
.qr-bank-item strong { font-size: 13px; color: var(--text); }
.qr-copy-btn { font-size: 12px; color: var(--accent); margin-left: 6px; cursor: pointer; }

/* Shipping API */
.shipping-options { display: flex; flex-direction: column; gap: 8px; }
.shipping-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.shipping-option:hover, .shipping-option.selected { border-color: var(--accent); background: #fff0f3; }
.shipping-option input[type=radio] { accent-color: var(--accent); }
.shipping-option-info { flex: 1; }
.shipping-option-info strong { display: block; font-size: 13px; margin-bottom: 2px; }
.shipping-option-info small { font-size: 12px; color: var(--gray); }
.shipping-fee { font-weight: 700; color: var(--accent); font-size: 14px; }

/* Order Confirmation */
.order-success { text-align: center; padding: 60px 20px; }
.order-success-icon { width: 80px; height: 80px; background: #d4edda; color: var(--success); border-radius: 50%; font-size: 36px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.order-success h2 { font-family: var(--font-heading); font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.order-details-table { text-align: left; max-width: 500px; margin: 24px auto; }
.order-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.order-detail-row strong { color: var(--text); }

/* ===== ACCOUNT PAGE ===== */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 40px 0 80px; }
.account-nav { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.account-user-info { padding: 24px; background: var(--primary); color: white; }
.account-user-info img { width: 60px; height: 60px; border-radius: 50%; margin-bottom: 12px; border: 3px solid rgba(255,255,255,.3); }
.account-user-info h4 { font-size: 15px; font-weight: 700; }
.account-user-info p { font-size: 12px; opacity: .7; }
.account-nav-links a {
  display: flex; align-items: center; gap: 12px; padding: 14px 20px;
  font-size: 13px; color: var(--dark-gray); border-bottom: 1px solid var(--border); transition: var(--transition);
}
.account-nav-links a:hover, .account-nav-links a.active { color: var(--accent); background: #fff0f3; }
.account-nav-links a i { width: 16px; text-align: center; }

/* Orders Table */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid var(--border); }
.orders-table th { background: var(--off-white); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; color: var(--gray); }
.orders-table tr:hover td { background: var(--off-white); }
.order-status-badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; display: inline-block; }
.status-pending_payment { background: #fff3cd; color: #856404; }
.status-confirmed { background: #d1ecf1; color: #0c5460; }
.status-processing { background: #d4edda; color: #155724; }
.status-shipping { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--off-white); padding: 40px 20px; }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; padding: 40px; }
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo a { font-family: var(--font-heading); font-size: 28px; color: var(--primary); display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-logo .logo-icon { width: 44px; height: 44px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; }
.auth-title { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: var(--gray); text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
.auth-divider span { font-size: 12px; color: var(--gray); }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); font-size: 14px; font-weight: 600; transition: var(--transition); margin-bottom: 10px; }
.btn-social:hover { border-color: var(--accent); background: var(--off-white); }
.btn-social img { width: 20px; height: 20px; }
.auth-footer { text-align: center; font-size: 13px; color: var(--gray); margin-top: 20px; }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary); color: white; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-logo span { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.admin-logo small { display: block; font-size: 11px; opacity: .5; margin-top: 2px; }
.admin-nav { flex: 1; padding: 12px 0; }
.admin-nav-group { margin-bottom: 8px; }
.admin-nav-group-title { padding: 8px 20px; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: .4; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px;
  font-size: 13px; color: rgba(255,255,255,.7); transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { color: white; background: rgba(255,255,255,.1); border-left: 3px solid var(--accent); padding-left: 17px; }
.admin-nav a i { width: 18px; text-align: center; }
.admin-nav a .nav-badge { margin-left: auto; background: var(--accent); color: white; font-size: 10px; padding: 1px 6px; border-radius: 10px; }

.admin-main { background: var(--off-white); }
.admin-topbar { background: white; border-bottom: 1px solid var(--border); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.admin-page-title { font-size: 16px; font-weight: 700; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 28px; }

/* Stats Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.stat-card::before { content:''; position:absolute; top:0; left:0; right:0; height:4px; background: var(--accent); }
.stat-card.blue::before { background: #4361ee; }
.stat-card.green::before { background: var(--success); }
.stat-card.gold::before { background: var(--gold); }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.stat-card.red .stat-icon { background: #fff0f3; color: var(--accent); }
.stat-card.blue .stat-icon { background: #eef2ff; color: #4361ee; }
.stat-card.green .stat-icon { background: #edfaf1; color: var(--success); }
.stat-card.gold .stat-icon { background: #fff9e6; color: var(--gold); }
.stat-value { font-size: 26px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 12px; color: var(--gray); text-transform: uppercase; letter-spacing: .5px; }
.stat-change { font-size: 12px; font-weight: 600; margin-top: 6px; }
.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* Admin Tables */
.admin-table-wrap { background: white; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.admin-table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.admin-table-header h3 { font-size: 15px; font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { padding: 12px 16px; background: var(--off-white); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gray); text-align: left; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:hover td { background: var(--off-white); }
.admin-table-actions { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 13px; transition: var(--transition); }
.btn-icon.edit { background: #eef2ff; color: #4361ee; }
.btn-icon.edit:hover { background: #4361ee; color: white; }
.btn-icon.delete { background: #fff0f3; color: var(--accent); }
.btn-icon.delete:hover { background: var(--accent); color: white; }
.btn-icon.view { background: #edfaf1; color: var(--success); }
.btn-icon.view:hover { background: var(--success); color: white; }
.product-thumb-sm { width: 44px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }

/* Charts */
.chart-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 28px; }
.chart-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; }
.chart-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.chart-filters { display: flex; gap: 4px; margin-bottom: 16px; }
.chart-filter-btn { padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 500; border: 1px solid var(--border); color: var(--gray); transition: var(--transition); }
.chart-filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
canvas { max-width: 100%; }

/* Admin Forms */
.admin-form-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 28px; margin-bottom: 20px; }
.admin-form-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.image-upload-area { border: 2px dashed var(--border); border-radius: var(--radius); padding: 32px; text-align: center; cursor: pointer; transition: var(--transition); }
.image-upload-area:hover { border-color: var(--accent); background: #fff8f9; }
.image-upload-area i { font-size: 32px; color: var(--gray); margin-bottom: 10px; display: block; }
.image-upload-area p { font-size: 13px; color: var(--gray); }
.image-preview-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 16px; }
.image-preview-item { position: relative; aspect-ratio: 3/4; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.image-preview-item .remove-img { position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,.6); color: white; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer; }
.variant-table { width: 100%; border-collapse: collapse; }
.variant-table th, .variant-table td { padding: 10px 12px; border: 1px solid var(--border); font-size: 13px; }
.variant-table th { background: var(--off-white); font-weight: 700; font-size: 12px; text-transform: uppercase; }
.variant-table input[type=number] { width: 80px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; text-align: center; }

/* ===== WISHLIST PAGE ===== */
.wishlist-page { padding: 40px 0 80px; }
.wishlist-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== CONTACT PAGE ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 60px 0; align-items: start; }
.contact-info-block h2 { font-family: var(--font-heading); font-size: 32px; color: var(--primary); margin-bottom: 16px; }
.contact-info-block p { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 28px; }
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 28px; }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-info-icon { width: 44px; height: 44px; background: #fff0f3; color: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-info-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.contact-info-item p { font-size: 13px; color: var(--gray); }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: 320px; border: 1px solid var(--border); margin-top: 24px; }
.map-embed iframe { width: 100%; height: 100%; border: none; }
.contact-form-card { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px; }
.contact-form-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 22px; }

/* ===== POLICY PAGE ===== */
.policy-page { padding: 60px 0 80px; }
.policy-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.policy-nav { position: sticky; top: 90px; }
.policy-nav-item { display: block; padding: 10px 16px; font-size: 13px; border-radius: var(--radius-sm); color: var(--dark-gray); margin-bottom: 4px; transition: var(--transition); }
.policy-nav-item:hover, .policy-nav-item.active { background: var(--accent); color: white; }
.policy-content h1 { font-family: var(--font-heading); font-size: 32px; color: var(--primary); margin-bottom: 6px; }
.policy-content .last-updated { font-size: 12px; color: var(--gray); margin-bottom: 28px; }
.policy-content h2 { font-size: 18px; font-weight: 700; color: var(--primary); margin: 28px 0 12px; }
.policy-content p, .policy-content li { font-size: 14px; line-height: 1.8; color: var(--dark-gray); margin-bottom: 10px; }
.policy-content ul { padding-left: 20px; list-style: disc; }

/* ===== ABOUT PAGE ===== */
.about-hero { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 80px 0; text-align: center; }
.about-hero h1 { font-family: var(--font-heading); font-size: 48px; margin-bottom: 16px; }
.about-hero p { font-size: 16px; opacity: .8; max-width: 600px; margin: 0 auto; }
.about-story { padding: 80px 0; }
.about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-story-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.about-story-image img { width: 100%; height: 100%; object-fit: cover; }
.about-story-content .eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.about-story-content h2 { font-family: var(--font-heading); font-size: 36px; color: var(--primary); margin-bottom: 18px; line-height: 1.25; }
.about-story-content p { font-size: 15px; color: var(--gray); line-height: 1.8; margin-bottom: 14px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 60px 0; background: var(--off-white); }
.value-card { background: white; border-radius: var(--radius); padding: 28px; text-align: center; border: 1px solid var(--border); }
.value-icon { width: 60px; height: 60px; background: #fff0f3; color: var(--accent); border-radius: 50%; font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.value-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.value-card p { font-size: 13px; color: var(--gray); line-height: 1.7; }

/* ===== ACCOUNT PAGE ===== */
.account-page { padding: 40px 0 80px; }
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.account-sidebar { position: sticky; top: 80px; background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow-sm); }
.account-avatar { padding: 28px 20px 20px; text-align: center; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; }
.avatar-circle { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; margin: 0 auto 12px; border: 3px solid rgba(255,255,255,.3); }
.account-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.account-email { font-size: 12px; opacity: .75; }
.account-nav { padding: 12px 0; }
.account-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 13px; font-weight: 500; color: var(--dark-gray); transition: var(--transition); position: relative; }
.account-nav a:hover, .account-nav a.active { background: var(--accent); color: white; }
.account-nav a i { width: 16px; text-align: center; }
.nav-badge-small { background: var(--accent); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: auto; }
.account-main { min-width: 0; }
.account-section { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; }
.account-section h2 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.profile-form { max-width: 520px; }
.orders-table { display: flex; flex-direction: column; gap: 12px; }
.order-row { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.order-row-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--off-white); border-bottom: 1px solid var(--border); }
.order-code { font-weight: 700; font-size: 14px; color: var(--accent); font-family: monospace; }
.order-row-body { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }
.order-row-total { font-weight: 700; color: var(--accent); font-size: 15px; }
.order-row-actions { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border); background: #fafafa; }

/* ===== AUTH PAGE ===== */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); padding: 40px 16px; }
.auth-card { background: white; border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.1); padding: 44px 40px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--primary); }
.auth-logo a { display: flex; align-items: center; justify-content: center; gap: 6px; color: inherit; }
.logo-icon { width: 36px; height: 36px; background: var(--accent); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.auth-title { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: var(--gray); text-align: center; margin-bottom: 24px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: white; font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--transition); margin-bottom: 16px; }
.btn-social:hover { border-color: var(--accent); background: var(--off-white); }
.btn-social img { width: 20px; height: 20px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--gray); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-footer { text-align: center; font-size: 13px; color: var(--gray); margin-top: 16px; }
.auth-footer a { color: var(--accent); font-weight: 600; }

/* ===== ORDER SUCCESS ===== */
.order-success { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 48px 40px; text-align: center; box-shadow: var(--shadow-md); }
.order-success-icon { width: 80px; height: 80px; background: var(--success); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; color: white; margin: 0 auto 20px; }
.order-success h2 { font-family: var(--font-heading); font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.order-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.order-detail-row:last-child { border-bottom: none; }
.order-status-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-pending_payment, .status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-processing { background: #d4edda; color: #155724; }
.status-shipping { background: #d1ecf1; color: #0c5460; }
.status-completed, .status-paid { background: #d4edda; color: #155724; }
.status-cancelled, .status-failed { background: #f8d7da; color: #721c24; }
.status-refunded { background: #e2e3e5; color: #383d41; }

/* ===== QR PAYMENT BOX ===== */
.qr-payment-box { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; text-align: center; box-shadow: var(--shadow-md); }
.qr-payment-box img { display: block; border: 4px solid var(--border); border-radius: 8px; }
.qr-amount { font-size: 28px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.qr-content-text { font-size: 14px; color: var(--dark-gray); margin-bottom: 20px; }
.qr-bank-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--off-white); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 20px; text-align: left; font-size: 13px; }
.qr-bank-item label { display: block; font-size: 11px; color: var(--gray); margin-bottom: 3px; }
.qr-status { padding: 12px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.qr-status.checking { background: #fff3cd; color: #856404; }
.qr-status.paid { background: #d4edda; color: #155724; }

/* ===== ADMIN IMPROVEMENTS ===== */
.admin-form-card { background: white; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 20px; }
.admin-form-card h3 { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.variant-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.variant-table th { background: var(--off-white); padding: 10px 12px; text-align: left; font-weight: 600; font-size: 12px; }
.variant-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); }
.product-thumb-sm { width: 44px; height: 56px; object-fit: cover; border-radius: 4px; }
.chart-filter-btn { padding: 4px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 4px; background: white; cursor: pointer; }
.chart-filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }
.nav-badge { background: var(--accent); color: white; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: auto; }

/* ===== CHECKOUT IMPROVEMENTS ===== */
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: var(--accent); color: white; border-radius: 50%; font-size: 13px; font-weight: 700; margin-right: 8px; }
.shipping-option { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 8px; transition: var(--transition); }
.shipping-option.selected, .shipping-option:hover { border-color: var(--accent); background: var(--accent)05; }
.shipping-option-info { flex: 1; }
.shipping-option-info strong { display: block; font-size: 13px; }
.shipping-option-info small { font-size: 11px; color: var(--gray); }
.shipping-fee { font-weight: 700; color: var(--accent); font-size: 13px; }
.payment-method-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; margin-bottom: 8px; transition: var(--transition); width: 100%; }
.payment-method-btn.selected, .payment-method-btn:hover { border-color: var(--accent); background: var(--accent)05; }
.pm-info strong { display: block; font-size: 13px; }
.pm-info small { font-size: 11px; color: var(--gray); }
.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.btn-add-cart-detail { padding: 14px 24px; font-size: 15px; }
.btn-buy-now { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; background: var(--primary); color: white; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px; transition: var(--transition); }
.btn-buy-now:hover { background: var(--primary-light); color: white; }
.btn-wishlist-detail { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 24px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; cursor: pointer; background: white; transition: var(--transition); }
.btn-wishlist-detail.active, .btn-wishlist-detail:hover { border-color: #e94560; color: #e94560; background: #fff0f3; }
.product-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dark-gray); }
.trust-item i { color: var(--success); }
.reviews-summary { display: flex; gap: 32px; align-items: center; margin-bottom: 28px; padding: 20px; background: var(--off-white); border-radius: var(--radius); }
.rating-big { text-align: center; flex-shrink: 0; }
.rating-big .num { font-size: 56px; font-weight: 800; color: var(--accent); line-height: 1; }
.rating-big .stars { font-size: 20px; color: #ffc107; }
.rating-bars { flex: 1; }
.rating-bar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.bar-wrap { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: #ffc107; border-radius: 4px; }
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; gap: 12px; margin-bottom: 10px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.reviewer-name { font-weight: 700; font-size: 14px; }
.reviewer-date { font-size: 11px; color: var(--gray); }
.review-text { font-size: 13px; color: var(--dark-gray); line-height: 1.7; }

/* ===== RESPONSIVE - COMPONENTS ===== */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 220px 1fr; }
  .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
  .cart-layout { grid-template-columns: 1fr 320px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .filter-sidebar.mobile-open { display: block; position: fixed; inset: 0; z-index: 1090; background: white; overflow-y: auto; padding: 20px; }

  /* Product Detail */
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .product-detail-name { font-size: 22px; }
  .detail-price-current { font-size: 24px; }
  .detail-price-original { font-size: 15px; }
  .gallery-thumbs { gap: 6px; }
  .thumb-item { width: 56px; height: 70px; }
  .product-trust { grid-template-columns: 1fr; gap: 8px; }
  .tabs-nav button { padding: 10px 14px; font-size: 13px; }

  /* Checkout */
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-section { padding: 20px; }
  .checkout-section h3 { font-size: 14px; }
  .qr-bank-info { grid-template-columns: 1fr; }

  /* Cart */
  .cart-layout { grid-template-columns: 1fr; }
  .cart-table-head { display: none; }
  .cart-item { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .cart-item-product img { width: 60px; height: 75px; }
  .order-summary { position: static; }

  /* Account */
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .account-section { padding: 20px; }

  /* Admin */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 12px 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 20px; }
  .admin-form-card { padding: 16px; }
  .admin-table td, .admin-table th { padding: 8px 10px; font-size: 12px; }

  /* Contact & About */
  .contact-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .about-story-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .page-hero h1 { font-size: 32px !important; }
  .page-hero p { font-size: 14px !important; }

  /* Policy */
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }

  /* Wishlist */
  .wishlist-grid { grid-template-columns: repeat(2, 1fr); }

  /* Auth */
  .auth-card { padding: 28px 20px; }
  .auth-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .checkout-section { padding: 16px; }
  .cart-item-product { gap: 10px; }
  .product-detail-name { font-size: 18px; }
  .detail-price-current { font-size: 20px; }
  .wishlist-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .order-row-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}
