/*
 * Venture custom styles
 *
 * Keep project-specific overrides in this file so the original theme files
 * can be updated without losing local changes.
 */

:root {
    --venture-logo-desktop-max-width: 210px;
    --venture-logo-desktop-max-height: 52px;
    --venture-logo-mobile-max-width: 145px;
    --venture-logo-mobile-max-height: 34px;
}

/* Header logo */
.header-logo .logo img {
    width: auto !important;
    height: auto !important;
    max-width: var(--venture-logo-desktop-max-width) !important;
    max-height: var(--venture-logo-desktop-max-height) !important;
    object-fit: contain;
}

/* Header and menu logos on mobile */
@media (max-width: 1200px) {
    .responsive-nav-wrapper .mobile-logo .logo img,
    .close-menu .mobile-logo .logo img {
        width: auto !important;
        height: auto !important;
        max-width: var(--venture-logo-mobile-max-width) !important;
        max-height: var(--venture-logo-mobile-max-height) !important;
        object-fit: contain;
    }
}

/* Electronic trust badges */
.footer-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 10px auto 30px;
}

.footer-trust-badges a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 8px;
    background-color: #fff;
}

.footer-trust-badges img {
    display: block;
    width: auto;
    max-width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Mobile bottom navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1200px) {
    .master-wrapper-page {
        padding-bottom: calc(92px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav {
        direction: rtl;
        position: fixed;
        right: 10px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 10px;
        z-index: 1050;
        display: flex !important;
        align-items: stretch;
        justify-content: space-around;
        height: 68px;
        padding: 5px 4px;
        border: 1px solid rgba(44, 44, 44, 0.08);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 12px 36px rgba(24, 24, 24, 0.18), 0 2px 8px rgba(24, 24, 24, 0.08);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .mobile-bottom-nav__item {
        position: relative;
        display: flex;
        flex: 1 1 20%;
        align-items: center;
        justify-content: center;
        min-width: 0;
    }

    .mobile-bottom-nav__content {
        appearance: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 5px 2px;
        border: 0;
        color: #686868;
        background: transparent;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .mobile-bottom-nav__content:focus-visible {
        outline: 2px solid var(--venture-primary-color, #f3cc2e);
        outline-offset: 2px;
        border-radius: 12px;
    }

    .mobile-bottom-nav__icon {
        width: 23px;
        height: 23px;
        margin-bottom: 4px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform 0.2s ease;
    }

    .mobile-bottom-nav__label {
        overflow: hidden;
        max-width: 100%;
        color: inherit;
        font-size: 10px;
        font-weight: 500;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-bottom-nav__item--active .mobile-bottom-nav__content,
    .mobile-bottom-nav__content:hover {
        color: var(--venture-primary-color, #f3cc2e);
    }

    .mobile-bottom-nav__item--active:not(.mobile-bottom-nav__item--cart):after {
        content: '';
        position: absolute;
        right: 50%;
        bottom: 1px;
        width: 15px;
        height: 3px;
        border-radius: 3px;
        background: var(--venture-primary-color, #f3cc2e);
        transform: translateX(50%);
    }

    .mobile-bottom-nav__content:active .mobile-bottom-nav__icon {
        transform: scale(0.88);
    }

    .mobile-bottom-nav__item--cart {
        align-self: stretch;
        height: auto;
    }

    .mobile-bottom-nav__cart {
        position: absolute;
        top: -24px;
        right: 50%;
        width: 62px;
        height: 62px;
        padding: 0;
        border: 5px solid #fff;
        border-radius: 50%;
        color: var(--venture-primary-color, #f3cc2e);
        background: linear-gradient(145deg, #383838, #202020);
        box-shadow: 0 9px 20px rgba(25, 25, 25, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
        transform: translateX(50%);
    }

    .mobile-bottom-nav__cart:hover {
        color: var(--venture-primary-color, #f3cc2e);
        filter: brightness(1.08);
        transform: translateX(50%) translateY(-2px);
    }

    .mobile-bottom-nav__cart .mobile-bottom-nav__icon {
        width: 25px;
        height: 25px;
        margin: 0;
    }

    .mobile-bottom-nav__cart-count {
        position: absolute;
        top: -5px;
        left: -4px;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 21px;
        height: 21px;
        padding: 0 5px;
        border: 2px solid #fff;
        border-radius: 12px;
        color: #2c2c2c;
        background: var(--venture-primary-color, #f3cc2e);
        font-size: 10px;
        font-weight: 700;
        line-height: 17px;
        box-shadow: 0 3px 8px rgba(25, 25, 25, 0.22);
    }

    .mobile-bottom-nav__cart-count.is-empty {
        opacity: 0.85;
    }

    .mobile-bottom-nav__cart-label {
        position: absolute;
        right: 0;
        bottom: 8px;
        left: 0;
        z-index: 1;
        color: #686868;
        line-height: 1.2;
        text-align: center;
        pointer-events: none;
    }

    .shopping-cart-page-body .mobile-bottom-nav__cart-label {
        color: var(--venture-primary-color, #f3cc2e);
    }

    .checkout-pages-body .master-wrapper-page {
        padding-bottom: 0;
    }

    .checkout-pages-body .mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .mobile-bottom-nav {
        right: 6px;
        left: 6px;
    }

    .mobile-bottom-nav__label {
        font-size: 9px;
    }
}

/* Button text color */
.button-1,
input.button-1,
button.button-1,
input[type="submit"].button-1,
input[type="button"].button-1 {
    color: #fff !important;
}

/* Add to cart button - white icon */
.product-box-add-to-cart-button:before {
    color: #fff !important;
}

/* Add future Venture overrides below this line. */

.social-sharing .telegram:before {
    content: "\2708";
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.social-sharing .whatsapp:before {
    content: "\260E";
    font-family: Arial, sans-serif;
    font-size: 18px;
}

.social-sharing .bale,
.social-sharing .rubika {
    color: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 46px;
    text-align: center;
}

.spc-categories:nth-child(even) .category-sublist,
.spc-categories:nth-child(even) .category-sublist a,
.spc-categories .category-sublist li a {
    color: #fff !important;
}

/* Keep text readable when the configurable primary color is used as a background. */
.category-item .title a {
    color: var(--venture-primary-contrast, #202020) !important;
}

.mobile-bottom-nav__cart-count {
    color: var(--venture-primary-contrast, #202020);
}

@media (min-width: 769px) {
    .sub-categories-wrapper .title a,
    .light-theme .sub-categories-wrapper .title a,
    .light-theme .sub-categories-wrapper .title a:hover {
        color: var(--venture-primary-contrast, #202020) !important;
    }

    .sub-categories-wrapper .title a {
        opacity: 0.82;
    }

    .sub-categories-wrapper .title a:hover {
        opacity: 1;
    }
}

@media (min-width: 1201px) {
    #topcartlink a,
    #topcartlink span,
    .light-theme #topcartlink a,
    .light-theme #topcartlink span {
        color: var(--venture-primary-contrast, #202020) !important;
    }
}

/* Homepage section heading */
.home-page-category-heading {
    position: relative;
    max-width: 760px;
    margin: 0 auto clamp(24px, 3vw, 38px);
    padding: 0 18px;
    text-align: center;
}

.home-page-category-heading:before {
    content: '';
    display: block;
    width: 54px;
    height: 4px;
    margin: 0 auto 16px;
    border-radius: 999px;
    background: var(--venture-primary-color, #d90a0a);
}

.home-page-category-heading h2 {
    margin: 0 0 9px;
    color: #20242b;
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 800;
    line-height: 1.35;
}

.dark-theme .home-page-category-heading h2 { color: #20242b; }
.home-page-category-heading p {
    margin: 0;
    color: #626d7c;
    font-size: 14px;
    line-height: 1.9;
}

.home-page-category-grid .category-item .title a,
.home-page-category-grid .category-item .title a:hover {
    color: #fff !important;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .32);
}

/* Homepage introduction — positioned below the category grid by the plugin view. */
.home-page .iranweb-home-intro {
    width: calc(100% - 40px);
    max-width: 1180px;
    margin: clamp(28px, 4vw, 52px) auto;
    padding: clamp(28px, 4vw, 52px);
    overflow: hidden;
    border: 1px solid rgba(127, 127, 127, .14);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(247,248,250,.96));
    box-shadow: 0 18px 50px rgba(25, 32, 45, .08);
    text-align: right;
}

.dark-theme .home-page .iranweb-home-intro {
    border-color: rgba(255,255,255,.08);
    background: linear-gradient(135deg, #272b31, #202329);
    box-shadow: 0 20px 55px rgba(0,0,0,.24);
}

.home-page .iranweb-home-intro .topic-block-title { margin-bottom: 12px; }
.home-page .iranweb-home-intro .topic-block-title h2 {
    color: #20242b;
    font-size: clamp(22px, 2vw, 31px);
    font-weight: 800;
    line-height: 1.5;
}
.dark-theme .home-page .iranweb-home-intro .topic-block-title h2 { color: #fff; }
.home-page .iranweb-home-intro .topic-block-body {
    max-width: 920px;
    margin: 0;
    color: #717782;
    font-family: inherit;
    font-size: 15px;
    line-height: 2;
}

/* Product cards — selectable layouts */
.iranweb-product-card-modern-1 .item-box .product-item,
.iranweb-product-card-modern-2 .item-box .product-item,
.iranweb-product-card-minimal .item-box .product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    height: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(27, 35, 48, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(22, 31, 44, .08);
}

.iranweb-product-card-modern-1 .item-box .product-item:before,
.iranweb-product-card-modern-2 .item-box .product-item:before,
.iranweb-product-card-minimal .item-box .product-item:before { display: none; }

.iranweb-product-card-modern-1 .item-box .picture,
.iranweb-product-card-modern-2 .item-box .picture,
.iranweb-product-card-minimal .item-box .picture {
    position: relative;
    flex: 0 0 auto;
    background: #f5f7fa;
}

.iranweb-product-card-modern-1 .item-box .picture img,
.iranweb-product-card-modern-2 .item-box .picture img {
    box-sizing: border-box;
    padding: 14px;
    transition: transform .45s ease;
}

.iranweb-product-card-modern-1 .item-box .product-item:hover .picture img,
.iranweb-product-card-modern-2 .item-box .product-item:hover .picture img { transform: scale(1.045); }

.iranweb-product-card-modern-1 .item-box .details,
.iranweb-product-card-modern-2 .item-box .details,
.iranweb-product-card-minimal .item-box .details {
    position: static;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    inset: auto;
    min-height: 150px;
    padding: 18px 18px 20px;
    background: #fff;
    text-align: right;
}

.iranweb-product-card-modern-1 .item-box .product-title,
.iranweb-product-card-modern-2 .item-box .product-title,
.iranweb-product-card-minimal .item-box .product-title {
    height: 48px;
    max-height: none;
    margin: 0 0 11px;
    overflow: hidden;
    color: #252a32;
    font-size: 15px;
    font-weight: 700;
    line-height: 24px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.iranweb-product-card-modern-1 .item-box .actual-price,
.iranweb-product-card-modern-2 .item-box .actual-price,
.iranweb-product-card-minimal .item-box .actual-price {
    color: var(--venture-primary-color, #d90a0a);
    font-size: 16px;
    font-weight: 800;
}

.iranweb-product-card-modern-1 .item-box .product-rating-box,
.iranweb-product-card-modern-2 .item-box .product-rating-box {
    display: block;
    position: static;
    top: auto;
    right: auto;
    bottom: 22px;
    left: 18px;
    width: 55px;
    height: 10px;
    margin: 0 0 12px;
    opacity: .7;
}

.iranweb-product-card-modern-1 .item-box .add-info,
.iranweb-product-card-modern-2 .item-box .add-info,
.iranweb-product-card-minimal .item-box .add-info {
    margin-top: auto;
}

.iranweb-product-card-modern-1 .item-box .buttons,
.iranweb-product-card-modern-2 .item-box .buttons {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: auto;
    height: auto !important;
    padding: 0;
    overflow: visible;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity .22s ease, transform .22s ease;
}

.iranweb-product-card-modern-1 .item-box .product-item:hover .buttons,
.iranweb-product-card-modern-2 .item-box .product-item:hover .buttons {
    height: auto !important;
    outline: 0;
    opacity: 1;
    transform: translateX(0);
}

.iranweb-product-card-modern-1 .item-box .buttons button,
.iranweb-product-card-modern-2 .item-box .buttons button {
    position: static;
    width: 42px;
    height: 42px !important;
    margin: 0;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 50%;
    background-color: rgba(255,255,255,.94);
    box-shadow: 0 6px 18px rgba(20,28,40,.14);
}

.iranweb-product-card-modern-1 .item-box .product-item {
    transition: transform .3s ease, box-shadow .3s ease;
}
.iranweb-product-card-modern-1 .item-box .product-item:hover {
    box-shadow: 0 20px 48px rgba(23, 32, 46, .16);
    transform: translateY(-6px);
}

.iranweb-product-card-modern-2 .item-box .product-item {
    border: 0;
    border-radius: 24px;
    box-shadow: 0 14px 45px rgba(23, 32, 46, .13);
}
.iranweb-product-card-modern-2 .item-box .details {
    align-self: center;
    width: calc(100% - 24px);
    margin: -20px 12px 12px;
    border-radius: 17px;
    box-shadow: 0 10px 25px rgba(23,32,46,.12);
}

.iranweb-product-card-minimal .item-box .product-item {
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
}
.iranweb-product-card-minimal .item-box .picture { background: #fff; }
.iranweb-product-card-minimal .item-box .buttons { display: none; }

.iranweb-product-card-modern-1 .nop-jcarousel .slick-track,
.iranweb-product-card-modern-2 .nop-jcarousel .slick-track,
.iranweb-product-card-minimal .nop-jcarousel .slick-track { display: flex; }
.iranweb-product-card-modern-1 .nop-jcarousel .slick-slide,
.iranweb-product-card-modern-2 .nop-jcarousel .slick-slide,
.iranweb-product-card-minimal .nop-jcarousel .slick-slide { height: auto; }
.iranweb-product-card-modern-1 .nop-jcarousel .slick-slide > div,
.iranweb-product-card-modern-1 .nop-jcarousel .carousel-item,
.iranweb-product-card-modern-1 .nop-jcarousel .item-box,
.iranweb-product-card-modern-2 .nop-jcarousel .slick-slide > div,
.iranweb-product-card-modern-2 .nop-jcarousel .carousel-item,
.iranweb-product-card-modern-2 .nop-jcarousel .item-box,
.iranweb-product-card-minimal .nop-jcarousel .slick-slide > div,
.iranweb-product-card-minimal .nop-jcarousel .carousel-item,
.iranweb-product-card-minimal .nop-jcarousel .item-box { height: 100%; }
.iranweb-product-card-modern-1 .nop-jcarousel .item-box,
.iranweb-product-card-modern-2 .nop-jcarousel .item-box,
.iranweb-product-card-minimal .nop-jcarousel .item-box { padding: 10px 7px 22px; }

.product-box-out-of-stock {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(198, 52, 52, .24);
    border-radius: 999px;
    color: #b44949 !important;
    background: rgba(198, 52, 52, .07);
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 18px !important;
}

/* Modern footer layouts */
.iranweb-footer-modern-1 .footer,
.iranweb-footer-modern-2 .footer {
    color: #b9c0ca;
    background: #171a20;
}

@media (min-width: 769px) {
    .iranweb-footer-modern-1 .footer-upper,
    .iranweb-footer-modern-2 .footer-upper {
        display: grid;
        grid-template-columns: 1.2fr .85fr .85fr 1.15fr;
        gap: 24px;
        max-width: 1240px;
        margin: 0 auto;
        padding: 66px 24px 46px;
    }

    .iranweb-footer-modern-1 .footer-block,
    .iranweb-footer-modern-2 .footer-block {
        float: none;
        width: auto;
        min-width: 0;
    }

    .iranweb-footer-modern-1 .footer-block .footer-collapse,
    .iranweb-footer-modern-2 .footer-block .footer-collapse { display: block !important; }
}

.iranweb-footer-modern-1 .footer .title,
.iranweb-footer-modern-2 .footer .title {
    margin-bottom: 17px;
    padding: 0 0 14px;
    border: 0;
    cursor: default;
}
.iranweb-footer-modern-1 .footer .title:before,
.iranweb-footer-modern-1 .footer .title:after,
.iranweb-footer-modern-2 .footer .title:before,
.iranweb-footer-modern-2 .footer .title:after { display: none; }
.iranweb-footer-modern-1 .footer .title strong,
.iranweb-footer-modern-2 .footer .title strong {
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.iranweb-footer-modern-1 .footer .title:after,
.iranweb-footer-modern-2 .footer .title:after {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    bottom: 0;
    left: auto;
    width: 34px;
    height: 3px;
    border-radius: 99px;
    background: var(--venture-primary-color, #d90a0a);
}

.iranweb-footer-modern-1 .footer-block .list,
.iranweb-footer-modern-2 .footer-block .list {
    padding: 0;
    background: transparent;
    font-family: inherit;
}
.iranweb-footer-modern-1 .footer-block a,
.iranweb-footer-modern-2 .footer-block a {
    display: inline-flex;
    padding: 7px 0;
    color: #adb5c0;
    font-size: 13px;
}
.iranweb-footer-modern-1 .footer-block a:hover,
.iranweb-footer-modern-2 .footer-block a:hover {
    color: #fff;
    transform: translateX(-4px);
}
.iranweb-footer-modern-1 .footer-block.find-us span,
.iranweb-footer-modern-2 .footer-block.find-us span {
    display: block;
    padding: 7px 27px 7px 0 !important;
    color: #adb5c0;
    font-size: 13px;
    line-height: 1.8;
}
.iranweb-footer-modern-2 .footer-upper {
    margin-top: 34px;
    padding: 28px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 26px;
    background: rgba(255,255,255,.035);
}
.iranweb-footer-modern-1 .footer-middle,
.iranweb-footer-modern-2 .footer-middle {
    border-color: rgba(255,255,255,.08);
}
.iranweb-footer-modern-1 .footer-lower,
.iranweb-footer-modern-2 .footer-lower {
    border-top: 1px solid rgba(255,255,255,.08);
    background: #12151a;
}

.scroll-back-button:before { color: #fff !important; }

@media (max-width: 768px) {
    .home-page .iranweb-home-intro { width: calc(100% - 20px); padding: 24px 20px; border-radius: 18px; }
    .iranweb-footer-modern-1 .footer .title,
    .iranweb-footer-modern-2 .footer .title { cursor: pointer; padding: 17px 22px; margin: 0; }
    .iranweb-footer-modern-1 .footer .title:after,
    .iranweb-footer-modern-2 .footer .title:after { display: none; }
    .iranweb-footer-modern-1 .footer-block .list,
    .iranweb-footer-modern-2 .footer-block .list { padding: 18px 22px; }
}

@media (hover: none) {
    .iranweb-product-card-modern-1 .item-box .buttons,
    .iranweb-product-card-modern-2 .item-box .buttons { opacity: 1; transform: none; }
}

@media (max-width: 599px) {
    .iranweb-product-card-modern-1 .item-box .details,
    .iranweb-product-card-modern-2 .item-box .details,
    .iranweb-product-card-minimal .item-box .details {
        min-height: 146px;
        padding: 16px 16px 18px;
    }

    .iranweb-product-card-modern-1 .item-box .buttons,
    .iranweb-product-card-modern-2 .item-box .buttons {
        top: 10px;
        left: 10px;
        gap: 6px;
    }

    .iranweb-product-card-modern-1 .item-box .buttons button,
    .iranweb-product-card-modern-2 .item-box .buttons button {
        width: 38px;
        height: 38px !important;
    }
}

/* Login with mobile — compact, focused and consistent with the storefront. */
.login-page .page-body {
    max-width: 1180px;
    margin: 0 auto;
}

.login-page .customer-blocks {
    float: none !important;
    width: min(100% - 32px, 520px) !important;
    margin: 34px auto 64px !important;
}

.login-page .returning-wrapper.fieldset,
.login-page .returning-wrapper.fieldset:before {
    float: none !important;
    width: 100% !important;
}

.login-page .returning-wrapper.fieldset {
    min-height: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, .10) !important;
    border-radius: 22px;
    background: #fff !important;
    box-shadow: 0 18px 50px rgba(23, 32, 46, .10);
}

.dark-theme .login-page .returning-wrapper.fieldset {
    border-color: rgba(255,255,255,.09) !important;
    background: #242931 !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.login-page .phonenumber-holder,
.login-page .activation-holder {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 34px 38px 32px !important;
}

.login-page .phonenumber-holder .title,
.login-page .activation-holder .title {
    margin: 0 0 28px !important;
    color: #20242b;
    font-size: 18px;
    font-weight: 800;
}

.dark-theme .login-page .phonenumber-holder .title,
.dark-theme .login-page .activation-holder .title { color: #fff; }

.login-page .phonenumber-holder .form-fields,
.login-page .activation-holder .form-fields {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.login-page .phonenumber-holder .inputs,
.login-page .activation-holder .inputs {
    margin: 0 0 18px !important;
    text-align: right;
}

.login-page .phonenumber-holder label,
.login-page .activation-holder label {
    display: block;
    margin: 0 0 9px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 700;
}

.dark-theme .login-page .phonenumber-holder label,
.dark-theme .login-page .activation-holder label { color: #d8dde5; }

.login-page .phonenumber-holder input.username,
.login-page .activation-holder input[type='text'],
.login-page .activation-holder input[type='tel'],
.login-page .activation-holder input[type='number'],
.login-page .returning-wrapper input.email,
.login-page .returning-wrapper input.username,
.login-page .returning-wrapper input.password {
    box-sizing: border-box;
    width: 100% !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 48px 0 16px !important;
    border: 1px solid #dbe1e9 !important;
    border-radius: 13px !important;
    color: #1f2937;
    background: #f8fafc !important;
    box-shadow: none !important;
    font-size: 15px !important;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.login-page .phonenumber-holder input:focus,
.login-page .activation-holder input:focus,
.login-page .returning-wrapper input.email:focus,
.login-page .returning-wrapper input.username:focus,
.login-page .returning-wrapper input.password:focus {
    border-color: var(--venture-primary-color, #d90a0a) !important;
    outline: 0;
    background: #fff !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 14%, transparent) !important;
}

.login-page .inputs-icons {
    right: 17px !important;
    bottom: 18px !important;
    color: var(--venture-primary-color, #d90a0a) !important;
    font-size: 17px !important;
}

.login-page .btn-active-code-holder,
.login-page .btn-login-holder {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 24px 0 18px !important;
    padding: 0 !important;
}

.login-page .btn-active-code-holder:before,
.login-page .btn-login-holder:before {
    content: '➜';
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 22px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%) rotate(180deg);
}

.login-page .btn-active-code-holder .login-button,
.login-page .btn-login-holder .login-button,
.login-page .returning-wrapper .buttons .button-1 {
    width: 100% !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 54px 0 20px !important;
    border: 0 !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: var(--venture-primary-color, #d90a0a) !important;
    box-shadow: 0 11px 24px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 28%, transparent);
    font-size: 15px !important;
    font-weight: 800;
    letter-spacing: 0 !important;
    text-transform: none !important;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.login-page .btn-active-code-holder .login-button:hover,
.login-page .btn-login-holder .login-button:hover,
.login-page .returning-wrapper .buttons .button-1:hover {
    filter: brightness(1.06);
    box-shadow: 0 15px 28px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 35%, transparent);
    transform: translateY(-2px);
}

.login-page .login-with-email-a-holder {
    margin: 0 !important;
    text-align: center !important;
}

.login-page .login-with-email-a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #5d6b7e !important;
    font-size: 13px;
    font-weight: 600;
}
.login-page .login-with-email-a:before { content: '✉'; color: var(--venture-primary-color, #d90a0a); }
.login-page .login-with-email-a:hover { color: var(--venture-primary-color, #d90a0a) !important; }

@media (max-width: 600px) {
    .login-page .customer-blocks { width: calc(100% - 20px) !important; margin: 20px auto 38px !important; }
    .login-page .phonenumber-holder,
    .login-page .activation-holder { padding: 28px 20px 24px !important; }
}

/* Email login shares the same visual language, while retaining its two actions. */
body.html-login-page .master-wrapper-page .login-page .customer-blocks {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: min(100% - 40px, 980px) !important;
    max-width: 980px !important;
    margin: 36px auto 56px !important;
}

body.html-login-page .master-wrapper-page .login-page .customer-blocks:has(.phonenumber-holder),
body.html-login-page .master-wrapper-page .login-page .customer-blocks:has(.activation-holder) {
    display: block !important;
    width: min(100% - 32px, 520px) !important;
    max-width: 520px !important;
}

body.html-login-page .master-wrapper-page .login-page .new-wrapper,
body.html-login-page .master-wrapper-page .login-page .returning-wrapper.fieldset {
    float: none !important;
    box-sizing: border-box;
    width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 32px !important;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, .10) !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 14px 40px rgba(23,32,46,.09) !important;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper.fieldset { padding: 0 !important; }

body.html-login-page .master-wrapper-page .login-page .new-wrapper:before,
body.html-login-page .master-wrapper-page .login-page .returning-wrapper.fieldset:before { display: none !important; }

body.html-login-page .master-wrapper-page .login-page .new-wrapper .title,
body.html-login-page .master-wrapper-page .login-page .returning-wrapper .title {
    margin: 0 0 22px !important;
    padding: 0 0 14px !important;
    border-bottom: 1px solid #edf0f4 !important;
    color: #20242b !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-align: right !important;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper .inner-wrapper,
body.html-login-page .master-wrapper-page .login-page .new-wrapper .inner-wrapper {
    display: block !important;
    padding: 32px !important;
    background: transparent !important;
}

body.html-login-page .master-wrapper-page .login-page .new-wrapper .text {
    min-height: 112px;
    margin: 0 0 24px !important;
    color: #6b7280 !important;
    font-family: inherit !important;
    font-size: 14px;
    line-height: 2.05 !important;
    text-align: right !important;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper .form-fields {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper .inputs {
    margin: 0 0 17px !important;
    text-align: right !important;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper .inputs label {
    display: block !important;
    margin: 0 0 9px !important;
    color: #4b5563 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper .inputs.reversed {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 28px;
}

body.html-login-page .master-wrapper-page .login-page .returning-wrapper .inputs.reversed .forgot-password {
    margin-right: auto !important;
    margin-left: 0 !important;
}

body.html-login-page .master-wrapper-page .login-page .new-wrapper .buttons,
body.html-login-page .master-wrapper-page .login-page .returning-wrapper .buttons {
    margin: 0 !important;
    padding: 0 !important;
}

body.html-login-page .master-wrapper-page .login-page .new-wrapper .button-1,
body.html-login-page .master-wrapper-page .login-page .returning-wrapper .buttons .button-1 {
    width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border-radius: 13px !important;
    color: #fff !important;
    background: var(--venture-primary-color, #d90a0a) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.html-login-page .master-wrapper-page .login-page .new-wrapper .button-1:hover,
body.html-login-page .master-wrapper-page .login-page .returning-wrapper .buttons .button-1:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

body.html-login-page .master-wrapper-page .login-page .topic-block {
    width: min(100% - 40px, 780px) !important;
    margin: 0 auto 56px !important;
    padding: 24px 30px !important;
    border: 1px solid rgba(31,41,55,.08);
    border-radius: 18px;
    background: rgba(255,255,255,.74);
}

body.dark-theme.html-login-page .master-wrapper-page .login-page .new-wrapper,
body.dark-theme.html-login-page .master-wrapper-page .login-page .returning-wrapper.fieldset,
body.dark-theme.html-login-page .master-wrapper-page .login-page .topic-block {
    border-color: rgba(255,255,255,.09) !important;
    background: #242931 !important;
}

body.dark-theme.html-login-page .master-wrapper-page .login-page .new-wrapper .title,
body.dark-theme.html-login-page .master-wrapper-page .login-page .returning-wrapper .title { color: #fff !important; border-color: rgba(255,255,255,.1) !important; }
body.dark-theme.html-login-page .master-wrapper-page .login-page .new-wrapper .text,
body.dark-theme.html-login-page .master-wrapper-page .login-page .returning-wrapper .inputs label { color: #c5ccd7 !important; }

/* A calmer, more tactile mobile quick-navigation bar. */
@media (max-width: 1200px) {
    .mobile-bottom-nav {
        right: 12px !important;
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        height: 72px !important;
        padding: 7px 6px !important;
        border: 1px solid rgba(255,255,255,.58) !important;
        border-radius: 24px !important;
        background: rgba(250, 252, 255, .92) !important;
        box-shadow: 0 16px 42px rgba(18, 27, 42, .18), 0 2px 8px rgba(18,27,42,.07) !important;
    }

    .mobile-bottom-nav__content {
        border-radius: 16px;
        color: #707784 !important;
        font-weight: 600;
    }

    .mobile-bottom-nav__item--active .mobile-bottom-nav__content {
        color: var(--venture-primary-color, #d90a0a) !important;
        background: color-mix(in srgb, var(--venture-primary-color, #d90a0a) 10%, transparent);
    }

    .mobile-bottom-nav__item--active:not(.mobile-bottom-nav__item--cart):after {
        bottom: 3px !important;
        width: 18px !important;
        height: 3px !important;
        background: var(--venture-primary-color, #d90a0a) !important;
    }

    .mobile-bottom-nav__icon { width: 21px !important; height: 21px !important; }
    .mobile-bottom-nav__label { margin-top: 1px; font-size: 10px !important; font-weight: 700 !important; }

    .mobile-bottom-nav__cart {
        top: -29px !important;
        width: 66px !important;
        height: 66px !important;
        border: 5px solid #fff !important;
        color: #fff !important;
        background: linear-gradient(145deg, var(--venture-primary-color, #d90a0a), #a80808) !important;
        box-shadow: 0 13px 25px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 38%, transparent) !important;
    }

    .mobile-bottom-nav__cart:hover { color: #fff !important; }
    .mobile-bottom-nav__cart-count {
        top: -4px !important;
        left: -5px !important;
        color: #fff !important;
        background: #20242b !important;
    }
    .mobile-bottom-nav__cart-label { bottom: 6px !important; font-weight: 700; }
}

@media (max-width: 700px) {
    body.html-login-page .master-wrapper-page .login-page .customer-blocks {
        display: block !important;
        width: calc(100% - 20px) !important;
        margin: 22px auto 38px !important;
    }
    body.html-login-page .master-wrapper-page .login-page .new-wrapper { margin: 0 0 14px !important; }
    body.html-login-page .master-wrapper-page .login-page .new-wrapper,
    body.html-login-page .master-wrapper-page .login-page .returning-wrapper .inner-wrapper { padding: 24px 20px !important; }
    body.html-login-page .master-wrapper-page .login-page .new-wrapper .text { min-height: 0; }
    body.html-login-page .master-wrapper-page .login-page .topic-block { width: calc(100% - 20px) !important; padding: 20px !important; }
}

/* Keep the newsletter action legible on the configurable primary-color background. */
#newsletter-subscribe-button.newsletter-subscribe-button {
    background-image: url('/Themes/Venture/Content/img/subscribe-button-light.svg') !important;
}

/* Product page layouts. These are intentionally scoped to the selected plugin setting. */
body[class*="iranweb-product-details-"] .product-details-page .product-essential-wrapper {
    padding: 38px 0 66px;
    background: linear-gradient(180deg, #fbfcfe 0, #fff 65%);
}

body[class*="iranweb-product-details-"] .product-details-page .product-essential {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(340px, .94fr);
    gap: clamp(28px, 5vw, 72px);
    width: min(1180px, calc(100% - 36px));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

body[class*="iranweb-product-details-"] .product-details-page .gallery,
body[class*="iranweb-product-details-"] .product-details-page .overview {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
}

body[class*="iranweb-product-details-"] .product-details-page .overview {
    position: static;
    min-width: 0;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .product-name {
    position: static;
    height: auto;
    margin: 0 0 12px;
    overflow: visible;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .product-name h1 {
    margin: 0;
    color: #202733;
    font-size: clamp(23px, 2.35vw, 32px);
    font-weight: 800;
    line-height: 1.55;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .gallery .picture {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
}

body[class*="iranweb-product-details-"] .product-details-page .gallery .picture img {
    max-height: 500px;
    object-fit: contain;
}

body[class*="iranweb-product-details-"] .product-details-page .gallery .picture-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
}

body[class*="iranweb-product-details-"] .product-details-page .gallery .thumb-item,
body[class*="iranweb-product-details-"] .product-details-page .gallery .thumb-item:nth-child(5n+1) {
    width: 66px;
    height: 66px;
    margin: 0;
    border: 1px solid #e1e6ec;
    border-radius: 12px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

body[class*="iranweb-product-details-"] .product-details-page .gallery .thumb-item:before { display: none; }
body[class*="iranweb-product-details-"] .product-details-page .gallery .thumb-item:hover {
    border-color: var(--venture-primary-color, #d90a0a);
    box-shadow: 0 7px 16px rgba(26, 35, 49, .10);
    transform: translateY(-2px);
}

body[class*="iranweb-product-details-"] .product-details-page .product-reviews-overview { margin: 0 0 16px; }
body[class*="iranweb-product-details-"] .product-details-page .overview .short-description {
    margin: 20px 0;
    padding: 15px 18px;
    border-right: 3px solid var(--venture-primary-color, #d90a0a);
    color: #667085;
    line-height: 2;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .availability-attributes-wrapper {
    margin: 18px 0;
}

body[class*="iranweb-product-details-"] .product-details-page .attributes {
    padding: 22px;
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .availability {
    max-width: none;
    margin: 0;
    border: 0;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .prices {
    margin: 18px 0;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .product-price {
    color: var(--venture-primary-color, #d90a0a);
    font-size: 29px;
    font-weight: 800;
}

body[class*="iranweb-product-details-"] .product-details-page .overview-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    text-align: right;
}

body[class*="iranweb-product-details-"] .product-details-page .overview-buttons > * {
    margin: 0;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .add-to-cart {
    display: flex;
    flex: 1 1 285px;
    align-items: center;
    margin: 0;
}

body[class*="iranweb-product-details-"] .product-details-page .add-to-cart-qty-wrapper {
    height: 52px;
    margin-left: 9px;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .qty-input {
    height: 52px;
    border-color: #dfe5ec;
    border-radius: 10px;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .add-to-cart-button {
    width: auto;
    max-width: none;
    min-height: 52px;
    flex: 1;
    padding: 14px 22px;
    border-radius: 11px;
    color: #fff;
    background: var(--venture-primary-color, #d90a0a);
    box-shadow: 0 10px 20px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 24%, transparent);
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

body[class*="iranweb-product-details-"] .product-details-page .overview .add-to-cart-button:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

body[class*="iranweb-product-details-"] .product-details-page .overview-buttons > :not(.add-to-cart) button {
    width: 52px;
    height: 52px;
    border: 1px solid #e1e6ec;
    border-radius: 11px;
    background: #fff;
    color: #596579;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

body[class*="iranweb-product-details-"] .product-details-page .overview-buttons > :not(.add-to-cart) button:hover {
    border-color: var(--venture-primary-color, #d90a0a);
    color: var(--venture-primary-color, #d90a0a);
    background: #fff7f7;
}

body.iranweb-product-details-modern-1 .product-details-page .product-essential {
    padding: clamp(20px, 3vw, 38px);
    border: 1px solid #e7ebf0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(25, 39, 58, .08);
}

body.iranweb-product-details-modern-1 .product-details-page .gallery {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(145deg, #f4f7fa, #fff);
}

body.iranweb-product-details-modern-1 .product-details-page .overview .prices {
    padding: 16px 18px;
    border-radius: 13px;
    background: #fff7f7;
}

body.iranweb-product-details-marketplace .product-details-page .product-essential {
    align-items: start;
}

body.iranweb-product-details-marketplace .product-details-page .gallery .picture {
    border: 1px solid #e3e8ee;
    border-radius: 16px;
    background: #fff;
}

body.iranweb-product-details-marketplace .product-details-page .overview {
    padding: 28px;
    border: 1px solid #e4e9ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(25, 39, 58, .06);
}

body.iranweb-product-details-marketplace .product-details-page .overview .prices {
    padding: 17px 18px;
    border: 1px solid #ffe4bb;
    border-radius: 12px;
    background: #fff9ef;
}

body.iranweb-product-details-minimal .product-details-page .product-essential {
    gap: clamp(24px, 4vw, 56px);
    border-top: 1px solid #e4e7eb;
    border-bottom: 1px solid #e4e7eb;
    padding: 30px 0;
}

body.iranweb-product-details-minimal .product-details-page .gallery .picture {
    min-height: 400px;
    background: #fff;
}

body.iranweb-product-details-minimal .product-details-page .overview .prices {
    padding-bottom: 14px;
    border-bottom: 1px solid #e4e7eb;
}

@media (max-width: 850px) {
    body[class*="iranweb-product-details-"] .product-details-page .product-essential {
        display: block;
        width: min(100% - 22px, 620px);
    }

    body[class*="iranweb-product-details-"] .product-details-page .gallery { margin-bottom: 28px !important; }
    body[class*="iranweb-product-details-"] .product-details-page .gallery .picture { min-height: 310px; }
    body[class*="iranweb-product-details-"] .product-details-page .gallery .picture img { max-height: 360px; }
    body.iranweb-product-details-marketplace .product-details-page .overview { padding: 22px; }
}

@media (max-width: 480px) {
    body[class*="iranweb-product-details-"] .product-details-page .product-essential-wrapper { padding-top: 18px; }
    body.iranweb-product-details-modern-1 .product-details-page .product-essential { padding: 14px; border-radius: 18px; }
    body[class*="iranweb-product-details-"] .product-details-page .gallery { padding: 10px; }
    body[class*="iranweb-product-details-"] .product-details-page .gallery .thumb-item,
    body[class*="iranweb-product-details-"] .product-details-page .gallery .thumb-item:nth-child(5n+1) { width: 54px; height: 54px; }
    body[class*="iranweb-product-details-"] .product-details-page .overview-buttons { gap: 7px; }
    body[class*="iranweb-product-details-"] .product-details-page .overview .add-to-cart { flex-basis: 100%; }
    body[class*="iranweb-product-details-"] .product-details-page .overview-buttons > :not(.add-to-cart) button { width: 48px; height: 48px; }
}

/* Reserved until a dedicated menu-style setting exists. */
@media (min-width: 1201px) and (max-width: 0px) {
    .header-menu .mega-menu > li > a,
    .header-menu .mega-menu > li > span {
        padding: 11px 19px;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 700;
    }

    .header-menu .mega-menu > li:hover > a,
    .header-menu .mega-menu > li:hover > span,
    .header-menu .mega-menu > li.active > a {
        color: #fff;
        background: color-mix(in srgb, var(--venture-primary-color, #d90a0a) 86%, #111);
        box-shadow: 0 8px 18px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 24%, transparent);
    }

    .mega-menu .dropdown {
        padding-top: 14px;
        animation: iranweb-menu-reveal .18s ease-out;
    }

    .mega-menu .row-wrapper {
        width: min(1120px, calc(100vw - 42px));
        padding: 24px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 18px;
        background: linear-gradient(135deg, #20252d 0%, #12161c 100%);
        box-shadow: 0 22px 50px rgba(15, 20, 29, .34);
    }

    .mega-menu .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
        gap: 18px;
        overflow: visible;
    }

    .mega-menu .row + .row {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,.09);
    }

    .mega-menu .dropdown .box,
    .mega-menu .dropdown.boxes-2 .box,
    .mega-menu .dropdown.boxes-3 .box,
    .mega-menu .dropdown.boxes-4 .box,
    .mega-menu .dropdown.boxes-5 .box,
    .mega-menu .dropdown.boxes-6 .box,
    .mega-menu .dropdown.boxes-7 .box,
    .mega-menu .dropdown.boxes-8 .box,
    .mega-menu .dropdown.boxes-9 .box {
        float: none;
        width: auto;
        min-width: 0;
        padding: 0;
    }

    .mega-menu .categories .picture-title-wrap {
        padding-bottom: 0;
    }

    .mega-menu .categories .picture {
        margin: 0 0 10px;
        border-radius: 13px;
        background: #fff;
        box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
    }

    .mega-menu .categories .picture a:before { padding-top: 68%; }
    .mega-menu .categories .picture img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .28s ease, filter .28s ease;
    }

    .mega-menu .categories .box:hover .picture img {
        filter: saturate(1.08);
        transform: scale(1.06);
    }

    .mega-menu .categories .picture-title-wrap .title {
        position: static;
        min-height: 31px;
        margin: 0 0 8px;
        padding: 0 0 8px;
        border-bottom: 1px solid rgba(255,255,255,.13);
        color: #fff;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.55;
        text-align: right;
    }

    .mega-menu .categories .picture-title-wrap .title:before { display: none; }
    .mega-menu .categories .picture-title-wrap .title a { color: inherit; }

    .mega-menu .subcategories {
        text-align: right;
    }

    .mega-menu .box li { margin: 0; }
    .mega-menu .box li a {
        display: block;
        padding: 5px 0;
        color: #aeb7c3;
        font-size: 13px;
        line-height: 1.45;
        text-align: right;
    }

    .mega-menu .box li a:hover {
        padding-right: 5px;
        color: #fff;
    }

    .mega-menu .box li a.view-all {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        margin-top: 8px;
        color: #fff;
        font-weight: 700;
    }

    .mega-menu .box li a.view-all:before {
        content: '←';
        color: var(--venture-primary-color, #d90a0a);
    }
}

@keyframes iranweb-menu-reveal {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Category page sidebar: product filters and nested categories become clear, compact cards. */
@media (min-width: 1201px) {
    .category-page-body .side-2 {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .category-page-body .side-2 .block {
        margin: 0;
        padding: 16px;
        border: 1px solid #e3e8ee;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(25, 39, 58, .055);
    }

    .category-page-body .side-2 .block .title {
        margin: 0;
        padding: 0 1px 12px;
        border: 0;
        color: #273142;
        font-size: 16px;
        font-weight: 800;
    }

    .category-page-body .side-2 .block .title:before {
        right: 1px;
        bottom: 0;
        width: 38px;
        height: 3px;
        border-radius: 99px;
        background: var(--venture-primary-color, #d90a0a);
        transform: none;
    }

    .category-page-body .side-2 .block .listbox {
        margin-top: 9px;
    }

    .category-page-body .side-2 .block .list {
        padding: 0;
    }

    .category-page-body .side-2 .block .list li {
        margin: 2px 0;
    }

    .category-page-body .side-2 .block .list a,
    .category-page-body .side-2 .block .list strong {
        min-height: 38px;
        padding: 9px 11px 9px 30px;
        border-radius: 9px;
        color: #697586;
        font-size: 14px;
        line-height: 1.45;
    }

    .category-page-body .side-2 .block .list a:hover {
        padding-right: 15px;
        color: #263242;
        background: #f3f6f9;
    }

    .category-page-body .side-2 .block .list li.active > a,
    .category-page-body .side-2 .block .list li.last > a {
        color: #fff;
        background: var(--venture-primary-color, #d90a0a);
        box-shadow: 0 6px 14px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 22%, transparent);
        font-weight: 700;
    }

    .category-page-body .side-2 .block .sublist {
        margin: 4px 8px 5px 0;
        padding: 3px 10px 3px 0;
        border-right: 1px solid #e2e7ed;
    }

    .category-page-body .side-2 .block .sublist a {
        min-height: 33px;
        padding-top: 7px;
        padding-bottom: 7px;
        font-size: 13px;
    }

    .category-page-body .side-2 .sublist-toggle-button {
        top: 10px;
        left: 7px;
        width: 22px;
        height: 22px;
        border: 1px solid #e0e6ec;
        border-radius: 7px;
        background: #f7f9fb;
    }

    .category-page-body .side-2 .sublist-toggle-button:hover {
        border-color: var(--venture-primary-color, #d90a0a);
        background: #fff6f6;
    }

    .category-page-body .side-2 .block.price-range-filter .selected-price-range {
        padding: 9px 0 16px;
    }

    .category-page-body .side-2 .block.price-range-filter .selected-price-range span {
        min-width: 48px;
        height: 25px;
        padding: 0 7px;
        border-radius: 7px;
        background: #293444;
        color: #fff;
        font-size: 11px;
        line-height: 25px;
    }

    .category-page-body .side-2 .price-range-filter .ui-slider {
        height: 5px;
        margin: 0 7px 17px;
        padding: 0;
        border: 0;
        border-radius: 99px;
        background: #e4e9ef;
    }

    .category-page-body .side-2 .price-range-filter .ui-slider-range {
        height: 5px;
        border-radius: 99px;
        background: var(--venture-primary-color, #d90a0a);
    }

    .category-page-body .side-2 .price-range-filter .ui-slider-handle {
        top: -5px;
        width: 15px;
        height: 15px;
        border: 3px solid #fff;
        border-radius: 50%;
        background: var(--venture-primary-color, #d90a0a);
        box-shadow: 0 2px 7px rgba(25, 39, 58, .25);
    }
}

/* Category results: a denser, retail-ready product grid and cleaner controls. */
.category-page-body .product-selectors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    padding: 10px;
    border: 1px solid #e5eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 18px rgba(25, 39, 58, .045);
}

.category-page-body .product-selectors > div {
    max-width: none;
    margin: 0;
}

.category-page-body .product-selectors select {
    min-height: 42px;
    padding: 8px 13px;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    background-color: #f8fafc;
    color: #536174;
    font-size: 13px;
}

.category-page-body .product-selectors .product-viewmode a,
.category-page-body .product-selectors .product-viewmode span {
    width: 42px !important;
    height: 42px;
    margin: 0 0 0 6px;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    background: #f8fafc;
}

.category-page-body .product-selectors .product-viewmode a.selected,
.category-page-body .product-selectors .product-viewmode span.selected {
    border-color: var(--venture-primary-color, #d90a0a);
    background: var(--venture-primary-color, #d90a0a);
    box-shadow: 0 6px 13px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 22%, transparent);
}

.category-page-body .product-selectors .product-viewmode a.selected:before,
.category-page-body .product-selectors .product-viewmode span.selected:before {
    color: #fff;
}

.category-page-body .product-selectors .compare-products-link a {
    min-height: 42px;
    padding: 11px 13px;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    color: #66758a;
    background: #f8fafc;
}

@media (min-width: 1201px) {
    .category-page-body .center-2 .product-grid {
        display: block;
    }

    /* Nop/Ajax Filters wrap the cards in item-grid; the outer grid also owns loaders. */
    .category-page-body .center-2 .product-grid > .item-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .category-page-body .center-2 .product-grid > .item-grid:after {
        content: none;
    }

    .category-page-body .center-2 .product-grid > .item-grid > .item-box,
    .category-page-body .center-2 .product-grid > .item-grid > .item-box:nth-child(n) {
        float: none;
        clear: none;
        width: auto;
        margin: 0;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .product-item {
        min-height: 100%;
        border: 1px solid #e3e9ef;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(22, 31, 44, .07);
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .picture {
        border-radius: 15px 15px 0 0;
        background: linear-gradient(145deg, #f8fafc, #eef2f6);
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .picture img {
        padding: 18px;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .details {
        display: flex;
        flex-direction: column;
        min-height: 140px;
        padding: 15px 16px 17px;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .product-title {
        height: 52px;
        margin-bottom: 8px;
        color: #263242;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.75;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .prices {
        margin-top: auto;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .actual-price {
        font-size: 15px;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .buttons {
        top: 12px;
        left: 12px;
    }

    .category-page-body.iranweb-product-card-modern-1 .center-2 .product-grid .buttons button {
        width: 39px;
        height: 39px !important;
        border-radius: 10px;
    }
}

.category-page-body .pager {
    margin: 32px 0 0;
    text-align: center;
}

.category-page-body .pager li a,
.category-page-body .pager li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    margin: 0 3px;
    border: 1px solid #e0e6ed;
    border-radius: 9px;
    color: #647287;
    background: #fff;
    font-size: 13px;
}

.category-page-body .pager li.current-page span,
.category-page-body .pager li a:hover {
    border-color: var(--venture-primary-color, #d90a0a);
    color: #fff;
    background: var(--venture-primary-color, #d90a0a);
    box-shadow: 0 6px 13px color-mix(in srgb, var(--venture-primary-color, #d90a0a) 20%, transparent);
}

@media (max-width: 700px) {
    .category-page-body .product-selectors { padding: 8px; }
    .category-page-body .product-selectors > div { flex: 1 1 145px; }
    .category-page-body .product-selectors .product-viewmode { flex: 0 0 auto; }
}

/* Real One Page Checkout primary-action contrast */
.ropc .complete-button button,
.ropc .complete-button button:hover,
.ropc .complete-button button:focus,
.ropc .complete-button button:active,
.ropc .estimate-shipping button:hover,
.ropc .coupon-box-panel .coupon-code button:hover,
.ropc .giftcard-box-panel .coupon-code button:hover {
    color: #fff !important;
}

/* Match Slick's RTL positioning to its container; otherwise the track is offscreen. */
.sale-of-the-day-offer .slick-carousel[data-slick*='"rtl":true'] {
    direction: rtl;
}

/* Let HTML Widgets use Venture's native three footer banner slots. */
.home-page-footer-banners { display: flex; flex-wrap: wrap; }
.home-page-footer-banners > .html-widget { width: 33.333333%; }
.home-page-footer-banners > .html-widget .slider-wrapper { width: 100%; margin: 0; }
@media (max-width: 767px) {
    .home-page-footer-banners > .html-widget { width: 100%; }
}
.home-page-footer-banners > .slider-wrapper { flex: 0 0 33.333333%; width: 33.333333%; min-width: 0; margin: 0; }
.home-page-footer-banners .anywhere-slider { width: 100% !important; }
.home-page-footer-banners img { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
    .home-page-footer-banners > .slider-wrapper { flex-basis: 100%; width: 100%; }
}
.product-item > .picture { position: relative; }
.iw-product-badges { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 3; display: flex; flex-wrap: wrap; gap: 5px; max-width: calc(100% - 20px); pointer-events: none; }
.iw-product-badge { padding: 5px 9px; font-size: 12px; line-height: 1.5; color: #222; background: #f5cf28; }
.iw-product-badge--new { color: #fff; background: #245c42; }
.iw-product-badge--unavailable { color: #fff; background: #555; }
