﻿
.wm-real-variant-section {
    margin: 20px 0;
}


.wm-product-config-stack {
    margin: 20px 0;
}

.wm-product-config-stack .wm-real-variant-section,
.wm-product-config-stack .wm-static-option-section {
    margin: 0;
}

.wm-static-option-section .wm-real-variant-group:first-child,
.wm-product-config-variants .wm-real-variant-group:first-child {
    margin-top: 0;
}

.wm-static-option-section .wm-real-variant-group:last-child,
.wm-product-config-variants .wm-real-variant-group:last-child {
    margin-bottom: 0;
}

.wm-product-config-variants + .wm-static-option-section {
    margin-top: 20px;
}

.wm-product-config-stack .tooltip {
    background: #111;
    color: #fff;
}

.wm-product-config-stack .tooltip::before {
    background: #111;
}

.wm-readonly-variant-head {
    justify-content: flex-start;
}

.wm-readonly-option {
    cursor: default !important;
    user-select: text;
}

.wm-readonly-option:hover {
    border-color: #d8dce3 !important;
    box-shadow: none !important;
}

.wm-real-variant-group {
    margin: 14px 0;
}

.wm-real-variant-head {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 9px;
}

.wm-real-variant-head strong,
.wm-real-variant-head span {
    font-size: 13px;
}

.wm-real-variant-head span {
    color: #676b73;
}

.wm-real-variant-values {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.wm-real-variant-value {
    position: relative;
    overflow: visible;
    border: 1px solid #d8dce3;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.wm-real-variant-value:hover:not(.is-disabled) {
    border-color: #777;
}

/* Varyantsız renk değerleri de aynı swatch bileşenini kullanır fakat
   seçim düğmesi değildir; yalnız görsel temsil + tooltip sunar. */
.wm-nonvariant-color-value {
    cursor: default;
}

/* Tek değerli eksen seçim yaptırmaz; yalnız ürünün mevcut rengini/ölçüsünü
   çok varyantlı ürünlerle aynı görsel dilde gösterir. */
.wm-real-variant-value.is-single-value {
    cursor: default;
    /* Tek renkli üründe de tema tooltip'i çalışmalıdır. */
    pointer-events: auto;
}

.wm-real-variant-value.is-single-value:hover:not(.is-disabled) {
    border-color: #111;
}

.wm-real-variant-value.is-selected {
    border-color: #111;
    box-shadow: 0 0 0 1px #111 inset;
}

.wm-real-variant-value.is-disabled {
    opacity: .28;
    cursor: not-allowed;
}

.wm-real-variant-value.is-out-of-stock {
    opacity: .5;
}

.wm-real-variant-value.is-out-of-stock::after,
.wm-real-variant-value.is-disabled::after {
    content: "";
    position: absolute;
    z-index: 4;
    left: -18%;
    top: 50%;
    width: 136%;
    height: 1px;
    background: rgba(70,70,70,.72);
    transform: rotate(-45deg);
    transform-origin: center;
    pointer-events: none;
}

.wm-real-variant-value.is-selected.is-out-of-stock {
    opacity: .65;
}

.wm-real-variant-value.has-image {
    width: 78px;
    height: 78px;
    padding: 4px;
    border-radius: 2px;
}

.wm-real-variant-image {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #fff;
}

.wm-real-variant-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wm-real-variant-value.has-color {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 4px;
}

.wm-real-color {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.16);
}

.wm-real-variant-value.has-text {
    min-height: 40px;
    border-radius: 5px;
    padding: 7px 13px;
}

.wm-real-value-text {
    font-size: 13px;
    white-space: nowrap;
}

.wm-real-variant-value.is-tooltip-open .tooltip {
    opacity: .9;
    visibility: visible;
}

.wm-complete-series-section {
    overflow: hidden;
}

.wm-series-shell {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, #f7f7f5 0%, #ffffff 58%, #f3f3f1 100%);
}

.wm-series-shell::before {
    content: "";
    position: absolute;
    top: -95px;
    right: -75px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(0, 0, 0, .055);
    border-radius: 50%;
    pointer-events: none;
}

.wm-series-shell::after {
    content: "";
    position: absolute;
    top: -52px;
    right: -34px;
    width: 142px;
    height: 142px;
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 50%;
    pointer-events: none;
}

.wm-series-heading {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.wm-series-heading-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.wm-series-kicker {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--main);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.wm-series-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .9;
}

.wm-series-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(26px, 2.35vw, 36px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -.035em;
    color: var(--main);
}

.wm-series-navigation {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wm-series-navigation .wm-carousel-arrow-arrow {
    position: static;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(0, 0, 0, .11);
    border-radius: 50%;
    background: #fff;
    color: var(--main);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .055);
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.wm-series-navigation .wm-carousel-arrow-arrow:hover:not(.swiper-button-disabled) {
    border-color: var(--main);
    background: var(--main);
    color: #fff;
    transform: translateY(-1px);
}

.wm-series-navigation .wm-carousel-arrow-arrow.swiper-button-disabled {
    opacity: .35;
    cursor: default;
}

.wm-series-swiper {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.wm-series-slide {
    height: auto;
}

.wm-series-item {
    position: relative;
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 14px;
    min-height: 122px;
    padding: 13px 13px 13px 11px;
    border: 1px solid rgba(0, 0, 0, .105);
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .035);
    transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.wm-series-item:hover,
.wm-series-item:focus-within {
    border-color: rgba(0, 0, 0, .24);
    box-shadow: 0 15px 34px rgba(18, 23, 31, .085);
    transform: translateY(-2px);
}

.wm-series-media {
    display: block;
    width: 94px;
    height: 94px;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0ee;
}

.wm-series-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .45s ease;
}

.wm-series-item:hover .wm-series-media img,
.wm-series-item:focus-within .wm-series-media img {
    transform: scale(1.035);
}

.wm-series-copy {
    min-width: 0;
}

.wm-series-product-name {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--main);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 650;
}

.wm-series-variant-name {
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    line-height: 16px;
    color: #747a82;
}

.wm-series-variant-name.is-empty {
    display: none;
}

.wm-series-price {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: var(--main);
}

.wm-series-price:empty {
    display: none;
}

.wm-series-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    background: var(--main);
    color: #fff;
    font-size: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .11);
    transition: .22s ease;
}

.wm-series-item:hover .wm-series-arrow,
.wm-series-item:focus-within .wm-series-arrow {
    transform: rotate(45deg);
}

@media (max-width: 767px) {
    .wm-series-shell {
        padding: 18px 15px 16px;
        border-radius: 18px;
    }

    .wm-series-shell::before,
    .wm-series-shell::after {
        display: none;
    }

    .wm-series-heading {
        align-items: center;
        margin-bottom: 15px;
    }

    .wm-series-heading-copy {
        display: block;
    }

    .wm-series-kicker {
        min-height: 31px;
        padding: 8px 11px;
        font-size: 10px;
    }

    .wm-series-title {
        margin-top: 9px;
        font-size: 25px;
    }

    .wm-series-navigation {
        align-self: flex-start;
    }

    .wm-series-navigation .wm-carousel-arrow-arrow {
        width: 36px;
        height: 36px;
    }

    .wm-series-item {
        grid-template-columns: 80px minmax(0, 1fr) 30px;
        min-height: 106px;
        gap: 11px;
        padding: 10px;
        border-radius: 14px;
    }

    .wm-series-media {
        width: 80px;
        height: 80px;
        border-radius: 10px;
    }

    .wm-series-product-name {
        font-size: 15px;
    }

    .wm-series-arrow {
        width: 30px;
        height: 30px;
    }
}

.wm-compare-at-price {
    text-decoration: line-through;
    color: #9298a1;
    margin-left: 10px;
}

/* Product gallery: keep wim' thumbs/main structure but let the active
   image define the media height. JS writes --wm-product-gallery-height from
   the active image's natural ratio; CSS only supplies safe fallbacks. */
.wm-ui-main-product .thumbs-slider {
    align-items: flex-start;
    --wm-product-gallery-height: auto;
}

.wm-ui-main-product .wm-ui-product-media-main {
    height: var(--wm-product-gallery-height, auto);
    min-height: 0;
    max-height: none;
    overflow: hidden !important;
    isolation: isolate;
    background: #f7f7f7;
    border-radius: 10px;
    transition: height .28s ease;
}

.wm-ui-main-product .wm-ui-product-media-main .swiper-wrapper,
.wm-ui-main-product .wm-ui-product-media-main .swiper-slide,
.wm-ui-main-product .wm-ui-product-media-main .pswp-item {
    height: 100%;
}

.wm-ui-main-product .wm-ui-product-media-main .swiper-wrapper {
    overflow: visible;
}

.wm-ui-main-product .wm-ui-product-media-main .swiper-slide {
    overflow: hidden !important;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.wm-ui-main-product .wm-ui-product-media-main .pswp-item {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(10px, 1.5vw, 18px);
}

.wm-ui-main-product .wm-ui-product-media-main .pswp-item img,
.wm-product-gallery-page .pswp-item img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.wm-ui-main-product .wm-ui-product-media-thumbs {
    flex: 0 0 92px;
    width: 92px;
    height: var(--wm-product-gallery-height, auto);
    max-height: var(--wm-product-gallery-height, none);
    transition: height .28s ease;
}

.wm-ui-main-product .wm-ui-product-media-thumbs .swiper-slide {
    width: 92px;
    height: 92px;
}

.wm-ui-main-product .wm-ui-product-media-thumbs .swiper-slide .item {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

.wm-ui-main-product .wm-ui-product-media-thumbs .swiper-slide .item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 3px;
}

/* PhotoSwipe should always preserve the real image ratio. */
.pswp {
    --pswp-bg: #fff;
    --pswp-icon-color: #222;
    --pswp-icon-color-secondary: #222;
    --pswp-icon-stroke-color: #222;
    --pswp-icon-stroke-width: 2px;
}

.pswp__icn {
    fill: #222 !important;
    color: #222 !important;
}

.pswp__button--arrow .pswp__icn,
.pswp__button--arrow .pswp__icn * {
    color: #222 !important;
    stroke: #222 !important;
}

.pswp__icn-shadow {
    stroke: #fff !important;
    stroke-width: 4px !important;
}

.pswp__counter {
    color: #222 !important;
    text-shadow: 0 1px 2px #fff !important;
}

.pswp--has_mouse .pswp__button--arrow,
.pswp:not(.pswp--touch) .pswp__button--arrow {
    visibility: visible;
}

@media (max-width: 1149px) {
    .wm-ui-main-product .thumbs-slider {
        flex-direction: column !important;
        align-items: stretch;
    }

    .wm-ui-main-product .thumbs-slider > div {
        width: 100%;
    }

    .wm-ui-main-product .wm-ui-product-media-main {
        order: 0;
        width: 100%;
    }

    .wm-ui-main-product .wm-ui-product-media-thumbs {
        order: 1;
        width: 100%;
        height: 107px;
        max-height: 107px;
        flex-basis: auto;
    }

    .wm-ui-main-product .wm-ui-product-media-thumbs .swiper-slide {
        width: 92px;
        height: 92px;
    }
}

@media (max-width: 767px) {
    .wm-real-variant-value.has-image {
        width: 62px;
        height: 62px;
    }

    .wm-real-variant-values {
        gap: 7px;
    }

    .wm-ui-main-product .wm-ui-product-media-main .pswp-item {
        padding: 10px;
    }

    .wm-ui-main-product .wm-ui-product-media-thumbs {
        height: 88px;
        max-height: 88px;
    }

    .wm-ui-main-product .wm-ui-product-media-thumbs .swiper-slide {
        width: 78px;
        height: 78px;
    }
}
