.ptg-masonry-grid { width: 100%; max-width: 1400px; margin: 0 auto; column-gap: 20px; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
.ptg-masonry-grid[data-mobile='1'] { column-count: 1; } .ptg-masonry-grid[data-mobile='2'] { column-count: 2; column-gap: 10px; }
@media(min-width: 768px) {
    .ptg-masonry-grid[data-desktop='2'] { column-count: 2; } .ptg-masonry-grid[data-desktop='3'] { column-count: 3; }
    .ptg-masonry-grid[data-desktop='4'] { column-count: 4; } .ptg-masonry-grid[data-desktop='5'] { column-count: 5; }
    .ptg-masonry-grid[data-desktop='6'] { column-count: 6; }
}
.ptg-masonry-item { break-inside: avoid; margin-bottom: 20px; background: #fff; border: 1px solid #e5e5e5; overflow: hidden; transition: box-shadow 0.2s; }
.ptg-masonry-item:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.ptg-masonry-item .item-img { width: 100%; line-height: 0; } 

.grid-item .main { padding: 20px; } .grid-item .title { font-weight: 700; font-size: 16px; color: #000; margin-bottom: 4px; }
.grid-item .time { font-size: 13px; color: #888; margin-bottom: 12px; }
.grid-item .stars ul { display: flex; gap: 2px; margin: 0 0 12px 0; padding: 0; list-style: none; }
.grid-item .stars svg { width: 16px; height: 16px; display: block; }

.grid-item .main-text { font-size: 15px; line-height: 1.5; color: #111; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; white-space: pre-wrap; text-align: start; } 
.grid-item .main-text mark { background-color: #fdf0cc; color: #000; padding: 0px 4px; border-radius: 2px; }

.grid-item a.product-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; display: flex; align-items: center; gap: 12px; text-decoration: none; transition: opacity 0.2s; text-align: start; }
.grid-item a.product-box:hover { opacity: 0.7; } 
.grid-item a.product-box img { width: 35px; height: 45px; object-fit: contain; }
.grid-item a.product-box .name { font-size: 12px; font-weight: 500; color: #333; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.3px; }

.ptg-load-more-wrap { text-align: center; margin: 50px 0; width: 100%; }
.ptg-load-more { background: #fff; color: #111; border: 1px solid #111; padding: 14px 40px; border-radius: 50px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.05); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.ptg-load-more:hover { background: #111; color: #fff; box-shadow: 0 6px 15px rgba(0,0,0,0.15); transform: translateY(-2px); }
.ptg-load-more:disabled { cursor: not-allowed; transform: none; box-shadow: none; }
.ptg-load-more svg { transition: transform 0.2s; }
.ptg-load-more:hover svg { transform: translateY(2px); }

.ptg-form-wrapper { max-width: 500px; margin: 0 auto; background: #ffffff; padding: 24px; border-radius: 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; }
.ptg-success-msg { background: #e8f5e9; color: #2e7d32; padding: 12px; border-radius: 8px; font-weight: 500; font-size: 14px; text-align: center; }
.ptg-form-group { margin-bottom: 16px; } .ptg-form-group label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; text-align: start; }
.ptg-form-group input[type='text'], .ptg-form-group select, .ptg-form-group textarea { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fafafa; }
.ptg-submit-btn { background: #111; color: #fff; border: none; padding: 14px 24px; width: 100%; border-radius: 8px; font-weight: 600; cursor: pointer; }

.ptg-qv-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17,17,17,0.6); z-index: 999999; justify-content: center; align-items: center; padding: 20px; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ptg-qv-content { background: #fff; width: 100%; max-width: 950px; height: 80vh; max-height: 600px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); display: flex; flex-direction: column; }

.ptg-qv-header-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: #fff; border-bottom: 1px solid #eaeaea; z-index: 10; font-weight: 600; font-size: 16px; color: #111; flex-shrink: 0; }
.ptg-qv-close-btn { background: #f0f0f0; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #111; cursor: pointer; transition: background 0.2s;}
.ptg-qv-close-btn:hover { background: #e5e5e5; }

.ptg-qv-layout { display: flex; flex-direction: row; width: 100%; flex: 1; overflow: hidden; }

.ptg-qv-left { width: 45%; padding: 30px; display: flex; flex-direction: column; overflow-y: auto; background: #fff; }
.ptg-qv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; }
.ptg-qv-user-col { display: flex; flex-direction: column; gap: 8px; }
.ptg-qv-verified { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--erx-v-color); background: var(--erx-v-bg); padding: 4px 8px; border-radius: 20px; font-weight: 500; transition: all 0.2s ease; cursor: default; }
.ptg-qv-verified:hover { background: var(--erx-v-bg-hover); color: var(--erx-v-color-hover); }
.ptg-qv-date { font-size: 13px; color: #888; margin-top: 4px; }
.ptg-qv-rating-col { display: flex; flex-direction: column; gap: 6px; }

.ptg-qv-name { font-size: 18px; font-weight: 700; color: #000; }
.ptg-qv-body { flex-grow: 1; margin-bottom: 20px; }
.ptg-qv-text { font-size: 15px; line-height: 1.6; color: #333; word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; white-space: pre-wrap; text-align: start; }

.ptg-qv-footer { margin-top: auto; }
.ptg-qv-divider { border: 0; height: 1px; background: #eaeaea; margin-bottom: 20px; }

.ptg-qv-product-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ptg-qv-prod-details { display: flex; align-items: center; gap: 12px; text-align: start; }
.ptg-qv-prodname { font-size: 13px; font-weight: 600; color: #111; max-width: 150px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ptg-qv-prod-details img { width: 35px; height: 45px; object-fit: contain; }

.ptg-qv-btn-view { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: #111 !important; border: 1px solid #e5e5e5; padding: 8px 16px; border-radius: 6px; transition: background 0.2s;}
.ptg-qv-btn-view:hover { background: #f0f0f0; color: #000 !important; }
body.rtl .ptg-qv-btn-view svg { transform: scaleX(-1); }

.ptg-qv-right { width: 55%; background: #000; display: flex; flex-direction: column; position: relative; direction: ltr; }
.ptg-main-media { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 20px; box-sizing: border-box; }
.ptg-main-media img, .ptg-main-media video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; border-radius: 4px; }

.ptg-thumbnails { display: flex; gap: 10px; padding: 15px; overflow-x: auto; background: #111; scrollbar-width: none; -ms-overflow-style: none; border-top: 1px solid #222; }
.ptg-thumbnails::-webkit-scrollbar { display: none; }
.ptg-thumb { width: 64px; height: 64px; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: 0.5; transition: all 0.2s; position: relative; border: 2px solid transparent; flex-shrink: 0; background: #222; }
.ptg-thumb:hover { opacity: 0.8; }
.ptg-thumb.active { opacity: 1; border-color: #fff; }
.ptg-thumb img, .ptg-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;}

.ptg-video-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.6); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; pointer-events: none;}
.ptg-video-badge svg { width: 12px; height: 12px; fill: #fff; margin-inline-start: 2px;}

.ptg-summary-header { display: flex; justify-content: space-between; align-items: center; padding: 0 0 24px 0; margin-bottom: 24px; border-bottom: 1px solid #eaeaea; flex-wrap: wrap; gap: 16px; position: relative; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.ptg-avg-block { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 8px 12px; border-radius: 8px; transition: background 0.2s; }
.ptg-avg-block:hover { background: #f9f9f9; }
.ptg-avg-stars { display: flex; gap: 2px; }
.ptg-avg-text { font-size: 14px; font-weight: 600; color: #111; display: flex; align-items: center; gap: 4px; }

.ptg-dist-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #eaeaea; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.08); padding: 20px; width: 320px; z-index: 100; margin-top: 10px; }
.ptg-dist-dropdown.ptg-show { display: block; }
.ptg-dist-score { font-size: 36px; font-weight: 700; color: #111; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.ptg-dist-score::before { content: ''; display: inline-block; width: 24px; height: 24px; background: currentColor; mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z\"/></svg>') center/contain no-repeat; -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z\"/></svg>') center/contain no-repeat; }

.ptg-dist-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; transition: background 0.2s; }
.ptg-dist-row:hover { background: #f5f5f5; }
.ptg-dist-row.ptg-active-filter { background: #f0f0f0; box-shadow: inset 0 0 0 1px #ddd; }
.ptg-dist-stars { display: flex; gap: 2px; width: 85px; }
.ptg-dist-stars svg { width: 14px; height: 14px; }
.ptg-progress-bar { flex: 1; height: 8px; background: #eee; border-radius: 10px; overflow: hidden; }
.ptg-progress-fill { height: 100%; border-radius: 10px; transition: width 0.3s ease; }
.ptg-dist-count { font-size: 13px; color: #777; min-width: 30px; text-align: right; }

.ptg-btn-write { display: inline-block; text-decoration: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.ptg-btn-write:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

@media (max-width: 768px) { 
    .ptg-qv-overlay { padding: 0; }
    .ptg-qv-content { height: 100dvh; width: 100vw; max-width: 100%; max-height: none; border-radius: 0; } 
    .ptg-qv-layout { flex-direction: column; overflow-y: auto; display: flex; -webkit-overflow-scrolling: touch; }
    .ptg-qv-right { width: 100%; order: 1; height: auto; flex: none; } 
    .ptg-main-media { height: 45vh; padding: 10px; }
    .ptg-thumbnails { padding: 10px; }
    .ptg-thumb { width: 50px; height: 50px; }
    .ptg-qv-left { width: 100%; order: 2; height: auto; padding: 20px; overflow: visible; flex: none; display: block; } 
    .ptg-qv-product-card { flex-direction: column; align-items: flex-start; gap: 15px;}
    .ptg-qv-prod-details { width: 100%; }
    .ptg-qv-btn-view { width: 100%; justify-content: center; }
}