.product-card { position: relative; }
.ostu-qv-trigger {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
min-height: 33px;
padding: 0 10px;
border: 1px solid var(--border);
border-radius: var(--radius-8, 8px);
background: transparent;
color: var(--slate);
font-family: var(--font-body);
font-weight: var(--fw-medium, 500);
font-size: var(--fs-2xs, 12px);
letter-spacing: 0;
transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.product-card > .ostu-qv-trigger { margin: 0 14px 14px; }
.ostu-qv-trigger__icon { display: inline-flex; color: currentColor; transition: color .18s ease; }
.ostu-qv-trigger__icon svg { width: 15px; height: 15px; }
.ostu-qv-trigger__label { line-height: var(--lh-flat, 1); }
.ostu-qv-trigger:hover,
:is(.ostu-qv-trigger:focus-visible) {
background: transparent;
color: var(--green);
border-color: var(--green);
}
.ostu-qv-trigger:hover .ostu-qv-trigger__icon,
:is(.ostu-qv-trigger:focus-visible .ostu-qv-trigger__icon) { color: var(--green); }
.ostu-qv-trigger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.ostu-qv {
position: fixed;
inset: 0;
z-index: 1200;
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-20, 20px);
}
.ostu-qv[hidden] { display: none; }
@media (max-width: 600px) {
.ostu-qv { padding: var(--space-12, 12px); align-items: flex-start; padding-top: max(12px, env(safe-area-inset-top)); }
}
.ostu-qv__overlay {
position: absolute;
inset: 0;
background: rgba(15, 23, 42, .55);
-webkit-backdrop-filter: blur(3px);
backdrop-filter: blur(3px);
opacity: 0;
transition: opacity .25s ease;
}
.ostu-qv.is-open .ostu-qv__overlay { opacity: 1; }
.ostu-qv__dialog {
position: relative;
width: 100%;
max-width: 920px;
max-height: calc(100dvh - 40px);
overflow: auto;
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius-2xl);
box-shadow: 0 30px 80px -24px rgba(15, 23, 42, .45);
opacity: 0;
transform: translateY(14px) scale(.98);
transition: opacity .25s ease, transform .25s ease;
}
.ostu-qv.is-open .ostu-qv__dialog { opacity: 1; transform: translateY(0) scale(1); }
.ostu-qv__close {
position: absolute;
top: 14px;
right: 14px;
z-index: 4;
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--border);
border-radius: var(--radius-pill, 999px);
background: #fff;
color: var(--slate);
box-shadow: var(--shadow-card);
transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.ostu-qv__close:hover {
background: var(--slate-dark);
color: #fff;
border-color: var(--slate-dark);
transform: rotate(90deg);
}
.ostu-qv__loading,
.ostu-qv__content > .ostu-qv__loading {
display: flex;
align-items: center;
justify-content: center;
min-height: 320px;
padding: var(--space-40, 40px);
}
.ostu-qv__spinner {
width: 38px;
height: 38px;
border-radius: var(--radius-circle, 50%);
border: 3px solid var(--border);
border-top-color: var(--green);
animation: ostu-qv-spin .7s linear infinite;
}
@keyframes ostu-qv-spin { to { transform: rotate(360deg); } }
.ostu-qv__error {
padding: var(--space-48, 48px) var(--space-32, 32px);
text-align: center;
color: var(--slate-600);
font-weight: var(--fw-semibold, 600);
}
.ostu-qv-product {
display: grid;
grid-template-columns: 1fr;
gap: 0;
}
@media (min-width: 720px) {
.ostu-qv-product { grid-template-columns: 1.05fr 1fr; }
}
.ostu-qv-product__gallery {
background: var(--muted);
padding: 28px;
display: flex;
flex-direction: column;
gap: 14px;
}
.ostu-qv-product__stage {
position: relative;
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
aspect-ratio: 1 / 1;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.ostu-qv-product__stage img,
.ostu-qv-product__main-img {
width: 100%;
height: 100%;
object-fit: contain;
padding: 18px;
}
.ostu-qv-product__sale {
position: absolute;
top: 12px;
left: 12px;
background: var(--green);
color: #fff;
font-size: var(--fs-2xs, 12px);
font-weight: var(--fw-bold, 700);
padding: var(--space-4, 4px) var(--space-12, 12px);
border-radius: var(--radius-pill, 999px);
}
.ostu-qv-product__thumbs {
display: flex;
gap: 10px;
flex-wrap: wrap;
margin: 0;
padding: 0;
list-style: none;
}
.ostu-qv-product__thumb {
width: 60px;
height: 60px;
padding: var(--space-4, 4px);
background: #fff;
border: 1px solid var(--border);
border-radius: 10px;
overflow: hidden;
transition: border-color .2s ease, transform .2s ease;
}
.ostu-qv-product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ostu-qv-product__thumb:hover { transform: translateY(-2px); }
.ostu-qv-product__thumb.is-active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(37, 99, 235, .25); }
.ostu-qv-product__summary {
padding: 32px 32px 36px;
display: flex;
flex-direction: column;
gap: 14px;
}
@media (max-width: 600px) {
.ostu-qv-product__gallery { padding: 18px 18px 14px; gap: var(--space-12, 12px); }
.ostu-qv-product__summary { padding: 20px 18px 24px; gap: var(--space-12, 12px); }
.ostu-qv-product__title { font-size: clamp(20px, 5.5vw, 24px); padding-right: var(--space-40, 40px); }
.ostu-qv-product__price { font-size: 23px; }
}
.ostu-qv-product__title {
font-family: var(--font-display);
font-size: clamp(22px, 3vw, 28px);
line-height: 1.2;
color: var(--slate-dark);
margin: 0;
padding-right: 44px;
}
.ostu-qv-product__rating { font-size: 14px; }
.ostu-qv-product__rating .star-rating span::before { color: var(--rating, #b45309); }
.ostu-qv-product__price {
font-size: 26px;
font-weight: var(--fw-bold, 700);
color: var(--slate-dark);
font-variant-numeric: tabular-nums;
}
.ostu-qv-product__price del { color: var(--slate-500); font-size: 18px; font-weight: var(--fw-medium, 500); opacity: .7; margin-right: var(--space-8, 8px); }
.ostu-qv-product__price ins { text-decoration: none; color: var(--price-sale, #b91c1c); }
.ostu-qv-product__excerpt {
color: var(--slate-600);
font-size: 15px;
line-height: 1.7;
}
.ostu-qv-product__excerpt p { margin: 0 0 var(--space-8, 8px); }
.ostu-qv-product__excerpt :last-child { margin-bottom: 0; }
.ostu-qv-product__stock {
display: inline-flex;
align-items: center;
gap: var(--space-8, 8px);
font-size: 13.5px;
font-weight: var(--fw-semibold, 600);
color: var(--slate);
}
.ostu-qv-product__stock-dot { width: 9px; height: 9px; border-radius: var(--radius-circle, 50%); }
.ostu-qv-product__stock-dot--in { background: var(--green); box-shadow: 0 0 0 3px rgb(37 99 235 / .15); }
.ostu-qv-product__stock-dot--out { background: var(--danger); box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.ostu-qv-product__buy {
margin-top: auto;
padding-top: var(--space-12, 12px);
display: flex;
flex-direction: column;
gap: var(--space-12, 12px);
}
.ostu-qv-product__buy .button,
.ostu-qv-product__buy a.add_to_cart_button,
.ostu-qv-product__buy a.added_to_cart {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 52px;
padding: 0 28px;
background: var(--green);
color: #fff;
border: 0;
border-radius: var(--radius);
font-weight: var(--fw-bold, 700);
font-size: 15px;
box-shadow: var(--shadow-green);
transition: background .2s ease, transform .2s ease;
}
.ostu-qv-product__buy .button:hover { background: var(--green-dark); transform: translateY(-2px); }
.ostu-qv-product__buy .added_to_cart { background: var(--slate-dark); box-shadow: none; }
.ostu-qv-product__buy .btn-primary.ostu-qv-product__view { min-height: 52px; }
.ostu-qv-product__permalink {
font-size: 14px;
font-weight: var(--fw-semibold, 600);
color: var(--green-dark);
align-self: flex-start;
}
.ostu-qv-product__permalink:hover { color: var(--green); text-decoration: underline; }
body.ostu-qv-open { overflow: hidden; }
.ostu-rv-rail {
grid-column: 1 / -1;
margin-top: var(--space-48, 48px);
padding-top: var(--space-8, 8px);
}
.ostu-rv-rail__head { margin-bottom: 18px; }
.ostu-rv-rail__title {
font-size: clamp(22px, 3vw, 28px);
margin: 0;
}
.ostu-rv-rail ul.products { margin-top: var(--space-4, 4px); }
