/* =========================================================
   WAHHID PRODUCT — Elementor 385 native clone
   ========================================================= */

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

.wf-product {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #111;
}

.wf-product__main {
    display: grid;
    grid-template-columns: minmax(0, 60%) minmax(0, 40%);
    align-items: start;
    width: 100%;
}

.wf-product__media,
.wf-product__info {
    min-width: 0;
}


/* =========================================================
   DESKTOP GALLERY
   ========================================================= */

.wf-product__desktop-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
}

.wf-product__desktop-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    background: #fff;
}

.wf-product__desktop-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* =========================================================
   INFO RIGHT
   ========================================================= */

.wf-product__info {
    padding: 39px 7.2vw 60px 36px;
}

.wf-product__sticky {
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: 570px;
}

.wf-product__breadcrumb {
    margin: 0 0 86px;
    color: #858585;
    font-size: 12px;
    line-height: 1.3;
    text-transform: lowercase;
}

.wf-product__breadcrumb a {
    color: inherit !important;
    text-decoration: none !important;
}

.wf-product__title {
    margin: 0;
    padding: 0;
    color: #111;
    font-size: 28px;
    font-weight: 500 !important;
    line-height: 1.15;
}

.wf-product__price {
    margin: 92px 0 105px;
    color: #111;
    font-size: 15px;
    line-height: 1.2;
}

.wf-product__price .amount,
.wf-product__price bdi {
    font-size: inherit !important;
    color: inherit !important;
}


/* =========================================================
   VARIATIONS
   ========================================================= */

.wf-product__buy form.cart,
.wf-product__buy form.variations_form {
    width: 100%;
    margin: 0 !important;
}

.wf-product__buy table.variations {
    display: block;
    width: 100%;
    margin: 0 0 22px !important;
}

.wf-product__buy table.variations tbody,
.wf-product__buy table.variations tr,
.wf-product__buy table.variations th,
.wf-product__buy table.variations td {
    display: block;
    width: 100%;
}

.wf-product__buy table.variations tr {
    margin: 0 0 17px;
}

.wf-product__buy table.variations th {
    margin: 0 0 7px;
    padding: 0 !important;
    color: #111;
    text-align: left;
}

.wf-product__buy table.variations th label {
    color: #111;
    font-size: 12px;
    font-weight: 500 !important;
    text-transform: lowercase;
}

.wf-product__buy table.variations td {
    padding: 0 !important;
}

.wf-product__buy select {
    min-height: 32px;
}

.wf-product__buy .reset_variations {
    display: none !important;
}


/* TH variation swatches */

.wf-product__buy .thwvsf-wrapper-ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.wf-product__buy .thwvsf-wrapper-item-li {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;

    margin: 0 !important;
    padding: 0 7px !important;

    border: 1px solid #d5dce1 !important;
    border-radius: 0 !important;
    background: #fff !important;

    color: #646464 !important;
    box-shadow: none !important;

    transform: none !important;
}

.wf-product__buy
.thwvsf-wrapper-item-li.attribute_pa_cvet {
    min-height: 28px !important;
    padding: 0 8px !important;
    border: 3px solid #111 !important;
    color: #111 !important;
}

.wf-product__buy .thwvsf-item-span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    padding: 0 !important;

    font-size: 12px !important;
    line-height: 1 !important;
}

.wf-product__buy
.thwvsf-checkbox.thwvsf-selected {
    border-color: #111 !important;
    border-width: 2px !important;
}


/* =========================================================
   QUANTITY + CART BUTTON
   ========================================================= */

.wf-product__buy .single-quantity-label {
    display: block !important;
    margin: 3px 0 17px !important;
    color: #111;
    font-size: 12px;
    line-height: 1.2;
    text-transform: lowercase;
}

.wf-product__buy .quantity {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 14px !important;
}

.wf-product__buy .quantity .qty {
    display: block;
    width: 100% !important;
    height: 33px !important;
    min-height: 33px !important;

    margin: 0 !important;
    padding: 0 12px !important;

    border: 1px solid #9a9a9a !important;
    border-radius: 0 !important;

    background: #fff !important;
    color: #111 !important;

    text-align: center;
    font-size: 13px !important;

    box-shadow: none !important;
    appearance: textfield;
}

.wf-product__buy
.single_add_to_cart_button {
    float: none !important;
    display: block !important;

    width: 100% !important;
    height: 37px !important;
    min-height: 37px !important;

    margin: 0 !important;
    padding: 0 15px !important;

    border: 0 !important;
    border-radius: 1px !important;

    background: #929292 !important;
    color: #fff !important;

    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 37px !important;
    text-align: center;
    text-transform: uppercase;

    box-shadow: none !important;
}

.wf-product__buy
.single_add_to_cart_button:hover {
    background: #777 !important;
    color: #fff !important;
}

.wf-product__buy
.single_add_to_cart_button.disabled,
.wf-product__buy
.single_add_to_cart_button:disabled {
    opacity: 1 !important;
    background: #929292 !important;
}


/* Remove duplicate variation price */

.wf-product__buy
.single_variation
.woocommerce-variation-price {
    display: none !important;
}

.wf-product__buy
.woocommerce-variation-description {
    display: none !important;
}


/* =========================================================
   WISHLIST
   ========================================================= */

.wf-product__wishlist-row {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 62px 0 41px;
}

.wf-product__wishlist {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 24px;
    height: 24px;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;

    color: #111;
    cursor: pointer;
}

.wf-product__wishlist svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

.wf-product__wishlist.is-added svg {
    fill: #111;
}

.wf-product__wishlist.is-loading {
    opacity: .4;
    pointer-events: none;
}


/* =========================================================
   ACCORDION
   ========================================================= */

.wf-product__accordions {
    width: 100%;
}

.wf-product__accordion {
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #d7dde1;
}

.wf-product__accordion summary {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 45px;

    padding: 0 4px;

    color: #111;

    font-size: 12px;
    line-height: 1;

    cursor: pointer;
    list-style: none;

    text-transform: lowercase;
}

.wf-product__accordion summary::-webkit-details-marker {
    display: none;
}

.wf-product__accordion-icon {
    position: relative;
    display: block;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
}

.wf-product__accordion-icon::before,
.wf-product__accordion-icon::after {
    content: '';

    position: absolute;
    top: 50%;
    left: 50%;

    width: 9px;
    height: 1px;

    background: #111;

    transform: translate(-50%, -50%);
}

.wf-product__accordion-icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.wf-product__accordion[open]
.wf-product__accordion-icon::after {
    display: none;
}

.wf-product__accordion-content {
    padding: 0 5px 14px;
    color: #3e3e3e;
    font-size: 12px;
    line-height: 1.55;
}

.wf-product__accordion-content p {
    margin: 0 0 13px;
}

.wf-product__accordion-content p:last-child {
    margin-bottom: 0;
}


/* Attributes */

.wf-product__attributes
.shop_attributes {
    width: 100%;
    margin: 0;
    border: 0 !important;
}

.wf-product__attributes
.shop_attributes tr,
.wf-product__attributes
.shop_attributes th,
.wf-product__attributes
.shop_attributes td {
    border: 0 !important;
    background: transparent !important;
}

.wf-product__attributes
.shop_attributes tr {
    display: grid;
    grid-template-columns: 35% 65%;
    padding: 6px 0;
}

.wf-product__attributes
.shop_attributes th,
.wf-product__attributes
.shop_attributes td {
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
}


/* =========================================================
   SOCIALS
   ========================================================= */

.wf-product__socials {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 84px 0 0;
    padding: 0 4px;
}

.wf-product__socials a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    color: #111 !important;
    text-decoration: none !important;
}

.wf-product__socials svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   RECENTLY VIEWED
   ========================================================= */

.wf-product-viewed {
    width: 100%;
    padding: 44px 4px 70px;
}

.wf-product-viewed h2 {
    margin: 0 0 38px;

    color: #111;

    font-size: 16px;
    font-weight: 500 !important;
    line-height: 1;

    text-transform: uppercase;
}

.wf-product-viewed__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
}

.wf-viewed-card {
    min-width: 0;
}

.wf-viewed-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    text-decoration: none !important;
}

.wf-viewed-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wf-viewed-card__title {
    display: block;

    margin: 10px 0 4px;

    color: #111 !important;

    font-size: 14px;
    line-height: 1.2;

    text-decoration: none !important;
}

.wf-viewed-card__price {
    color: #111;
    font-size: 13px;
}


/* =========================================================
   MOBILE
   ========================================================= */

.wf-product__mobile-intro,
.wf-product__mobile-gallery {
    display: none;
}


@media (max-width: 767px) {

    .wf-product {
        width: 100%;
        padding: 0 4px;
    }

    .wf-product__main {
        display: block;
    }


    /* Hide desktop-only */

    .wf-product__desktop-intro,
    .wf-product__desktop-gallery {
        display: none !important;
    }


    /* Mobile intro */

    .wf-product__mobile-intro,
    .wf-product__mobile-gallery {
        display: block;
    }

    .wf-product__mobile-intro
    .wf-product__breadcrumb {
        margin: 4px 3px 7px;

        font-size: 14px;
        line-height: 1.2;
    }

    .wf-product__mobile-intro
    .wf-product__title {
        margin: 0 3px 5px;

        font-size: 21px;
        line-height: 1.15;
    }

    .wf-product__mobile-intro
    .wf-product__price {
        margin: 0 3px 31px;

        font-size: 17px;
        line-height: 1.2;
    }


    /* Mobile gallery */

    .wf-product__mobile-main {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        min-height: 545px;

        overflow: hidden;

        background: #fff;
    }

    .wf-product__mobile-main img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 545px;

        object-fit: contain;
    }

    .wf-product__thumbs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 1px;

        width: 100%;
        margin: 0;
    }

    .wf-product__thumb {
        display: block;

        width: 100%;
        aspect-ratio: 1 / .58;

        margin: 0;
        padding: 0;

        overflow: hidden;

        border: 0;
        background: #efefef;

        opacity: .38;

        cursor: pointer;
    }

    .wf-product__thumb.is-active {
        opacity: 1;
    }

    .wf-product__thumb img {
        display: block;
        width: 100%;
        height: 100%;

        object-fit: cover;
    }


    /* Info after mobile gallery */

    .wf-product__info {
        width: 100%;
        padding: 41px 0 0;
    }

    .wf-product__sticky {
        position: static;
        width: 100%;
        max-width: none;
    }


    /* Variations */

    .wf-product__buy table.variations {
        margin: 0 0 20px !important;
    }

    .wf-product__buy table.variations tr {
        margin-bottom: 23px;
    }

    .wf-product__buy table.variations th {
        margin-bottom: 10px;
    }

    .wf-product__buy table.variations th label {
        font-size: 14px;
    }

    .wf-product__buy
    .thwvsf-wrapper-item-li {
        min-width: 31px !important;
        height: 31px !important;
        min-height: 31px !important;

        padding: 0 8px !important;
    }

    .wf-product__buy
    .thwvsf-wrapper-item-li.attribute_pa_cvet {
        min-height: 35px !important;
        border-width: 3px !important;
    }

    .wf-product__buy
    .thwvsf-item-span {
        font-size: 14px !important;
    }


    /* Quantity */

    .wf-product__buy .single-quantity-label {
        margin: 0 0 21px !important;
        font-size: 14px;
    }

    .wf-product__buy .quantity {
        width: 111px !important;
        margin: 0 0 13px !important;
    }

    .wf-product__buy .quantity .qty {
        width: 111px !important;
        height: 44px !important;
        min-height: 44px !important;

        font-size: 16px !important;
    }

    .wf-product__buy
    .woocommerce-variation-add-to-cart,
    .wf-product__buy
    form.cart:not(.variations_form) {
        position: relative;
    }

    .wf-product__buy
    .single_add_to_cart_button {
        width: calc(100% - 150px) !important;
        height: 49px !important;
        min-height: 49px !important;

        margin-left: 0 !important;

        font-size: 13px !important;
        line-height: 49px !important;
    }


    /*
     * На SHARQ оригинале:
     * quantity сверху, кнопка под ней,
     * сердце справа от кнопки.
     */
    .wf-product__wishlist-row {
        position: relative;

        justify-content: flex-start;

        height: 0;

        margin: 0;
    }

    .wf-product__wishlist {
        position: absolute;

        right: 115px;
        bottom: 19px;

        width: 28px;
        height: 28px;
    }

    .wf-product__wishlist svg {
        width: 19px;
        height: 19px;
    }


    /* Accordion */

    .wf-product__accordions {
        margin-top: 48px;
    }

    .wf-product__accordion summary {
        min-height: 47px;

        padding: 0 8px;

        font-size: 15px;
    }

    .wf-product__accordion-content {
        padding: 0 10px 17px;

        font-size: 16px;
        line-height: 1.5;
    }

    .wf-product__accordion-content p {
        margin-bottom: 16px;
    }


    /* Socials */

    .wf-product__socials {
        gap: 13px;

        margin: 15px 6px 0;
        padding: 0;
    }

    .wf-product__socials a {
        width: 22px;
        height: 22px;
    }

    .wf-product__socials svg {
        width: 21px;
        height: 21px;
    }


    /* Recently viewed */

    .wf-product-viewed {
        padding: 72px 5px 50px;
    }

    .wf-product-viewed h2 {
        margin-bottom: 49px;

        font-size: 20px;
    }

    .wf-product-viewed__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .wf-viewed-card__title {
        font-size: 14px;
    }

}


/* Tablet behaves like mobile layout */

@media (
    min-width: 768px
) and (
    max-width: 1024px
) {

    .wf-product__main {
        grid-template-columns: 55% 45%;
    }

    .wf-product__info {
        padding-right: 30px;
    }

}


/* =========================================================
   PRODUCT — УБРАТЬ ВСЕ РАМКИ У ЦВЕТА / РАЗМЕРА
   ========================================================= */

.wf-product__buy table.variations,
.wf-product__buy table.variations tbody,
.wf-product__buy table.variations tr,
.wf-product__buy table.variations th,
.wf-product__buy table.variations td,
.wf-product__buy table.variations .label,
.wf-product__buy table.variations .value {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Контейнеры вариантов */

.wf-product__buy .thwvsf-wrapper-ul,
.wf-product__buy .variable-items-wrapper,
.wf-product__buy .button-variable-items-wrapper {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Сами цвет / размеры */

.wf-product__buy .thwvsf-wrapper-item-li,
.wf-product__buy .variable-item,
.wf-product__buy .button-variable-item,
.wf-product__buy .thwvsf-wrapper-item-li.attribute_pa_cvet,
.wf-product__buy .thwvsf-wrapper-item-li.attribute_pa_size {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Внутренний текст */

.wf-product__buy .thwvsf-item-span,
.wf-product__buy .variable-item-span,
.wf-product__buy .variable-item-contents {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Выбранный вариант — тоже без рамки */

.wf-product__buy .thwvsf-selected,
.wf-product__buy .selected,
.wf-product__buy .variable-item.selected,
.wf-product__buy .thwvsf-checkbox.thwvsf-selected {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}


/* Выбранный вариант просто немного выделяем текстом */

.wf-product__buy .thwvsf-selected .thwvsf-item-span,
.wf-product__buy .variable-item.selected .variable-item-span {
    color: #000 !important;
    font-weight: 700 !important;
}


/* =========================================================
   PRODUCT ADD TO CART — STOCK STATE
   ========================================================= */

/* По умолчанию / нет вариации / нет в наличии */
.wf-product__buy .single_add_to_cart_button,
.wf-product__buy .single_add_to_cart_button.disabled,
.wf-product__buy .single_add_to_cart_button:disabled,
.wf-product__buy .single_add_to_cart_button.wf-out-of-stock {
    background: #929292 !important;
    color: #fff !important;
    cursor: default !important;
    opacity: 1 !important;
}


/* Выбрана существующая вариация и она есть в наличии */
.wf-product__buy .single_add_to_cart_button.wf-in-stock:not(:disabled) {
    background: #000 !important;
    color: #fff !important;
    cursor: pointer !important;
    opacity: 1 !important;
}


/* Hover только у реально активной кнопки */
.wf-product__buy .single_add_to_cart_button.wf-in-stock:not(:disabled):hover {
    background: #333 !important;
    color: #fff !important;
}


/* =========================================================
   WAHHID MOBILE GALLERY — SWIPE / NO CROP
   ========================================================= */
@media (max-width: 767px) {

    .wf-product__mobile-main {
        touch-action: pan-y;
        user-select: none;
        -webkit-user-select: none;
        background: #fff;
    }

    .wf-product__mobile-main img {
        display: block;
        width: 100%;
        height: 545px;
        max-height: none;

        object-fit: contain;
        object-position: center;

        -webkit-user-drag: none;
        user-select: none;
    }

    .wf-product__thumb {
        background: #fff;
    }

    .wf-product__thumb img {
        width: 100%;
        height: 100%;

        object-fit: contain !important;
        object-position: center;
    }
}

/* WAHHID — thumbnails without white stripes */
@media (max-width: 767px) {

    .wf-product__thumb {
        background: #efefef;
    }

    .wf-product__thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: center;
    }

}

/* WAHHID — mobile thumbs: less crop + no overflow */
@media (max-width: 767px) {

    .wf-product__thumbs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2px;

        width: 100%;
        max-width: 100%;
        margin: 0;

        overflow: hidden;
        box-sizing: border-box;
    }

    .wf-product__thumb {
        display: block;

        width: 100%;
        min-width: 0;
        max-width: 100%;

        /* ближе к пропорциям фотографии */
        aspect-ratio: 4 / 5;

        margin: 0;
        padding: 0;

        border: 0;
        border-radius: 0;

        overflow: hidden;
        box-sizing: border-box;

        background: #efefef;
    }

    .wf-product__thumb img {
        display: block;

        width: 100%;
        height: 100%;
        max-width: 100%;

        object-fit: cover !important;
        object-position: center;

        margin: 0;
        padding: 0;
        border: 0;
    }

}
