.category-product-div {
    padding: 5px !important;
}

.category-product {
    /*width:44dvw;*/
    padding: 6px;
    height: fit-content;
}

.btn-wholesaler {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 5%;
    padding: 5% 0 5%;
    background-color: #fff;
}
.wholesaler {
    display: flex;
    justify-content: space-evenly;
    margin-bottom: 5%;
    padding: 2% 0 5%;
    background-color: #fff;
    border-radius: 1%;
    box-shadow: 0px 2px 4px rgba(126, 142, 177, 0.12);
}
.wholesaler > .image-wholesaler {
   width: 44%;
   height: 500px;
   position: relative;
    background-color: #e0e0e05c;
    /*opacity: 0.75;*/
}

.wholesaler > .image-wholesaler > img {
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 10;
    top: 27px;
    left: -36px;
    border-radius: 1%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.wholesaler > .even-image > img{
    left: 36px;
}

.wholesaler > .text-product {
    width: 39%;
    line-height: 38px;
    text-align: justify;
    font-size: 1.3em;
    font-weight: 600;
    margin-top: 5em;
}
.wholesaler > .text-product .request-wholesaler {
    width: 250px;
    margin-right: 35%;
    border-radius: 1em;
    border: 0;
    outline: none;
    padding:0.3em;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    background-color: #399b84;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    margin-top: 2em;
}

.slider-section-wholesaler, .services-wholesaler {
    margin-bottom: 5% !important;
}

.slider-section-wholesaler > .title {
    text-align: center;
    padding: 1em 0;
    margin-bottom: 2em;
    font-size: 1.5em;
    font-weight: 600;
}
.brand-slider {
    margin-bottom: 1em;
}
/* -------------- biography---------------*/
   .biography {
    display: flex;
    justify-content: space-between;
}
.text-biography {
    line-height: 30px;
    color: #666;
    text-align: justify;
    padding: 26px 0 0 32px;
    font-size: 14px !important;
}
.video-biography {
    width: 80%;
    height: 395px;
    position: relative;
    cursor: pointer;
}

.video-biography > video {
    width: 100%;
    height: 100%;
}

.video-biography > .play, .video-biography > .pause {
    width: 58px;
    position: absolute;
    top: 37%;
    z-index: 10;
    right: 45%;
}
.video-biography > .pause {
    display: none;
}

/*.category-section-slider .category-slider .item img {*/
/*    border-radius: 1.5em;*/
/*    background: #fff;*/
/*    padding: 7px;*/
/*}*/

/*---------------menu fixed bottom mobile-----------*/

.fixed-menu {
    position: fixed;
    margin: 0 3% 0 0;
    z-index: 11;
    right: 0;
    bottom: 7px;
    width: 95%;
    height: 63px;
    background-color: #fff;
    display: none;
    justify-content: space-around;
    align-items: end;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;
    padding-bottom: 0.4em;
    border-radius: 2em;
    background-color: rgba(248, 249, 251, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(7.5px);
}

.fixed-menu > li {
    list-style: none;
}

.fixed-menu > li > .icon {
    width: 44px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    position: absolute;
    top: 8px;
}
.fixed-menu > li > .icon > i {
   font-size: 24px;
}
.fixed-menu > li > span {
    font-size: 11px;
    font-weight: bold;
}

.fixed-menu > li  .filter img {
    width: 50%;
    height: 46%;
    margin-top: 18px;
    margin-right: -1px !important;
}

.fixed-menu > .item-menu > .active {
    color: #0c23b3;
}
.fixed-menu > li:nth-child(4) > .icon > span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color:#fff;
    position: absolute;
    text-align: center;
    color: #8b0000;
    top: 14px;
    right: 4px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.fixed-menu > li:nth-child(3) > .icon > span {
    position: absolute;
    top: 13px;
    right: -3px;
    background: #ef3743;
    color: #fff;
    border-radius: 100%;
    height: 22px;
    width: 22px;
    line-height: 24px;
    font-size: 12px;
    animation: cart-box 2s infinite;
    text-align: center;
}

.side-menu > .categories {
    margin-right: 1.3em;
    margin-top: 1em;
    font-size: 16px;
    color: #000;
    display: inline-block;
    width: 90%;
}
.side-menu > .navbar-nav > li > a > i {
    font-size: 20px;
}

.mobile-footer > ul{
    margin-top: 2em;
    display: flex;
    justify-content: space-around;
}
.mobile-footer > ul> li {
    width: 31%;
    height: 100px;
    border: 1px solid #0b2e13;
    border-radius: 0.5em;
    list-style: none;
    display: none;
    justify-content: center;
}

.mobile-footer > ul> li > a > img, .mobile-footer > ul> li > img {
    width: 100%;
}
.search-box-side-menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.search-box-side-menu > a > img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.search-box-side-menu > span {
    font-size: 15px;
    font-weight: 600;
    color: #0B0B0B;
}

.shop_install {
    position: fixed;
    z-index: 999;
    bottom: 68px;
    right: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    display: none;
    justify-content: space-around;
    align-items: center;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}

.shop_install > span {
    color: #0B5661;
    font-size: 15px;
    font-weight: bold;
}

.shop_install > .install {
    background: #0B5661;
    border-radius: 0.5em;
    border: 0;
    width: 26%;
    padding: 0.5em 1em;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*.copyright {*/
/*    position: fixed;*/
/*    bottom: 0;*/
/*    padding-bottom: 0.8em;*/
/*    width: 66%;*/
/*    text-align: center;*/
/*    color: #000;*/
/*    z-index: 9999;*/
/*    background: #fff;*/
/*}*/
.promotion-badge {
    top: 0;
}
@media (max-width: 575px)
{
    .wholesaler {
        flex-direction: column;
        margin-top: 2em;
    }

    .wholesaler > .image-wholesaler {
        width: 91%;
        height: 400px;
        margin-bottom: 2em;
    }

    .wholesaler > .image-wholesaler > img {
        left: -19px;
    }
    .wholesaler > .text-product {
        width: 100%;
        margin-top: 3em;
        padding: 0 0.6em;
        margin-bottom: 2em;
    }
    .wholesaler > .text-product .request-wholesaler {
        margin-right: 17%;
    }
    .biography {
        flex-direction: column;
    }
    .text-biography {
        padding: 26px 0 0 5px;
    }
    .video-biography {
        width: 100%;
    }

}


@media (min-width: 576px) and (max-width: 767px)
{

    .wholesaler {
        flex-direction: column;
        margin-top: 2em;
    }
    .wholesaler > .image-wholesaler {
        width: 91%;
        height: 400px;
        margin-bottom: 2em;
    }

    .wholesaler > .image-wholesaler > img {
        left: -19px;
    }
    .wholesaler > .text-product {
        width: 100%;
        margin-top: 3em;
        padding: 0 0.6em;
        margin-bottom: 2em;
    }
    .wholesaler > .text-product .request-wholesaler {
        margin-right: 17%;
    }
    .biography {
        flex-direction: column;
    }
    .text-biography {
        padding: 26px 0 0 5px;
    }
    .video-biography {
        width: 100%;
    }
}

@media (max-width: 768px) and (max-width: 991px) {
    header.main-header .search-area {
        margin: 5px;
        width: 83%;
        float: left;
    }

    .fixed-menu-top {
        position: fixed !important;
        z-index:999;
    }
    .margin-content-mobile {
        margin-top: 4em;
    }

    .wholesaler {
        flex-direction: column;
        margin-top: 2em;
    }

    .wholesaler > .image-wholesaler {
        width: 91%;
        height: 400px;
        margin-bottom: 2em;
    }

    .wholesaler > .image-wholesaler > img {
        left: -19px;
    }
    .wholesaler > .text-product {
        width: 100%;
        margin-top: 3em;
        padding: 0 0.6em;
        margin-bottom: 2em;
    }
    .wholesaler > .text-product .request-wholesaler {
        margin-right: 17%;
    }
    .biography {
        flex-direction: column;
    }
    .text-biography {
        padding: 26px 0 0 5px;
    }
    .video-biography {
        width: 100%;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .mobile-footer {
        display: none;
    }
    .shop_install {
        display: none !important;
    }
    .copyright {
        display: none !important;
    }
}
@media (min-width: 1200px) {
    .mobile-footer {
        display: none;
    }
    .shop_install {
        display: none !important;
    }
}
.hot_offers {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.hot_offers > img {
    width: 100%;
}
.sticky {
    position: fixed !important;
    top: 0;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}

.slider_big {
    margin-bottom:1%;
    width: 100%;
}
.slider_big > img {
    height: 100%;
    width: 100%;
}

.custom-control-label::before,.custom-control-label::after {
    width: 1.6rem !important;
    height: 1.6rem !important;
    margin-left: 5px;
}

.index-main-slider {
    margin-bottom: 38px !important;
}

.box-product-unavailable p {
    width: 300px;
}

.infoSection {
    padding: 15px;
    background: aliceblue;
    border-radius: 20px;
    color: #000;
    width: fit-content;
    margin: auto;
}

.cart-header {
    background: #fff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 12px;
    border-radius: 6px !important;
}

.cart-header h3 {
    color: #2d3748;
    font-size:20px;
    margin-bottom: 10px;
}

.cart-header p {
    color: #718096;
    font-size: 1rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: fit-content !important;
    overflow-y: unset !important;
}

.cart-item {
    background: white;
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cart-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.12);
    background-color: #fdfdfd !important;
}

.item-content {
    display: grid !important;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    align-items: center;
}

.item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details h3 {
    color: #2d3748;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.item-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.spec-tag {
    background: #e2e8f0;
    color: #4a5568;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.item-pricing {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.original-price {
    color: #a0aec0;
    font-size: 0.9rem;
    text-decoration: line-through;
}

.toman-icon{
    width: 18px;
    height: 18px;
    color: #c4c4c4;
    display: inline-block;
}

.item-price {
    color: #38a169;
    font-weight: bold;
    font-size: 1.1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 50%;
    background: #4299e1;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn.dec {
    background: #fc8181;
}

.qty-btn.dec:hover {
    background: red;
}

.qty-btn:hover {
    background: #3182ce;
    transform: scale(1.1);
}

.qty-display {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 15px;
    font-weight: bold;
    color: #2d3748;
    min-width: 60px;
    text-align: center;
}

.remove-btn {
    background: #fc8181;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-right: 10px;
}

.remove-btn:hover {
    background: #f56565;
}

.cart-summary {
    background: white;
    border-radius: 15px;
    padding: 25px !important;
    height: fit-content;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 20px;
}

.summary-title {
    color: #2d3748;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 10px 0;
}

.summary-row.total {
    border-top: 2px solid #e2e8f0;
    font-weight: bold;
    font-size: 1.1rem;
    color: #2d3748;
}

.discount-code {
    margin: 20px 0;
}

.discount-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.apply-btn {
    width: 100%;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.apply-btn:hover {
    transform: translateY(-1px);
}

a.checkout-btn {
    width: 100%;
    background: linear-gradient(45deg, #38a169 0%, #48bb78 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
    display: inline-block;
    text-align: center;
}

a.checkout-btn:hover {
    transform: translateY(-2px);
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        border-radius: 15px;
    }

    .open-attr-btn {
        padding: 8px 13px;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .item-content {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }

    .item-image {
        width: 80px;
        height: 80px;
    }

    .quantity-controls {
        margin-top: 15px;
        justify-content: space-between;
        grid-column: 1 / -1;
    }

    .cart-header h1 {
        font-size: 1.5rem;
    }

    .item-details h3 {
        font-size: 1rem;
    }

    .spec-tag {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .cart-item {
        padding: 15px;
    }

    .item-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }

    .item-image {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }

    .quantity-controls {
        justify-content: center;
        margin-top: 10px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: fadeIn 0.5s ease-out;
}

.notification-box {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    border: 2px solid #e17055;
    border-radius: 15px;
    padding: 8px 10px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(253, 203, 110, 0.3);
    position: relative;
    transition: all 0.3s ease;
}

.notification-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(253, 203, 110, 0.4);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}
.notification-text {
    flex: 1;
    color: #2d3436;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 500;
    position: relative;
}

/* آیکون سوال */
.help-icon {
    display: inline-block;
    background: #e17055;
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-right: 8px;
    transition: all 0.3s ease;
    position: relative;
    vertical-align: middle;
}

.help-icon:hover {
    background: #d63031;
    transform: scale(1.1);
}

/* Tooltip */
.tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 50%;
    transform: translateX(50%);
    background:#fff ;
    color: #2d3436;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    width: 320px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    font-weight: normal;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    border: 8px solid transparent;
    border-top-color: #fff;
}

.help-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* show product */

.product-carousel .item
{
    margin-bottom: 0;
}
.container-details {
    float: right;
    width: 100%;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 23px;
}

.product-images {
    background: linear-gradient(45deg, #f8f9ff, #e8f2ff);
    padding: 0px;
    position: relative;
    overflow: hidden;
    border-radius: 7px;
    height: fit-content;
}

.main-image {
    width: 100%;
    border-radius: 35px;
    overflow: clip;
}

.product-carousel .owl-nav button.owl-next {
    left: 19px !important;
}

.product-carousel .owl-nav button.owl-prev {
    right: 19px !important;
}

.main-image img {
    width: 100%;
}

.main-image:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.main-image.zoomed {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.thumbnail-container {
    position: relative;
    margin-top: 20px;
}

.thumbnail-slider {
    display: flex;
    gap: 10px;
    overflow-x: hidden;
    padding: 23px;
    background-color: #fff;
    border-radius: 12px;
}

.thumbnail-slider .owl-stage-outer {
    overflow: unset;
}

.thumbnail {
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail.active,
.thumbnail:hover {
    /*border-color: #667eea;*/
    transform: scale(1.1);
    /*box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);*/
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev { left: -15px; }
.slider-next { right: -15px; }

.recommended-product {
    margin-top: 25px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    padding: 20px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.recommended-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

.product-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    border-radius: 7px;
    height: fit-content;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 10px;
    line-height: 2.1;
}
.product-title-en {
    font-size: 0.8rem;
    color: #909295;
}


.price-section{
    display: flex;
    align-items: center;
    gap: 21px;
    flex-wrap: nowrap;
    width: 100%;
    margin-bottom: 11px;
    position: relative;

}

.price-section .brand{
    margin: 0 !important;
    white-space: nowrap;
    flex:1;
}

.price-section .current-price{
    font-size: 18px;
    font-weight: 500;
    color: #111;
    margin-right: 20%;
    white-space: nowrap;
}

.price-section .original-price{
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    white-space: nowrap;
}

.price-section .discount-badge{
    background: #ff3b30;
    color: #fff;
    padding: 2px 8px;
    border-radius: 19px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    position: absolute;
    left: 3px;
    top: -26px;
}


hr {
    width: 100%;
     margin-top: 0.4rem;
     margin-bottom:0.4rem;
     border: 1px;
    border-top: 1px solid rgba(0, 0, 0, .1);
}

.product-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.rating-details {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.star.empty {
    color: #e2e8f0;
}

.rating-text {
    color: #718096;
    font-size: 0.9rem;
}

.original-price {
    font-size:19px;
    color: red;
    text-decoration: line-through;
    margin-left: 10px;
}

.selector-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2d3748;
}

.color-selector {
    margin-bottom: 30px;
}

.color-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 21%;
    border: 3px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}
.color-option input, .size-option input  {
    visibility: hidden;
    position: absolute;
    top:50%;
    right: 50%;
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.color-option.active {
    border-color: #667eea;
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-radius: 50%;
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: red;
    font-weight: bold;
    font-size: 1.2rem;
}

.color-blue { background: #667eea; }
.color-purple { background: #764ba2; }
.color-pink { background: #f093fb; }
.color-red { background: #f5576c; }
.color-black { background: #2d3748; }

.size-selector {
    margin-bottom: 30px;
    position: relative;
}

.attributes-show {
    width: 77%;
    padding: 11px;
    outline: none;
    background: linear-gradient(135deg, #495057 0%, #252525 100%) !important;
    font-size: 16px;
    color: #fff;
    border-radius: 18.5px;
}

.attributes-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: none;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.attributes-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.model-attributes-product {
    width: 95%;
    max-width: 400px;
    position: relative;
    background: linear-gradient(135deg, #495057 0%, #252525 100%);
    padding: 20px;
    border-radius: 15px;
    z-index: 999999999999;

    box-shadow:
            2px 2px 6px rgba(0, 0, 0, 0.7),
            -2px -2px 6px rgba(255, 255, 255, 0.04);
}

.close-popup {
    position: absolute;
    top: 10px;
    left: 10px;

    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.open-attr-btn {
    padding: 12px 13px;
    border-radius: 10px;
    width: 100% !important;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin: auto;
    text-align: center;
    box-shadow: unset !important;
}

.title-attributes {
    color: #fff !important;
    font-size: 13px;
}

.size-options {
    display: flex;
    gap: 0px;
    flex-direction: column;
}

.size-option {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
    font-size: 13px;
    text-align: center;
}

.size-option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.size-option.active,
.size-option.active:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.quantity-selector {
    margin-bottom: 30px;
    display: flex;
    justify-content:space-between;
    align-items: baseline;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right:20%;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #667eea;
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}


.quantity-btn.dec {
    background: #fc8181;
}

.quantity-btn.dec:hover  {
    background: red;
}

.quantity-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.quantity-input {
    width: 80px;
    height: 40px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.features {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding:10px 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tabs {
    margin-top: 40px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tab-headers {
    display: flex;
    gap: 0;
    background: linear-gradient(135deg, #f8f9ff, #e8f2ff);
    margin-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-headers::-webkit-scrollbar {
    display: none;
}

.tab-header {
    padding: 20px 25px;
    cursor: pointer;
    border-bottom: 4px solid transparent;
    font-weight: 700;
    color: #718096;
    transition: all 0.4s ease;
    white-space: nowrap;
    position: relative;
    background: transparent;
    text-align: center;
    min-width: 140px;
}

.tab-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.4s ease;
}

.tab-header.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-header.active::before {
    width: 100%;
}

.tab-header:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.03);
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.specifications {
    display: grid;
    gap: 4px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding:7px 15px;
    background: #f8f9ff;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
    align-items: center;
    border-right: 3px solid #ff9800 !important;
}

.spec-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.08);
    background: #f0f4ff;
}

.spec-label {
    font-weight: bold;
    color: #2d3748;
    font-size: 15px;
}

.spec-value {
    color: #718096;
    font-size: 14px;
}

h3.params-title {
    font-size: 13px;
    margin-top: 14px;
}

.reviews {
    display: grid;
    gap: 20px;
}

.review-item {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.review-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.1);
    background: #f0f4ff;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
}

.reviewer-name {
    font-weight: 600;
    color: #2d3748;
}

.review-date {
    color: #718096;
    font-size: 0.9rem;
}

.related-products {
    margin-top: 40px;
    padding: 30px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(243px, 1fr));
    gap: 25px;
}

.related-product-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.related-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,255,0.95));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    padding: 15px 20px;
    display: none;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.mobile-sticky-bar.show {
    display: flex;
}

.mobile-sticky-bar.hide {
    transform: translateY(100%);
}

.mobile-price-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
}

.mobile-price-original {
    font-size: 0.9rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.mobile-discount {
    background: linear-gradient(45deg, #f093fb, #f5576c);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    align-self: flex-start;
}

.mobile-add-to-cart {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    white-space: nowrap;
}

.mobile-add-to-cart:hover,
.mobile-add-to-cart:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .spec-item {
        display: block;
    }

    .product-title {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .spec-label {
        margin-left: 16px;
    }

    .product-images {
        padding: 20px;
    }

    .main-image {
        width: 350px;
    }

    .product-info {
        padding: 20px;
    }

    .current-price {
        font-size: 2rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        min-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .tab-headers {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-header {
        min-width: 120px;
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .tab-content {
        padding: 20px;
    }

    .mobile-sticky-bar.show {
        display: flex !important;
    }

    body {
        padding-bottom: 48px;
    }
}

@media (max-width: 480px) {
    /*.container {*/
    /*    border-radius: 15px;*/
    /*}*/

    .current-price {
        font-size: 23px;
    }

    .color-options,
    .size-options {
        justify-content: center;
    }

    .slider-nav {
        display: none;
    }

    .thumbnail-slider {
        padding: 0 10px;
    }

    .recommended-product {
        margin-top: 20px !important;
        padding: 15px !important;
    }
}

#videoModal.active {
    display: flex !important
}




.category-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.category-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.category-header p {
    color: #666;
    font-size: 1.1em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(161px, 1fr));
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.category-item {
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
}
.category-item:hover .category-icon img {
    transform: translateY(-10px);
}

.category-icon {
    margin-bottom: 5px;
    display: block;
}

.category-icon img {
    width: 50%;
    height: auto;
}

.category-name-hover {
    color: #000000;
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: all 0.3s ease;
}

.category-item:hover .category-name-hover {
    white-space: normal;
    overflow: visible;
}

.category-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9em;
}

/* انیمیشن ورود */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-item {
    animation: fadeInUp 0.6s ease forwards;
}

.category-item:nth-child(1) { animation-delay: 0.1s; }
.category-item:nth-child(2) { animation-delay: 0.2s; }
.category-item:nth-child(3) { animation-delay: 0.3s; }
.category-item:nth-child(4) { animation-delay: 0.4s; }
.category-item:nth-child(5) { animation-delay: 0.5s; }
.category-item:nth-child(6) { animation-delay: 0.6s; }
.category-item:nth-child(7) { animation-delay: 0.7s; }
.category-item:nth-child(8) { animation-delay: 0.8s; }
.category-item:nth-child(9) { animation-delay: 0.9s; }
.category-item:nth-child(10) { animation-delay: 1s; }

/* Responsive */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(93px, 1fr));
        gap: 12px;
        padding: 20px;
    }

    .category-name-hover {
        font-size:1em;
    }
    .category-header h2 {
        font-size: 1.5em;
    }
}




/* Bottom Sheet - باکس دسته‌بندی‌ها */
.categories-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 999999999;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 -10px 50px rgba(0, 0, 0, 0.3);
    display: none;
}

.categories-sheet.active {
    transform: translateY(0);
    display: block;
}

.sheet-inner {
    padding: 25px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Handle */
.sheet-handle {
    width: 50px;
    height: 5px;
    background: #ddd;
    border-radius: 10px;
    margin: 15px auto 20px;
    cursor: grab;
}

.sheet-handle:active {
    cursor: grabbing;
}

/* Header */
.category-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
    animation: fadeInDown 0.5s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header h2 {
    font-size: 2em;
    color: #333;
    margin-bottom: 10px;
}

.category-header p {
    color: #666;
    font-size: 1.1em;
}

.close-sheet-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #f0f0f0;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5em;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-sheet-btn:hover {
    background: #667eea;
    color: white;
    transform: rotate(90deg);
}

/* اسکرول بار */
.sheet-inner::-webkit-scrollbar {
    width: 8px;
}

.sheet-inner::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.sheet-inner::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.sheet-inner::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

.smoke {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999999999999;
}
.overlay.show {
    opacity: 1;
    pointer-events: all;
}

.overlay-popup {
    background: linear-gradient(135deg, #495057 0%, #252525 100%);
    border-radius: 20px;
    width: 340px;
    overflow: hidden;
    transform: scale(0.75) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    position: relative;

    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7), -2px -2px 6px rgba(255, 255, 255, 0.04);
}
.overlay.show .overlay-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-header {
    background: #0f1923;
    padding: 18px 20px 16px;
    position: relative;
    overflow: hidden;
}
.popup-header::before {
    content: '';
    position: absolute;
    top: -30px; left: -30px;
    width: 120px; height: 120px;
    background: #1a9b5f22;
    border-radius: 50%;
}
.popup-header::after {
    content: '';
    position: absolute;
    bottom: -20px; right: -10px;
    width: 80px; height: 80px;
    background: #f59e0b18;
    border-radius: 50%;
}
.popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1a9b5f22;
    border: 1px solid #1a9b5f44;
    color: #4ade80;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.dot-live {
    width: 6px; height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.popup-title {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 3px;
    position: relative;
}
.popup-sub {
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 14px;
    left: 16px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #94a3b8;
    width: 26px; height: 26px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.2s;
    z-index: 2;
}
.close-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }

.popup-body { padding: 16px; }

.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.stat-card {
    background: var(--color-background-secondary);
    border-radius: 12px;
    padding: 10px 8px;
    text-align: center;
    border: 0.5px solid var(--color-border-tertiary);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.overlay.show .stat-card:nth-child(1) { opacity:1; transform:translateY(0); transition-delay: 0.15s; }
.overlay.show .stat-card:nth-child(2) { opacity:1; transform:translateY(0); transition-delay: 0.22s; }
.overlay.show .stat-card:nth-child(3) { opacity:1; transform:translateY(0); transition-delay: 0.29s; }
.stat-num {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.2;
}
.stat-num span { font-size: 10px; font-weight: 400; color: var(--color-text-secondary); }
.stat-label {
    font-size: 9.5px;
    color: var(--color-text-secondary);
    margin-top: 2px;
    line-height: 1.4;
}

.section-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.wholesale-sales-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

.wholesale-sales-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: var(--color-background-secondary);
    border-radius: 11px;
    border: 0.5px solid var(--color-border-tertiary);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s;
    cursor: pointer;
}
.wholesale-sales:hover { background: var(--color-background-tertiary); }
.overlay.show .wholesale-sales-item:nth-child(1) { opacity:1; transform:translateX(0); transition-delay: 0.35s; }
.overlay.show .wholesale-sales-item:nth-child(2) { opacity:1; transform:translateX(0); transition-delay: 0.42s; }
.overlay.show .wholesale-sales-item:nth-child(3) { opacity:1; transform:translateX(0); transition-delay: 0.49s; }

.wholesale-sales-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.wholesale-sales-info { flex: 1; min-width: 0; }
.wholesale-sales-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wholesale-sales-meta {
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-top: 1px;
}
.wholesale-sales-right { text-align: left; flex-shrink: 0; }
.wholesale-sales-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-primary);
}



.overlay.show .progress-fill { width: 73%; transition-delay: 0.5s; }