:root {
    --secondary-text-color: #003459;
    --selected-text-color: #000000;
    --selected-border-color: #000000;
    --selected-bg-color: #f8fbfd;
    --white-bg-color: white;
    --black-bg-color: black;

    /* Elbuz Product Family - Style Variables */
    --elbuz-pf-color-text-default: rgb(0, 0, 0) !important;
    --elbuz-pf-color-text-select-hover: rgb(0, 0, 0) !important;
    --elbuz-pf-bg-default: rgb(255, 255, 255) !important;
    --elbuz-pf-bg-select-hover: rgb(255, 255, 255) !important;
    --elbuz-pf-border-default: rgb(228, 228, 228) !important;
    --elbuz-pf-border-select-hover: rgb(67, 176, 42) !important;
    --elbuz-pf-circle-border-radius: 50px !important;
    --elbuz-pf-image-border-radius: 6px !important;
    --elbuz-pf-button-border-radius: 6px !important;
    --elbuz-pf-select-border-radius: 2px !important;
    --elbuz-pf-image-width: 40px !important;
    --elbuz-pf-image-height: 60px !important;
    --elbuz-pf-color-width: 32px !important;
    --elbuz-pf-color-height: 32px !important;
    --elbuz-pf-color-width-cat: 26px !important;
    --elbuz-pf-color-height-cat: 26px !important;
}

/* Product page variant container */
.family-variants {
    border-bottom: 1px solid #f9f9f9;
}

.family-variants .family-variant {
    margin-bottom: 0;
}

.family-variants .family-variant:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.family-variants .family-variant:last-child .epf-group-options {
    padding-bottom: 0;
}

.family-variants .family-variant .epf-group-label {
    font-weight: 500;
    font-size: 14px;
    color: #00171f;
    margin-bottom: 12px;
}

.family-variants .family-variant .epf-group-options {
    padding-bottom: 20px;
}

.family-variants .family-variant .epf-group-options .epf-option {
    display: inline-block;
    position: relative;
    vertical-align: text-top;
    margin-right: 5px;
    margin-bottom: 5px;
}

.family-variants .family-variant .epf-group-options .epf-option.disabled .epf-label {
    opacity: 0.3;
}

.family-variants .family-variant .epf-group-options .epf-option.epf-muted .epf-label {
    opacity: 0.3;
}

.family-variants .family-variant .epf-group-options .epf-option.disabled:after {
    content: "";
    position: absolute;
    background-color: transparent;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 6px;
}

.family-variants .family-variant .epf-group-options .epf-option.out-of-stock a {
    color: var(--elbuz-pf-color-text-default);
    border-color: var(--elbuz-pf-border-default);
    background: var(--elbuz-pf-bg-default);
    position: relative;
    overflow: hidden;
    z-index: 0;
    opacity: 0.3;
}

.family-variants .family-variant .epf-group-options .epf-option.out-of-stock a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml;utf8,\<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'>\<line x1='0' y1='100' x2='100' y2='0' stroke='red' stroke-width='2' />\</svg>") no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 1;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-thumb {
    padding: 6px;
    border-radius: var(--elbuz-pf-image-border-radius);
    border: 1px solid var(--elbuz-pf-border-default);
    width: auto;
    max-width: 70px;
    height: auto;
    max-height: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-thumb img {
    width: 100%;
    max-width: var(--elbuz-pf-image-width);
    max-height: var(--elbuz-pf-image-height);
}

.family-variants .family-variant .epf-group-options .epf-option:hover .epf-thumb {
    border-color: var(--elbuz-pf-border-select-hover);
}

.family-variants .family-variant .epf-group-options .epf-option.disabled .epf-thumb {
    opacity: .5;
}

.family-variants .family-variant .epf-group-options .epf-option.epf-muted .epf-thumb {
    opacity: .5;
}

.family-variants .family-variant .epf-group-options .epf-option.current .epf-thumb {
    border-color: var(--elbuz-pf-border-select-hover);
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip {
    display: none;
    position: absolute;
    background-color: white;
    -webkit-box-shadow: 0 4px 16px 1px rgb(0 26 52 / 16%);
    -moz-box-shadow: 0 4px 16px 1px rgb(0 26 52 / 16%);
    box-shadow: 0 4px 16px 1px rgb(0 26 52 / 16%);
    width: max-content;
    max-width: 210px;
    bottom: 100%;
    left: 50%;
    margin-bottom: 14px;
    z-index: 9999;
    text-align: center;
    border-radius: 6px;
    transform: translateX(-50%);
}

/* Prevent ancestor clipping of tooltip preview (oct_deals / oct_promo / generic) */
.ds-product-main-actions,
.ds-product-actions-middle,
.ds-product-main,
.ds-product-top-info,
.ds-product-main-content,
.content-block:has(.family-variants),
.product-info,
.product-right,
[class*="product-info"]:has(.family-variants),
[class*="product-main"]:has(.family-variants) {
    overflow: visible !important;
}

.family-variants,
.family-variants .family-variant,
.family-variants .epf-group-options,
.family-variants .epf-option {
    overflow: visible !important;
}

.family-variants .family-variant .epf-group-options .epf-option {
    position: relative;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .epf-tooltip-body {
    padding: 15px;
    width: 160px;
}

.family-variants .family-variant .epf-group-options .epf-option:hover .epf-tooltip {
    display: block;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .epf-popup-img {
    padding-bottom: 5px;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .epf-popup-img img {
    width: 100%;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .price {
    border-top: 1px solid #e9e9e9;
    padding-top: 5px;
    font-size: 14px;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .price .out-of-stock {
    display: inline-block;
    font-weight: 500;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .price .epf-price-now {
    display: inline-block;
    font-weight: 500;
    color: black;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .price .epf-price-was {
    display: inline-block;
    margin-left: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #777777;
    text-decoration: line-through;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip .epf-tooltip-text {
    padding: 5px 10px;
    font-weight: 500;
    font-size: 13px;
    color: #000;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-tooltip:after {
    content: "";
    display: block;
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    bottom: -9px;
    left: 50%;
    margin-left: -10px;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle {
    display: block;
    width: var(--elbuz-pf-color-width);
    height: var(--elbuz-pf-color-height);
    border-radius: var(--elbuz-pf-circle-border-radius);
    overflow: hidden;
    position: relative;
    border: 2px solid var(--elbuz-pf-border-default);
    margin-bottom: 0;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle .epf-inner {
    position: absolute;
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    left: 0;
    top: 0;
    padding: 0;
    border-radius: 0;
    overflow: hidden;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle:hover {
    border-color: var(--elbuz-pf-border-select-hover);
}

.family-variants .family-variant .epf-group-options .epf-option.current .epf-circle {
    border-color: var(--elbuz-pf-border-select-hover);
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle .epf-color-a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle .epf-color-b {
    display: none;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle.epf-dual .epf-color-a {
    width: 50%;
    left: 0;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-circle.epf-dual .epf-color-b {
    display: block;
    position: absolute;
    width: 50%;
    height: 100%;
    right: 0;
}

.family-variants .family-variant.family-variant-color .epf-group-options .epf-option {
    width: auto;
    margin-right: 10px;
}

.family-variants .family-variant .epf-group-options .epf-option .epf-label {
    color: var(--elbuz-pf-color-text-default);
    padding: 8px;
    border: 1px solid var(--elbuz-pf-border-default);
    border-radius: var(--elbuz-pf-button-border-radius);
    background-color: var(--elbuz-pf-bg-default);
    font-size: 12px;
    line-height: 15px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 2px;
    text-decoration: none;
}

.family-variants .family-variant .epf-group-options .epf-option.current .epf-label {
    border-color: var(--elbuz-pf-border-select-hover);
    color: var(--elbuz-pf-color-text-select-hover);
    background: var(--elbuz-pf-bg-select-hover);
}

.family-variants .family-variant .epf-group-options .epf-option .epf-label:hover {
    border-color: var(--elbuz-pf-border-select-hover);
    color: var(--elbuz-pf-color-text-select-hover);
    background: var(--elbuz-pf-bg-select-hover);
}

/* Select dropdown */
.epf-dropdown {
    position: relative;
    margin-bottom: 12px;
}

.epf-dropdown .epf-dropdown-current {
    border: 1px solid var(--elbuz-pf-border-default);
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    border-radius: var(--elbuz-pf-select-border-radius);
}

.epf-dropdown .epf-dropdown-current svg {
    transition: 0.2s linear all;
    transform: rotate(0deg);
    position: absolute;
    right: 20px;
    top: 22px;
}

.epf-dropdown.open .epf-dropdown-current svg {
    transform: rotate(180deg);
}

.epf-dropdown .epf-dropdown-current svg path {
    fill: black;
}

.epf-dropdown .epf-dropdown-list {
    visibility: hidden;
    top: 0;
    transition: 0s linear all;
    border: none;
    position: absolute;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    background-color: #ededed;
    opacity: 0;
    z-index: 99;
    color: white !important;
}

.epf-dropdown.open .epf-dropdown-list {
    top: 100%;
    visibility: visible;
    margin-top: -1px;
    opacity: 1;
    border: 1px solid var(--elbuz-pf-border-default);
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-item {
    padding: 6px 12px;
    cursor: pointer;
    background: white;
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-item.disabled {
    opacity: .5;
    pointer-events: none;
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-item.epf-muted {
    opacity: .5;
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-thumb img {
    width: 25px;
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-item.current {
    background-color: #f9f9f9;
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-item:hover {
    background-color: #f9f9f9;
}

.epf-dropdown .epf-dropdown-item {
    display: flex;
    width: 100%;
    align-items: center;
    text-decoration: none;
    user-select: none;
}

.epf-dropdown .epf-dropdown-thumb {
    padding-right: 10px;
}

.epf-dropdown .epf-dropdown-thumb img {
    width: auto;
    max-height: 30px;
}

.epf-dropdown .epf-dropdown-label {
    color: var(--elbuz-pf-color-text-default);
    font-size: 14px;
}

.epf-dropdown .epf-dropdown-item-arrow svg {
    width: 20px;
    height: 20px;
    fill: #808080;
    stroke: #808080;
    top: 15px;
}

.epf-dropdown .epf-dropdown-list .epf-dropdown-label {
    color: var(--elbuz-pf-color-text-default);
    font-size: 14px;
}

.epf-dropdown.epf-dropdown-compact .epf-dropdown-current {
    padding: 6px 24px 6px 5px;
}

.epf-dropdown.epf-dropdown-compact .epf-dropdown-current svg {
    top: 15px;
    right: 15px;
}

.epf-dropdown.epf-dropdown-compact .epf-dropdown-list .epf-dropdown-item {
    padding: 6px 10px;
}

.epf-dropdown.epf-dropdown-compact .epf-dropdown-label {
    font-size: 12px;
}

.epf-dropdown.epf-dropdown-compact .epf-dropdown-item:hover .epf-dropdown-label {
    color: var(--elbuz-pf-color-text-select-hover);
}

/* Category list color swatches */
.epf-list-holder {
    position: relative;
}

.epf-swatch-list {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 35px;
    text-align: center;
    z-index: 9;
    padding: 2px 0 2px 0;
    border: 2px solid transparent;
    margin-bottom: -2px;
}

.product-layout.product-list .epf-swatch-list {
    position: absolute;
    left: 20px;
    bottom: -35px;
    width: 40px;
    text-align: center;
    z-index: 9999;
    padding: 10px 5px 2px 5px;
    border: 2px solid transparent;
    height: fit-content;
}

.epf-swatch-list .epf-swatch-wrap {
    max-height: 113px;
    overflow: hidden;
    line-height: 15px;
}

.product-price .epf-swatch-list .epf-swatch-wrap {
    max-height: 93px;
    overflow: hidden;
    line-height: 10px;
}

.epf-swatch-list .epf-swatch-item {
    display: inline-block !important;
    width: 26px;
    height: 26px;
    border: 1px solid var(--elbuz-pf-border-default);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin-bottom: 0;
}

.epf-swatch-list .epf-swatch-item:hover {
    border-color: var(--elbuz-pf-border-select-hover);
}

.epf-swatch-list .epf-swatch-item.current {
    border-color: var(--elbuz-pf-border-select-hover);
}

.epf-swatch-list .epf-swatch-item.epf-swatch-color {
    width: var(--elbuz-pf-color-width-cat) !important;
    height: var(--elbuz-pf-color-height-cat) !important;
    border-radius: var(--elbuz-pf-circle-border-radius);
    opacity: 1 !important;
}

.product-price .epf-swatch-list .epf-swatch-item.epf-swatch-color {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50%;
}

.epf-swatch-list .epf-swatch-item.epf-swatch-color .epf-color-fill {
    position: absolute;
    width: calc(100% - 0px);
    height: calc(100% - 0px);
    left: 0;
    top: 0;
    padding: 0;
    overflow: hidden;
}

.epf-swatch-list .epf-swatch-item.epf-swatch-color .epf-color-fill .epf-color-a {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
}

.epf-swatch-list .epf-swatch-item.epf-swatch-color .epf-color-fill .epf-color-b {
    display: none;
}

.epf-swatch-list .epf-swatch-item.epf-swatch-color.epf-dual .epf-color-fill .epf-color-a {
    width: 50%;
    left: 0;
}

.epf-swatch-list .epf-swatch-item.epf-swatch-color.epf-dual .epf-color-fill .epf-color-b {
    display: block;
    position: absolute;
    width: 50%;
    height: 100%;
    right: 0;
}

.epf-swatch-list .epf-expand {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    color: #777;
    font-weight: 500;
    font-size: 18px;
    line-height: 21px;
    text-align: center;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
}

.epf-swatch-list .epf-collapse {
    display: inline-block;
    width: 20px !important;
    height: 20px !important;
    color: #777;
    font-weight: 500;
    font-size: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 6px;
    background-color: transparent;
    cursor: pointer;
}

#common-home .epf-swatch-list .epf-collapse {
    margin-bottom: 2px;
}

.epf-swatch-list .epf-expand:hover {
    background-color: transparent;
}

.epf-swatch-list .epf-collapse {
    display: none !important;
}

.epf-swatch-list .epf-collapse:hover {
    background-color: transparent;
}

.epf-swatch-list .epf-swatch-item.hidden {
    display: none;
}

.epf-swatch-list.expanded {
    border: 2px solid #e9e9e9;
    background-color: rgb(255 255 255 / 86%);
    bottom: inherit;
    border-radius: 6px;
}

.epf-swatch-list.expanded .epf-expand {
    display: none !important;
}

.epf-swatch-list.expanded .epf-collapse {
    display: inline-block !important;
}

.epf-swatch-list.expanded .epf-swatch-item.hidden {
    display: inline-block;
}

.epf-swatch-list.expanded .epf-swatch-wrap {
    max-height: initial;
}

/* Category list text/image variants */
.epf-attr-block {
    color: white;
}

.epf-attr-block .epf-attr-title {
    color: #00171f;
    padding: 6px 0 12px 0;
    font-size: 14px;
}

.epf-attr-block .epf-attr-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.epf-attr-block .epf-attr-items .epf-attr-image {
    padding: 6px;
    border-radius: var(--elbuz-pf-image-border-radius);
    border: 1px solid var(--elbuz-pf-border-default);
    width: 56px;
    height: 72px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px 6px 0;
}

.epf-attr-block .epf-attr-items .epf-attr-image:hover {
    border-color: var(--elbuz-pf-border-select-hover);
}

.epf-attr-block .epf-attr-items .epf-attr-image.current {
    border-color: var(--elbuz-pf-border-select-hover);
}

.epf-attr-block .epf-attr-items .epf-attr-image img {
    width: 100%;
    max-width: var(--elbuz-pf-image-width);
    max-height: var(--elbuz-pf-image-height);
}

.epf-attr-block .epf-attr-items .epf-attr-text {
    border: 1px solid var(--elbuz-pf-border-default);
    background: var(--elbuz-pf-bg-default);
    margin: 0 8px 6px 0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--elbuz-pf-button-border-radius);
    font-size: 12px;
    color: var(--elbuz-pf-color-text-default);
}

.epf-attr-block .epf-attr-items .epf-attr-text:hover {
    border-color: var(--elbuz-pf-border-select-hover);
}

.epf-attr-block .epf-attr-items .epf-attr-text.current {
    border-color: var(--elbuz-pf-border-select-hover);
    color: var(--elbuz-pf-color-text-select-hover) !important;
    background: var(--elbuz-pf-bg-select-hover);
}

/* Responsive */
@media (max-width: 1366px) {
    .epf-swatch-list .epf-swatch-wrap {
        max-height: 85px;
        overflow: hidden;
        line-height: 15px;
    }
}

@media (max-width: 991px) {
    .family-variants .family-variant .epf-group-options {
        display: flex;
        flex-wrap: wrap;
    }

    .epf-swatch-list {
        left: -12px;
    }

    .epf-swatch-list .epf-swatch-item {
        margin: 0;
        padding: 0;
        line-height: 1;
    }

    .epf-swatch-list .epf-swatch-item.epf-swatch-image img {
        max-width: 100%;
    }

    .epf-swatch-list .epf-expand,
    .epf-swatch-list .epf-collapse {
        margin: 0;
    }

    .family-variants .family-variant .epf-group-options .epf-option .epf-label {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .epf-swatch-list .epf-swatch-item {
        width: 22px !important;
        height: 22px !important;
    }

    .epf-swatch-list {
        z-index: 1;
        bottom: 100%;
        left: -10px;
    }

    .epf-swatch-list .epf-swatch-wrap {
        max-height: 71px;
    }

    .epf-swatch-list.expanded {
        top: -135px;
    }

    .family-variants .family-variant .epf-group-label {
        font-size: 13px;
    }

    .family-variants .family-variant .epf-group-options {
        padding-bottom: 20px;
    }

    .family-variants .family-variant .epf-group-options .epf-option .epf-label {
        margin-bottom: 20px;
    }
}

@media (max-width: 568px) {
    .epf-swatch-list .epf-swatch-item {
        width: 22px !important;
        height: 22px !important;
    }

    .epf-swatch-list {
        z-index: 1;
        bottom: 100%;
        left: -10px;
    }

    .epf-swatch-list .epf-swatch-wrap {
        max-height: 71px;
    }

    .epf-swatch-list.expanded {
        top: -135px;
    }

    .family-variants .family-variant .epf-group-label {
        font-size: 16px;
    }

    .family-variants .family-variant .epf-group-options {
        padding-bottom: 20px;
    }

    .family-variants .family-variant .epf-group-options .epf-option .epf-label {
        margin-bottom: 20px;
    }

    .family-variants .family-variant .epf-group-options .epf-option .epf-label {
        padding: 8px 14px;
    }
}
