Spaces:
Running
Running
| /* BIG SALE Floating Promotion CSS v1.1 — mobile: pill stacks ABOVE V.AISTUDIO button */ | |
| /* Floating button — bottom-right, offset from V.AISTUDIO button */ | |
| #big-sale-floating { | |
| position: fixed; | |
| bottom: 24px; | |
| right: calc(24px + 72px + 16px); /* Offset: V.AISTUDIO button (56px) + 16px gap */ | |
| z-index: 179; | |
| width: 200px; | |
| height: 60px; | |
| border-radius: 24px; | |
| background: linear-gradient(135deg, #ea580c, #dc2626, #f97316); | |
| color: #fff; | |
| border: none; | |
| cursor: pointer; | |
| box-shadow: 0 4px 20px rgba(220, 38, 38, 0.45); | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 0 18px; | |
| font-family: 'Geist Mono', monospace; | |
| transition: all 0.3s ease; | |
| backdrop-filter: blur(4px); | |
| } | |
| #big-sale-floating:hover { | |
| transform: translateY(-2px) scale(1.03); | |
| box-shadow: 0 8px 32px rgba(220, 38, 38, 0.55); | |
| } | |
| #big-sale-floating.open { | |
| bottom: 24px; | |
| z-index: 141; /* below vaistudio detail overlay (z-index 200) */ | |
| } | |
| #big-sale-floating .big-sale-btn-content { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| flex: 1; | |
| } | |
| #big-sale-floating .big-sale-badge { | |
| font-size: 0.85rem; | |
| font-weight: 800; | |
| letter-spacing: 1px; | |
| background: rgba(255, 255, 255, 0.25); | |
| padding: 6px 12px; | |
| border-radius: 12px; | |
| backdrop-filter: blur(4px); | |
| border: 1px solid rgba(255, 255, 255, 0.3); | |
| } | |
| #big-sale-floating .big-sale-count { | |
| font-size: 0.75rem; | |
| font-weight: 700; | |
| background: rgba(255, 255, 255, 0.2); | |
| padding: 4px 8px; | |
| border-radius: 8px; | |
| } | |
| #big-sale-floating .big-sale-chevron { | |
| font-size: 0.75rem; | |
| transition: transform 0.3s ease; | |
| flex-shrink: 0; | |
| } | |
| #big-sale-floating.open .big-sale-chevron { | |
| transform: rotate(180deg); | |
| } | |
| /* Floating panel — anchored just above the floating button (never overlaps the | |
| topbar / Đơn hàng / Khách hàng buttons). Fixed height so the product list | |
| actually scrolls and all 23 BIG SALE items are reachable. */ | |
| #big-sale-panel { | |
| position: fixed; | |
| bottom: calc(24px + 72px + 16px + 72px); /* above: button row (72px) + gap */ | |
| right: calc(24px + 72px + 16px); | |
| z-index: 140; /* below vaistudio detail overlay (z-index 200) so product modals open on top */ | |
| width: 360px; | |
| max-width: calc(100vw - 32px); | |
| height: min(520px, calc(100vh - 120px - 60px)); | |
| max-height: none; | |
| background: #fff; | |
| border-radius: 16px; | |
| box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); | |
| display: flex; | |
| flex-direction: column; | |
| overflow: hidden; | |
| opacity: 0; | |
| visibility: hidden; | |
| transform: translateY(16px) scale(0.97); | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| border: 1px solid #e2e8f0; | |
| } | |
| #big-sale-panel.open { | |
| opacity: 1; | |
| visibility: visible; | |
| transform: translateY(0) scale(1); | |
| } | |
| /* Panel header */ | |
| .big-sale-panel-header { | |
| background: linear-gradient(135deg, #ea580c, #dc2626); | |
| color: #fff; | |
| padding: 16px 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| flex-shrink: 0; | |
| } | |
| .big-sale-panel-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| font-size: 1rem; | |
| font-weight: 800; | |
| letter-spacing: 0.5px; | |
| } | |
| .big-sale-panel-icon { | |
| font-size: 1.3rem; | |
| filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); | |
| } | |
| .big-sale-product-count { | |
| font-size: 0.8rem; | |
| font-weight: 700; | |
| background: rgba(255, 255, 255, 0.2); | |
| padding: 4px 10px; | |
| border-radius: 12px; | |
| backdrop-filter: blur(4px); | |
| } | |
| /* Product list */ | |
| .big-sale-product-list { | |
| flex: 1 1 auto; min-height:0; | |
| overflow-y: auto; | |
| padding: 8px; | |
| background: #f8fafc; | |
| } | |
| .big-sale-product-list::-webkit-scrollbar { | |
| width: 5px; | |
| } | |
| .big-sale-product-list::-webkit-scrollbar-thumb { | |
| background: #e2e8f0; | |
| border-radius: 3px; | |
| } | |
| /* Product card */ | |
| .big-sale-product { | |
| background: #fff; | |
| border: 1px solid #e2e8f0; | |
| border-radius: 12px; | |
| padding: 12px 14px; | |
| margin-bottom: 8px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| .big-sale-product:hover { | |
| background: #f0f9ff; | |
| border-color: #0077b6; | |
| transform: translateX(2px); | |
| box-shadow: 0 2px 8px rgba(0, 119, 182, 0.08); | |
| } | |
| .big-sale-product-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 4px; | |
| } | |
| .big-sale-stt { | |
| font-size: 0.7rem; | |
| font-weight: 700; | |
| color: #003f62; | |
| background: #e0f2fe; | |
| padding: 2px 8px; | |
| border-radius: 6px; | |
| } | |
| .big-sale-discount { | |
| font-size: 0.7rem; | |
| font-weight: 800; | |
| padding: 3px 8px; | |
| border-radius: 8px; | |
| color: #fff; | |
| } | |
| .discount-high { | |
| background: linear-gradient(135deg, #7e22ce, #a855f7); | |
| box-shadow: 0 1px 4px rgba(138, 43, 226, 0.3); | |
| } | |
| .discount-mid { | |
| background: linear-gradient(135deg, #ea580c, #f97316); | |
| box-shadow: 0 1px 4px rgba(234, 88, 12, 0.3); | |
| } | |
| .big-sale-product-name { | |
| font-size: 0.82rem; | |
| font-weight: 700; | |
| color: #1e293b; | |
| line-height: 1.3; | |
| } | |
| .big-sale-product-code { | |
| font-size: 0.72rem; | |
| color: #64748b; | |
| font-family: 'Geist Mono', monospace; | |
| background: #f1f5f9; | |
| padding: 2px 8px; | |
| border-radius: 6px; | |
| align-self: flex-start; | |
| } | |
| .big-sale-product-meta { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| margin-top: 4px; | |
| } | |
| .big-sale-qty { | |
| font-size: 0.7rem; | |
| font-weight: 600; | |
| color: #0d9488; | |
| background: #d1fae5; | |
| padding: 2px 8px; | |
| border-radius: 6px; | |
| } | |
| .big-sale-status { | |
| font-size: 0.68rem; | |
| font-weight: 700; | |
| color: #16a34a; | |
| background: #dcfce7; | |
| padding: 2px 8px; | |
| border-radius: 6px; | |
| } | |
| .big-sale-price-row { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| margin-top: 4px; | |
| } | |
| .big-sale-price-original { | |
| font-size: 0.72rem; | |
| color: #94a3b8; | |
| text-decoration: line-through; | |
| } | |
| .big-sale-price-new { | |
| font-size: 0.85rem; | |
| font-weight: 800; | |
| color: #c2410c; | |
| } | |
| /* Panel footer */ | |
| .big-sale-panel-footer { | |
| padding: 12px; | |
| background: #fff; | |
| border-top: 1px solid #e2e8f0; | |
| flex-shrink: 0; | |
| } | |
| .big-sale-view-all-btn { | |
| width: 100%; | |
| padding: 10px; | |
| background: linear-gradient(135deg, #003f62, #0077b6); | |
| color: #fff; | |
| border: none; | |
| border-radius: 10px; | |
| font-size: 0.8rem; | |
| font-weight: 700; | |
| cursor: pointer; | |
| font-family: 'Inter', sans-serif; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 6px; | |
| transition: all 0.2s ease; | |
| } | |
| .big-sale-view-all-btn:hover { | |
| background: linear-gradient(135deg, #00293f, #005580); | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 12px rgba(0, 63, 98, 0.3); | |
| } | |
| /* Responsive — mobile: the 170px pill would cover the 50px V.AISTUDIO button if | |
| both sit at bottom:16px/right:16px. Stack the pill ABOVE it instead. */ | |
| @media (max-width: 768px) { | |
| #big-sale-floating { | |
| bottom: calc(16px + 50px + 10px); /* 76px — just above V.AISTUDIO button */ | |
| right: 16px; | |
| width: 170px; | |
| height: 50px; | |
| } | |
| #big-sale-floating.open { | |
| bottom: calc(16px + 50px + 10px); | |
| } | |
| #big-sale-panel, | |
| #big-sale-panel.open { | |
| bottom: calc(16px + 50px + 10px + 60px); | |
| right: 16px; | |
| left: 16px; | |
| width: auto; | |
| max-width: none; | |
| height: min(60vh, calc(100vh - 160px)); | |
| max-height: none; | |
| } | |
| } | |
| @keyframes pulse-sale { | |
| 0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); } | |
| 50% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); } | |
| } | |
| #big-sale-floating:hover { | |
| animation: pulse-sale 2s infinite; | |
| } | |
| /* Per-card "Chia sẻ link" button (SEO) */ | |
| .big-sale-share-btn{ | |
| width:100%;margin-top:8px;padding:8px 10px;border:none;border-radius:8px; | |
| background:#1e40af;color:#fff;font-size:.72rem;font-weight:700;cursor:pointer; | |
| display:inline-flex;align-items:center;justify-content:center;gap:5px;font-family:inherit; | |
| transition:background .2s; | |
| } | |
| .big-sale-share-btn:hover{background:#1e3a8a;} | |
| .big-sale-share-btn i{display:inline-block;} | |