/* Quick View Modal */
.ptfc-no-scroll { overflow: hidden !important; }
.ptfc-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9990; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.ptfc-modal-box { background: #fff; width: 90%; max-width: 450px; max-height: 90vh; overflow-y: auto; border-radius: 20px; position: relative; padding: 40px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); animation: ptfcFadeIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-sizing: border-box; will-change: transform; z-index: 9991; }
.ptfc-qv-modal-wrap .ptfc-modal-box { max-width: 900px; }
.ptfc-combo-modal-wrap .ptfc-modal-box { max-width: 900px; padding: 0; overflow-x: hidden; overflow-y: auto; width: 95%; }
.ptfc-modal-close { position: absolute; top: 15px; right: 15px; background: #f1f5f9 !important; border: none !important; width: 36px !important; height: 36px !important; padding: 0 !important; border-radius: 50% !important; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #64748b !important; transition: all 0.2s; z-index: 10; }
.ptfc-modal-close:hover { background: #e2e8f0 !important; color: #0f172a !important; }
.ptfc-modal-close svg { width: 20px; height: 20px; display: block; }
.ptfc-loader { text-align: center; padding: 50px; font-weight: bold; font-size: 16px; }
@keyframes ptfcFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.ptfc-quick-view-content { display: flex; gap: 30px; flex-wrap: wrap; }
.ptfc-qv-image { width: calc(50% - 15px); }
.ptfc-qv-main-image { position: relative; border-radius: 20px; border: 1px solid #eee; overflow: hidden; }
.ptfc-qv-main-image img { width: 100%; height: auto; display: block; border-radius: 20px; }
.ptfc-qv-nav { position: absolute; top: 50%; transform: translateY(-50%); background: #fff; border: 1px solid #f1f5f9; width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #333; box-shadow: 0 2px 4px rgba(0,0,0,0.05); opacity: 1; transition: all 0.2s; z-index: 2; }
.ptfc-qv-main-image:hover .ptfc-qv-nav { opacity: 1; }
.ptfc-qv-nav:hover { background: var(--ptfc-primary); border-color: var(--ptfc-primary); color: #fff; }
.ptfc-qv-prev { left: 10px; }
.ptfc-qv-next { right: 10px; }
.ptfc-qv-nav svg { width: 24px; height: 24px; display: block; }
.ptfc-qv-thumbnails { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: none; -ms-overflow-style: none; }
.ptfc-qv-thumbnails::-webkit-scrollbar { display: none; }
.ptfc-qv-thumb { width: 75px; height: 75px; flex-shrink: 0; cursor: pointer; border: 2px solid #e2e8f0; border-radius: 6px; overflow: hidden; transition: border-color 0.2s; }
.ptfc-qv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ptfc-qv-thumb.active { border-color: var(--ptfc-primary); }
.ptfc-qv-info { width: calc(50% - 15px); }
.ptfc-qv-category { font-size: 13px; color: var(--ptfc-primary); text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }
.ptfc-qv-category a { color: inherit; text-decoration: none; }
.ptfc-qv-category a:hover { text-decoration: underline; }
.ptfc-qv-info h2 { font-size: 24px; margin-top: 0; margin-bottom: 15px; line-height: 1.3; font-weight: bold; }
.ptfc-qv-info .ptfc-qv-prices { margin-bottom: 15px; }
.ptfc-qv-price-row { font-size: 16px; padding-left: 10px; line-height: 1.3; color: #000; }
.ptfc-qv-price-row.retail { text-decoration: none; border-left: 2px solid #000; }
.ptfc-qv-price-row.wholesale { font-weight: bold; font-style: italic; border-left: 2px solid #000; margin-bottom: 15px; color: #000; }
.ptfc-qv-info .ptfc-meta-row { margin-bottom: 10px; font-size: 15px; }
.ptfc-qv-info .ptfc-meta-row:last-of-type { margin-bottom: 15px; }
.ptfc-qv-desc { line-height: 1.6; color: #555; margin-bottom: 25px; font-size: 15px; }
.ptfc-qv-desc p { margin-top: 0; margin-bottom: 10px; }
.ptfc-qv-desc p:last-child { margin-bottom: 0; }
.ptfc-qv-qty-row { display: flex !important; align-items: center !important; flex-direction: row !important; margin-top: 0; gap: 15px; }
.ptfc-qv-total-price { margin-top: 10px; font-size: 16px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 8px; }
.ptfc-qv-total-price .ptfc-total-amount { color: var(--ptfc-primary); font-size: 18px; font-weight: bold; }
.ptfc-qv-actions { display: flex; gap: 15px; margin-top: 12px; align-items: center; flex-wrap: wrap; }
.ptfc-qty-label { font-weight: 600; font-size: 16px !important; color: #333; margin: 0 !important; line-height: 1; }
.ptfc-qv-quantity { display: flex; align-items: center; justify-content: space-between; border: 1px solid #cbd5e1; border-radius: 25px; height: 46px; width: 120px !important; min-width: 120px !important; background: #fff; flex-shrink: 0; position: relative; margin-right: 10px; overflow: hidden; }
.ptfc-qty-btn { width: 35px !important; height: 100% !important; background: #f8fafc !important; border: none !important; font-size: 20px !important; color: #334155 !important; cursor: pointer; display: flex; align-items: center; justify-content: center; outline: none; padding: 0 !important; margin: 0 !important; z-index: 1; transition: background 0.2s; }
.ptfc-qty-btn:hover { background: #e2e8f0 !important; color: var(--ptfc-primary) !important; }
.ptfc-qty-input { width: 50px !important; min-width: 50px !important; max-width: 50px !important; height: 100% !important; text-align: center !important; font-size: 16px !important; font-weight: 600 !important; border: none !important; border-left: 1px solid #cbd5e1 !important; border-right: 1px solid #cbd5e1 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; z-index: 2; color: #0f172a !important; -moz-appearance: textfield !important; outline: none !important; box-sizing: border-box !important; }
.ptfc-qty-input:focus { background: #fff !important; }
.ptfc-qty-input::-webkit-outer-spin-button, .ptfc-qty-input::-webkit-inner-spin-button { -webkit-appearance: none !important; margin: 0 !important; }
.ptfc-quick-view-content { padding-bottom: 20px; }
.ptfc-qv-actions .ptfc-add-to-cart { display: flex; align-items: center; justify-content: center; border-radius: 25px; text-decoration: none; font-weight: bold; transition: all 0.2s; cursor: pointer; height: 48px; }
.ptfc-qv-actions .ptfc-btn-main { background: var(--ptfc-primary); color: #fff; flex: 1; padding: 12px 30px; font-size: 16px; border: 1px solid var(--ptfc-primary); }
.ptfc-qv-actions .ptfc-btn-main:hover { background: #e66000; border-color: #e66000; }
.ptfc-qv-actions .ptfc-btn-icon { background: #fff; color: var(--ptfc-primary); border: 1px solid var(--ptfc-primary); width: 48px; height: 48px; flex-shrink: 0; padding: 0; border-radius: 50%; }
.ptfc-qv-actions .ptfc-btn-icon:hover { background: var(--ptfc-primary); color: #fff; }
.ptfc-qv-actions .ptfc-btn-icon svg { width: 22px; height: 22px; display: block; }

/* Variable Form Styles inside Quick View */
.ptfc-qv-variable-form select.tb-swatched {
    display: none !important;
}
.ptfc-qv-variable-form .single_add_to_cart_button {
    background: var(--ptfc-primary) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 25px !important;
    height: 48px !important;
    padding: 0 30px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    width: 100% !important;
    margin-top: 15px;
    transition: all 0.2s !important;
}
.ptfc-qv-variable-form .single_add_to_cart_button:hover {
    background: #e66000 !important;
}
.ptfc-qv-variable-form table.variations {
    width: 100%;
    margin-bottom: 15px;
}
.ptfc-qv-variable-form table.variations td, 
.ptfc-qv-variable-form table.variations th {
    padding: 8px 0;
    border: none;
    vertical-align: middle;
}

/* Mobile Responsiveness for Quick View */
@media (max-width: 768px) {
    .ptfc-quick-view-content {
        flex-direction: column;
        gap: 15px;
    }
    .ptfc-qv-image,
    .ptfc-qv-info {
        width: 100%;
    }
    .ptfc-modal-box {
        padding: 30px 20px 20px 20px;
    }
    .ptfc-qv-info h2 {
        font-size: 20px;
    }
    .ptfc-qv-thumbnails {
        justify-content: flex-start;
    }
}

.ptfc-thumb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #475569; z-index: 2; transition: all 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ptfc-thumb-nav:hover { background: #f8fafc; color: #0f172a; border-color: #cbd5e1; }
.ptfc-thumb-prev { left: 0; }
.ptfc-thumb-next { right: 0; }
.ptfc-thumb-gallery-wrap { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.ptfc-thumb-gallery-wrap .ptfc-qv-thumbnails { flex: 1; }
