.lp-single-product {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.lp-product-gallery {
    flex: 1;
    min-width: 300px;
}

.lp-main-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.lp-main-image:hover {
    transform: scale(1.02);
}

.lp-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.lp-gallery-thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.lp-gallery-thumb:hover {
    border-color: #007cba;
    opacity: 0.8;
}

.lp-product-details {
    flex: 1;
    min-width: 300px;
}

.lp-product-details h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.lp-product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #424245;
    margin-bottom: 30px;
}

.lp-product-colors h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.lp-colors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.lp-color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Color swatch (solid color block) */
.lp-color-swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

/* Image wrapper — all border/radius/shadow controlled by Elementor widget */
.lp-color-image-wrapper {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Inner img — NO default border/outline/shadow, Elementor handles wrapper */
.lp-color-image-wrapper img.lp-color-image,
.lp-color-image {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    object-fit: contain;
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0 !important;
}

.lp-color-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #86868b;
}

@media (max-width: 768px) {
    .lp-single-product {
        flex-direction: column;
    }
}

/* Elementor Widget Styles */
.elementor-widget-lp_product_title .lp-product-title {
    margin: 0;
}

.elementor-widget-lp_product_description .lp-product-description {
    margin: 0;
}

.elementor-widget-lp_product_colors .lp-colors-grid {
    margin: 0;
}

.elementor-widget-lp_product_images .lp-product-gallery {
    margin: 0;
}

/* ── Overlay Button Base (Kartela + Lang Switcher trigger) ──────────── */
.lp-overlay-wrap .color-overlay-link,
.lp-lang-trigger {
    display: inline-block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    vertical-align: middle;
}

.lp-overlay-wrap .ue-color-overlay,
.lp-lang-switcher .ue-color-overlay {
    display: block;
    position: absolute;
    pointer-events: none;
}

.lp-overlay-wrap .ue-btn-txt,
.lp-lang-trigger .ue-btn-txt {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
}

/* Origin corners — kartela */
.lp-kartela-wrap.lp-overlay-tl .ue-color-overlay { top: 0;    left:  0; }
.lp-kartela-wrap.lp-overlay-tr .ue-color-overlay { top: 0;    right: 0; }
.lp-kartela-wrap.lp-overlay-bl .ue-color-overlay { bottom: 0; left:  0; }
.lp-kartela-wrap.lp-overlay-br .ue-color-overlay { bottom: 0; right: 0; }

/* Origin corners — lang trigger */
.lp-lang-switcher.lp-overlay-tl .ue-color-overlay { top: 0;    left:  0; }
.lp-lang-switcher.lp-overlay-tr .ue-color-overlay { top: 0;    right: 0; }
.lp-lang-switcher.lp-overlay-bl .ue-color-overlay { bottom: 0; left:  0; }
.lp-lang-switcher.lp-overlay-br .ue-color-overlay { bottom: 0; right: 0; }

/* Kartela wrapper */
.lp-kartela-wrap {
    display: flex;
    margin-top: 12px;
}

.lp-kartela-btn .ue-btn-txt {
    justify-content: center;
}

/* ── Language Switcher ───────────────────────────────────────────────── */
.lp-lang-switcher {
    position: relative;
    display: inline-block;
}

.lp-lang-trigger {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
}

.lp-lang-dropdown {
    position: absolute;
    top: 100%;
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.lp-lang-dropdown.lp-dropdown-left   { left: 0; }
.lp-lang-dropdown.lp-dropdown-right  { right: 0; }
.lp-lang-dropdown.lp-dropdown-center { left: 50%; transform: translateX(-50%); }

.lp-lang-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lp-lang-dropdown li {
    margin: 0;
}

.lp-lang-dropdown a {
    display: flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

/* Flag */
.lp-lang-flag-wrap {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lp-lang-flag-wrap img,
.lp-lang-flag {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Arrow rotate animation */
.lp-lang-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s;
}

.lp-lang-arrow.lp-arrow-open {
    transform: rotate(180deg);
}

/* ── Products Grid Widget ────────────────────────────────────────────── */
.lp-products-grid-wrap {
    width: 100%;
}

.lp-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 32px;
}

.lp-product-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 300ms ease, box-shadow 300ms ease;
}

.lp-card-image-link {
    display: block;
    text-decoration: none;
    flex-shrink: 0;
}

.lp-card-image-wrap {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.lp-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}

.lp-card-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: opacity 300ms ease;
    pointer-events: none;
}

.lp-product-card:hover .lp-card-image-overlay {
    opacity: 1;
}

.lp-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #aaa;
    font-size: 3rem;
}

.lp-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lp-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 8px;
    transition: color 300ms ease;
    line-height: 1.3;
}

.lp-card-desc {
    font-size: 0.9rem;
    color: #6e6e73;
    line-height: 1.5;
    margin: 0 0 16px;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lp-card-btn-wrap {
    display: flex;
    margin-top: auto;
    justify-content: center;
}

/* Card detail button — same overlay pattern as kartela/lang buttons */
.lp-card-btn {
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    background-color: #1d1d1f;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    width: 100%;
    transition-duration: 400ms;
}

.lp-card-btn .ue-color-overlay {
    display: block;
    position: absolute;
    pointer-events: none;
}

.lp-card-btn .lp-btn-txt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Overlay corners for card btn */
.lp-card-btn.lp-overlay-tl .ue-color-overlay { top: 0;    left:  0; }
.lp-card-btn.lp-overlay-tr .ue-color-overlay { top: 0;    right: 0; }
.lp-card-btn.lp-overlay-bl .ue-color-overlay { bottom: 0; left:  0; }
.lp-card-btn.lp-overlay-br .ue-color-overlay { bottom: 0; right: 0; }

.lp-card-hidden {
    display: none !important;
}

.lp-products-grid-empty {
    padding: 20px;
    color: #999;
    font-style: italic;
}

.lp-load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.lp-load-more-btn {
    cursor: pointer;
    background-color: #1d1d1f;
    color: #ffffff;
    border: none;
    padding: 14px 40px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background-color 300ms ease, color 300ms ease;
}

@media (max-width: 767px) {
    .lp-products-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .lp-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
