File size: 7,664 Bytes
5a10d8a
c974fb2
 
4640aaa
c974fb2
 
 
 
 
 
 
 
 
 
 
4640aaa
 
 
c974fb2
 
 
 
4640aaa
 
c974fb2
 
 
4640aaa
 
c974fb2
5bbab28
2a81fef
4640aaa
 
c974fb2
 
 
 
 
4640aaa
 
c974fb2
4640aaa
c974fb2
 
 
 
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
 
 
 
 
 
 
4640aaa
 
c974fb2
 
 
 
5bbab28
 
 
c974fb2
4640aaa
5bbab28
c974fb2
2a81fef
c974fb2
5bbab28
 
 
4640aaa
c974fb2
 
 
 
4640aaa
 
 
c974fb2
 
4640aaa
 
 
c974fb2
4640aaa
 
c974fb2
4640aaa
 
c974fb2
 
 
 
4640aaa
 
 
c974fb2
 
4640aaa
 
c974fb2
4640aaa
 
c974fb2
 
 
 
4640aaa
 
c974fb2
 
 
4640aaa
 
c974fb2
 
 
 
 
 
 
4640aaa
 
c974fb2
 
5bbab28
4640aaa
c974fb2
 
 
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
4640aaa
c974fb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
 
 
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
4640aaa
 
c974fb2
 
 
4640aaa
 
c974fb2
 
 
4640aaa
 
 
c974fb2
 
4640aaa
c974fb2
4640aaa
 
 
c974fb2
4640aaa
c974fb2
 
 
 
 
4640aaa
 
 
c974fb2
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
 
4640aaa
 
c974fb2
 
4640aaa
c974fb2
 
 
 
 
 
 
 
 
 
 
4640aaa
 
c974fb2
 
 
4640aaa
 
 
c974fb2
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4640aaa
 
5a10d8a
 
c974fb2
 
5a10d8a
c974fb2
 
 
 
5a10d8a
c974fb2
5bbab28
4640aaa
5a10d8a
c974fb2
 
5bbab28
4640aaa
5bbab28
 
 
 
 
4640aaa
 
c974fb2
 
 
 
 
 
 
 
22442da
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
/* 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;}