/* Change special page */
/* Start special page theme alignment */
#product-special {
    --special-on-accent: #00364a;
}
#product-special .refine-header span,
#product-special .product-filter {
    background: var(--mid-surface);
    color: var(--mid-text);
}
#product-special .tabs-item,
#product-special .product-filter div,
#product-special .product-filter div a {
    color: var(--mid-text);
}
/* Promotion navigation: tabs meet the shared gradient underline. */
#product-special .tabs-items {
    justify-content: safe center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    overflow-x: auto;
}
#product-special .tabs-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 14px 22px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 14px 14px 0 0;
}
#product-special .tabs-item:hover {
    background: var(--mid-surface-hover);
}
#product-special .tabs-item.active,
#product-special .tabs-item.active:hover {
    background: var(--mid-accent);
    color: var(--mid-on-accent);
    font-weight: 600;
    border-color: var(--mid-accent);
}
#product-special .refine .refine_item > a {
    background: var(--mid-block-bg);
    color: var(--mid-text);
    border-color: var(--mid-line);
    border-radius: var(--mid-radius);
    font-family: var(--mid-font);
}
#product-special .refine .refine_item > a:hover {
    background: var(--mid-surface-hover);
    color: var(--mid-text);
    border-color: var(--mid-accent);
}
#product-special .refine .refine_item.selected > a {
    background: var(--mid-accent);
    color: var(--special-on-accent);
    border-color: var(--mid-accent);
}
#product-special .product-filter {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
}
#product-special .product-filter select {
    max-width: 100%;
    background: var(--mid-field-bg);
    color: var(--mid-text);
    border: 1px solid var(--mid-field-border);
    border-radius: var(--mid-radius);
    padding: 6px;
}
#product-special .display-icon {
    color: var(--mid-text);
}
#product-special .display-active .display-icon {
    background: var(--mid-accent);
    color: var(--special-on-accent);
}
#product-special .tabs-item:focus-visible,
#product-special .refine_item > a:focus-visible,
#product-special .product-filter select:focus-visible {
    outline: 2px solid var(--mid-link);
    outline-offset: 3px;
}
#product-special .tabs-item:focus-visible {
    outline-offset: -3px;
}
/* End special page theme alignment */

/* Start special product list layout */
/* List-only content stays invisible in the unchanged grid. */
#product-special .special-list-only {
    display: none;
}
#product-special .product-list .special-list-only {
    display: inline;
}
#product-special .product-list .special-grid-only,
#product-special .product-list .product-thumb__helper {
    display: none;
}
#product-special .product-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}
#product-special .product-list > .product-thumb[data-product-id] {
    min-width: 0;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
        "thumb_image thumb_name"
        "thumb_image meta"
        "thumb_image price"
        "thumb_image perks"
        "thumb_image colors"
        "thumb_image action";
    gap: 8px 20px;
    padding: 16px;
    border-radius: var(--mid-radius);
    border-color: var(--mid-line);
    background: var(--mid-block-bg);
    color: var(--mid-text);
}
#product-special .product-list .product-thumb > * {
    min-width: 0;
}
/* Flatten existing wrappers only in list mode; JS still restores colors to grid. */
#product-special .product-list .product-thumb__top,
#product-special .product-list .product-thumb__top-buttons,
#product-special .product-list .product-thumb__bottom,
#product-special .product-list .product-thumb__bottom_wrapper,
#product-special .product-list .product-thumb__btn {
    display: contents;
}
#product-special .product-list .product-thumb__image {
    align-self: start;
    padding: 0;
}
#product-special .product-list .product-thumb__image img {
    display: block;
    width: 150px;
    height: 150px;
    object-fit: contain;
}
/* Name and rating */
#product-special .product-list .product-thumb__name {
    padding: 0;
}
#product-special .product-list .product-thumb__name a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-transform: none;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--mid-text);
}
#product-special .product-list .product-thumb__top > .rating {
    grid-area: meta;
    height: auto;
    min-height: 0;
}
#product-special .product-list .product-thumb__top .rating,
#product-special .product-list .product-thumb__top .rating .fa {
    color: var(--mid-text-muted);
    font-size: 12px;
}
/* Price and secondary benefits */
#product-special .product-list .product-thumb__price {
    grid-area: price;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--mid-text);
}
#product-special .product-list .product__price_old {
    color: var(--mid-text-muted);
    font-size: 14px;
    font-weight: 400;
    text-decoration: line-through;
}
#product-special .product-list .product__price_old::after {
    display: none;
}
#product-special .product-list .special-saving {
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--mid-accent-soft);
    color: var(--mid-text);
    font-size: 13px;
    font-weight: 600;
}
#product-special .product-list .product-thumb__stickers {
    grid-area: perks;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}
#product-special .product-list .product-sticker {
    position: static;
    min-width: 0;
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--mid-on-accent);
    font-weight: 400;
    font-size: 12px;
}
#product-special .product-list .product-sticker:has(.fa-plane) {
    background: var(--mid-surface) !important;
    color: var(--mid-text-muted);
}
#product-special .product-list .product-sticker .fa-plane {
    display: none;
}
#product-special .product-list .colors {
    grid-area: colors;
    flex-wrap: wrap;
    height: auto;
    margin: 0;
    color: var(--mid-text-muted);
}
/* Primary action, favorite and lower-priority comparison */
#product-special .product-list .btn-product-cart {
    grid-area: action;
    min-height: 44px;
    margin: 0 88px 0 0;
    font-size: 15px;
}
#product-special .product-list .special-wishlist {
    grid-area: action;
    justify-self: end;
    align-self: center;
    width: 36px;
    height: 44px;
    justify-content: center;
}
#product-special .product-list .special-compare {
    grid-area: action;
    justify-self: end;
    align-self: center;
    width: 36px;
    height: 44px;
    margin-right: 44px;
    justify-content: center;
    color: var(--mid-text-muted);
}
#product-special .product-list .special-compare .product-thumb-icon {
    fill: var(--mid-text-muted);
}
#product-special .product-list > .form-subscribe,
#product-special .product-list > .expert-tile {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 16px;
}
#product-special .product-list > .expert-tile {
    background: var(--mid-surface);
}
/* End special product list layout */

/* Change blog page */
.record_columns .content-records {
    align-items: center;
}
.record_columns .promotion-item-timer {
    z-index: 1;
}
.record_columns .promotion-item-timer-label {
    font-size: 12px;
}
.record_columns .promotion-item-timer-label,
.record_columns .county.gray .county-days-wrapper,
.record_columns .county.gray .county-hours-wrapper,
.record_columns .county.gray .county-minutes-wrapper,
.record_columns .county.gray .county-seconds-wrapper,
.record_columns .county-label-days,
.record_columns .county-label-hours,
.record_columns .county-label-minutes,
.record_columns .county-label-seconds {
    color: white;
}
.promotion-block {
    margin-bottom: 20px;
}
.promotion-block-head {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    border-bottom: 1px solid #c6c7cb;
}
.promotion-block-head + .promotion-block-body {
    padding: 39px 0 0;
}
.promotion-block-head .promotion-block-head-title {
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -.45px;
    padding: 0 0 5px;
    border-bottom: 4px solid #4cc7e9;
}
.promotion-block-head .promotion-block-controls {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 0 10px 15px;
}
.promotion-block-head .promotion-block-controls a {
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #4cc7e9;
}
.promotion-block-body .promotion-sale-item {
    position: relative;
    background: #f4f4f4;
    margin-bottom: 15px;
}
.promotion-block-body .promotion-block-body-item-img {
    display: block;
    /*width: 100%;*/
    /*height: 360px;*/
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}
.promotion-block-body .promotion-block-body-item-img img {
    width: 100%;
    height: auto;
}
.promotion-block-body .promotion-block-body-box {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
    -webkit-align-items: flex-end;
    -moz-box-align: end;
    -ms-flex-align: end;
    align-items: end;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 10px 20px;
    min-height: 90px;
}
.promotion-block-body .promotion-block-body-box * {
    color: white;
}
.promotion-block-body .promotion-block-body-box .btn-success {
    background: #00adee;
    color: white;
}
.promotion-block-body .promotion-block-body-box .btn-success:hover {
    border: 1px solid #00adee;
}
.promotion-block-body .promotion-sale-item .promotion-item-timer {
    padding: 0 5px;
    border-radius: 6px;
}
.promotion-block-body .promotion-sale-item .promotion-block-body-item-img-hover {
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: 0.3s;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
}
.promotion-block-body .promotion-sale-item:hover .promotion-block-body-item-img-hover {
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
}
.promotion-block-body .promotion-item-timer-label {
    padding: 5px;
}
.promotion-block-body .promotion-item-timer .county > span {
    font-size: 30px;
    padding-left: 16px;
    padding-right: 16px;
}
.promotion-block-body .promotion-item-timer .county > .county-label-days,
.promotion-block-body .promotion-item-timer .county > .county-label-hours,
.promotion-block-body .promotion-item-timer .county > .county-label-minutes,
.promotion-block-body .promotion-item-timer .county > .county-label-seconds {
    width: 62px;
    margin: 0 2px;
}

/* From record page */
.record-info .promotion-block-body .promotion-block-body-item-img {
    height: 470px;
}
.record-info .promotion-block,
.record-info .promotion-block-body,
.record-info .promotion-block-body .promotion-sale-item{
    margin-top: 0;
    margin-right: 0 !important;
    margin-bottom: 0;
    margin-left: 0 !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
}
/**/

.promotion-tabs .promotion-tabs-items {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 63px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 45px;
    width: 100%;
    font-weight: 300;
    background-color: #f3f3f3;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.promotion-tabs .promotion-tabs-items .promotion-tabs-item {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 22px;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    display: flex;
    align-items: center;
}

.promotion-tabs .promotion-tabs-items .promotion-tabs-item.active {
    font-weight: 400;
    color: #42cbff;
}

.promotion-tabs .promotion-tabs-items .promotion-tabs-item:hover {
    color: #42cbff;
}

@media (max-width: 640px) {
    /* Promotion navigation */
    #product-special .tabs-item {
        min-height: 44px;
        padding: 12px 14px;
        font-size: 15px;
    }

    /* Product list */
    #product-special .product-list > .product-thumb[data-product-id] {
        grid-template-columns: 130px minmax(0, 1fr);
        grid-template-areas:
            "thumb_image thumb_name"
            "thumb_image meta"
            "price price"
            "perks perks"
            "colors colors"
            "action action";
        gap: 6px 12px;
        padding: 12px;
    }
    #product-special .product-list .product-thumb__image img {
        width: 130px;
        height: 130px;
    }
    #product-special .product-list .product-thumb__name a {
        font-size: 15px;
    }

    /* Change special page */
    .category-header .breadcrumb {
        float: left;
        margin: 0 0 20px 15px;
    }
    .category-header .category-title {
        margin: 15px;
        text-align: center;
    }

    .promotion-block-body .promotion-block-body-box {
        flex-flow: column;
        -webkit-box-align: center;
        -webkit-align-items: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }
    .promotion-block-body .promotion-block-body-box .btn-success {
        font-size: 13px;
        padding: 5px 10px;
    }
    .promotion-block-body .promotion-sale-item .promotion-item-timer {
        background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
        padding: 0 5px;
    }
    .promotion-block-body .promotion-item-timer .county .county-days-wrapper,
    .promotion-block-body .promotion-item-timer .county .county-hours-wrapper,
    .promotion-block-body .promotion-item-timer .county .county-minutes-wrapper,
    .promotion-block-body .promotion-item-timer .county .county-seconds-wrapper {
        margin: 1px;
    }
    .promotion-block-body .promotion-item-timer .county > .county-label-days,
    .promotion-block-body .promotion-item-timer .county > .county-label-hours,
    .promotion-block-body .promotion-item-timer .county > .county-label-minutes,
    .promotion-block-body .promotion-item-timer .county > .county-label-seconds {
        width: 60px;
        margin: 0 2px;
    }
    .promotion-block-body .promotion-block-body-box,
    .promotion-block-body .promotion-item-timer {
        padding: 5px 0;
    }
    .promotion-block-body .promotion-block-body-box > div {
        margin: 5px 0;
    }

    .promotion-tabs .promotion-tabs-items {
        padding: 0 15px;
    }
    .promotion-tabs .promotion-tabs-items .promotion-tabs-item {
        font-size: 16px;
    }
}
