/* =========================================
   1. Utility & Global Styles
   ========================================= */
.hidden {
    visibility: hidden;
    pointer-events: none;
}

/* =========================================
   2. Buttons & Controls
   ========================================= */
.go-basket-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s;
}

    .go-basket-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,128,0,.25);
        text-decoration: none;
    }

/* Ø¯Ú©Ù…Ù‡â€ŒÙ‡Ø§ÛŒ Ø­Ø°Ù Ùˆ Ú©Ù†ØªØ±Ù„ ØªØ¹Ø¯Ø§Ø¯ Ø¯Ø± Ø³Ø¨Ø¯ Ø®Ø±ÛŒØ¯ */
.delete-placeholder,
.cart-delete-item {
    width: 40px;
}

.quantity-control {
    margin: 0 auto;
    display: inline-flex;
    align-items: stretch;
    height: 42px;
    overflow: hidden;
    direction: ltr;
    background: #fff;
    border: 1.5px solid #d9dce1;
    border-radius: 10px;
}

    .quantity-control .cart-quantity-minus,
    .quantity-control .cart-quantity-plus {
        width: 42px;
        min-width: 42px;
        padding: 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: #f7f8fa !important;
        color: #252525 !important;
        font-size: 25px;
        font-weight: 700;
        line-height: 42px;
        text-align: center;
        cursor: pointer;
        transition: none !important;
    }

    .quantity-control .cart-quantity-minus {
        border-right: 1.5px solid #d9dce1 !important;
    }

    .quantity-control .cart-quantity-plus {
        border-left: 1.5px solid #d9dce1 !important;
    }

    .quantity-control .cart-item-quantity {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 45px;
        padding: 0 10px;
        color: #222;
        font-size: 18px;
        font-weight: 700;
        font-family: inherit;
        direction: rtl;
    }

    .quantity-control .cart-quantity-minus:hover,
    .quantity-control .cart-quantity-minus:focus,
    .quantity-control .cart-quantity-plus:hover,
    .quantity-control .cart-quantity-plus:focus {
        background: #f7f8fa !important;
        color: #252525 !important;
        box-shadow: none !important;
        outline: none !important;
    }

.cart-delete-item {
    height: 42px;
    padding: 0 13px !important;
    border: 1.5px solid #f2caca !important;
    border-radius: 10px !important;
    background: #fff5f5 !important;
    color: #d63031 !important;
    font-size: 14px;
    font-weight: 600;
    transition: none !important;
}

    .cart-delete-item:hover,
    .cart-delete-item:focus {
        border-color: #f2caca !important;
        background: #fff5f5 !important;
        color: #d63031 !important;
        box-shadow: none !important;
        outline: none !important;
    }

/* =========================================
   3. Video & Story Section
   ========================================= */
.video-stories-wrapper {
    padding: 40px 0;
    background: #f9f9f9;
    direction: rtl;
}

.stories-scroll-container {
    margin-bottom: 10px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .stories-scroll-container::-webkit-scrollbar {
        display: none;
    }

.story-card {
    min-width: 120px;
    max-width: 120px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
}

    .story-card:hover {
        transform: translateY(-5px);
    }

.story-thumb-border {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border: 2px solid #648dcc;
    border-radius: 50%;
    padding: 3px;
    background: #fff;
}

    .story-thumb-border img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

.story-card p {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Modal */
.story-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.85);
    justify-content: center;
    align-items: center;
}

.story-modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin: 40px auto;
}

    .story-modal-content video {
        width: 100%;
        max-height: calc(100vh - 80px);
        display: block;
        border-radius: 15px;
        box-shadow: 0 0 20px rgba(0,0,0,.5);
    }

.story-close {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 9999;
    width: 42px;
    height: 42px;
    line-height: 38px;
    text-align: center;
    font-size: 32px;
    color: #fff;
    background: rgba(0,0,0,.45);
    border-radius: 10px;
    cursor: pointer;
}

.story-prev,
.story-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 45px;
    cursor: pointer;
    user-select: none;
    z-index: 999;
    padding: 10px;
    transition: .2s;
}

.story-prev {
    left: -60px;
}

.story-next {
    right: -60px;
}

    .story-prev:hover,
    .story-next:hover {
        color: #ffc107;
    }

/* Mobile */
@media (max-width:768px) {
    .story-prev {
        left: 10px;
    }

    .story-next {
        right: 10px;
    }
}

/* =========================================
   4. Special Offer Section (Digikala Style)
   ========================================= */
.special-offer-section {
    padding: 40px 0;
    direction: rtl;
}

.special-offer-wrapper {
    background: #275cab;
    border-radius: 15px;
    display: flex;
    overflow: hidden;
    padding: 15px 10px;
}

.special-offer-side {
    width: 210px;
    min-width: 210px;
    background: #5282ca;
    color: #fff;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 13px 10px;
    text-align: center;
}

.special-offer-title {
    font-size: 24px;
    font-weight: 800;
    margin: 15px 0;
}

.special-offer-timer {
    display: flex;
    gap: 5px;
    direction: ltr;
}

    .special-offer-timer span {
        background: #fff;
        color: #333;
        padding: 5px 8px;
        border-radius: 6px;
        font-weight: bold;
        font-size: 16px;
        min-width: 35px;
        text-align: center;
    }

.special-offer-link {
    color: #fff;
    text-decoration: none !important;
    font-size: 14px;
    display: block;
}

/* Ø¯Ú©Ù…Ù‡â€ŒÙ‡Ø§ÛŒ Ú©Ù†ØªØ±Ù„ Ø§Ø³Ù„Ø§ÛŒØ¯Ø± */
.btn-prev-special, .btn-next-special {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

    .btn-prev-special:hover, .btn-next-special:hover {
        background: rgba(255,255,255,0.2);
    }

.special-offer-products {
    flex: 1;
    min-width: 0;
}

.offer-card {
    background: #fff;
    margin: 0 2px;
    padding: 15px;
    height: 100%;
    display: flex !important;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    border-radius: 4px;
}

.offer-image {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.offer-title {
    font-size: 13px;
    color: #444;
    height: 40px;
    overflow: hidden;
    margin-bottom: 15px;
}

.offer-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.offer-discount {
    background: #275cab;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
}

.offer-prices {
    text-align: left;
    direction: ltr;
}

.old-p {
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}

.new-p {
    font-size: 17px;
    font-weight: bold;
    color: #333;
}

    .new-p span {
        font-size: 11px;
        font-weight: normal;
    }

/* Ù…Ø®ÙÛŒ Ú©Ø±Ø¯Ù† ÙÙ„Ø´â€ŒÙ‡Ø§ÛŒ Ù¾ÛŒØ´â€ŒÙØ±Ø¶ Ø§Ø³Ù„ÛŒÚ© */
.special-offer-products .slick-arrow {
    display: none !important;
}

@media (max-width: 768px) {
    .special-offer-wrapper {
        flex-direction: column;
    }

    .special-offer-side {
        width: 100%;
        margin-bottom: 15px;
    }
}

/* =========================================
   5. Category Filter & Products Grid
   ========================================= */
.category-products-section {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
}

.category-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.cat-item {
    cursor: pointer;
    text-align: center;
    transition: .3s;
}

.cat-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s;
}

    .cat-circle img {
        width: 42px;
    }

.cat-item span {
    display: block;
    margin-top: 12px;
    font-weight: bold;
    font-size: 16px;
}

.cat-item:nth-child(1) .cat-circle,
.cat-item:nth-child(2) .cat-circle,
.cat-item:nth-child(3) .cat-circle,
.cat-item:nth-child(4) .cat-circle,
.cat-item:nth-child(5) .cat-circle,
.cat-item:nth-child(6) .cat-circle,
.cat-item:nth-child(7) .cat-circle,
.cat-item:nth-child(8) .cat-circle,
.cat-item:nth-child(9) .cat-circle,
.cat-item:nth-child(10) .cat-circle,
.cat-item:nth-child(11) .cat-circle {
    background: #275cab;
}

.cat-item:hover .cat-circle {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,.12);
}

.cat-item.active .cat-circle {
    border: 3px solid #275cab;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    text-align: center;
    padding: 20px;
    margin-bottom: 25px;
    transition: .3s;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0,0,0,.12);
    }

    .product-card img {
        /* height: 180px; */
        object-fit: contain;
    }

    .product-card h4 {
        margin: 15px 0;
        font-size: 18px;
        font-weight: bold;
    }

.price {
    color: #555;
    font-size: 17px;
    margin-bottom: 15px;
}

.btn-outline-secondary {
    color: #000 !important;
    border-color: #fff !important;
}

.product-card .btn {
    border-radius: 8px;
    border: none;
}

.cart-item-controls .btn:hover,
.cart-item-controls .btn:focus {
    background-color: transparent !important;
    color: inherit !important;
}

.cart-delete-item:hover {
    background-color: transparent !important;
}

/* =========================================
   6. Swiper / Slider Customization
   ========================================= */
.mySwiper {
    width: 100%;
    position: relative;
}

    .mySwiper img {
        width: 100%;
        display: block;
    }

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #fff;
    opacity: .5;
    transition: .3s;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 22px;
    border-radius: 10px;
    background: #275cab;
}

.swiper-button-next,
.swiper-button-prev {
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    box-shadow: none;
    color: #fff;
    transition: .3s;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 40px;
        font-weight: 700;
        color: #fff;
        text-shadow: 0 2px 8px rgba(0,0,0,.5);
    }

    .swiper-button-next:hover,
    .swiper-button-prev:hover {
        transform: scale(1.15);
        color: #fff;
    }

@media (max-width: 991px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
}

/* =========================================
   7. Toast Notification
   ========================================= */
#basket-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(80px);
    transition: .35s;
}

    #basket-toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.basket-toast-content {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    min-width: 340px;
}

.basket-success {
    color: #17a100;
    font-weight: bold;
    font-size: 22px;
    flex: 1;
}

    .basket-success i {
        margin-left: 8px;
    }

.basket-btn {
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 30px;
    padding: 10px 18px;
    transition: .2s;
}

    .basket-btn:hover {
        background: #ececec;
        text-decoration: none;
        color: #000;
    }

.basket-close {
    cursor: pointer;
    font-size: 22px;
    color: #666;
}

    .basket-close:hover {
        color: red;
    }

@media(max-width:768px) {
    #basket-toast {
        right: 12px;
        left: 12px;
        bottom: 15px;
    }

    .basket-toast-content {
        min-width: auto;
        width: 100%;
    }
}

.slick-initialized .slick-slide {
    margin-right: 20px;
}
/* =========================================
   8. Responsive Media Queries
   ========================================= */
@media (max-width: 1199px) {
    .special-offer-side {
        min-width: 180px;
    }

    .special-offer-title {
        font-size: 30px;
    }
}

@media (max-width: 576px) {
    .special-offer-wrapper {
        border-radius: 16px;
        padding: 10px;
    }

    .special-offer-title {
        font-size: 26px;
    }

    .special-offer-icon {
        font-size: 52px;
    }

    .offer-card {
        min-height: 320px;
    }

    .offer-image {
        height: 150px;
    }

        .offer-image img {
            max-height: 120px;
        }

    .offer-title {
        font-size: 13px;
        min-height: 54px;
    }

    .offer-price strong {
        font-size: 22px;
    }
}

@media(max - width:768px) {
    .category-filter {
        gap: 15px;
    }

    .cat-circle {
        width: 70px;
        height: 70px;
    }

        .cat-circle img {
            width: 34px;
        }

    .cat-item span {
        font-size: 13px;
    }
}

#ProductContainer {
    background: #f7f8fa;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #ccc;
}

    #ProductContainer .row {
        margin: 0;
    }

    #ProductContainer .col-lg-3,
    #ProductContainer .col-md-4,
    #ProductContainer .col-sm-6,
    #ProductContainer .col-6 {
        padding: 12px;
    }

.product-card {
    margin: 0;
    height: 100%;
}

.h300 {
    height: 100% !important;
}

.cat-item {
    cursor: pointer;
    transition: .3s;
}

    .cat-item.active .cat-circle {
        background: #5282ca;
        transform: scale(1.1);
    }

        .cat-item.active .cat-circle img {
            filter: brightness(0) invert(1);
        }

    .cat-item.active span {
        color: #5282ca;
        font-weight: bold;
    }
