/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

::-moz-selection { /* Code for Firefox */
    color: #fff;
    background-color: #A3068A;
  }
  
  ::selection {
    color: #fff;
    background-color: #A3068A;
  }

/* ================================
   Image Comparison Slider
   ================================ */
.image-compare-wrapper {
    margin: 0 auto;
    display: block;
    width: 100%;
}

.image-compare {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    touch-action: pan-y pinch-zoom; /* Allow vertical scroll, prevent horizontal swipe */
    height: 360px;
}

/* Prevent Elementor swipe conflicts */
.image-compare.is-dragging {
    touch-action: none;
}

.image-compare img {
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* Right/After image - base layer, fills container */
.image-compare__right {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-compare__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Left/Before image - overlay that clips */
.image-compare__left {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.image-compare__left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/* Labels */
.image-compare__label {
    position: absolute;
    bottom: 16px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.image-compare__label--left {
    left: 16px;
}

.image-compare__label--right {
    right: 16px;
}

/* Handle - wider touch target */
.image-compare__handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 44px;
    height: 100%;
    transform: translateX(-50%);
    z-index: 10;
    cursor: ew-resize;
    touch-action: none; /* Critical: prevents browser handling of touch */
}

.image-compare__handle:focus {
    outline: none;
}

.image-compare__handle:focus .image-compare__handle-circle {
    box-shadow: 0 0 0 4px rgba(216, 46, 189, 0.5);
}

.image-compare__handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    background: #fff;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.image-compare__handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.image-compare__handle-circle svg {
    width: 16px;
    height: 16px;
    color: #333;
    flex-shrink: 0;
}

.image-compare__handle-circle:hover,
.image-compare.is-dragging .image-compare__handle-circle {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* Dynamic left image width calculation - matches container width for proper clipping */
.image-compare[data-initialized="true"] .image-compare__left img {
    width: var(--compare-width, 100%);
    min-width: var(--compare-width, 100%);
}


/* ================================
   Currency Switcher
   ================================ */
.currency-switcher {
    position: relative;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
}

.currency-switcher.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Dropdown Style */
.currency-switcher--dropdown .currency-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.currency-switcher--dropdown .currency-switcher__toggle:hover {
    border-color: #bbb;
    background: #fafafa;
}

.currency-switcher--dropdown .currency-switcher__arrow {
    transition: transform 0.2s ease;
    margin-left: 2px;
}

.currency-switcher--dropdown.is-open .currency-switcher__arrow {
    transform: rotate(180deg);
}

.currency-switcher--dropdown .currency-switcher__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    margin-top: 4px;
    padding: 6px 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    list-style: none;
    z-index: 1000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.currency-switcher--dropdown.is-open .currency-switcher__list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.currency-switcher--dropdown .currency-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.currency-switcher--dropdown .currency-switcher__item:hover {
    background: #f5f5f5;
}

.currency-switcher--dropdown .currency-switcher__item.is-active {
    background: #f0f0f0;
    font-weight: 600;
}

/* Buttons Style */
.currency-switcher--buttons {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
}

.currency-switcher--buttons .currency-switcher__btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    transition: all 0.2s ease;
}

.currency-switcher--buttons .currency-switcher__btn:hover {
    border-color: #D82EBD;
    color: #D82EBD;
}

.currency-switcher--buttons .currency-switcher__btn.is-active {
    background: #D82EBD;
    border-color: #D82EBD;
    color: #fff;
}

/* Flags Style */
.currency-switcher--flags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
}

.currency-switcher--flags .currency-switcher__flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.currency-switcher--flags .currency-switcher__flag:hover {
    transform: scale(1.1);
    border-color: #ddd;
}

.currency-switcher--flags .currency-switcher__flag.is-active {
    border-color: #D82EBD;
    box-shadow: 0 0 0 2px rgba(216, 46, 189, 0.3);
}

/* Common elements */
.currency-flag {
    font-size: 1.2em;
    line-height: 1;
}

.currency-code {
    font-weight: 600;
}

.currency-symbol {
    color: #888;
    font-weight: 400;
}

.currency-name {
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

/* Dark theme variant (add class .currency-switcher--dark) */
.currency-switcher--dark .currency-switcher__toggle,
.currency-switcher--dark .currency-switcher__list,
.currency-switcher--dark .currency-switcher__btn {
    background: #222;
    border-color: #444;
    color: #fff;
}

.currency-switcher--dark .currency-switcher__toggle:hover,
.currency-switcher--dark .currency-switcher__btn:hover {
    background: #333;
    border-color: #555;
}

.currency-switcher--dark .currency-switcher__item:hover {
    background: #333;
}

.currency-switcher--dark .currency-switcher__item.is-active {
    background: #444;
}

.currency-switcher--dark .currency-symbol {
    color: #aaa;
}

.currency-switcher--dark .currency-name {
    color: #999;
}


/* ================================
   Scroll to Top Button
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #D82EBD;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(216, 46, 189, 0.4);
}

.scroll-to-top:hover {
    background: #c0289f;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(216, 46, 189, 0.5);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }
}