/* Reduce vertical line gap for suitability list (مناسب لـ / غير مناسب لـ) */
.product-fit-list,
.product-fit-yes,
.product-fit-no,
.suitable_for,
.not_suitable_for,
.us_custom_e1a10679 {
    line-height: 1 !important;
}

.product-fit-list p,
.product-fit-yes p,
.product-fit-no p,
.suitable_for p,
.not_suitable_for p,
.us_custom_e1a10679 p {
    margin: 0 !important;
    line-height: 1 !important;
}

.product-fit-list .fit-item,
.product-fit-yes .fit-item,
.suitable_for .fit-item {
    display: block !important;
    margin-bottom: 5px !important;
    line-height: 1.2 !important;
}

.product-fit-list .fit-item:last-child,
.product-fit-yes .fit-item:last-child,
.suitable_for .fit-item:last-child {
    margin-bottom: 0 !important;
}

.product-fit-list br,
.product-fit-yes br,
.suitable_for br {
    display: none !important;
}

/* Hide Add to Cart button and quantity input on fabric products */
form.cart .single_add_to_cart_button,
form.cart .quantity,
.w-post-elm.add_to_cart .single_add_to_cart_button,
.w-post-elm.add_to_cart .quantity,
.w-post-elm.add_to_cart form.cart button[type="submit"] {
    display: none !important;
}

/* Also reduce spacing around the add-to-cart wrapper element */
.w-post-elm.add_to_cart {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.w-post-elm.add_to_cart form.cart {
    margin-top: 0 !important;
}

/* Fix product title & price layout above: keep price and del on single line */
.w-post-elm.product_field.meter-price-regular .price,
.w-post-elm.product_field .price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    flex-direction: row-reverse !important;
    /* Proper RTL price display */
}

/* Fix meter price custom field in Impreza grids and layouts */
.w-post-elm.post_custom_field.meter-price-regular,
.layout_12238 .meter-price-regular,
.w-post-elm.post_custom_field.meter-price-sale,
.layout_12238 .meter-price-sale {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
}

.w-post-elm.post_custom_field.meter-price-regular .w-post-elm-value,
.layout_12238 .meter-price-regular .w-post-elm-value,
.w-post-elm.post_custom_field.meter-price-sale .w-post-elm-value,
.layout_12238 .meter-price-sale .w-post-elm-value {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
}

.gimsh-price-val {
    font-weight: 700 !important;
    color: #3b432c !important;
    font-size: 0.92rem !important;
    display: inline-block !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.gimsh-price-unit {
    font-weight: 600 !important;
    color: #3b432c !important;
    font-size: 0.82rem !important;
    display: inline-block !important;
    direction: rtl !important;
    unicode-bidi: isolate !important;
}

/* Flag inside Product Card grid (Layout 12238) - positioned on the far left after meter */
.gimsh-grid-meter-flag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    padding: 2px 4px !important;
    background: #ffffff !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    margin-right: 2px !important;
    margin-left: 0 !important;
    vertical-align: middle !important;
}

.gimsh-grid-meter-flag img,
.gimsh-grid-meter-flag svg {
    display: block !important;
    width: 17px !important;
    height: 11px !important;
    max-width: 17px !important;
    max-height: 11px !important;
    border-radius: 1px !important;
    object-fit: cover !important;
}

.w-post-elm.product_field .price del {
    color: #999 !important;
    font-size: 0.85em !important;
    order: 2 !important;
}

.w-post-elm.product_field .price ins,
.w-post-elm.product_field .price>.woocommerce-Price-amount:last-child {
    text-decoration: none !important;
    font-weight: 700 !important;
    color: #303b29 !important;
    order: 1 !important;
}

/* Ensure product title doesn't wrap awkwardly */
.w-post-elm.post_title h1 {
    line-height: 1.35 !important;
    margin-bottom: 8px !important;
}

/* ======================================================
   Gimsh Fabric Pricing & Swatches - Modern Card Design
   ====================================================== */

.gimsh-fabric-options-wrapper {
    margin: 6px 0 16px 0;
    padding: 0;
    width: 100%;
    max-width: 700px;
    direction: rtl;
    text-align: right;
    font-family: inherit;
    box-sizing: border-box;
}

.gimsh-field-group {
    margin-bottom: 16px;
    width: 100%;
}

.gimsh-field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: #1e291b;
    margin-bottom: 12px;
}

.gimsh-field-label .label-heading {
    color: #1e291b;
    font-size: 18px;
    font-weight: 700;
}

.gimsh-current-color-name {
    color: #1e291b;
    font-weight: 600;
    font-size: 16px;
}

/* ======================================================
   Color Swatches: Bigger & Full Rounded
   ====================================================== */
.gimsh-swatch-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: flex-start;
    width: 100%;
}

.gimsh-swatch-item {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.15s ease, opacity 0.15s ease;
    user-select: none;
    width: 68px;
    /* Slightly wider for the bigger circle */
}

.gimsh-swatch-item:hover {
    transform: translateY(-2px);
}

.gimsh-swatch-circle-wrap {
    position: relative;
    width: 62px;
    /* Bigger size */
    height: 62px;
    border-radius: 50% !important;
    /* Full rounded circle */
    padding: 3px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-sizing: border-box;
}

.gimsh-swatch-item.is-selected .gimsh-swatch-circle-wrap {
    border-color: #8c7355;
    /* Warm gold/olive ring */
    /* box-shadow: 0 0 0 1.5px #8c7355; */
}

.gimsh-swatch-dot {
    width: 52px;
    height: 52px;
    border-radius: 50px !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.gimsh-swatch-caption {
    margin-top: 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.25;
}

.gimsh-swatch-caption .caption-name {
    font-size: 13px;
    color: #333d29;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
}

.gimsh-swatch-caption .caption-num {
    display: none !important;
}

/* Out of stock swatch */
.gimsh-swatch-item.is-outofstock {
    opacity: 0.55;
    cursor: pointer;
}

.gimsh-swatch-item.is-outofstock .gimsh-swatch-dot {
    filter: grayscale(20%);
}

.gimsh-swatch-item.is-outofstock.is-selected {
    opacity: 0.9;
}

/* ======================================================
   Length Pills (3 متر, 3.5 متر, 4 متر, طاقة كاملة, طول خاص)
   ====================================================== */
.gimsh-length-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    width: 100%;
}

.gimsh-pill {
    background: #ffffff;
    border: 1px solid #dcd7ce;
    border-radius: 9px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #2b3323;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    min-height: 42px;
}

.gimsh-pill:hover {
    border-color: #8c7355;
    background: #faf8f5;
}

.gimsh-pill.is-active {
    border-color: #2b3820;
    background: #313e28;
    color: #ffffff;
    font-weight: 600;
}

.gimsh-pill .gimsh-roll-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.gimsh-pill.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f7f7f7;
}

.gimsh-pill .pill-stock-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    margin-right: 4px;
}

/* ======================================================
   Custom Length Stepper Input Row
   ====================================================== */
.gimsh-custom-stepper-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.gimsh-custom-stepper-row .stepper-label {
    font-size: 14px;
    font-weight: 600;
    color: #2b3323;
}

.stepper-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dcd7ce;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.stepper-control .stepper-btn {
    width: 36px;
    height: 38px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #313e28;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.stepper-control .stepper-btn:hover {
    background: #f0ece3;
}

.stepper-control input[type="number"] {
    width: 60px;
    height: 38px;
    border: none;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #2b3323;
    padding: 0;
    -moz-appearance: textfield;
}

.stepper-control input[type="number"]::-webkit-outer-spin-button,
.stepper-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gimsh-custom-stepper-row .unit-text {
    font-size: 14px;
    color: #555e4e;
    font-weight: 500;
}

/* ======================================================
   Total Price Card (Matches light-olive background)
   ====================================================== */
.gimsh-price-card {
    background: #e9eeea;
    border-radius: 16px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    width: 100%;
    box-sizing: border-box;
}

.price-card-right {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.price-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #1e2818;
}

.price-card-sub {
    font-size: 12px;
    color: #717d6b;
    font-weight: 500;
}

.price-card-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    direction: ltr;
    /* Keeps numbers and math clean */
    text-align: left;
}

.price-main-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #24351f;
    font-weight: 800;
}

.gimsh-total-num {
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.5px;
    color: #24351f;
}

.currency-tag {
    font-size: 18px;
    font-weight: 700;
    color: #24351f;
}

.price-calculation-hint {
    font-size: 12px;
    color: #5c6856;
    font-weight: 500;
}

/* ======================================================
   Gimsh Sticky Bottom Add to Cart Bar
   ====================================================== */
.gimsh-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    border-top: 1px solid #e7e5df;
    z-index: 99999;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
    padding: 10px 16px 12px;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.gimsh-sticky-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

/* Top Meta Row (Sub-text): Title • Color • Length */
.gimsh-sticky-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #636b5e;
    font-weight: 500;
    line-height: 1.2;
    padding-right: 4px;
}

.sticky-meta-title {
    color: #3b4435;
    font-weight: 600;
}

.sticky-meta-sep {
    color: #a4ad9f;
}

.sticky-meta-color,
.sticky-meta-length {
    color: #636b5e;
}

/* Main Action Row: Price + Buttons (Share, Wishlist) + Add to Cart */
.gimsh-sticky-main {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

/* Total Price on the far left */
.gimsh-sticky-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    direction: ltr;
    /* Keeps price formatting clear */
    text-align: left;
    white-space: nowrap;
    padding: 0 4px;
}

.sticky-price-num {
    font-size: 24px;
    font-weight: 800;
    color: #1e291b;
    letter-spacing: -0.5px;
}

.sticky-price-currency {
    font-size: 17px;
    font-weight: 700;
    color: #1e291b;
}

/* Actions group: Share and Wishlist */
.gimsh-sticky-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gimsh-sticky-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid #dcdad3;
    background: #fbfbf9;
    color: #3f4738;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.gimsh-sticky-btn-icon svg {
    width: 20px;
    height: 20px;
}

.gimsh-sticky-btn-icon:hover {
    background: #f0eee6;
    border-color: #c7c4b8;
    color: #1e291b;
}

/* Wishlist styling adaptation (Impreza native favorites & fallback) */
.gimsh-sticky-wishlist-wrap,
.gimsh-sticky-wishlist-wrap .w-btn-wrapper.for_add_to_favs {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gimsh-sticky-wishlist-wrap .w-btn.us_add_to_favs,
.gimsh-sticky-wishlist-wrap .gimsh-sticky-btn-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 8px !important;
    border: 1px solid #dcdad3 !important;
    background: #fbfbf9 !important;
    color: #3f4738 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 19px !important;
    box-shadow: none !important;
}

.gimsh-sticky-wishlist-wrap .w-btn.us_add_to_favs:hover,
.gimsh-sticky-wishlist-wrap .gimsh-sticky-btn-icon:hover {
    background: #f0eee6 !important;
    border-color: #c7c4b8 !important;
    color: #1e291b !important;
}

.gimsh-sticky-wishlist-wrap .w-btn.us_add_to_favs.added {
    color: #e53935 !important;
    border-color: #ffcdd2 !important;
    background: #ffebee !important;
}

.gimsh-sticky-wishlist-wrap .w-btn.us_add_to_favs.added i,
.gimsh-sticky-wishlist-wrap .w-btn.us_add_to_favs.added .fa-heart {
    font-weight: 900 !important;
    /* Filled heart */
}

.gimsh-sticky-wishlist-wrap .us-add-to-favs-tooltip {
    bottom: 55px !important;
    font-size: 13px !important;
    white-space: nowrap !important;
}

/* Main Add to Cart Full Width Olive Button */
.gimsh-sticky-atc-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #303b29;
    /* Dark Olive */
    color: #ffffff;
    height: 46px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    padding: 0 20px;
    box-shadow: 0 2px 6px rgba(48, 59, 41, 0.2);
}

.gimsh-sticky-atc-btn:hover {
    background-color: #242c1f;
}

.gimsh-sticky-atc-btn:active {
    transform: scale(0.99);
}

.gimsh-sticky-atc-btn .gimsh-atc-bag-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* WhatsApp secondary banner: "محتار؟ اسألنا عن هالخامة" */
.gimsh-sticky-wa-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid #d4dec9;
    background-color: #f7faf5;
    color: #3b5030;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gimsh-sticky-wa-row:hover {
    background-color: #edf5ea;
    border-color: #bad0aa;
    color: #24391d;
    text-decoration: none !important;
}

.gimsh-sticky-wa-row .gimsh-wa-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #25d366;
    stroke: none;
}

/* Responsive tweaks for mobile view */
@media (max-width: 768px) {
    .gimsh-sticky-bar {
        padding: 8px 12px 10px;
    }

    .sticky-price-num {
        font-size: 20px;
    }

    .sticky-price-currency {
        font-size: 15px;
    }

    .gimsh-sticky-btn-icon,
    .gimsh-sticky-wishlist-wrap .w-btn.us_add_to_favs,
    .gimsh-sticky-wishlist-wrap .gimsh-sticky-btn-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .gimsh-sticky-atc-btn {
        height: 42px;
        font-size: 15px;
    }

    .gimsh-sticky-wa-row {
        padding: 7px 10px;
        font-size: 13px;
    }

    /* Prevent content overlap with sticky bottom */
    body.single-product {
        padding-bottom: 125px !important;
    }
}

/* ======================================================
   Fixed Floating "Added to Cart" Toast Notification
   (Applied to both Mobile and Desktop on Single Product)
   ====================================================== */

/* Hide default inline notices rendered below/inside the add-to-cart form */
.single-product .w-post-elm.add_to_cart > .woocommerce-notices-wrapper,
.single-product form.cart + .woocommerce-notices-wrapper {
    position: fixed !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 120px) !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    z-index: 100005 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Standard WooCommerce notices wrapper */
.single-product .woocommerce-notices-wrapper {
    position: fixed !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 120px) !important;
    left: 20px !important;
    right: 20px !important;
    width: auto !important;
    max-width: 580px !important;
    margin: 0 auto !important;
    z-index: 100005 !important;
    pointer-events: none !important;
    display: block !important;
}

/* Floating Card Design */
.single-product .woocommerce-notices-wrapper .woocommerce-message,
.single-product .woocommerce-notices-wrapper .woocommerce-info,
.single-product .woocommerce-notices-wrapper .woocommerce-error,
.single-product > .woocommerce-message {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    pointer-events: auto !important;
    background: #252d20 !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-sizing: border-box !important;
    animation: gimshNoticeSlideUp 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* RTL Specific alignment */
body.rtl.single-product .woocommerce-notices-wrapper .woocommerce-message,
body.rtl.single-product .woocommerce-notices-wrapper .woocommerce-info,
body.rtl.single-product .woocommerce-notices-wrapper .woocommerce-error,
body.rtl.single-product > .woocommerce-message {
    direction: rtl !important;
    text-align: right !important;
}

/* LTR / English Specific alignment */
body:not(.rtl).single-product .woocommerce-notices-wrapper .woocommerce-message,
body:not(.rtl).single-product .woocommerce-notices-wrapper .woocommerce-info,
body:not(.rtl).single-product .woocommerce-notices-wrapper .woocommerce-error,
body:not(.rtl).single-product > .woocommerce-message {
    direction: ltr !important;
    text-align: left !important;
}

/* "View cart" Action Button inside notice */
.single-product .woocommerce-message a.button,
.single-product .woocommerce-message a.wc-forward {
    background: #9cad86 !important;
    color: #1e261a !important;
    border-radius: 8px !important;
    padding: 7px 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    float: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.single-product .woocommerce-message a.button:hover,
.single-product .woocommerce-message a.wc-forward:hover {
    background: #b5c79e !important;
    color: #1e261a !important;
    transform: translateY(-1px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .single-product .woocommerce-notices-wrapper,
    .single-product .w-post-elm.add_to_cart > .woocommerce-notices-wrapper,
    .single-product form.cart + .woocommerce-notices-wrapper {
        bottom: calc(env(safe-area-inset-bottom, 0px) + 125px) !important;
        left: 12px !important;
        right: 12px !important;
        max-width: calc(100vw - 24px) !important;
    }

    .single-product .woocommerce-notices-wrapper .woocommerce-message {
        padding: 12px 16px !important;
        font-size: 13.5px !important;
        gap: 12px !important;
    }

    .single-product .woocommerce-message a.button,
    .single-product .woocommerce-message a.wc-forward {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
}

@keyframes gimshNoticeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================================
   Mega Menu & Header Navigation Styles matching mockup
   ====================================================== */

/* Level 1 Nav Item (تسوق, دليل قماش, من نحن, مساعدة) Hover & Active States */
.l-header .w-nav.type_desktop .w-nav-anchor.level_1 {
    border-radius: 20px !important;
    padding: 8px 25px !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

/* Active state & Hover state for Level 1 items */
.l-header .w-nav.type_desktop .w-nav-item.level_1.current-menu-item>.w-nav-anchor.level_1,
.l-header .w-nav.type_desktop .w-nav-item.level_1.current-menu-ancestor>.w-nav-anchor.level_1,
.l-header .w-nav.type_desktop .w-nav-item.level_1.current-page-ancestor>.w-nav-anchor.level_1,
.no-touch .l-header .w-nav.type_desktop .w-nav-item.level_1:hover>.w-nav-anchor.level_1,
.l-header .w-nav.type_desktop .w-nav-item.level_1.opened>.w-nav-anchor.level_1 {
    /* background-color: rgba(255, 255, 255, 0.16) !important; */
    color: #ffffff !important;
}

/* Mega Menu Popup Container: Exact align directly below the menu item in RTL without shifting */
.l-header .w-nav.type_desktop .w-nav-item.level_1 {
    position: relative !important;
}

.l-header .w-nav.type_desktop .w-nav-item.level_1>.w-nav-list.level_2 {
    border-radius: 20px !important;
    overflow: hidden !important;
    background: #ffffff !important;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.18), 0 0 1px 1px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
    margin-top: 8px !important;
    top: 100% !important;
    inset-inline-start: 0 !important;
    /* In RTL, starts directly from the right edge of 'تسوق' */
    inset-inline-end: auto !important;
    width: auto !important;
    min-width: 700px !important;
    max-width: 540px !important;
}

/* Inner Page Block Padding and Layout */
.l-header .menu-item-object-us_page_block .l-section {
    padding: 20px 24px 24px !important;
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.l-header .menu-item-object-us_page_block .l-section-h {
    padding: 0 !important;
    width: 100% !important;
}

.l-header .menu-item-object-us_page_block .g-cols {
    gap: 1.2rem !important;
    width: 100% !important;
}

/* Mega Menu Column Headings (حسب الموسم, حسب المناسبة, جميع الأقمشة) */
.l-header .menu-item-object-us_page_block .wpb_column .w-text:first-child .w-text-value {
    color: #b58252 !important;
    /* Warm Deep Gold matching mockup */
    font-size: 15.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    display: inline-block !important;
    margin-bottom: 4px !important;
}

/* Remove default separator gap */
.l-header .menu-item-object-us_page_block .w-separator {
    margin: 8px 0 14px !important;
    border: none !important;
}

/* Mega Menu Links / Items Hover & Typography */
.l-header .menu-item-object-us_page_block a,
.l-header .menu-item-object-us_page_block .w-menu a,
.l-header .menu-item-object-us_page_block .w-vwrapper a,
.l-header .menu-item-object-us_page_block .w-vwrapper .w-text,
.l-header .menu-item-object-us_page_block .usg_post_title_1 a {
    color: #2b3323 !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

/* Hover effect on Mega Menu links */
.l-header .menu-item-object-us_page_block a:hover,
.l-header .menu-item-object-us_page_block .w-menu a:hover,
.l-header .menu-item-object-us_page_block .w-vwrapper a:hover,
.l-header .menu-item-object-us_page_block .usg_post_title_1 a:hover {
    color: #12170d !important;
    background-color: #f6f5f0 !important;
    transform: translateX(-3px) !important;
}

/* Remove count badge styling if present */
.l-header .menu-item-object-us_page_block .usg_post_title_1 b {
    display: none !important;
}

/* List gap adjustments inside columns */
.l-header .menu-item-object-us_page_block .w-menu.for_category_nav ul.level_1 {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.l-header .menu-item-object-us_page_block .w-grid-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.l-header .menu-item-object-us_page_block .w-vwrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

/* Category Card 3-product preview row */
.gimsh-term-mini-products-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-top: 15px !important;
    margin-bottom: 12px !important;
    direction: rtl !important;
}

.gimsh-term-mini-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.gimsh-term-mini-thumb {
    display: block !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    background-color: #eee !important;
    margin-bottom: 6px !important;
    transition: transform 0.2s ease !important;
}

.gimsh-term-mini-thumb:hover {
    transform: scale(1.03) !important;
}

.gimsh-term-mini-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.gimsh-term-mini-title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: #263126 !important;
    text-decoration: none !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    width: 100% !important;
    text-align: right;
}

.gimsh-term-mini-pricing-row {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-direction: row !important;
    width: 100% !important;
    text-align: right !important;
}

.gimsh-term-mini-price {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #3b432c !important;
    white-space: nowrap !important;
}

.gimsh-term-mini-flag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 3px !important;
    padding: 1px 3px !important;
    background: #ffffff !important;
    line-height: 1 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

.gimsh-term-mini-flag .gimsh-flag-svg,
.gimsh-term-mini-flag .gimsh-flag-img {
    display: block !important;
    width: 15px !important;
    height: 10px !important;
    border-radius: 1px !important;
    object-fit: cover !important;
}

/* ==========================================================================
   Product Card Swatches (Layout 12238 & Fabric Cards)
   15px x 15px circles with reduced gap
   ========================================================================== */
.w-post-elm.post_taxonomy.fabric-card-colors,
.layout_12238 .w-post-elm.post_taxonomy.with_color_swatch,
.layout_12238 .fabric-card-colors {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    line-height: 1 !important;
}

/* Hide comma separators between swatches */
.w-post-elm.post_taxonomy.fabric-card-colors>b,
.layout_12238 .w-post-elm.post_taxonomy.with_color_swatch>b,
.layout_12238 .fabric-card-colors>b {
    display: none !important;
}

/* Ensure link wrapper fits nicely */
.w-post-elm.post_taxonomy.fabric-card-colors a,
.layout_12238 .w-post-elm.post_taxonomy.with_color_swatch a,
.layout_12238 .fabric-card-colors a {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

/* Swatch circle: exactly 15px x 15px, border-radius 50%, no outer margins */
.w-post-elm.post_taxonomy.fabric-card-colors .w-color-swatch,
.layout_12238 .w-post-elm.post_taxonomy.with_color_swatch .w-color-swatch,
.layout_12238 .fabric-card-colors .w-color-swatch {
    display: inline-block !important;
    width: 15px !important;
    height: 15px !important;
    min-width: 15px !important;
    min-height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    border-radius: 50% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}


/* More colors count badge (+N) in fabric card */
.w-post-elm.post_taxonomy.fabric-card-colors .term-more-colors-count,
.layout_12238 .fabric-card-colors .term-more-colors-count {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #444444 !important;
    line-height: 1 !important;
    margin-right: 4px !important;
    margin-left: 2px !important;
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.w-post-elm.post_taxonomy.fabric-card-colors .term-more-colors-count .w-color-swatch,
.layout_12238 .fabric-card-colors .term-more-colors-count .w-color-swatch {
    display: none !important;
}

.w-post-elm.post_taxonomy.fabric-card-colors .term-more-colors-count>span:not(.w-color-swatch),
.layout_12238 .fabric-card-colors .term-more-colors-count>span:not(.w-color-swatch) {
    display: inline-block !important;
}

/* ==========================================================================
   Color Filter 2-Column Cards (Reference Image Match)
   ========================================================================== */
.w-filter-item[data-source*="color"] .w-filter-item-values,
.w-filter-item.with_color_swatch .w-filter-item-values {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    grid-auto-flow: dense !important;
    gap: 8px !important;
    max-height: none !important;
    padding: 2px 0 !important;
}

/* Ensure disabled, hidden, or hidden_by_more items are completely removed from grid layout */
.w-filter.hide_disabled_values .w-filter-item[data-source*="color"] .w-filter-item-value.disabled,
.w-filter.hide_disabled_values .w-filter-item.with_color_swatch .w-filter-item-value.disabled,
.w-filter-item[data-source*="color"] .w-filter-item-value.disabled,
.w-filter-item.with_color_swatch .w-filter-item-value.disabled,
.w-filter-item[data-source*="color"] .w-filter-item-value.hidden_by_more,
.w-filter-item.with_color_swatch .w-filter-item-value.hidden_by_more,
.w-filter-item[data-source*="color"] .w-filter-item-value.hidden,
.w-filter-item.with_color_swatch .w-filter-item-value.hidden {
    display: none !important;
    visibility: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    min-height: 0 !important;
    height: 0 !important;
}

/* Each color option is a rounded card */
.w-filter-item[data-source*="color"] .w-filter-item-value:not(.disabled):not(.hidden_by_more):not(.hidden),
.w-filter-item.with_color_swatch .w-filter-item-value:not(.disabled):not(.hidden_by_more):not(.hidden) {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #e5dccd !important;
    border-radius: 8px !important;
    background-color: #ffffff !important;
    padding: 7px 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-height: 38px !important;
}

.w-filter-item[data-source*="color"] .w-filter-item-value:hover,
.w-filter-item.with_color_swatch .w-filter-item-value:hover {
    border-color: #c9bea9 !important;
    background-color: #fffdf9 !important;
}

/* Selected active card */
.w-filter-item[data-source*="color"] .w-filter-item-value:has(input:checked),
.w-filter-item[data-source*="color"] .w-filter-item-value.selected,
.w-filter-item.with_color_swatch .w-filter-item-value:has(input:checked),
.w-filter-item.with_color_swatch .w-filter-item-value.selected {
    border-color: #8a6335 !important;
    background-color: #fffdf9 !important;
    box-shadow: 0 0 0 1px #8a6335 !important;
}

/* Label flex layout: text on right in LTR / start in RTL; swatch circle on end */
.w-filter-item[data-source*="color"] .w-filter-item-value>label,
.w-filter-item.with_color_swatch .w-filter-item-value>label {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

/* Color name text */
.w-filter-item[data-source*="color"] .w-filter-item-value-label,
.w-filter-item.with_color_swatch .w-filter-item-value-label {
    order: 1 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: #333333 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.w-filter-item[data-source*="color"] .w-filter-item-value:has(input:checked) .w-filter-item-value-label,
.w-filter-item.with_color_swatch .w-filter-item-value:has(input:checked) .w-filter-item-value-label {
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

/* Swatch circle: placed on the other side of label */
.w-filter-item[data-source*="color"] .w-filter-item-value input[type="radio"],
.w-filter-item[data-source*="color"] .w-filter-item-value input[type="checkbox"],
.w-filter-item.with_color_swatch .w-filter-item-value input[type="radio"],
.w-filter-item.with_color_swatch .w-filter-item-value input[type="checkbox"] {
    order: 2 !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4) !important;
    margin: 0 !important;
    margin-inline-start: 6px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

/* Remove default radio/checkbox checkmark/dot inner pseudo-elements */
.w-filter-item[data-source*="color"] .w-filter-item-value input::before,
.w-filter-item.with_color_swatch .w-filter-item-value input::before {
    display: none !important;
    content: none !important;
}

/* Hide amount counter in color filter cards to keep clean look like reference */
.w-filter-item[data-source*="color"] .w-filter-item-value-amount,
.w-filter-item.with_color_swatch .w-filter-item-value-amount {
    display: none !important;
}

/* Style the 'Any' option as a full-width card or clean reset card */
.w-filter-item[data-source*="color"] .w-filter-item-value[data-value="*"],
.w-filter-item.with_color_swatch .w-filter-item-value[data-value="*"] {
    grid-column: span 2 !important;
    background-color: #fcfbfa !important;
}

.w-filter-item[data-source*="color"] .w-filter-item-value[data-value="*"] input,
.w-filter-item.with_color_swatch .w-filter-item-value[data-value="*"] input {
    background: #e5dccd !important;
}

/* ==========================================================================
   Show More Button Styling
   ========================================================================== */
.w-filter-item-more {
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
    padding: 7px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #8a6335 !important;
    border: 1px solid #e5dccd !important;
    border-radius: 8px !important;
    background-color: #fffdf9 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.w-filter-item-more:hover {
    background-color: #f7f2ea !important;
    border-color: #c9bea9 !important;
    color: #63451e !important;
}

/* ==========================================================================
   Show More Button Styling
   ========================================================================== */
.w-filter-item-more {
    display: inline-block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
    padding: 7px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #8a6335 !important;
    border: 1px solid #e5dccd !important;
    border-radius: 8px !important;
    background-color: #fffdf9 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.w-filter-item-more:hover {
    background-color: #f7f2ea !important;
    border-color: #c9bea9 !important;
    color: #63451e !important;
}