/* --- VARIABLES & THÈMES ULTRA-DESIGN --- */
.theme-clean {
background: #ffffff;
color: #111111;
border-color: rgba(0, 0, 0, 0.08);
}
.theme-dark {
background: #0f172a !important;
color: #f8fafc !important;
border-color: rgba(255, 255, 255, 0.1) !important;
}
.theme-dark .qp-product-title, .theme-dark .qp-flow-info h4, .theme-dark .qp-spotlight-title {
color: #f8fafc !important;
}
.theme-dark .qp-product-price, .theme-dark .qp-flow-price, .theme-dark .qp-spotlight-price {
color: #38bdf8 !important;
}
.theme-dark .qp-product-card, .theme-dark .qp-flow-card {
background: #1e293b !important;
border-color: rgba(255, 255, 255, 0.08) !important;
}

.theme-glass {
background: rgba(255, 255, 255, 0.65) !important;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
.theme-glass .qp-product-card, .theme-glass .qp-flow-card {
background: rgba(255, 255, 255, 0.5) !important;
backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.theme-luxe {
background: #111111 !important;
color: #f3f4f6 !important;
border: 1px solid #d4af37 !important;
}
.theme-luxe .qp-product-title, .theme-luxe .qp-flow-info h4, .theme-luxe .qp-spotlight-title {
color: #f9fafb !important;
}
.theme-luxe .qp-product-price, .theme-luxe .qp-flow-price, .theme-luxe .qp-spotlight-price {
color: #d4af37 !important;
}
.theme-luxe .qp-product-card, .theme-luxe .qp-flow-card {
background: #1a1a1a !important;
border: 1px solid rgba(212, 175, 55, 0.3) !important;
}
.theme-luxe .qp-add-to-cart-btn, .theme-luxe .qp-flow-btn, .theme-luxe .qp-spotlight-btn {
background: #d4af37 !important;
color: #111 !important;
}

/* --- Grille Stacks (Responsive Optimal) --- */
.qp-stacks-grid {
display: grid;
gap: 25px;
width: 100%;
}
@media (max-width: 1024px) {
.qp-stacks-grid {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
}
@media (max-width: 640px) {
.qp-stacks-grid {
grid-template-columns: 1fr !important;
}
}

.qp-product-card {
background: #ffffff;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 16px;
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
display: flex;
flex-direction: column;
}

.qp-product-card:hover {
transform: translateY(-6px);
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.qp-image-wrap {
position: relative;
overflow: hidden;
background: #f8f9fa;
}

.qp-image-wrap img {
width: 100%;
height: auto;
display: block;
transition: transform 0.5s ease;
}

.qp-product-card:hover .qp-image-wrap img {
transform: scale(1.05);
}

.qp-views-badge {
position: absolute;
top: 12px;
left: 12px;
background: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(8px);
padding: 4px 10px;
font-size: 12px;
font-weight: 600;
border-radius: 20px;
color: #111;
}

.qp-content-wrap {
padding: 20px;
display: flex;
flex-direction: column;
flex-grow: 1;
justify-content: space-between;
}

.qp-product-title {
font-size: 16px;
font-weight: 600;
margin: 0 0 10px 0;
color: #1a1a1a;
}

.qp-product-price {
font-size: 15px;
font-weight: 700;
color: #2b2b2b;
margin-bottom: 15px;
}

.qp-add-to-cart-btn {
text-align: center;
background: #111;
color: #fff;
padding: 10px 16px;
border-radius: 8px;
text-decoration: none;
font-weight: 500;
font-size: 14px;
transition: background 0.2s ease;
}

.qp-add-to-cart-btn:hover {
background: #333;
color: #fff;
}

/* --- Carrousel Flow (Responsive Optimal) --- */
.qp-flow-container {
width: 100%;
overflow-x: auto;
padding-bottom: 20px;
scrollbar-width: none;
}

.qp-flow-container::-webkit-scrollbar {
display: none;
}

.qp-flow-track {
display: flex;
gap: 20px;
width: max-content;
}

.qp-flow-slide {
width: 280px;
flex-shrink: 0;
}
@media (max-width: 640px) {
.qp-flow-slide {
width: 240px;
}
}

.qp-flow-card {
background: #ffffff;
border: 1px solid rgba(0, 0, 0, 0.06);
border-radius: 16px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qp-flow-card:hover {
transform: translateY(-4px);
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.qp-flow-image {
position: relative;
background: #f8f9fa;
}

.qp-flow-image img {
width: 100%;
height: auto;
display: block;
}

.qp-flow-badge {
position: absolute;
top: 10px;
left: 10px;
background: rgba(17, 17, 17, 0.9);
color: #fff;
font-size: 11px;
padding: 3px 8px;
border-radius: 12px;
font-weight: 500;
}

.qp-flow-info {
padding: 16px;
display: flex;
flex-direction: column;
gap: 8px;
}

.qp-flow-info h4 {
margin: 0;
font-size: 15px;
font-weight: 600;
color: #1a1a1a;
}

.qp-flow-price {
font-size: 14px;
font-weight: 700;
color: #333;
}

.qp-flow-btn {
text-align: center;
background: #111;
color: #fff;
padding: 8px 12px;
border-radius: 8px;
text-decoration: none;
font-size: 13px;
font-weight: 500;
margin-top: 4px;
transition: background 0.2s;
}

.qp-flow-btn:hover {
background: #333;
color: #fff;
}

/* --- Quantum Spotlight (Focus Produit & Responsive) --- */
.qp-spotlight-box {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 40px;
align-items: center;
background: #f8f9fa;
padding: 30px;
border-radius: 20px;
border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
.qp-spotlight-box {
grid-template-columns: 1fr;
gap: 20px;
padding: 20px;
}
}

.qp-spotlight-image {
position: relative;
overflow: hidden;
border-radius: 14px;
background: #fff;
}

.qp-spotlight-image img {
width: 100%;
height: auto;
display: block;
transition: transform 0.5s ease;
}

.qp-spotlight-box:hover .qp-spotlight-image img {
transform: scale(1.03);
}

.qp-spotlight-badge {
position: absolute;
top: 15px;
left: 15px;
background: rgba(17, 17, 17, 0.9);
backdrop-filter: blur(8px);
color: #fff;
font-size: 12px;
font-weight: 600;
padding: 6px 14px;
border-radius: 20px;
}

.qp-spotlight-details {
display: flex;
flex-direction: column;
gap: 12px;
}

.qp-spotlight-subtitle {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 1px;
font-weight: 700;
color: #666;
}

.theme-dark .qp-spotlight-subtitle {
color: #94a3b8 !important;
}

.qp-spotlight-title {
font-size: 24px;
font-weight: 700;
margin: 0;
color: #111;
}

.qp-spotlight-price {
font-size: 18px;
font-weight: 700;
color: #2b2b2b;
}

.qp-spotlight-desc {
font-size: 14px;
color: #555;
line-height: 1.6;
}

.theme-dark .qp-spotlight-desc {
color: #cbd5e1 !important;
}

.qp-spotlight-btn {
display: inline-block;
text-align: center;
background: #111;
color: #fff;
padding: 12px 24px;
border-radius: 10px;
text-decoration: none;
font-weight: 600;
font-size: 14px;
margin-top: 10px;
transition: background 0.2s ease, transform 0.2s ease;
width: fit-content;
}

.qp-spotlight-btn:hover {
background: #333;
color: #fff;
transform: translateY(-2px);
}

/* --- Panier Flottant & Tiroir --- */
.qp-floating-trigger {
position: fixed;
bottom: 30px;
right: 30px;
background: rgba(17, 17, 17, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
color: #fff;
padding: 12px 20px;
border-radius: 50px;
display: flex;
align-items: center;
gap: 12px;
cursor: pointer;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
z-index: 99999;
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.qp-floating-trigger:hover {
transform: scale(1.05);
background: rgba(0, 0, 0, 0.95);
}

.qp-trigger-icon {
position: relative;
display: flex;
align-items: center;
}

.qp-cart-count {
position: absolute;
top: -8px;
right: -10px;
background: #ff3b30;
color: #fff;
font-size: 11px;
font-weight: 700;
width: 18px;
height: 18px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.qp-trigger-total {
font-weight: 600;
font-size: 15px;
}

.qp-cart-drawer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999999;
visibility: hidden;
opacity: 0;
transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qp-cart-drawer.active {
visibility: visible;
opacity: 1;
}

.qp-drawer-backdrop {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(4px);
}

.qp-drawer-content {
position: absolute;
top: 0;
right: 0;
width: 100%;
max-width: 420px;
height: 100%;
background: #ffffff;
box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
display: flex;
flex-direction: column;
transform: translateX(100%);
transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qp-cart-drawer.active .qp-drawer-content {
transform: translateX(0);
}

.qp-drawer-header {
padding: 24px;
border-bottom: 1px solid #eee;
display: flex;
align-items: center;
justify-content: space-between;
}

.qp-drawer-header h3 {
margin: 0;
font-size: 18px;
font-weight: 700;
}

.qp-drawer-close {
background: none;
border: none;
font-size: 28px;
cursor: pointer;
color: #666;
}

.qp-shipping-progress-box {
padding: 16px 24px;
background: #f8f9fa;
border-bottom: 1px solid #eee;
font-size: 13px;
color: #444;
}

.qp-shipping-progress-box p {
margin: 0 0 8px 0;
}

.qp-progress-bar {
width: 100%;
height: 6px;
background: #e2e8f0;
border-radius: 3px;
overflow: hidden;
}

.qp-progress-fill {
height: 100%;
background: #111;
border-radius: 3px;
transition: width 0.4s ease;
}

.qp-drawer-body {
flex-grow: 1;
overflow-y: auto;
padding: 20px 24px;
}

.qp-drawer-items {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 16px;
}

.qp-drawer-item {
display: flex;
gap: 16px;
align-items: center;
padding-bottom: 16px;
border-bottom: 1px solid #f1f1f1;
}

.qp-item-thumb img {
border-radius: 8px;
object-fit: cover;
}

.qp-item-details h4 {
margin: 0 0 4px 0;
font-size: 14px;
font-weight: 600;
}

.qp-item-qty {
display: block;
font-size: 12px;
color: #777;
margin-bottom: 4px;
}

.qp-item-price {
font-size: 14px;
font-weight: 700;
color: #111;
}

.qp-drawer-footer {
padding: 24px;
border-top: 1px solid #eee;
background: #fff;
display: flex;
flex-direction: column;
gap: 12px;
}

.qp-subtotal-row {
pros: flex;
display: flex;
justify-content: space-between;
font-size: 16px;
}

.qp-checkout-btn {
display: block;
text-align: center;
background: #111;
color: #fff;
padding: 14px;
border-radius: 12px;
text-decoration: none;
font-weight: 600;
transition: background 0.2s;
}

.qp-checkout-btn:hover {
background: #333;
}

.qp-viewcart-link {
text-align: center;
color: #666;
text-decoration: underline;
font-size: 13px;
}