/**
 * Single-product widgets styles.
 */

/* Product widgets always stack as full rows when placed inside an Elementor
   flex container, instead of sitting side by side. */
[class*="elementor-widget-bodeteka_product_"] {
    flex-basis: 100% !important;
    align-self: start !important;
    height: auto !important;
    min-height: 0 !important;
    max-width: 100%;
}

.lbd-pp-empty {
    padding: 18px;
    border: 1px dashed #b08a56;
    border-radius: 6px;
    background-color: rgba(176, 138, 86, 0.08);
    color: #555;
    font-size: 14px;
}

.lbd-pp-title { margin: 0; }
.lbd-pp-description { max-width: 900px; line-height: 1.6; }
.lbd-pp-description p:first-child { margin-top: 0; }
.lbd-pp-price { font-size: 24px; font-weight: 700; }
.lbd-pp-price del { opacity: 0.6; }
.lbd-pp-price ins { text-decoration: none; }

.lbd-pp-stars {
    color: #f5a623;
    font-size: 18px;
    letter-spacing: 2px;
}

.lbd-pp-rating-count { opacity: 0.7; font-size: 0.9em; }

.lbd-pp-stock.in-stock { color: #1a7f37; }
.lbd-pp-stock.out-of-stock { color: #c0392b; }

.lbd-pp-meta { display: block; clear: both; font-size: 14px; opacity: 0.85; }
.lbd-pp-meta > * + * { margin-left: 12px; }

.lbd-pp-images { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.lbd-pp-align-left .lbd-pp-images { margin-left: 0; margin-right: auto; }
.lbd-pp-align-center .lbd-pp-images { margin-left: auto; margin-right: auto; }
.lbd-pp-align-right .lbd-pp-images { margin-left: auto; margin-right: 0; }

.lbd-pp-main-img {
    display: block;
    width: 100%;
    height: 460px;
    object-fit: contain;
    background-color: #f7f7f7;
    border-radius: 6px;
}

.lbd-pp-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lbd-pp-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f7f7f7;
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
}

.lbd-pp-thumb img {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: cover;
}

.lbd-pp-thumb.is-active { border-color: #b08a56; }

.lbd-pp-cats { list-style: none; margin: 0; padding: 0; }
.lbd-pp-cats li { padding: 4px 0; }
.lbd-pp-cats a { text-decoration: none; }
.lbd-pp-cat-count { opacity: 0.6; font-size: 0.9em; }

.lbd-pp-related .products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.lbd-pp-related .products.columns-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.lbd-pp-related .products.columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lbd-pp-related .products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lbd-pp-related .products.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lbd-pp-related .products.columns-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.lbd-pp-related .product img { width: 100%; height: auto; display: block; }
.lbd-pp-related .product .woocommerce-loop-product__title { font-size: 16px; margin: 8px 0; }

@media (max-width: 700px) {
    .lbd-pp-related .products,
    .lbd-pp-related .products[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lbd-pp-main-img { height: 320px; }
}
