/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f5f5f5; color: #333; font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== TOP BAR ===== */
.top-bar { background: #000066; color: #fff; font-size: 12px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; padding: 6px 16px; }
.top-links { display: flex; gap: 16px; }
.top-links a { color: #ccc; transition: color .2s; }
.top-links a:hover { color: #fff; }

/* ===== HEADER ===== */
.header { background: #000099; padding: 12px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 16px; }

.logo { flex-shrink: 0; }
.logo-text { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -1px; font-style: italic; }
.logo-text::after { content: '.'; color: #f5a623; }

.search-box { flex: 1; display: flex; border-radius: 4px; overflow: hidden; max-width: 620px; }
.search-box input { flex: 1; padding: 10px 14px; border: none; outline: none; font-size: 14px; }
#btn-search { background: #f5a623; border: none; padding: 0 20px; cursor: pointer; color: #fff; font-size: 18px; transition: background .2s; }
#btn-search:hover { background: #e09510; }

.header-actions { display: flex; gap: 12px; margin-left: auto; }
.action-btn { display: flex; flex-direction: column; align-items: center; color: #fff; position: relative; padding: 4px 10px; border-radius: 4px; transition: background .2s; }
.action-btn:hover { background: rgba(255,255,255,.1); }
.action-btn .fa, .action-btn .fas { font-size: 22px; }
.action-label { font-size: 11px; margin-top: 2px; }
.badge { position: absolute; top: -4px; right: 2px; background: #f5a623; color: #fff; font-size: 11px; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* ===== MAIN NAV ===== */
.main-nav { background: #0000cc; border-top: 1px solid rgba(255,255,255,.1); }
.nav-inner { display: flex; }
.nav-list { display: flex; flex-wrap: wrap; }
.nav-item { position: relative; }
.nav-item a { display: block; color: #fff; padding: 10px 14px; font-size: 13px; white-space: nowrap; transition: background .2s; }
.nav-item a:hover, .nav-item a:focus { background: rgba(255,255,255,.15); }

/* Mega Dropdown */
.dropdown-mega { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #e0e0e0; border-radius: 0 0 8px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.15); padding: 20px; display: none; grid-template-columns: repeat(4, 1fr); gap: 20px; min-width: 500px; z-index: 200; }
.has-dropdown:hover .dropdown-mega { display: grid; }
.dropdown-col h4 { font-size: 13px; font-weight: 700; color: #0000cc; margin-bottom: 8px; border-bottom: 1px solid #e0e0e0; padding-bottom: 6px; }
.dropdown-col a { display: block; color: #555; padding: 4px 0; font-size: 13px; }
.dropdown-col a:hover { color: #0000cc; }

/* ===== HERO SECTION ===== */
.hero-section { background: #f0f0f5; padding: 16px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 220px; gap: 12px; align-items: start; }

/* Slider */
.slider-wrapper { position: relative; border-radius: 8px; overflow: hidden; }
.slider { position: relative; height: 300px; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 32px; opacity: 0; transition: opacity .5s; }
.slide.active { opacity: 1; z-index: 1; }
.slide-content h2 { font-size: 28px; color: #fff; margin-bottom: 8px; }
.slide-content p { color: rgba(255,255,255,.9); margin-bottom: 16px; }
.btn-slide { background: #fff; color: #333; padding: 10px 22px; border-radius: 4px; font-weight: 600; font-size: 14px; transition: all .2s; }
.btn-slide:hover { background: #f5a623; color: #fff; }
.slide img { width: 50%; border-radius: 8px; object-fit: cover; }

.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.4); color: #fff; border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; z-index: 10; font-size: 14px; transition: background .2s; }
.slider-btn:hover { background: rgba(0,0,0,.7); }
.prev { left: 8px; }
.next { right: 8px; }
.slider-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s; }
.dot.active { background: #fff; }

/* Side Banners */
.side-banners { display: flex; flex-direction: column; gap: 8px; }
.side-banner { border-radius: 8px; overflow: hidden; position: relative; }
.side-banner img { width: 100%; height: 145px; object-fit: cover; }
.side-banner span { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.5); color: #fff; padding: 6px 10px; font-size: 13px; font-weight: 600; }

/* ===== CATEGORY ICONS ===== */
.category-icons { background: #fff; padding: 16px 0; margin-top: 12px; border-radius: 8px; }
.cat-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; padding: 8px 4px; border-radius: 8px; transition: background .2s; }
.cat-item:hover { background: #f5f5ff; }
.cat-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cat-item span { font-size: 11px; text-align: center; color: #555; }

/* ===== SECTIONS ===== */
.flash-sale, .product-section, .promo-banners { background: #fff; margin: 12px 0; padding: 16px 0; border-radius: 8px; }

.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 4px; }
.section-title-group { display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 18px; font-weight: 700; color: #222; }
.see-all { color: #0000cc; font-size: 13px; display: flex; align-items: center; gap: 4px; }
.see-all:hover { text-decoration: underline; }

/* Countdown */
.countdown { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #555; margin-left: 8px; }
.timer-box { background: #e53935; color: #fff; border-radius: 4px; padding: 3px 7px; font-weight: 700; font-size: 16px; min-width: 32px; text-align: center; }

/* ===== PRODUCTS SCROLL (Flash Sale) ===== */
.products-scroll { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.products-scroll::-webkit-scrollbar { height: 4px; }
.products-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
.products-scroll .product-card { min-width: 170px; flex-shrink: 0; scroll-snap-align: start; }

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

/* ===== PRODUCT CARD ===== */
.product-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; cursor: pointer; transition: box-shadow .2s, transform .2s; position: relative; }
.product-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); transform: translateY(-2px); }
.product-img-wrap { position: relative; padding-top: 100%; background: #f9f9f9; overflow: hidden; }
.product-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge { position: absolute; top: 8px; left: 8px; background: #e53935; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 3px; z-index: 2; }
.product-badge.new { background: #4caf50; }
.product-badge.free-ship { background: #ff9800; }
.btn-wishlist-card { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.8); border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #999; transition: all .2s; z-index: 2; }
.btn-wishlist-card:hover, .btn-wishlist-card.active { color: #e53935; background: #fff; }
.product-info { padding: 10px; }
.product-name { font-size: 13px; color: #333; line-height: 1.4; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-row { display: flex; flex-direction: column; gap: 2px; }
.price-sale { font-size: 15px; font-weight: 700; color: #e53935; }
.price-original { font-size: 12px; color: #999; text-decoration: line-through; }
.discount-text { font-size: 11px; color: #e53935; font-weight: 600; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; color: #999; }
.stars { color: #f5a623; }
.product-location { font-size: 11px; color: #999; margin-top: 2px; }
.flash-price-bar { margin: 6px 0 2px; }
.flash-price-bar .progress { background: #fde; border-radius: 4px; height: 5px; overflow: hidden; }
.flash-price-bar .progress-fill { background: #e53935; height: 100%; border-radius: 4px; }
.flash-sold { font-size: 11px; color: #e53935; }

/* ===== PROMO BANNERS ===== */
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.promo-card { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-radius: 10px; color: #fff; transition: transform .2s; }
.promo-card:hover { transform: translateY(-2px); }
.promo-card h3 { font-size: 18px; margin-bottom: 4px; }
.promo-card p { font-size: 13px; opacity: .9; margin-bottom: 12px; }
.btn-promo { background: rgba(255,255,255,.25); padding: 6px 14px; border-radius: 4px; font-size: 13px; }

/* ===== MODALS ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 10px; width: 90%; max-width: 500px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; animation: slideUp .3s ease; }
.modal-lg { max-width: 760px; }
.modal-sm { max-width: 400px; }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #e0e0e0; }
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 18px; color: #999; }
.modal-close:hover { color: #333; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer { padding: 16px 20px; border-top: 1px solid #e0e0e0; display: flex; justify-content: space-between; align-items: center; }
.cart-total { font-size: 16px; }
.btn-checkout { background: #f5a623; color: #fff; border: none; padding: 12px 28px; border-radius: 4px; font-size: 15px; font-weight: 700; cursor: pointer; }
.btn-checkout:hover { background: #e09510; }

/* Cart Item */
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; margin-bottom: 4px; }
.cart-item-price { font-weight: 700; color: #e53935; }
.cart-item-qty { font-size: 12px; color: #999; }
.btn-remove { background: none; border: none; color: #999; cursor: pointer; font-size: 16px; align-self: flex-start; }
.btn-remove:hover { color: #e53935; }

/* Empty State */
.empty-state { text-align: center; padding: 40px; color: #ccc; }
.empty-state p { margin-top: 12px; font-size: 14px; }

/* Login Form */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; margin-bottom: 6px; color: #555; }
.form-group input { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; }
.form-group input:focus { border-color: #0000cc; }
.btn-full { width: 100%; padding: 12px; background: #0000cc; color: #fff; border: none; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.btn-full:hover { background: #000099; }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-google:hover { background: #f5f5f5; }
.form-divider { text-align: center; color: #999; font-size: 13px; margin: 10px 0; position: relative; }
.form-divider::before, .form-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: #e0e0e0; }
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }
.form-footer { text-align: center; font-size: 13px; color: #999; margin-top: 12px; }
.form-footer a { color: #0000cc; }

/* Product Detail Modal */
.product-detail-body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-detail-img img { width: 100%; border-radius: 8px; border: 1px solid #e0e0e0; }
.product-detail-info h2 { font-size: 18px; margin-bottom: 8px; }
.product-detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; color: #999; }
.product-detail-price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.product-detail-price .price-original { font-size: 14px; }
.product-detail-price .price-sale { font-size: 26px; font-weight: 700; }
.product-detail-price .discount-badge { background: #e53935; color: #fff; padding: 2px 8px; border-radius: 4px; font-size: 13px; font-weight: 700; }
.product-detail-stock { font-size: 13px; color: #4caf50; margin-bottom: 14px; }
.qty-selector { display: flex; align-items: center; gap: 0; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 4px; width: fit-content; overflow: hidden; }
.qty-selector button { background: #f5f5f5; border: none; width: 36px; height: 36px; font-size: 18px; cursor: pointer; }
.qty-selector button:hover { background: #e0e0e0; }
#qty-input { width: 54px; height: 36px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; font-size: 15px; outline: none; }
.product-detail-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.btn-add-cart { flex: 1; background: #fff; color: #0000cc; border: 2px solid #0000cc; padding: 12px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-add-cart:hover { background: #0000cc; color: #fff; }
.btn-buy-now { flex: 1; background: #f5a623; color: #fff; border: none; padding: 12px; border-radius: 4px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.btn-buy-now:hover { background: #e09510; }
.product-detail-shipping { background: #f9f9f9; padding: 10px; border-radius: 6px; font-size: 13px; color: #555; display: flex; align-items: center; gap: 8px; }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 24px; right: 24px; background: #333; color: #fff; padding: 12px 20px; border-radius: 6px; font-size: 14px; z-index: 9999; transform: translateY(80px); opacity: 0; transition: all .3s; pointer-events: none; max-width: 300px; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #4caf50; }
.toast.error { background: #e53935; }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: #ccc; margin-top: 24px; padding: 40px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; }
.footer-logo .logo-text { font-size: 26px; color: #fff; }
.footer p { font-size: 13px; line-height: 1.7; margin-top: 10px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { color: #ccc; font-size: 20px; transition: color .2s; }
.social-links a:hover { color: #f5a623; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: #aaa; font-size: 13px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: #f5a623; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-icon { background: #2a2a4a; color: #ccc; font-size: 11px; padding: 4px 8px; border-radius: 4px; }
.app-links { display: flex; gap: 8px; margin-top: 8px; flex-direction: column; }
.app-btn { display: flex; align-items: center; gap: 8px; background: #2a2a4a; color: #ccc; padding: 8px 14px; border-radius: 6px; font-size: 13px; transition: background .2s; }
.app-btn:hover { background: #3a3a6a; color: #fff; }
.footer-bottom { border-top: 1px solid #2a2a4a; margin-top: 32px; padding: 16px; text-align: center; font-size: 12px; color: #666; }

/* ===== SEARCH RESULTS ===== */
.search-results-overlay { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; border-radius: 0 0 8px 8px; z-index: 300; box-shadow: 0 8px 20px rgba(0,0,0,.1); max-height: 360px; overflow-y: auto; }
.search-results-overlay.open { display: block; }
.search-suggestion { padding: 10px 16px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.search-suggestion:hover { background: #f5f5f5; }
.search-suggestion i { color: #999; }

/* Sticky search wrapper */
.search-box { position: relative; }

/* ===== AUTH MODALS ===== */
.auth-logo { margin-bottom: 4px; }
.auth-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; color: #111; }
.auth-subtitle { font-size: 13px; color: #777; margin-bottom: 20px; line-height: 1.5; }
.btn-primary { background: #0000cc; color: #fff; border: none; width: 100%; padding: 12px; border-radius: 4px; font-size: 15px; font-weight: 600; cursor: pointer; margin-bottom: 8px; transition: background .2s; }
.btn-primary:hover { background: #000099; }
.btn-google { background: #fff; color: #333; border: 1px solid #ddd; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google:hover { background: #f8f8f8; border-color: #aaa; }

/* Input wrappers */
.input-password-wrap { position: relative; }
.input-password-wrap input { width: 100%; padding: 10px 40px 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; transition: border-color .2s; }
.input-password-wrap input:focus { border-color: #0000cc; }
.btn-toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: #999; cursor: pointer; font-size: 15px; padding: 0; }
.btn-toggle-pw:hover { color: #333; }

.input-phone-wrap { display: flex; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.phone-prefix { background: #f5f5f5; padding: 10px 12px; font-size: 14px; color: #555; border-right: 1px solid #ddd; white-space: nowrap; }
.input-phone-wrap input { flex: 1; padding: 10px 14px; border: none; font-size: 14px; outline: none; }

/* Validation */
.form-group input:not([type=checkbox]) { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; transition: border-color .2s; }
.form-group input:focus { border-color: #0000cc; }
.form-group input.invalid { border-color: #e53935 !important; }
.form-group input.valid { border-color: #4caf50 !important; }
.field-error { display: block; font-size: 12px; color: #e53935; margin-top: 4px; min-height: 16px; }

/* Row between */
.form-row-between { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #555; cursor: pointer; }
.link-forgot { font-size: 13px; color: #0000cc; }
.link-forgot:hover { text-decoration: underline; }

/* Password strength */
.password-strength { background: #eee; border-radius: 4px; height: 5px; margin-top: 8px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; width: 0%; transition: width .3s, background .3s; }
.strength-label { font-size: 11px; color: #999; margin-top: 3px; display: block; }

/* OTP boxes */
.otp-boxes { display: flex; gap: 8px; justify-content: center; margin: 20px 0 8px; }
.otp-box { width: 46px; height: 52px; text-align: center; font-size: 22px; font-weight: 700; border: 2px solid #ddd; border-radius: 8px; outline: none; transition: border-color .2s; }
.otp-box:focus { border-color: #0000cc; background: #f5f5ff; }
.otp-box.filled { border-color: #0000cc; }

/* Back button */
.btn-back { background: none; border: none; color: #0000cc; font-size: 13px; cursor: pointer; padding: 0; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.btn-back:hover { text-decoration: underline; }

/* Email simulation inbox */
.email-sim-box { margin-top: 20px; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; font-size: 13px; }
.email-sim-header { background: #f5f5f5; padding: 10px 14px; font-weight: 600; color: #555; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #e0e0e0; }
.email-sim-body { padding: 14px; color: #444; line-height: 1.7; }
.email-sim-body hr { border: none; border-top: 1px solid #eee; margin: 8px 0; }
.otp-display-code { font-size: 32px; font-weight: 900; letter-spacing: 10px; color: #0000cc; text-align: center; margin: 12px 0; background: #f0f0ff; padding: 12px; border-radius: 8px; border: 2px dashed #0000cc; }

/* Resend timer */
#resend-timer, #reg-resend-timer { font-size: 12px; color: #999; }

/* Google account picker */
.google-accounts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.google-account-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: background .2s; }
.google-account-item:hover { background: #f5f5f5; }
.google-avatar { width: 38px; height: 38px; border-radius: 50%; background: #0000cc; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.google-account-info { text-align: left; }
.google-account-name { font-size: 14px; font-weight: 600; color: #333; }
.google-account-email { font-size: 12px; color: #777; }

/* User logged-in header */
.user-dropdown { position: relative; }
.user-menu { display: none; position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 500; }
.user-dropdown:hover .user-menu { display: block; }
.user-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 16px; color: #333; font-size: 13px; transition: background .2s; }
.user-menu a:hover { background: #f5f5f5; }
.user-menu .menu-divider { border-top: 1px solid #f0f0f0; margin: 4px 0; }
.user-avatar-btn { display: flex; flex-direction: column; align-items: center; color: #fff; gap: 2px; cursor: pointer; }
.user-avatar-circle { width: 34px; height: 34px; border-radius: 50%; background: #f5a623; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; }

/* Modal header logo */
.modal-header .auth-logo { flex: 1; }
.modal-header .auth-logo .logo-text { font-size: 22px; }

/* ===== PROFIL ===== */
.modal-md { max-width: 620px; }
.profil-header { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 16px; background: linear-gradient(135deg, #f0f0ff, #e8e8ff); border-radius: 10px; }
.profil-avatar { width: 64px; height: 64px; border-radius: 50%; background: #0000cc; color: #fff; font-size: 26px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profil-header h4 { font-size: 18px; margin-bottom: 4px; }
.profil-badge { background: #e8f5e9; color: #2e7d32; font-size: 11px; padding: 3px 10px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.profil-section-title { font-size: 13px; font-weight: 700; color: #0000cc; text-transform: uppercase; letter-spacing: .5px; margin: 20px 0 12px; border-bottom: 2px solid #e8e8ff; padding-bottom: 6px; }
.profil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; font-family: inherit; }
.form-group select:focus, .form-group textarea:focus { border-color: #0000cc; }
.form-group textarea { resize: vertical; }
.btn-outline-primary { background: none; border: 2px solid #0000cc; color: #0000cc; padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; }
.btn-outline-primary:hover { background: #0000cc; color: #fff; }
.btn-outline-danger { background: none; border: 2px solid #e53935; color: #e53935; padding: 9px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .2s; }
.btn-outline-danger:hover { background: #e53935; color: #fff; }

/* ===== PESANAN ===== */
.pesanan-tabs { display: flex; border-bottom: 2px solid #f0f0f0; padding: 0 16px; gap: 4px; }
.ptab { background: none; border: none; padding: 12px 16px; font-size: 13px; font-weight: 600; color: #999; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; white-space: nowrap; }
.ptab.active, .ptab:hover { color: #0000cc; border-bottom-color: #0000cc; }
.pesanan-card { border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.pesanan-card-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fafafa; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.pesanan-no { font-weight: 700; color: #333; }
.pesanan-status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.status-proses { background: #fff3e0; color: #e65100; }
.status-kirim  { background: #e3f2fd; color: #0277bd; }
.status-selesai { background: #e8f5e9; color: #2e7d32; }
.status-batal  { background: #fce4ec; color: #c62828; }
.pesanan-item-row { display: flex; gap: 12px; padding: 12px 16px; align-items: center; border-bottom: 1px solid #f5f5f5; }
.pesanan-item-row:last-of-type { border-bottom: none; }
.pesanan-item-row img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.pesanan-item-info { flex: 1; }
.pesanan-item-name { font-size: 13px; color: #333; margin-bottom: 3px; }
.pesanan-item-price { font-size: 13px; font-weight: 700; color: #e53935; }
.pesanan-item-qty { font-size: 12px; color: #999; }
.pesanan-card-footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fafafa; border-top: 1px solid #f0f0f0; }
.pesanan-total { font-size: 14px; }
.pesanan-total strong { color: #e53935; font-size: 16px; }
.pesanan-actions { display: flex; gap: 8px; }
.btn-sm { padding: 7px 14px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.btn-sm-primary { background: #0000cc; color: #fff; }
.btn-sm-primary:hover { background: #000099; }
.btn-sm-outline { background: none; border: 1px solid #ddd; color: #555; }
.btn-sm-outline:hover { border-color: #0000cc; color: #0000cc; }
.btn-sm-danger { background: none; border: 1px solid #e53935; color: #e53935; }
.btn-sm-danger:hover { background: #e53935; color: #fff; }

/* ===== VOUCHER ===== */
.voucher-tabs { display: flex; gap: 8px; margin-bottom: 4px; }
.vtab { background: #f5f5f5; border: none; padding: 8px 18px; border-radius: 20px; font-size: 13px; font-weight: 600; color: #777; cursor: pointer; transition: all .2s; }
.vtab.active { background: #0000cc; color: #fff; }
.voucher-card { border: 2px dashed #d0d0ff; border-radius: 10px; padding: 16px; margin-bottom: 12px; display: flex; gap: 16px; align-items: stretch; position: relative; overflow: hidden; }
.voucher-card::before { content: ''; position: absolute; left: 72px; top: 0; bottom: 0; width: 1px; border-left: 2px dashed #d0d0ff; }
.voucher-icon { width: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #0000cc; }
.voucher-info { flex: 1; }
.voucher-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 3px; }
.voucher-desc { font-size: 12px; color: #777; margin-bottom: 6px; }
.voucher-exp { font-size: 11px; color: #e53935; }
.voucher-code-badge { background: #f0f0ff; color: #0000cc; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 4px; letter-spacing: 1px; display: inline-block; margin-top: 4px; cursor: pointer; }
.voucher-code-badge:hover { background: #0000cc; color: #fff; }
.voucher-used { opacity: .45; }
.voucher-input-row { display: flex; gap: 8px; margin-top: 20px; }
.voucher-input-row input { flex: 1; padding: 10px 14px; border: 2px solid #ddd; border-radius: 4px; font-size: 14px; outline: none; text-transform: uppercase; letter-spacing: 1px; }
.voucher-input-row input:focus { border-color: #0000cc; }

.btn-sm-hapus { background: none; border: 1px solid #e0e0e0; color: #999; transition: all .2s; }
.btn-sm-hapus:hover { border-color: #e53935; color: #e53935; background: #fff5f5; }

/* ===== CART FULL ===== */
.modal-cart { max-width: 940px; width: 95%; display: flex; flex-direction: column; max-height: 92vh; }
.modal-cart .modal-header { flex-shrink: 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; flex: 1; overflow: hidden; }
.cart-left { overflow-y: auto; padding: 16px; border-right: 1px solid #f0f0f0; }
.cart-right { overflow-y: auto; padding: 16px; background: #fafafa; }

/* Cart select-all bar */
.cart-select-all-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; background: #f5f5f5; border-radius: 8px; margin-bottom: 12px; font-size: 13px; }
.cart-select-all-bar label { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.btn-hapus-terpilih { background: none; border: none; color: #e53935; font-size: 13px; cursor: pointer; }
.btn-hapus-terpilih:hover { text-decoration: underline; }

/* Cart store group */
.cart-store-group { border: 1px solid #e8e8e8; border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.cart-store-header { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f9f9f9; border-bottom: 1px solid #f0f0f0; font-size: 13px; font-weight: 600; }
.cart-store-header label { cursor: pointer; display: flex; align-items: center; gap: 8px; }
.store-name { color: #0000cc; }

/* Cart item row */
.cart-item-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #f5f5f5; transition: background .15s; }
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: #fafafa; }
.cart-item-check { flex-shrink: 0; width: 18px; height: 18px; cursor: pointer; accent-color: #0000cc; }
.cart-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; border: 1px solid #eee; cursor: pointer; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-size: 13px; color: #333; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.cart-item-name:hover { color: #0000cc; }
.cart-item-variant { font-size: 11px; color: #999; margin-bottom: 6px; }
.cart-item-prices { display: flex; align-items: center; gap: 8px; }
.cart-item-price-sale { font-size: 15px; font-weight: 700; color: #e53935; }
.cart-item-price-orig { font-size: 11px; color: #bbb; text-decoration: line-through; }
.cart-item-disc-badge { font-size: 10px; background: #fff0f0; color: #e53935; padding: 1px 5px; border-radius: 3px; font-weight: 700; }
.cart-qty-ctrl { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 4px; overflow: hidden; margin-top: 8px; width: fit-content; }
.cart-qty-ctrl button { background: #f5f5f5; border: none; width: 28px; height: 28px; cursor: pointer; font-size: 16px; transition: background .15s; }
.cart-qty-ctrl button:hover { background: #e0e0e0; }
.cart-qty-ctrl button:disabled { color: #ccc; cursor: default; }
.cart-qty-val { width: 36px; text-align: center; font-size: 13px; font-weight: 600; }
.cart-item-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.btn-cart-wishlist, .btn-cart-remove { background: none; border: none; font-size: 12px; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 4px; transition: background .15s; }
.btn-cart-wishlist { color: #777; }
.btn-cart-wishlist:hover { color: #e53935; background: #fff0f0; }
.btn-cart-remove { color: #999; }
.btn-cart-remove:hover { color: #e53935; background: #fff0f0; }

/* Cart summary */
.cart-summary-box { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 18px; position: sticky; top: 0; }
.cart-summary-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; gap: 8px; }
.summary-row span:first-child { color: #777; }
.summary-divider { border: none; border-top: 1px dashed #e0e0e0; margin: 12px 0; }
.summary-total { font-size: 15px; margin-bottom: 16px; }
.summary-total span { font-weight: 600; color: #333; }
.summary-total strong { font-size: 18px; color: #e53935; }
.btn-checkout-main { width: 100%; padding: 14px; background: #f5a623; color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; }
.btn-checkout-main:hover { background: #e09510; }
.btn-checkout-main:disabled { background: #ccc; cursor: default; }
.cart-note { font-size: 11px; color: #999; text-align: center; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-voucher-cart { background: none; border: 1px dashed #0000cc; color: #0000cc; font-size: 12px; padding: 4px 10px; border-radius: 4px; cursor: pointer; white-space: nowrap; }
.btn-voucher-cart:hover { background: #f0f0ff; }
.applied-voucher-row { background: #f0fff4; padding: 6px 8px; border-radius: 4px; }
.applied-voucher-row span:first-child { color: #2e7d32; font-weight: 600; }

/* Voucher picker list */
.voucher-picker-item { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e0e0e0; border-radius: 8px; cursor: pointer; margin-bottom: 10px; transition: all .2s; }
.voucher-picker-item:hover { border-color: #0000cc; background: #f5f5ff; }
.voucher-picker-item.selected { border-color: #0000cc; background: #f0f0ff; }
.voucher-picker-icon { width: 44px; height: 44px; border-radius: 50%; background: #e8e8ff; display: flex; align-items: center; justify-content: center; color: #0000cc; font-size: 18px; flex-shrink: 0; }
.voucher-picker-info { flex: 1; }
.voucher-picker-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.voucher-picker-desc { font-size: 12px; color: #777; }
.voucher-picker-check { color: #0000cc; font-size: 18px; }
.btn-remove-voucher { width: 100%; margin-top: 8px; background: none; border: 1px solid #e53935; color: #e53935; padding: 8px; border-radius: 4px; cursor: pointer; font-size: 13px; }

/* ===== CHECKOUT MODAL ===== */
.modal-checkout { max-width: 820px; width: 95%; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.checkout-steps { display: flex; align-items: center; justify-content: center; padding: 18px 24px 14px; border-bottom: 1px solid #f0f0f0; flex-shrink: 0; gap: 0; }
.cstep { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cstep-num { width: 30px; height: 30px; border-radius: 50%; background: #e0e0e0; color: #999; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; transition: all .3s; }
.cstep-label { font-size: 11px; color: #999; white-space: nowrap; transition: color .3s; }
.cstep.active .cstep-num { background: #0000cc; color: #fff; }
.cstep.active .cstep-label { color: #0000cc; font-weight: 600; }
.cstep.done .cstep-num { background: #4caf50; color: #fff; }
.cstep.done .cstep-label { color: #4caf50; }
.cstep-line { flex: 1; height: 2px; background: #e0e0e0; min-width: 40px; max-width: 80px; margin: 0 4px; transition: background .3s; }
.cstep-line.done { background: #4caf50; }

.checkout-step-content { flex: 1; overflow-y: auto; padding: 20px 24px; }
.co-title { font-size: 17px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.co-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.co-nav-btns { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.btn-back-co { background: none; border: none; color: #0000cc; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.btn-back-co:hover { text-decoration: underline; }

/* Saved address card */
.co-address-saved { margin-bottom: 14px; }
.address-card { border: 2px solid #0000cc; border-radius: 10px; padding: 14px 16px; position: relative; }
.address-card-badge { font-size: 11px; color: #0000cc; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 4px; }
.address-name { font-size: 14px; font-weight: 700; }
.address-phone { font-size: 13px; color: #777; margin: 2px 0; }
.address-detail { font-size: 13px; color: #555; }
.btn-change-addr { background: none; border: none; color: #0000cc; font-size: 12px; cursor: pointer; margin-top: 8px; text-decoration: underline; }

/* Order summary in checkout */
.co-order-summary { background: #f9f9f9; border-radius: 8px; padding: 12px; margin-bottom: 18px; }
.co-order-item-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.co-order-item-row:last-child { border-bottom: none; }
.co-order-item-row img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; }
.co-order-item-row .item-name { flex: 1; }
.co-order-item-row .item-price { font-weight: 700; color: #e53935; white-space: nowrap; }

/* Shipping options */
.shipping-options { display: flex; flex-direction: column; gap: 10px; }
.shipping-option { display: flex; align-items: center; gap: 14px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 14px 16px; cursor: pointer; transition: all .2s; }
.shipping-option:hover { border-color: #0000cc; }
.shipping-option input[type=radio] { accent-color: #0000cc; width: 16px; height: 16px; flex-shrink: 0; }
.shipping-option:has(input:checked) { border-color: #0000cc; background: #f5f5ff; }
.shipping-info { flex: 1; }
.shipping-name { font-size: 13px; font-weight: 600; }
.shipping-free { background: #e8f5e9; color: #2e7d32; font-size: 11px; padding: 1px 6px; border-radius: 3px; margin-left: 6px; }
.shipping-est { font-size: 12px; color: #777; margin-top: 2px; }
.shipping-price { font-size: 13px; font-weight: 700; color: #0000cc; white-space: nowrap; }

/* Payment options */
.payment-groups { display: flex; flex-direction: column; gap: 16px; }
.pay-group { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.pay-group-title { background: #f5f5f5; padding: 10px 16px; font-size: 13px; font-weight: 700; color: #555; display: flex; align-items: center; gap: 8px; }
.pay-option { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #f5f5f5; transition: background .15s; }
.pay-option:last-child { border-bottom: none; }
.pay-option:hover { background: #f9f9f9; }
.pay-option:has(input:checked) { background: #f0f0ff; }
.pay-option input[type=radio] { accent-color: #0000cc; width: 15px; height: 15px; flex-shrink: 0; }
.pay-logo { width: 44px; height: 26px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.pay-option span:nth-child(3) { flex: 1; font-size: 13px; }
.pay-promo { font-size: 11px; background: #fff3e0; color: #e65100; padding: 2px 7px; border-radius: 3px; font-weight: 600; }

/* Confirm step */
.co-confirm-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.co-confirm-section { margin-bottom: 16px; border: 1px solid #f0f0f0; border-radius: 8px; overflow: hidden; }
.co-confirm-label { background: #f5f5f5; padding: 9px 14px; font-size: 12px; font-weight: 700; color: #555; display: flex; align-items: center; gap: 7px; }
.co-confirm-value { padding: 10px 14px; font-size: 13px; color: #333; line-height: 1.6; }
.co-price-breakdown { background: #fff; border: 1px solid #e8e8e8; border-radius: 10px; padding: 16px; }
.co-price-breakdown h4 { font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 9px; }
.breakdown-row span:first-child { color: #777; }
.breakdown-divider { border: none; border-top: 1px dashed #e0e0e0; margin: 10px 0; }
.breakdown-total { font-size: 15px; margin-bottom: 0; }
.breakdown-total span { font-weight: 700; color: #333; }
.breakdown-total strong { font-size: 18px; color: #e53935; }
.co-confirm-note { background: #fff9e6; border: 1px solid #ffe082; border-radius: 8px; padding: 12px 14px; font-size: 12px; color: #7a5c00; line-height: 1.6; margin-top: 14px; }
.btn-place-order { font-size: 16px; padding: 15px; margin-top: 12px; }
.confirm-item-mini { display: flex; gap: 10px; align-items: center; padding: 8px 14px; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.confirm-item-mini:last-child { border-bottom: none; }
.confirm-item-mini img { width: 42px; height: 42px; border-radius: 4px; object-fit: cover; }

/* Order success */
.success-icon { font-size: 64px; color: #4caf50; }
.order-id-display { font-size: 18px; font-weight: 700; color: #0000cc; background: #f0f0ff; padding: 10px 20px; border-radius: 6px; letter-spacing: 1px; display: inline-block; margin-bottom: 4px; }

/* ===== CATEGORY PAGE ===== */
.btn-back-cat {
  background: none;
  border: 1px solid #ddd;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.btn-back-cat:hover { border-color: #0000cc; color: #0000cc; }

/* Active nav item */
.nav-item a.active { background: rgba(255,255,255,.2); }
