/* FONTS */
.mpg-grid-container, .mpg-qv-modal, .mpg-title, .qv-title, .mpg-size-guide-trigger, .mpg-badge, .mpg-buy-now-btn, .mpg-social-proof { font-family: 'Jost', sans-serif; }
.mpg-title, .qv-title { font-family: 'Playfair Display', serif !important; }

/* GRID */
.mpg-grid-container { display: grid; grid-template-columns: repeat(3, 1fr) !important; gap: 30px; width: 100%; margin-top: 0; padding-bottom: 20px; }
@media (max-width: 1024px) { .mpg-grid-container { grid-template-columns: repeat(2, 1fr) !important; display: grid !important; overflow-x: visible; } }
@media (max-width: 600px) {
    .mpg-grid-container { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px; scrollbar-width: none; }
    .mpg-grid-container::-webkit-scrollbar { display: none; }
    .mpg-card { flex: 0 0 85%; min-width: 85%; scroll-snap-align: center; }
}

/* CARD & IMAGES */
.mpg-card { text-align: left; position: relative; background: transparent; }
.mpg-image-wrap { position: relative; width: 100%; aspect-ratio: 3 / 4; background-color: #f0f0f0; margin-bottom: 15px; overflow: hidden; }
.mpg-image-wrap img, .mpg-image-wrap video { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform 0.5s ease; }

/* EFFECTS */
.mpg-image-wrap:hover img { transform: scale(1.03); }
.swap-mode .mpg-image-wrap:hover img, .slideshow-mode .mpg-image-wrap:hover img { transform: none !important; }
.swap-mode .mpg-image-wrap .mpg-hover-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s ease-in-out; z-index: 2; }
.swap-mode .mpg-image-wrap:hover .mpg-hover-img { opacity: 1; }
.mpg-image-wrap .mpg-hover-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.3s ease; z-index: 3; }
.mpg-image-wrap:hover .mpg-hover-video { opacity: 1; }
.mpg-slideshow-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.mpg-slideshow-wrapper .slide-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.3s ease-in-out; }
.mpg-slideshow-wrapper .slide-img.active { opacity: 1; }

/* BADGES */
.mpg-badges { position: absolute; top: 10px; left: 10px; z-index: 10; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.mpg-badge { background-color: #111; color: #fff; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 8px; border-radius: 2px; line-height: 1; }
.mpg-badge:nth-child(2) { background-color: #fff; color: #111; border: 1px solid #111; }

/* SOCIAL PROOF */
.mpg-social-proof { margin-top: 5px; margin-bottom: 15px; display: flex; flex-direction: column; gap: 4px; }
.mpg-sp-item { font-size: 13px; color: #555; display: flex; align-items: center; line-height: 1.4; }
.mpg-sp-item strong { color: #111; font-weight: 700; margin: 0 4px; }
.mpg-sp-item.fire { color: #d32f2f; animation: mpgPulse 2s infinite; }
.mpg-sp-item.eye { color: #2e7d32; }
@keyframes mpgPulse { 0% { opacity: 1; } 50% { opacity: 0.7; } 100% { opacity: 1; } }

/* QUICK VIEW BTN */
.mpg-qv-btn { position: absolute; bottom: 15px; right: 15px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transform: translateY(10px); transition: all 0.3s ease; box-shadow: 0 4px 10px rgba(0,0,0,0.1); z-index: 5; }
@media (max-width: 768px) { .mpg-qv-btn { opacity: 1; transform: translateY(0); } }
.mpg-image-wrap:hover .mpg-qv-btn { opacity: 1; transform: translateY(0); }
.mpg-qv-btn:hover { background: #000; } .mpg-qv-btn:hover svg { stroke: #fff; }

/* BUTTONS & SPACING */
#mpg-qv-body .quantity, #mpg-qv-body .quantity .input-text.qty, #mpg-qv-body .quantity .plus, #mpg-qv-body .quantity .minus { border-radius: 0 !important; }
.single_add_to_cart_button { background-color: #2563eb !important; color: #fff !important; padding: 12px 30px !important; border-radius: 0 !important; display: inline-block !important; }
.mpg-buy-now-btn { background-color: #111 !important; color: #fff !important; border: 1px solid #111 !important; padding: 12px 25px !important; border-radius: 0 !important; cursor: pointer; font-weight: 500; font-size: 14px; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; min-width: 100px; position: relative !important; }
.mpg-buy-now-btn:hover { background-color: #333 !important; }
.mpg-buy-now-btn.loading { color: transparent !important; pointer-events: none; }
#mpg-qv-body .mpg-buy-now-btn.loading { color: transparent !important; } 
.mpg-btn-loader { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border: 2px solid #fff; border-top-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; z-index: 10; }
.mpg-buy-now-btn.loading .mpg-btn-loader { display: block; }
#mpg-qv-body form.cart { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#mpg-qv-body .quantity, .mpg-buy-now-btn, .single_add_to_cart_button { margin: 0 !important; }

/* TITLES & META */
.mpg-title { margin: 15px 0 5px 0 !important; padding: 0 !important; line-height: 1.3 !important; }
.mpg-title a { font-family: 'Playfair Display', serif !important; font-size: 18px !important; color: #111 !important; text-decoration: none !important; font-weight: 600 !important; display: block !important; }
.mpg-title a:hover { color: #555 !important; }
.mpg-price { font-size: 15px; color: #444; } .mpg-price del { color: #aaa; margin-right: 5px; }

/* MODAL */
.mpg-qv-modal { display: none; position: fixed; z-index: 99999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(2px); }
.mpg-qv-content { background: #fff; width: 900px; max-width: 95%; margin: 5vh auto; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.mpg-close { position: absolute; right: 20px; top: 15px; font-size: 28px; cursor: pointer; z-index: 10; }
.qv-layout { display: flex; flex-wrap: wrap; }
.qv-image, .qv-summary { width: 50%; }
.qv-summary { padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }
.qv-image img { width: 100%; height: 100%; object-fit: cover; }
.qv-title { font-size: 32px; margin: 0 0 10px 0; line-height: 1.2; }

/* CATEGORIES */
.qv-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; font-weight: 700; }
.qv-cat a { text-decoration: none; transition: opacity 0.2s; } 
.qv-cat a:hover { opacity: 0.7; text-decoration: underline; }

.qv-price { font-size: 20px; margin-bottom: 10px; color: #333; }
.qv-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 25px; }
.qv-meta-footer { margin-top: 20px; font-size: 12px; color: #999; }
.mpg-size-guide-trigger { display: inline-flex; align-items: center; margin-bottom: 20px; cursor: pointer; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 500; border-bottom: 1px solid #ccc; padding-bottom: 2px; transition: all 0.2s; }
.mpg-size-guide-trigger:hover { border-color: #000; }
.mpg-sg-modal-overlay { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); align-items: center; justify-content: center; }
.mpg-sg-content { background: #fff; width: 600px; max-width: 90%; max-height: 80vh; overflow-y: auto; padding: 40px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.mpg-sg-close { position: absolute; right: 20px; top: 15px; font-size: 30px; cursor: pointer; line-height: 1; }
.mpg-sg-body table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mpg-sg-body th, .mpg-sg-body td { border: 1px solid #eee; padding: 10px; text-align: center; font-size: 14px; }
.mpg-loader { border: 3px solid #f3f3f3; border-top: 3px solid #000; border-radius: 50%; width: 30px; height: 30px; animation: spin 1s linear infinite; margin: 50px auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@media(max-width: 768px) { .qv-image, .qv-summary { width: 100%; } .qv-summary { padding: 25px; } }