.wcq-product-gallery,
.wcq-product-gallery * { box-sizing: border-box; }

.wcq-product-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    direction: rtl;
}

.wcq-gallery-main-wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 14px;
    overflow: hidden;
}

.wcq-gallery-main-viewport { width: 100%; height: 100%; overflow: hidden; }

.wcq-gallery-slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    direction: ltr;
    transform: translate3d(0, 0, 0);
    transition: transform .32s ease;
    will-change: transform;
}

.wcq-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.wcq-gallery-slide.is-full-width { padding: 0; }

.wcq-gallery-slide-image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.wcq-gallery-slide.is-full-width .wcq-gallery-slide-image { object-fit: cover; }

.wcq-gallery-badge {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #ffda4a;
    color: #202020;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.wcq-gallery-brand-logo {
    position: absolute;
    z-index: 4;
    top: 16px;
    left: 16px;
    width: 68px;
    height: 68px;
}

.wcq-gallery-brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.wcq-gallery-nav {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    direction: rtl;
}

.wcq-gallery-thumbs {
    display: flex;
    flex-flow: row nowrap;
    gap: 12px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    direction: rtl;
}

.wcq-gallery-thumbs::-webkit-scrollbar { display: none; }

.wcq-gallery-thumb {
    flex: 0 0 72px !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    margin: 0 !important;
    padding: 6px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    appearance: none;
    background: #fff !important;
    border: 1px solid #dedede !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    cursor: pointer;
}

.wcq-gallery-thumb.is-active { border: 2px solid #202020 !important; padding: 5px !important; }
.wcq-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }

.wcq-gallery-arrow {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    appearance: none;
    background: #f2f2f2 !important;
    border: 0 !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    color: #777 !important;
    cursor: pointer;
}

.wcq-gallery-arrow:hover { background: #e9e9e9 !important; color: #222 !important; }
.wcq-gallery-arrow:focus-visible, .wcq-gallery-thumb:focus-visible { outline: 2px solid #2271b1 !important; outline-offset: 2px; }
.wcq-gallery-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

@media (max-width: 767px) {
    .wcq-gallery-main-wrap { height: auto; aspect-ratio: 1 / 1; border-radius: 10px; }
    .wcq-gallery-slide { padding: 28px; }
    .wcq-gallery-nav { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 7px; margin-top: 9px; }
    .wcq-gallery-arrow { width: 38px !important; height: 38px !important; min-width: 38px !important; }
    .wcq-gallery-thumbs { gap: 8px; }
    .wcq-gallery-thumb { flex-basis: 62px !important; width: 62px !important; min-width: 62px !important; height: 62px !important; }
    .wcq-gallery-brand-logo { width: 54px; height: 54px; top: 12px; left: 12px; }
    .wcq-gallery-badge { top: 8px; right: 8px; font-size: 13px; }
}
