731 lines
15 KiB
CSS
731 lines
15 KiB
CSS
/* ============================================
|
|
Cart.css - STYLES ADAPTÉS
|
|
============================================ */
|
|
|
|
.cart-container {
|
|
width: 100%;
|
|
min-height: 100vh;
|
|
padding: clamp(1rem, 3vw, 2rem);
|
|
padding-top: calc(60px + clamp(1rem, 3vw, 2rem));
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
|
|
}
|
|
|
|
.cart-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: clamp(1.5rem, 4vw, 2rem);
|
|
flex-wrap: wrap;
|
|
gap: 1rem;
|
|
margin-top: -65px;
|
|
}
|
|
|
|
.cart-header h1 {
|
|
color: white;
|
|
font-size: clamp(1.8rem, 5vw, 2.5rem);
|
|
margin: 0;
|
|
font-weight: bold;
|
|
letter-spacing: -0.5px;
|
|
background: #ffffff;
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.clear-all-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: 8px;
|
|
font-size: clamp(0.9rem, 3vw, 1rem);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.clear-all-button:hover:not(:disabled) {
|
|
background-color: rgba(239, 68, 68, 0.15);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.clear-all-button:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.trash-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
opacity: 0.8;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Empty Cart */
|
|
.empty-cart {
|
|
text-align: center;
|
|
padding: 4rem 2rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.empty-cart-icon {
|
|
margin-bottom: 1.5rem;
|
|
opacity: 0.4;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.empty-cart p {
|
|
font-size: 1.2rem;
|
|
color: #888;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
.continue-shopping {
|
|
background: linear-gradient(to right, #7c3aed, #6d28d9);
|
|
color: white;
|
|
padding: 1rem 2rem;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
|
|
.continue-shopping:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
|
|
}
|
|
|
|
.continue-shopping:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Cart Items - Grid Layout */
|
|
.cart-items {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: clamp(1.5rem, 4vw, 2rem);
|
|
margin-bottom: clamp(1.5rem, 4vw, 2rem);
|
|
}
|
|
|
|
.cart-item {
|
|
position: relative;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(255, 255, 255, 0.03) 0%,
|
|
rgba(255, 255, 255, 0.01) 100%
|
|
);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 16px;
|
|
padding: clamp(1.5rem, 4vw, 2rem);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: clamp(1rem, 3vw, 1.5rem);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
overflow: hidden;
|
|
backdrop-filter: blur(8px);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.cart-item::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
rgba(124, 58, 237, 0.1),
|
|
transparent
|
|
);
|
|
transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cart-item:hover {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(255, 255, 255, 0.05) 0%,
|
|
rgba(255, 255, 255, 0.02) 100%
|
|
);
|
|
border-color: rgba(124, 58, 237, 0.3);
|
|
box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
|
|
transform: translateY(-4px);
|
|
}
|
|
|
|
.cart-item:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
/* ✨ CONTAINER MÉDIA - Photo + Badge Vidéo */
|
|
.cart-item-media-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 220px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(255, 255, 255, 0.08) 0%,
|
|
rgba(255, 255, 255, 0.04) 100%
|
|
);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.cart-item-image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.cart-item:hover .cart-item-image {
|
|
transform: scale(1.03);
|
|
}
|
|
|
|
/* ✨ BADGE VIDÉO - Style bouton cliquable */
|
|
.cart-video-badge {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
background: rgba(124, 58, 237, 0.95);
|
|
color: white;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
backdrop-filter: blur(8px);
|
|
box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
|
|
z-index: 2;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.cart-video-badge:hover {
|
|
transform: scale(1.05);
|
|
background: rgba(124, 58, 237, 1);
|
|
box-shadow: 0 6px 16px rgba(124, 58, 237, 0.5);
|
|
}
|
|
|
|
.cart-video-badge i {
|
|
font-size: 1rem;
|
|
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
|
|
}
|
|
|
|
.cart-item:hover .cart-video-badge {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.cart-item-info {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.cart-item-info h3 {
|
|
color: white;
|
|
font-size: clamp(1.2rem, 4vw, 1.4rem);
|
|
margin: 0;
|
|
font-weight: 600;
|
|
line-height: 1.3;
|
|
letter-spacing: -0.3px;
|
|
}
|
|
|
|
.cart-item-category {
|
|
font-size: 0.85rem;
|
|
color: #7c3aed;
|
|
margin: 0;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
/* ✨ NOUVEAU: Affichage de la quantité en grammes */
|
|
.cart-item-quantity {
|
|
font-size: 1rem;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
margin: 0.5rem 0;
|
|
padding: 0.5rem 1rem;
|
|
background: rgba(124, 58, 237, 0.1);
|
|
border: 1px solid rgba(124, 58, 237, 0.2);
|
|
border-radius: 8px;
|
|
display: inline-block;
|
|
width: fit-content;
|
|
}
|
|
|
|
.cart-item-quantity strong {
|
|
color: #7c3aed;
|
|
font-weight: 700;
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
.cart-item-price {
|
|
color: #10b981;
|
|
font-size: clamp(1.2rem, 3vw, 1.4rem);
|
|
margin: 0;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
}
|
|
|
|
/* ✅ SIMPLIFIÉ: Controls sans boutons +/- */
|
|
.cart-item-controls {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding-top: 1rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.remove-item-button {
|
|
background-color: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: 10px;
|
|
padding: 0.75rem 1.5rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
-webkit-tap-highlight-color: transparent;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.remove-item-button:hover:not(:disabled) {
|
|
background-color: rgba(239, 68, 68, 0.2);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.remove-item-button:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.remove-item-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.remove-item-button .trash-icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
/* Cart Summary */
|
|
.cart-summary {
|
|
background-color: rgba(255, 255, 255, 0.02);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
padding: clamp(1.5rem, 4vw, 2rem);
|
|
position: sticky;
|
|
bottom: clamp(1rem, 3vw, 2rem);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.summary-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: clamp(0.95rem, 3vw, 1.05rem);
|
|
}
|
|
|
|
.summary-row span:last-child {
|
|
font-weight: 600;
|
|
color: white;
|
|
}
|
|
|
|
.total-row {
|
|
color: white;
|
|
font-size: clamp(1.2rem, 4vw, 1.4rem);
|
|
padding-top: 1rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
margin-top: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.total-amount {
|
|
color: #10b981;
|
|
font-size: clamp(1.4rem, 5vw, 1.8rem);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.checkout-button {
|
|
width: 100%;
|
|
background: linear-gradient(to right, #7c3aed, #6d28d9);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 12px;
|
|
padding: clamp(1rem, 3vw, 1.3rem);
|
|
font-size: clamp(1rem, 4vw, 1.1rem);
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
touch-action: manipulation;
|
|
-webkit-tap-highlight-color: transparent;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.checkout-button::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.checkout-button:hover:not(:disabled)::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.checkout-button:hover:not(:disabled) {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
|
|
}
|
|
|
|
.checkout-button:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.checkout-button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Loading */
|
|
.loading-cart {
|
|
text-align: center;
|
|
padding: 4rem 2rem;
|
|
}
|
|
|
|
.loading-cart p {
|
|
font-size: 1.2rem;
|
|
color: #666;
|
|
animation: pulse 1.5s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
0%,
|
|
100% {
|
|
opacity: 0.6;
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Modal de confirmation */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.75);
|
|
backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.modal-content2 {
|
|
background: #1a1a1a;
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: 20px;
|
|
padding: clamp(2rem, 5vw, 3rem);
|
|
max-width: 480px;
|
|
width: 100%;
|
|
position: relative;
|
|
box-shadow: 0 20px 60px rgba(239, 68, 68, 0.3);
|
|
animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
@keyframes slideUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20px) scale(0.95);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
}
|
|
|
|
.modal-icon-container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 80px;
|
|
height: 80px;
|
|
margin: 0 auto 1.5rem;
|
|
background: radial-gradient(
|
|
circle,
|
|
rgba(239, 68, 68, 0.15) 0%,
|
|
transparent 70%
|
|
);
|
|
border-radius: 50%;
|
|
position: relative;
|
|
}
|
|
|
|
.modal-icon {
|
|
color: #ef4444;
|
|
filter: drop-shadow(0 4px 12px rgba(239, 68, 68, 0.4));
|
|
animation: shake 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
@keyframes shake {
|
|
0%,
|
|
100% {
|
|
transform: translateX(0);
|
|
}
|
|
25% {
|
|
transform: translateX(-4px) rotate(-5deg);
|
|
}
|
|
75% {
|
|
transform: translateX(4px) rotate(5deg);
|
|
}
|
|
}
|
|
|
|
.modal-title {
|
|
color: white;
|
|
font-size: clamp(1.5rem, 4vw, 1.8rem);
|
|
font-weight: 700;
|
|
text-align: center;
|
|
margin: 0 0 1rem 0;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.modal-message {
|
|
color: rgba(255, 255, 255, 0.7);
|
|
font-size: clamp(0.95rem, 3vw, 1.05rem);
|
|
text-align: center;
|
|
line-height: 1.6;
|
|
margin: 0 0 2rem 0;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 1rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.modal-button {
|
|
flex: 1;
|
|
min-width: 140px;
|
|
padding: clamp(0.9rem, 3vw, 1.1rem) clamp(1.5rem, 4vw, 2rem);
|
|
border-radius: 12px;
|
|
font-size: clamp(0.95rem, 3vw, 1rem);
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
-webkit-tap-highlight-color: transparent;
|
|
border: none;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.modal-cancel {
|
|
background: #0f0f0f;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
}
|
|
|
|
.modal-cancel:hover {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: white;
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.modal-cancel:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.modal-confirm {
|
|
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
|
color: white;
|
|
border: 1px solid rgba(239, 68, 68, 0.5);
|
|
box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.modal-confirm:hover:not(:disabled) {
|
|
box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.modal-confirm:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.modal-confirm:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ✨ MODAL VIDÉO */
|
|
.video-modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.9);
|
|
backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10000;
|
|
padding: 2rem;
|
|
animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.video-modal-content {
|
|
position: relative;
|
|
width: 100%;
|
|
max-width: 900px;
|
|
background: #1a1a1a;
|
|
border-radius: 16px;
|
|
overflow: hidden;
|
|
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
|
|
animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.video-close-btn {
|
|
position: absolute;
|
|
top: 1rem;
|
|
right: 1rem;
|
|
background: rgba(239, 68, 68, 0.9);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
z-index: 10;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
backdrop-filter: blur(8px);
|
|
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
|
|
}
|
|
|
|
.video-close-btn:hover {
|
|
background: rgba(239, 68, 68, 1);
|
|
transform: scale(1.1) rotate(90deg);
|
|
box-shadow: 0 6px 16px rgba(239, 68, 68, 0.6);
|
|
}
|
|
|
|
.video-player {
|
|
width: 100%;
|
|
height: auto;
|
|
max-height: 80vh;
|
|
display: block;
|
|
background: #000;
|
|
}
|
|
|
|
/* État de chargement des médias */
|
|
.cart-item-media-container.loading {
|
|
background: linear-gradient(
|
|
90deg,
|
|
rgba(255, 255, 255, 0.05) 0%,
|
|
rgba(255, 255, 255, 0.1) 50%,
|
|
rgba(255, 255, 255, 0.05) 100%
|
|
);
|
|
background-size: 200% 100%;
|
|
animation: shimmer 1.5s infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
background-position: -200% 0;
|
|
}
|
|
100% {
|
|
background-position: 200% 0;
|
|
}
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.cart-items {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.modal-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.modal-button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.cart-item-media-container {
|
|
height: 180px;
|
|
}
|
|
|
|
.cart-items {
|
|
gap: 1rem;
|
|
}
|
|
|
|
.cart-video-badge {
|
|
padding: 0.4rem 0.6rem;
|
|
font-size: 0.75rem;
|
|
top: 8px;
|
|
right: 8px;
|
|
}
|
|
|
|
.cart-video-badge svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
}
|