/* =============================================
   PRODUCT FILTER - MAIN STYLES
   ============================================= */

/* =============================================
   NEW FILTER TOPBAR - SEARCH + PRODUCT COUNT
   ============================================= */
.taw-filter-topbar-simple {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 0 15px 0;
    margin-bottom: 25px;
    border-bottom: none;
    gap: 20px;
}

.taw-filter-topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =============================================
   SEARCH ICON BUTTON
   ============================================= */
.taw-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.taw-search-icon:hover {
    border-color: #D0AD79;
    background-color: #D0AD79;
    color: #fff;
}

.taw-search-icon i {
    font-size: 18px;
    color: currentColor;
}

/* =============================================
   PRODUCT COUNT (NEW)
   ============================================= */
.taw-prod-count-new {
    font-size: 15px;
    color: #666;
    font-weight: 500;
}

/* =============================================
   SEARCH INPUT WRAPPER (HIDDEN TOGGLEABLE)
   ============================================= */
.taw-search-input-wrapper {
    padding: 15px 0;
    border-top: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.taw-search-input-wrapper.show {
    display: flex !important;
    align-items: center;
    gap: 10px;
}

.taw-search-input-wrapper input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}

.taw-search-input-wrapper button {
    padding: 12px 20px;
    border: 1px solid #D0AD79;
    border-radius: 6px;
    background: #D0AD79;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.taw-search-input-wrapper button:hover {
    background: #c9a06f;
    border-color: #c9a06f;
}

.taw-search-input-wrapper #taw_search_close {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    width: 45px;
}

.taw-search-input-wrapper #taw_search_close:hover {
    background: #f5f5f5;
    color: #333;
}

/* =============================================
   FILTER BAR - HORIZONTAL CATEGORY BUTTONS (NEW)
   ============================================= */
.taw-filter-bar-new {
    padding: 0;
    margin-bottom: 25px;
    background: transparent;
    border-radius: 0;
}

.taw-filter-buttons-container-new {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

/* Individual button wrapper (holds button + submenu) */
.taw-filter-btn-wrap-new {
    position: relative;
}

/* Category Buttons (NEW) */
.taw-filter-btn-new {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0d5c3;
    background: #fff;
    color: #333;
    white-space: nowrap;
}

.taw-filter-btn-new:hover {
    background: #D0AD79;
    color: #fff;
    border-color: #D0AD79;
    box-shadow: 0 2px 8px rgba(208, 173, 121, 0.3);
    text-decoration: none;
}

.taw-filter-btn-new.active {
    background: #D0AD79;
    color: #fff;
    border-color: #D0AD79;
    box-shadow: 0 2px 8px rgba(208, 173, 121, 0.3);
    font-weight: 600;
    position: relative;
}

.taw-filter-btn-new.active:hover {
    background: #c9a06f;
    border-color: #c9a06f;
    color: #fff;
    text-decoration: none;
}

/* Arrow rotation on hover and active */
.taw-filter-btn-wrap-new:hover .taw-btn-arrow {
    transform: rotate(180deg) !important;
}

.taw-filter-btn-new.active .taw-btn-arrow {
    filter: brightness(10);
}

/* =============================================
   SUBMENU - HOVER DROPDOWN (NEW)
   ============================================= */
.taw-submenu-new {
    display: none;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 12px;
    padding: 6px 0;
    min-width: 240px;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(208, 173, 121, 0.08);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.taw-submenu-new::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    filter: drop-shadow(0 -1px 0 #e8e0d0);
}

.taw-submenu-new::after {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.taw-filter-btn-wrap-new:hover .taw-submenu-new {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.taw-submenu-item-new {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    font-size: 14px;
    color: #444;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    border-radius: 0;
    border-left: 3px solid transparent;
    margin: 0;
    line-height: 1.4;
}

.taw-submenu-item-new:first-child {
    border-radius: 12px 12px 0 0;
    padding-top: 13px;
}

.taw-submenu-item-new:last-child {
    border-radius: 0 0 12px 12px;
    padding-bottom: 13px;
}

.taw-submenu-item-new:hover {
    background: #FCF9F3;
    color: #D0AD79;
    text-decoration: none;
    border-left-color: #D0AD79;
    padding-left: 23px;
}

.taw-submenu-item-new.active {
    color: #D0AD79;
    font-weight: 600;
    background: #FBF5EB;
    border-left-color: #D0AD79;
}

.taw-submenu-item-new+.taw-submenu-item-new {
    border-top: 1px solid #f5f0e8;
}

/* --- Filter Top Bar (Search + Sort) --- */
.taw-filter-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 10px;
}

.taw-filter-topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.taw-filter-topbar-right {
    display: flex;
    align-items: center;
}

.taw-search-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

#taw_input_search {
    border: solid 1px #bdbdbd;
    border-radius: 20px;
    height: 32px;
    width: 200px;
    padding: 0 15px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.3s;
}

#taw_input_search:focus {
    border-color: #d0ad79;
}

#taw_input_search_btn {
    cursor: pointer;
    display: flex;
    align-items: center;
}

.taw-prod-count {
    font-size: 14px;
    color: #888;
    white-space: nowrap;
}

/* Sort Wrapper */
.taw-sort-wrapper {
    position: relative;
    cursor: pointer;
}

.taw-sort-label {
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.taw-sort-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 150px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.taw-sort-wrapper:hover .taw-sort-dropdown,
.taw-sort-dropdown.active {
    display: block;
}

.taw-sort-dropdown li {
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    list-style: none;
}

.taw-sort-dropdown li:hover {
    background: #FCF9F3;
}

.taw-sort-dropdown li.active {
    color: #d0ad79;
    font-weight: 500;
}

/* =============================================
   FILTER BAR - HORIZONTAL CATEGORY BUTTONS
   ============================================= */
.taw-filter-bar {
    background: #FCF9F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
}

.taw-filter-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Individual button wrapper (holds button + submenu) */
.taw-filter-btn-wrap {
    position: relative;
}

/* Category Buttons */
.taw-filter-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0d5c3;
    background: #fff;
    color: #333;
    white-space: nowrap;
}

.taw-filter-btn:hover {
    background: #e8d5b8;
    color: #333;
    box-shadow: 0 2px 8px rgba(208, 173, 121, 0.3);
    text-decoration: none;
}

.taw-filter-btn.active {
    background: #D0AD79;
    color: #fff;
    border-color: #D0AD79;
    box-shadow: 0 2px 8px rgba(208, 173, 121, 0.3);
}

.taw-filter-btn.active:hover {
    background: #c9a06f;
    border-color: #c9a06f;
    color: #fff;
    text-decoration: none;
}

/* =============================================
   SUBMENU - HOVER DROPDOWN
   ============================================= */
.taw-submenu {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: calc(100% + 5px);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.taw-submenu::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
}

.taw-submenu::after {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.taw-filter-btn-wrap:hover .taw-submenu {
    display: block;
}

.taw-submenu-item {
    display: block;
    padding: 9px 20px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.taw-submenu-item:hover {
    background: #FCF9F3;
    color: #D0AD79;
    text-decoration: none;
}

.taw-submenu-item.active {
    color: #D0AD79;
    font-weight: 500;
    background: #FBF5EB;
}

/* =============================================
   ACTIVE FILTERS DISPLAY
   ============================================= */
.taw-active-filters {
    padding: 10px 0;
    border-top: 1px solid #e9e9e9;
    margin-top: 5px;
}

.taw-active-filters-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taw-active-filters-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.taw-filter-label {
    color: #c8c8c8;
    font-size: 14px;
}

#taw-reset-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #606060;
}

.taw-active-filters-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.taw_sort_seleted_text {
    color: #333;
}

.taw-sort-label-text {
    color: #c8c8c8;
}

/* =============================================
   ICONS
   ============================================= */
.ic-dropdown {
    background-image: url('../img/arrow-down-gold.png');
    background-repeat: no-repeat;
    width: 12px;
    height: 8px;
    background-size: 100%;
    display: inline-block;
    transition: 0.5s;
}

.ic_search {
    background-image: url('../img/bx-search-alt-2.png');
    height: 18px;
    width: 18px;
    background-repeat: no-repeat;
    background-size: 100%;
    display: inline-block;
}

.ic_search.active {
    background-image: url('../img/bx-search-alt-2\ gold.png');
}

.ic-dropdown.up {
    transform: rotate(180deg);
}

/* =============================================
   LOADER
   ============================================= */


.aloader {
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D0AD79;
    border-radius: 50%;
    display: inline-block;
    animation: taw-spin 0.8s linear infinite;
    margin: 20px auto;
}

@keyframes taw-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Loader animations moved to taw-spin */

/* =============================================
   CLOSE / RESET BUTTONS
   ============================================= */
.taw-close {
    background-image: url(../img/close.png);
    background-repeat: no-repeat;
    background-size: 55%;
    background-position: center;
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    cursor: pointer;
}

/* =============================================
   PRODUCT GRID & IMAGES
   ============================================= */
.taw-prod-img-hld>img {
    height: 100% !important;
    width: auto !important;
    display: inline-block;
}

.taw-prod-img-hld img {
    transition: 0.3s;
    position: relative;
}

.taw-prod-img:hover .prod img {
    transform: scale(1.05);
}

.taw-prod-img:hover .custom-prod img {
    height: calc(100% - 62px) !important;
}

.taw-prod-img {
    height: 300px;
}

.taw-prod-img-gallery {
    transform: scale(0.1);
    transition: transform 0.3s ease;
}

/* =============================================
   PRODUCT VARIATIONS
   ============================================= */
.prod-variation-item {
    border: solid transparent 2px;
    cursor: pointer;
}

.prod-variation-item.active {
    border: solid #000 2px;
}

/* =============================================
   LEGACY / DROPDOWN SUPPORT
   ============================================= */
.taw_opt_cont {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
}

.taw_opt_cont.active {
    display: block;
    background: #fff;
    top: 20px;
    border: solid 1px #bdbdbd;
    border-radius: 8px;
    padding: 10px;
    z-index: 2;
}

.taw_opt_cont li.active {
    color: #d5b687;
}

.taw_opt_cont_lst li.active>a:after {
    content: "";
    background-image: url("../img/check.png");
    background-repeat: no-repeat;
    background-size: 100%;
    width: 13px;
    height: 13px;
    display: block;
    float: right;
    margin-top: 5px;
}

.taw_opt_cont_lst li a {
    color: #000;
}

.taw_opt_cont_lst li.active>a {
    color: #d0ae79;
}

.taw_opt_btn {
    position: relative;
    cursor: pointer;
    margin-right: 30px;
}

.ic-rounded {
    height: 16px;
    width: 16px;
    border: solid 1px #d0ad79;
    border-radius: 2px;
    display: inline-block;
    vertical-align: middle;
}

.ic-rounded i {
    background-image: url(../img/arrow-down-gold.png);
    background-repeat: no-repeat;
    background-size: 100%;
    display: block;
    transition: 0.5s;
    width: 12px;
    height: 8px;
    margin: 4px 0 0 1px;
}

.ic-rounded.up {
    background: #d0ad79;
}

.ic-rounded.up i {
    background-image: url('../img/arrow-down-white.png');
    transform: rotate(180deg);
}

.ast-site-header-cart i.astra-icon:after {
    top: 10px;
    right: -30px;
}

/* =============================================
   CATEGORY PAGE SUBCATEGORY FILTER
   ============================================= */
.taw-category-filter-bar {
    background: #FCF9F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto 30px;
    max-width: 900px;
}

.taw-category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.taw-cat-filter-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0d5c3;
    background: #fff;
    color: #333;
    white-space: nowrap;
}

.taw-cat-filter-btn:hover {
    background: #e8d5b8;
    color: #333;
    box-shadow: 0 2px 8px rgba(208, 173, 121, 0.3);
    text-decoration: none;
}

.taw-cat-filter-btn.active {
    background: #D0AD79;
    color: #fff;
    border-color: #D0AD79;
}

.taw-cat-filter-btn.active:hover {
    background: #c9a06f;
    border-color: #c9a06f;
    color: #fff;
    text-decoration: none;
}

/* =============================================
   INSPIRATION PAGE FILTER
   ============================================= */
.taw-inspiration-filter-bar {
    background: #FCF9F3;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px auto 30px;
    max-width: 900px;
}

.taw-inspiration-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.taw-insp-filter-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e0d5c3;
    background: #fff;
    color: #333;
    white-space: nowrap;
}

.taw-insp-filter-btn:hover {
    background: #e8d5b8;
    color: #333;
    box-shadow: 0 2px 8px rgba(208, 173, 121, 0.3);
    text-decoration: none;
}

.taw-insp-filter-btn.active {
    background: #D0AD79;
    color: #fff;
    border-color: #D0AD79;
}

.taw-insp-filter-btn.active:hover {
    background: #c9a06f;
    border-color: #c9a06f;
    color: #fff;
    text-decoration: none;
}

/* Inspiration section content */
.taw-inspiration-section {
    padding: 20px 0;
}

.taw-inspiration-section.hidden {
    display: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .taw-filter-topbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .taw-filter-topbar-left,
    .taw-filter-topbar-right {
        justify-content: center;
    }

    .taw-filter-buttons-container,
    .taw-category-filter-buttons,
    .taw-inspiration-filter-buttons {
        gap: 6px;
    }

    .taw-filter-btn,
    .taw-cat-filter-btn,
    .taw-insp-filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .taw-active-filters-inner {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    #taw_input_search {
        width: 150px;
    }

    .taw-submenu {
        min-width: 170px;
    }

    .taw-filter-topbar-simple {
        flex-wrap: wrap;
        gap: 10px;
        border-bottom: none;
    }

    .taw-filter-buttons-container-new {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
    }

    .taw-filter-btn-wrap-new {
        width: 100%;
    }

    .taw-filter-btn-new {
        padding: 12px 10px;
        font-size: 13px;
        border-radius: 6px;
        /* Rectangular like DYD */
        display: block;
        width: 100%;
        text-align: center;
        background: #fff;
    }

    .taw-filter-btn-new.active::after {
        display: none;
        /* Remove underline active line */
    }

    .taw-submenu-new {
        min-width: 200px;
        border-radius: 10px;
        left: 0;
        transform: translateX(0) translateY(8px);
    }

    .taw-filter-btn-wrap-new:hover .taw-submenu-new {
        transform: translateX(0) translateY(0);
    }

    .taw-submenu-new::before {
        left: 30px;
        transform: none;
    }

    .taw-submenu-item-new {
        padding: 10px 16px;
        font-size: 13px;
    }

    .taw-submenu-item-new:hover {
        padding-left: 19px;
    }

    .taw-search-icon {
        width: 40px;
        height: 40px;
    }

    .taw-prod-count-new,
    .taw-search-input-wrapper input,
    .taw-search-input-wrapper button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .taw-filter-buttons-container,
    .taw-category-filter-buttons,
    .taw-inspiration-filter-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .taw-filter-btn,
    .taw-cat-filter-btn,
    .taw-insp-filter-btn {
        padding: 7px 12px;
        font-size: 11px;
    }

    .taw-filter-bar,
    .taw-category-filter-bar,
    .taw-inspiration-filter-bar {
        padding: 10px 12px;
    }

    .taw-filter-topbar-simple {
        flex-wrap: wrap;
        gap: 10px;
    }

    .taw-filter-buttons-container-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .taw-filter-btn-new {
        padding: 11px 8px;
        font-size: 12px;
        border-radius: 6px;
    }

    .taw-submenu-new {
        min-width: 180px;
        border-radius: 10px;
        left: 0;
        transform: translateX(0) translateY(8px);
    }

    .taw-filter-btn-wrap-new:hover .taw-submenu-new {
        transform: translateX(0) translateY(0);
    }

    .taw-submenu-new::before {
        left: 25px;
        transform: none;
    }

    .taw-submenu-item-new {
        padding: 9px 14px;
        font-size: 13px;
    }

    .taw-submenu-item-new:hover {
        padding-left: 17px;
    }

    .taw-search-icon {
        width: 40px;
        height: 40px;
    }

    .taw-prod-count-new,
    .taw-search-input-wrapper input,
    .taw-search-input-wrapper button {
        font-size: 14px;
    }
}