/* ===========================
   AiYOYO.my Product Detail Page Styles
   assets/product-detail.css
   
   独立详情页样式，不依赖 index.html
   保留所有详情页相关 CSS + 通用样式（body / header / variant / detail / mobile sticky bar / zoom / auth / voucher）
   首页特有的 product-grid / cat-bar 等也保留以兼容（不会冲突）
   =========================== */


* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; color: #333; -webkit-tap-highlight-color: transparent; }

/* Header */
.header { background: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.header-inner { max-width: 960px; margin: 0 auto; padding: 12px 16px; }
.header-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.logo { cursor: pointer; }
.logo img { height: 36px; display: block; }
.header-right { margin-left: auto; display: flex; gap: 16px; align-items: center; padding-right: 6px; }
.cart-btn { position: relative; cursor: pointer; font-size: 22px; text-decoration: none; }
.cart-badge { position: absolute; top: -6px; right: -10px; background: #FF6B35; color: white; font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-family: sans-serif; }

/* Search */
.search-wrap { display: flex; align-items: center; background: #f0f0f0; border-radius: 10px; padding: 0 12px; }
.search-wrap input { border: none; background: none; padding: 10px 8px; font-size: 14px; width: 100%; outline: none; font-family: inherit; }
.search-wrap button { border: none; background: none; font-size: 18px; cursor: pointer; padding: 4px; }

/* Categories - Shopee/Lazada style grid */
.cat-bar { background: white; border-bottom: 1px solid #f0f0f0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cat-bar::-webkit-scrollbar { display: none; }
.cat-scroll { display: grid; grid-auto-flow: column; grid-template-rows: 1fr 1fr; gap: 6px 2px; padding: 14px 10px; max-width: 960px; margin: 0 auto; }
.cat-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 82px; padding: 8px 4px; cursor: pointer; border-radius: 10px; transition: background 0.15s; text-decoration: none; }
.cat-item:hover { background: #FFF0EB; }
.cat-item.active { background: #FFF0EB; }
.cat-item .cat-icon { width: 50px; height: 50px; border-radius: 50%; background: #f5f5f5; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; transition: all 0.15s; overflow: hidden; }
.cat-item .cat-icon svg { width: 26px; height: 26px; stroke: #555; fill: none; stroke-width: 1.5; }
.cat-item.active .cat-icon { background: #FF6B35; box-shadow: 0 2px 8px rgba(255,107,53,0.3); }
.cat-item.active .cat-icon svg { stroke: white; }
.cat-item .cat-name { font-size: 11px; font-weight: 600; color: #555; text-align: center; line-height: 1.3; max-width: 78px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cat-item.active .cat-name { color: #FF6B35; }
@media (max-width: 480px) {
    .cat-scroll { gap: 4px 0; padding: 10px 6px; }
    .cat-item { width: 74px; }
    .cat-item .cat-icon { width: 46px; height: 46px; }
    .cat-item .cat-icon svg { width: 24px; height: 24px; }
    .cat-item .cat-name { font-size: 10px; max-width: 70px; }
}

/* Content */
.content { max-width: 960px; margin: 0 auto; padding: 16px; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card { background: white; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.05); cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s; border: 2px solid transparent; position: relative; }
.product-card:active { transform: scale(0.98); }
.product-card img.card-img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f5f5f5; }
.product-card .info { padding: 10px; }
.product-card .name { font-size: 13px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; color: #333; }
.product-card .price { font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800; color: #FF6B35; margin-top: 6px; }
.product-card .stock-out { font-size: 11px; color: #E17055; font-weight: 600; margin-top: 2px; }

/* Top-left corner tag */
.card-tag { position: absolute; top: 0; right: 0; padding: 4px 10px; font-size: 11px; font-weight: 800; color: #fff; border-radius: 0 0 0 8px; z-index: 3; font-family: 'Nunito', sans-serif; letter-spacing: 0.3px; line-height: 1.2; }
.card-tag-save { background: #FF6B35; }
.card-tag-hot { background: #e74c3c; }
.card-tag-best { background: #8e44ad; }
.card-tag-popular { background: #2980b9; }
.card-tag-trending { background: #e67e22; }
.card-tag-value { background: #27ae60; }
.card-tag-top { background: #c0392b; }
.card-tag-fav { background: #d35400; }
.card-tag-deal { background: #16a085; }

/* Hover effects - desktop only */
@media (hover: hover) {
    .product-card:hover { border-color: #FF6B35; box-shadow: 0 4px 16px rgba(255,107,53,0.18); transform: translateY(-2px); }
    .product-card .card-img-wrap .hover-btn { opacity: 0; transition: opacity 0.2s; }
    .product-card:hover .card-img-wrap .hover-btn { opacity: 1; }
}

/* Image wrapper for overlay button */
.product-card .card-img-wrap { position: relative; overflow: hidden; }
.product-card .hover-btn { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(255,107,53,0.92); color: #fff; text-align: center; font-size: 13px; font-weight: 700; padding: 10px 0; letter-spacing: 0.3px; z-index: 2; cursor: pointer; border: none; width: 100%; }
.product-card .hover-btn:hover { background: rgba(230,80,20,0.95); }

/* Strikethrough / marketplace price - inline, no box */
.product-card .price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.product-card .price-row .price { margin-top: 0; font-size: 20px; }
.product-card .old-price { font-size: 16px; color: #999; text-decoration: line-through; font-family: 'Nunito', sans-serif; font-weight: 600; }
.product-card .save-line { font-size: 15px; margin-top: 3px; }
.product-card .save-text { font-weight: 700; color: #27ae60; }
.product-card .save-label { color: #666; font-weight: 500; }

/* AiYOYO Cash earn line */
.product-card .cash-line { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-family: 'Nunito', sans-serif; justify-content: flex-end; }
.product-card .cash-amount { font-size: 14px; font-weight: 800; color: #FF6B35; }
.product-card .cash-coin { width: 20px; height: 20px; object-fit: contain; }
.product-card .cash-label { font-size: 12px; font-weight: 700; color: #333; }

/* Load More */
.load-more { text-align: center; padding: 20px; }
.load-more button { padding: 12px 40px; border: 2px solid #ddd; border-radius: 10px; background: white; font-size: 14px; font-weight: 600; cursor: pointer; color: #555; }
.load-more button:hover { border-color: #FF6B35; color: #FF6B35; }

/* Empty */
.empty { text-align: center; padding: 60px 20px; color: #aaa; }
.empty .icon { font-size: 48px; margin-bottom: 12px; }

/* Loading */
.loading { text-align: center; padding: 40px; color: #aaa; font-size: 14px; }

/* Footer */
.sf-footer { background:#fff; color:#333; padding:32px 16px 20px; border-top:1px solid #e0e0e0; margin-top:30px; }
.sf-inner { max-width:960px; margin:0 auto; }
.sf-grid { display:grid; grid-template-columns:2fr 1.5fr 1fr 1fr; gap:28px; margin-bottom:28px; }
.sf-title { font-size:11px; font-weight:600; color:#999; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:10px; }
.sf-title-row { display:flex; align-items:center; gap:8px; margin-bottom:10px; }
.sf-title-row .sf-title { margin-bottom:0; }
.sf-title-row .sf-secured-inline { display:flex; align-items:center; gap:4px; font-size:10px; color:#999; }
.sf-title-row .sf-secured-inline img { height:18px; vertical-align:middle; }
.sf-logos-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.sf-logos-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.sf-logo { padding:0; height:32px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.sf-logo img { height:32px; width:100%; object-fit:contain; }
.sf-links a { color:#666; text-decoration:none; font-size:13px; display:block; margin-bottom:8px; line-height:1.4; }
.sf-links a:hover { color:#FF6B35; }
.sf-contact a { color:#666; text-decoration:none; font-size:13px; display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.sf-contact a:hover { color:#FF6B35; }
.sf-social { display:flex; gap:10px; margin-top:4px; }
.sf-social a { width:32px; height:32px; display:flex; align-items:center; justify-content:center; }
.sf-social a:hover { opacity:0.7; }
.sf-copyright { border-top:1px solid #e0e0e0; padding-top:16px; margin-top:16px; text-align:center; font-size:11px; color:#bbb; }

/* Mobile optimizations */
@media (max-width: 480px) {
    .header-inner { padding: 10px 12px; }
    .header-top { margin-bottom: 8px; }
    .logo img { height: 30px; }
    .cart-btn { font-size: 20px; }
    .header-right { gap: 14px; }
    .search-wrap input { padding: 9px 6px; font-size: 13px; }
    .cat-scroll { padding: 8px 4px; gap: 2px 0; }
    .content { padding: 10px; }
    .product-grid { gap: 8px; }
    .product-card .info { padding: 8px; }
    .product-card .name { font-size: 12px; min-height: 32px; }
    .product-card .price { font-size: 16px; }
    .product-card .price-row .price { font-size: 18px; }
    .product-card .old-price { font-size: 14px; }
    .product-card .save-line { font-size: 13px; }
    .product-card .cash-amount { font-size: 13px; }
    .product-card .cash-coin { width: 18px; height: 18px; }
    .product-card .cash-label { font-size: 11px; }
    .product-card .hover-btn { display: none; }
    .detail-name { font-size: 16px; }
    .detail-price { font-size: 22px; }
    .detail-images { max-width: 100%; margin-bottom: 12px; }
    .detail-images { max-width: 100%; margin-bottom: 12px; }
    .detail-thumbs img { width: 48px; height: 48px; }
    .thumb-arrow { display: none; }
    .detail-thumbs { padding: 0; }
    .detail-desc { font-size: 12px; line-height: 1.6; }
    .variant-chip { padding: 7px 12px; font-size: 12px; }
    .sf-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    /* Sticky add-to-cart bar on mobile */
    .mobile-cart-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; padding: 10px 12px; box-shadow: 0 -2px 10px rgba(0,0,0,0.08); z-index: 90; display: block; }
    .mobile-cart-bar .btn-add-cart { margin: 0; }
    .page-detail .btn-add-cart.desktop-btn { display: none; }
    .page-detail .qty-row.desktop-qty { display: none; }
    .desktop-only-moq { display: none !important; }
}
@media (min-width: 481px) {
    .mobile-cart-bar { display: none !important; }
}

/* Bottom safe area for mobile */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .sf-footer { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
    .sf-footer { padding-bottom: 80px; }
    .sf-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Result count */
.result-info { font-size: 13px; color: #888; margin-bottom: 12px; }

/* Product Detail Page */
.page-detail { display: none; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #888; cursor: pointer; margin-bottom: 16px; padding: 6px 0; }
.detail-back:hover { color: #FF6B35; }
.detail-images { width: 100%; max-width: 400px; margin: 0 auto 20px; position: relative; }
.slides-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; border-radius: 10px; background: #f5f5f5; }
.slides-container::-webkit-scrollbar { display: none; }
.slides-container .slide { min-width: 100%; width: 100%; scroll-snap-align: start; flex-shrink: 0; aspect-ratio: 1; }
.slides-container .slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.slides-container .slide video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.slide-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.5); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; pointer-events: none; z-index: 2; }
.thumbs-wrap { position: relative; margin-top: 8px; }
.detail-thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth; padding: 0 28px; scrollbar-width: none; -ms-overflow-style: none; }
.detail-thumbs::-webkit-scrollbar { display: none; }
.detail-thumbs img { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; cursor: pointer; border: 2px solid transparent; flex-shrink: 0; }
.detail-thumbs img.active { border-color: #FF6B35; }
.thumb-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.4); color: white; border: none; cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; z-index: 2; }
.thumb-arrow:hover { background: rgba(0,0,0,0.7); }
.thumb-arrow.left { left: 0; }
.thumb-arrow.right { right: 0; }

/* Zoom popup - Shopee style */
.zoom-overlay { display:none; position:fixed; top:0; left:0; width:100%; height:100%; z-index:9999; background:rgba(0,0,0,0.5); align-items:center; justify-content:center; }
.zoom-overlay.active { display:flex; }
.zoom-popup { background:white; border-radius:12px; box-shadow:0 8px 40px rgba(0,0,0,0.3); width:820px; max-width:90vw; max-height:85vh; display:flex; overflow:hidden; position:relative; }
.zoom-sidebar { width:80px; max-height:85vh; overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding:12px 8px; flex-shrink:0; border-right:1px solid #eee; scrollbar-width:thin; }
.zoom-sidebar .zt { width:60px; height:60px; border-radius:6px; object-fit:cover; cursor:pointer; border:2px solid transparent; flex-shrink:0; }
.zoom-sidebar .zt.active { border-color:#FF6B35; }
.zoom-sidebar .zt-video { position:relative; width:60px; height:60px; border-radius:6px; overflow:hidden; cursor:pointer; border:2px solid transparent; flex-shrink:0; }
.zoom-sidebar .zt-video.active { border-color:#FF6B35; }
.zoom-sidebar .zt-video img { width:100%; height:100%; object-fit:cover; }
.zoom-sidebar .zt-video span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.3); color:white; font-size:18px; }
.zoom-main { flex:1; display:flex; align-items:center; justify-content:center; position:relative; padding:16px; min-height:400px; }
.zoom-main img, .zoom-main video { max-width:100%; max-height:calc(85vh - 40px); object-fit:contain; display:block; }
.zoom-close { position:absolute; top:10px; right:14px; background:none; border:none; font-size:24px; color:#999; cursor:pointer; z-index:10; }
.zoom-close:hover { color:#333; }
.zoom-nav { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.05); border:none; color:#666; font-size:24px; cursor:pointer; padding:8px 12px; border-radius:50%; z-index:5; }
.zoom-nav:hover { background:rgba(0,0,0,0.1); }
.zoom-nav.prev { left:8px; }
.zoom-nav.next { right:8px; }
.zoom-counter { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); font-size:12px; color:#aaa; }
.detail-name { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.detail-price { font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 800; color: #FF6B35; margin-bottom: 12px; }
.price-compare { background: #fafafa; border: 1.5px solid #eee; border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
.price-compare-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.price-compare-left { text-align: center; }
.price-compare-left .pc-label { font-size: 13px; color: #2d7a2d; font-weight: 700; margin-bottom: 2px; }
.price-compare-left .pc-price { font-family: 'Nunito', sans-serif; font-size: 32px; font-weight: 800; color: #FF6B35; }
.price-compare-vs { width: 36px; height: 36px; border-radius: 50%; background: #555; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.price-compare-right { text-align: center; }
.price-compare-right .pc-label { font-size: 12px; color: #888; margin-bottom: 2px; }
.price-compare-right .pc-price { font-family: 'Nunito', sans-serif; font-size: 24px; font-weight: 700; color: #aaa; text-decoration: line-through; }
.price-compare-info { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; color: #555; }
.price-compare-info .save-badge { background: #d4edda; color: #155724; font-weight: 800; padding: 5px 14px; border-radius: 20px; font-size: 14px; }
.price-compare-cart { margin-top: 14px; }
.price-compare-cart .btn-add-cart { margin-bottom: 0; font-size: 17px; padding: 15px; }
.price-compare-bottom { text-align: center; margin-top: 10px; font-size: 11px; color: #c0392b; font-weight: 700; letter-spacing: 0.5px; }
@media (max-width: 480px) {
    .price-compare-cart { display: none; }
    .price-compare-bottom { display: none; }
    .price-compare .pc-qty-row { display: none !important; }
}
.detail-stock { font-size: 13px; color: #888; margin-bottom: 16px; }
.detail-stock.out { color: #E17055; font-weight: 600; }

.detail-variants { margin-bottom: 16px; }
.detail-variants label { font-size: 13px; font-weight: 600; color: #555; display: block; margin-bottom: 8px; }
.variant-options { display: flex; gap: 8px; flex-wrap: wrap; }
.variant-chip { padding: 8px 16px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-size: 13px; cursor: pointer; background: white; transition: all 0.15s; }
.variant-chip:hover { border-color: #FF6B35; }
.variant-chip.active { border-color: #FF6B35; background: #FFF0EB; color: #FF6B35; font-weight: 600; }
.variant-chip.out { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.qty-btn { width: 36px; height: 36px; border: 1.5px solid #ddd; border-radius: 8px; background: white; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qty-num { font-size: 16px; font-weight: 700; min-width: 20px; text-align: center; }

.detail-desc { font-size: 13px; line-height: 1.7; color: #555; white-space: pre-line; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; }

.btn-add-cart { width: 100%; padding: 14px; border: none; border-radius: 10px; background: #FF6B35; color: white; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; }
.btn-add-cart:hover { background: #E55A2B; }
.btn-add-cart:disabled { background: #ccc; cursor: not-allowed; }

.added-msg { display: none; text-align: center; padding: 10px; background: #E8FBF5; color: #00B894; border-radius: 8px; font-size: 14px; font-weight: 600; margin-top: 10px; }
.fly-dot { position: fixed; width: 16px; height: 16px; background: #FF6B35; border-radius: 50%; z-index: 9999; pointer-events: none; transition: all 1s cubic-bezier(0.2, 0.6, 0.3, 1); box-shadow: 0 2px 8px rgba(255,107,53,0.5); }
/* Auth Modal */
.auth-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:500; justify-content:center; align-items:flex-start; padding:60px 16px 16px; }
.auth-overlay.show { display:flex; }
.auth-card { background:white; border-radius:14px; width:100%; max-width:380px; overflow:hidden; box-shadow:0 20px 60px rgba(0,0,0,0.2); animation:authSlide 0.25s ease; }
@keyframes authSlide { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
.auth-header { padding:20px 20px 0; display:flex; justify-content:space-between; align-items:center; }
.auth-header h3 { font-family:'Nunito',sans-serif; font-size:18px; font-weight:800; }
.auth-close { width:32px; height:32px; border:none; background:#f0f0f0; border-radius:50%; font-size:18px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.auth-tabs { display:flex; padding:16px 20px 0; gap:4px; }
.auth-tab { flex:1; padding:10px; text-align:center; font-size:13px; font-weight:700; border:none; background:#f0f0f0; color:#888; cursor:pointer; border-radius:8px 8px 0 0; transition:all 0.15s; }
.auth-tab.active { background:#FF6B35; color:white; }
.auth-body { padding:20px; }
.auth-field { margin-bottom:14px; }
.auth-field label { display:block; font-size:12px; font-weight:600; color:#555; margin-bottom:4px; }
.auth-field input { width:100%; padding:11px 12px; border:1.5px solid #ddd; border-radius:8px; font-size:14px; font-family:inherit; }
.auth-field input:focus { outline:none; border-color:#FF6B35; }
.auth-btn { width:100%; padding:13px; border:none; border-radius:10px; background:#FF6B35; color:white; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; transition:background 0.15s; }
.auth-btn:hover { background:#E55A2B; }
.auth-btn:disabled { background:#ccc; cursor:not-allowed; }
.auth-error { background:#FDEDED; color:#E17055; padding:10px 12px; border-radius:8px; font-size:13px; margin-bottom:14px; display:none; }
.auth-link { text-align:center; font-size:13px; color:#888; margin-top:14px; }
.auth-link a { color:#FF6B35; text-decoration:none; cursor:pointer; font-weight:600; }

/* Logged-in user dropdown */
.user-menu { position:relative; }
.user-menu-drop { display:none; position:absolute; right:0; top:36px; background:white; border-radius:10px; box-shadow:0 4px 20px rgba(0,0,0,0.12); min-width:180px; z-index:200; overflow:hidden; }
.user-menu-drop.show { display:block; }
.user-menu-drop a { display:block; padding:12px 16px; font-size:13px; color:#333; text-decoration:none; cursor:pointer; border-bottom:1px solid #f5f5f5; }
.user-menu-drop a:hover { background:#FFF0EB; color:#FF6B35; }
.user-menu-drop a:last-child { border-bottom:none; color:#E17055; }

/* Voucher Popup */
.voucher-overlay { display:none; position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:600; justify-content:center; align-items:center; padding:16px; }
.voucher-overlay.show { display:flex; }
.voucher-popup { width:100%; max-width:360px; border-radius:16px; overflow:hidden; background:white; box-shadow:0 20px 60px rgba(0,0,0,0.2); animation:authSlide 0.3s ease; }
.vp-header { position:relative; background:linear-gradient(135deg, #0B5E3F, #1A8C5B); padding:28px 24px 24px; text-align:center; color:white; }
.vp-close { position:absolute; top:12px; right:14px; width:28px; height:28px; border-radius:50%; background:rgba(255,255,255,0.15); border:none; color:rgba(255,255,255,0.7); font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; }
.vp-subtitle { font-size:11px; font-weight:600; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.75); margin-bottom:4px; }
.vp-title { font-family:'Nunito',sans-serif; font-size:20px; font-weight:800; margin-bottom:2px; }
.vp-desc { font-size:13px; color:rgba(255,255,255,0.8); margin-bottom:20px; }
.vp-amount-box { background:rgba(255,255,255,0.12); border-radius:12px; padding:20px 16px; border:1px solid rgba(255,255,255,0.15); }
.vp-amount-label { font-size:11px; font-weight:600; letter-spacing:0.5px; color:rgba(255,255,255,0.7); margin-bottom:6px; }
.vp-amount { display:flex; align-items:baseline; justify-content:center; gap:4px; margin-bottom:6px; }
.vp-amount .rm { font-size:22px; font-weight:600; color:rgba(255,255,255,0.85); }
.vp-amount .num { font-size:64px; font-weight:800; font-family:'Nunito',sans-serif; line-height:1; }
.vp-amount .off { font-size:22px; font-weight:600; color:rgba(255,255,255,0.85); }
.vp-amount-sub { font-size:13px; color:rgba(255,255,255,0.8); }
.vp-body { padding:20px 24px 24px; }
.vp-body-text { text-align:center; font-size:13px; color:#888; margin-bottom:16px; }
.vp-btn { width:100%; padding:13px; border:none; border-radius:10px; font-size:15px; font-weight:700; cursor:pointer; font-family:inherit; margin-bottom:10px; }
.vp-btn-primary { background:#1A8C5B; color:white; }
.vp-btn-primary:hover { background:#157A4E; }
.vp-btn-primary:disabled { background:#aaa; cursor:not-allowed; }
.vp-btn-outline { background:white; border:1.5px solid #ddd; color:#333; }
.vp-btn-outline:hover { border-color:#1A8C5B; color:#1A8C5B; }
.vp-btn-orange { background:#F5851E; color:white; }
.vp-btn-orange:hover { background:#E07718; }
.vp-field { margin-bottom:12px; }
.vp-field label { display:block; font-size:12px; font-weight:600; color:#555; margin-bottom:4px; }
.vp-field input { width:100%; padding:11px 12px; border:1.5px solid #ddd; border-radius:8px; font-size:14px; font-family:inherit; }
.vp-field input:focus { outline:none; border-color:#1A8C5B; }
.vp-error { background:#FDEDED; color:#E17055; padding:10px 12px; border-radius:8px; font-size:13px; margin-bottom:12px; display:none; }
.vp-link { text-align:center; font-size:13px; color:#888; margin-top:10px; }
.vp-link a { color:#1A8C5B; text-decoration:none; cursor:pointer; font-weight:600; }
.vp-validity { text-align:center; font-size:11px; color:#aaa; margin-top:10px; }
.vp-success-icon { width:72px; height:72px; border-radius:50%; background:#2E7D32; border:3px solid rgba(255,255,255,0.3); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; }
.vp-success-amount { font-family:'Nunito',sans-serif; font-size:36px; font-weight:800; margin-bottom:4px; }
.vp-success-label { font-size:16px; font-weight:700; letter-spacing:0.5px; }
.vp-success-msg { font-size:13px; color:rgba(255,255,255,0.75); margin-top:8px; }
.vp-voucher-card { display:flex; align-items:center; gap:12px; background:#EAF5EE; border-radius:10px; padding:14px 16px; margin-bottom:20px; }
.vp-voucher-badge { width:52px; height:36px; background:#1A8C5B; border-radius:6px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.vp-voucher-badge .rm-small { font-size:9px; color:rgba(255,255,255,0.7); margin-right:1px; }
.vp-voucher-badge .rm-val { font-size:18px; font-weight:700; color:#FFD54F; font-family:'Nunito',sans-serif; }
