.w2cpt-product-info { margin-top: 1.5em; }
.w2cpt-product-info p { margin: .35em 0; }
.w2cpt-product-info h3 { margin: 1.4em 0 .5em; font-size: 1.1em; }
.w2cpt-price ins { background: none; color: #b12704; font-weight: 600; text-decoration: none; }
.w2cpt-price del { opacity: .55; margin-right: .35em; }
.w2cpt-stock.w2cpt-instock { color: #2a8c2a; }
.w2cpt-stock.w2cpt-outofstock { color: #b12704; }
.w2cpt-attributes table,
.w2cpt-variations table { border-collapse: collapse; width: 100%; margin-top: .5em; }
.w2cpt-attributes th,
.w2cpt-attributes td,
.w2cpt-variations th,
.w2cpt-variations td { border: 1px solid #ddd; padding: .5em .75em; text-align: left; vertical-align: top; }
.w2cpt-attributes th,
.w2cpt-variations th { background: #f6f7f7; font-weight: 600; }

/* Gallery: grid fallback */
.w2cpt-grid { display: flex; flex-wrap: wrap; gap: .5em; }
.w2cpt-grid .w2cpt-slide { display: inline-block; }
.w2cpt-grid .w2cpt-gallery-img { max-width: 140px; height: auto; border: 1px solid #eee; }

/* Gallery: carousel */
.w2cpt-carousel { position: relative; }
.w2cpt-track {
    display: flex;
    gap: .5em;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: thin;
}
.w2cpt-track::-webkit-scrollbar { height: 6px; }
.w2cpt-track::-webkit-scrollbar-thumb { background: rgba(0,0,0,.25); border-radius: 3px; }
.w2cpt-carousel .w2cpt-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    cursor: zoom-in;
    display: block;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.w2cpt-carousel .w2cpt-slide:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.w2cpt-carousel .w2cpt-gallery-img {
    display: block;
    width: 200px;
    height: 200px;
    object-fit: cover;
}
.w2cpt-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background .15s ease, opacity .15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.w2cpt-nav:hover { background: rgba(0,0,0,.85); }
.w2cpt-prev { left: 4px; }
.w2cpt-next { right: 4px; }

/* Lightbox */
body.w2cpt-lb-open { overflow: hidden; }
.w2cpt-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: w2cptFadeIn .18s ease;
}
@keyframes w2cptFadeIn { from { opacity: 0; } to { opacity: 1; } }
.w2cpt-lb-figure {
    margin: 0;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75em;
}
.w2cpt-lb-img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    background: #111;
}
.w2cpt-lb-caption {
    color: #ddd;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
}
.w2cpt-lb-close,
.w2cpt-lb-prev,
.w2cpt-lb-next {
    position: absolute;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.w2cpt-lb-close:hover,
.w2cpt-lb-prev:hover,
.w2cpt-lb-next:hover { background: rgba(255,255,255,.25); }
.w2cpt-lb-close { top: 16px; right: 16px; }
.w2cpt-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.w2cpt-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.w2cpt-lb-count {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    background: rgba(0,0,0,.5);
    padding: 4px 10px;
    border-radius: 12px;
}
@media (max-width: 600px) {
    .w2cpt-lb-close { width: 40px; height: 40px; font-size: 22px; top: 8px; right: 8px; }
    .w2cpt-lb-prev,
    .w2cpt-lb-next { width: 40px; height: 40px; font-size: 22px; }
    .w2cpt-carousel .w2cpt-gallery-img { width: 140px; height: 140px; }
}
