.custom-stores { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; direction: rtl; }
.store-wrapper { max-width: 360px; margin-bottom: 0; }
.store { background-color: #c68533; color: white; padding: 10px 22px; border-radius: 60px; font-size: 20px; font-weight: 400; text-decoration: none; display: flex; flex-direction: row; justify-content: space-between; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform 0.2s ease; height: 54px; line-height: 1; gap: 10px; }
.store:hover { transform: scale(1.03); }
.store .name { direction: rtl; text-align: right; flex-grow: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 400; color: white; line-height: 1.3; }
.store .price { direction: ltr; text-align: left; flex-shrink: 0; margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 400; color: white; line-height: 1; }

@keyframes pulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.name-loader { width: 60%; height: 16px; background-color: rgba(255, 255, 255, 0.2); border-radius: 4px; position: relative; overflow: hidden; }
.name-loader::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: shimmer 1.5s infinite; }
.price-loader { display: flex; gap: 2px; align-items: center; justify-content: center; min-width: 50px; }
.price-loader span { display: inline-block; width: 6px; height: 6px; background-color: white; border-radius: 50%; animation: pulse 1.4s infinite ease-in-out both; }
.price-loader span:nth-child(1) { animation-delay: -0.32s; } .price-loader span:nth-child(2) { animation-delay: -0.16s; }

.store .name, .store .price { opacity: 0; transform: translateY(5px); transition: opacity 0.25s ease, transform 0.25s ease; }
.store.name-revealed .name, .store.price-revealed .price { opacity: 1; transform: translateY(0); }
.coupon-wrapper { opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease-out, transform 0.25s ease-out; }
.coupon-wrapper.coupon-revealed { opacity: 1; transform: translateY(0); }

.elementor-products-grid .add_to_cart_button, .elementor-products-grid .button { display: none !important; }

.woocommerce ul.products { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.woocommerce ul.products li.product {
    flex: 1 1 280px;
    min-height: 420px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.woocommerce ul.products li.product:hover { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); }
.woocommerce ul.products li.product img { width: 100%; height: auto; object-fit: cover; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { margin: 10px 0; text-align: center; }

.product-warning-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 6px 5px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
    box-sizing: border-box;
}
.product-warning-banner.warning-fake-brand { background-color: #CA8B3B; }
.product-warning-banner.warning-scam-quality { background-color: #942828; }

.coupon-info { padding-top: 8px; }
.custom-coupon-container { display: flex; align-items: center; direction: rtl; background-color: #a9c4d2; border-radius: 50px; padding: 6px; cursor: pointer; user-select: none; position: relative; min-height: 44px; box-sizing: border-box; }
.coupon-label { color: #2e4453; font-size: 14px; font-weight: 500; padding: 0 15px 0 10px; white-space: nowrap; }
.coupon-field { background-color: #fff; border-radius: 50px; padding: 6px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; direction: ltr; flex-grow: 1; min-width: 0; }
.coupon-text-value { font-family: 'Arial', sans-serif; font-size: 16px; color: #033F5F; flex-grow: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-icon { display: flex; align-items: center; color: #033F5F; flex-shrink: 0; }
.copy-icon svg { width: 18px; height: 18px; }
.copy-feedback { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 8px; background-color: #033F5F; color: white; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: bold; white-space: nowrap; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 10; }
.custom-coupon-container.copied .copy-feedback { opacity: 1; visibility: visible; transform: translate(-50%, -5px); }
.woocommerce ul.products li.product .store .name { font-size: 14.5px; }

.woocommerce ul.products li.product-category { background: none; border: none; box-shadow: none; min-height: initial; padding: 0; margin: 10px; flex-grow: 0; flex-basis: 200px; overflow: visible; }
.woocommerce ul.products li.product-category:hover { transform: none; box-shadow: none; }
.custom-category-circle-wrapper { text-align: center; }
.custom-category-circle-wrapper a { text-decoration: none; color: #333; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.category-image-circle { width: 160px; height: 160px; border-radius: 50%; background-color: #ffffff; background-size: contain; background-position: center; background-repeat: no-repeat; box-shadow: 0 6px 15px rgba(0,0,0,0.08); transition: transform 0.3s ease-out, box-shadow 0.3s ease-out; }
.custom-category-circle-wrapper .category-name { font-size: 18px; font-weight: 600; color: #4A4A4A; margin: 0; }
.custom-category-circle-wrapper a:hover .category-image-circle { transform: scale(1.05) translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.12); }
.custom-category-circle-wrapper a:hover .category-name { color: #c68533; }
li.product-category > a > h2 { display: none; }

.custom-stores-with-details { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }

.details-wrapper { text-align: right; margin: 4px 0 0 0; direction: rtl; opacity: 0; transform: translateY(10px); transition: opacity 0.25s ease-out, transform 0.25s ease-out; }
.details-wrapper.details-revealed { opacity: 1; transform: translateY(0); }
.custom-store-details {
    display: inline-block;
    max-width: 100%;
    color: #033F5F; /* --- THIS IS THE UPDATED COLOR --- */
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.custom-store-details > *:first-child { margin-top: 0; }

.product-filter-container { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; direction: ltr; }
.main-toggle-wrapper { display: flex; align-items: center; gap: 12px; }
.main-toggle-wrapper .main-label { color: #033F5F; font-size: 16px; font-weight: 500; cursor: pointer; user-select: none; direction: rtl; white-space: nowrap; }
.filter-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.filter-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; transition: .4s; }
input:checked + .slider { background-color: #c68533; }
input:focus + .slider { box-shadow: 0 0 1px #c68533; }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }

.sub-filters {
    display: none;
    flex-direction: row;
    flex-wrap: nowrap; /* THIS IS THE FIX */
    gap: 20px;
    padding-left: 15px;
}
.product-filter-container.filter-active .sub-filters { display: flex; }
.sub-filters label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #033F5F;
    font-size: 14px;
    cursor: pointer;
    direction: rtl;
    white-space: nowrap; /* Added for extra safety */
}
.sub-filters input[type="checkbox"] { width: 16px; height: 16px; accent-color: #c68533; cursor: pointer; }

.product-sorting-container { direction: rtl; }
.custom-select-wrapper { position: relative; user-select: none; }
.custom-select-trigger { display: flex; align-items: center; padding: 0 20px 0 35px; border: none; border-radius: 50px; background-color: #a9c4d2; font-size: 15px; font-weight: 500; color: #2e4453; cursor: pointer; min-height: 44px; box-sizing: border-box; transition: box-shadow 0.2s ease; }
.custom-select-trigger::after { content: ''; position: absolute; right: auto; left: 15px; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid #2e4453; transition: transform 0.3s ease; }
.custom-select-wrapper.open .custom-select-trigger::after { transform: rotate(180deg); }
.custom-select-wrapper.open .custom-select-trigger { box-shadow: 0 0 0 2px rgba(198, 133, 51, 0.3); }
.custom-options { position: absolute; top: calc(100% + 5px); left: 0; width: 100%; min-width: 220px; background-color: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); z-index: 100; padding: 6px; list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; }
.custom-select-wrapper.open .custom-options { opacity: 1; visibility: visible; transform: translateY(0); }
.custom-options li { padding: 10px 15px; color: #2e4453; border-radius: 8px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease; font-weight: 500; }
.custom-options li:hover { background-color: #eaf2f7; }
.custom-options li.selected { background-color: #eaf2f7; color: #033F5F; font-weight: 600; }

.product-controls-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
    direction: ltr;
    max-width: max-content;
    margin-left: 0;
    margin-right: auto;
}
.product-controls-container .product-sorting-container,
.product-controls-container .product-filter-container { margin-bottom: 0; }

@media (max-width: 768px) {
    .woocommerce ul.products { gap: 10px; }
    .woocommerce ul.products li.product-category { margin: 5px; }
}
@media (max-width: 480px) {
    .woocommerce ul.products li.product-category { flex-basis: 150px; }
    .category-image-circle { width: 120px; height: 120px; }
    .custom-category-circle-wrapper .category-name { font-size: 16px; }
}
@media (max-width: 360px) {
    .woocommerce ul.products li.product-category { flex-basis: 130px; }
    .category-image-circle { width: 100px; height: 100px; }
    .custom-category-circle-wrapper .category-name { font-size: 14px; }
}