﻿
.custom-sub-menu {
    min-height: 16rem;
}

.cursor-pointer {
    cursor: pointer;
}

.dropdown-custom {
    opacity: 1 !important;
    visibility: visible !important;
    top: 100% !important;
}

.profile-sidebar-header .profile-link button {
    display: block;
    width: 100%;
    height: 100%;
    color: #7b7b7b;
}

    .profile-sidebar-header .profile-link button:hover {
        color: #00BFD6;
    }

.ui-autocomplete {
    position: fixed !important;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    max-height: 350px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    width: auto;
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    display: none;
    padding: 8px 0;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.ui-autocomplete {
    opacity: 0;
    transform: translateY(10px);
}

    .ui-autocomplete.active {
        opacity: 1;
        transform: translateY(0);
    }

.ui-menu-item {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.3s ease, color 0.3s ease;
}

.ui-menu-item-wrapper {
    width: 100%;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ui-menu-item:last-child .ui-menu-item-wrapper {
    border-bottom: none;
}

.ui-menu-item:hover .ui-menu-item-wrapper,
.ui-state-hover .ui-menu-item-wrapper {
    background: linear-gradient(90deg, #f0f8ff, #e6f7ff);
    color: #007bff;
    border-radius: 6px;
}

.ui-state-active {
    background: #007bff;
    color: white;
    border-radius: 6px;
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.2);
}

.ui-autocomplete::-webkit-scrollbar {
    width: 6px;
}

.ui-autocomplete::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.ui-autocomplete::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.ui-autocomplete,
.ui-menu-item {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbarbottom-responsive {
    z-index: 3;
}

header.main-header .search-area form.search .search-icon-custom {
    position: absolute;
    top: 50%;
    font-size: 18px;
    color: #979797;
    background-color: #f0f0f1;
    padding-right: 10px;
    transform: translateY(-50%);
}

.header-custom {
    z-index: 1;
}

.spinner {
    border: 4px solid transparent;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


@media (max-width: 576px) {
    .custom-input-group {
        margin-bottom: 1rem !important;
    }

    .custom-sm-col {
        margin-bottom: 1.5rem !important;
    }

    .custom-quantity {
        width: 50px !important;
        font-size: 1.2rem !important;
    }

    .custom-button {
        font-size: 1.5rem !important;
        padding: 0 10px;
    }
}
@media (max-width: 769px) {
    .search-box-side-menu {
        display: none !important;
    }
}
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 1000;
    overflow: auto;
}

.search-modal-content {
    position: relative;
    margin: 10% auto;
    padding: 20px;
    background-color: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-modal-body {
    padding: 20px 0;
}

.search-close-modal {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
}

.search-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}

.search-button {
    background-color: #fff;
    border: none;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

@media (max-width: 992px) {


    .search-button {
        display: block !important;
        background-color: transparent;
    }
}

.custom-icon-base {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: sub;
}


.snap-like-search {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
    font-size: 16px;
}

.search-btn {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #00B0FF;
    cursor: pointer;
}

.search-input:focus {
    border-color: #00B0FF;
    box-shadow: 0 0 0 2px rgba(0, 176, 255, 0.2);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 245px;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 10px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}


@media (max-width: 768px) {
    .product-image-wrapper {
        max-width: 150px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.page-item {
    list-style: none;
}

.page-item .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    min-width: 40px;
    padding: 0;
    font-family: 'IRANSans', 'Tahoma', sans-serif;
    font-size: 16px;
    border-radius: 8px;
    text-align: center;
    color: #333;
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
}

.page-item .page-link:hover {
    background-color: #e6f7ff;
    cursor: pointer;
}

.page-item.active .page-link {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.page-item.disabled .page-link {
    opacity: 0.6;
    pointer-events: none;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: #f7858d;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #e96d75;
    transform: scale(1.1);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px;
}

.thumbs-swiper .swiper-slide {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
}

.thumbs-swiper .swiper-slide-thumb-active {
    border: 2px solid #f7858d;
    box-shadow: 0 0 5px rgba(247,133,141,0.5);
}

.zoom-hint {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    z-index: 10;
    transition: all 0.5s;
}

.zoom-hint.hide {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .zoom-hint {
        display: none;
    }
}

.swiper-zoom-container img {
    transition: transform 0.3s ease;
}

.zoom-button {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
@media (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 28px;
        height: 28px;
    }
}
.scrollable-tabs {
    position: relative;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollable-tabs::-webkit-scrollbar {
    display: none;
}

.scrollable-tabs::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to left, #fff, transparent);
    pointer-events: none;
    z-index: 1;
}

.scrollable-tabs::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(to right, #fff, transparent);
    pointer-events: none;
    z-index: 1;
}


.ar-16x9 {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
}

.ar-16x9::before {
    content: "";
    display: block;
    padding-top: 56.25%;
}

.ar-16x9 > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.blog-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
    font-family: 'Vazirmatn', 'IRANSans', sans-serif;
}

.blog-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #222;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-date {
    font-size: 0.9rem;
    color: #777;
    text-align: center;
    margin-bottom: 1.5rem;
}

.blog-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 1.5rem auto;
    display: block;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
}

    .blog-image:hover {
        transform: scale(1.02);
    }

.blog-content {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    line-height: 1.8;
    font-size: 1.1rem;
    color: #333;
    text-align: justify;
}

    .blog-content h2 {
        font-size: 1.6rem;
        font-weight: bold;
        margin: 2rem 0 1rem;
        border-right: 4px solid #4da5af;
        padding-right: 0.8rem;
        color: #2a2a2a;
    }

    .blog-content h3 {
        font-size: 1.3rem;
        font-weight: bold;
        margin: 1.5rem 0 1rem;
        color: #4da5af;
    }

    .blog-content blockquote {
        background: #f1fafa;
        border-right: 5px solid #4da5af;
        padding: 1rem 1.5rem;
        margin: 2rem 0;
        font-style: italic;
        border-radius: 8px;
        color: #555;
    }

    .blog-content ul {
        padding-right: 2rem;
        margin: 1rem 0 2rem;
    }

        .blog-content ul li {
            list-style: disc;
            margin-bottom: 0.7rem;
        }

    .blog-content a {
        color: #4da5af;
        text-decoration: underline;
        transition: 0.3s;
    }

        .blog-content a:hover {
            color: #2b7d88;
        }

.share-box {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .share-box .btn {
        margin-left: 0.5rem;
    }



.catdesc {
    margin: 0 auto;
    padding: 8px 16px 32px;
}

.catdesc__head {
    text-align: center;
    margin: 8px 0 18px;
}

.catdesc__title {
    margin: 0;
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: clamp(22px, 2.6vw, 30px);
}

.catdesc__subtitle {
    display: block;
    margin-top: 6px;
    font-size: .95rem;
    opacity: .8;
}

.catdesc__content {
    border-radius: var(--radius);
    margin: 0 auto;
    padding: 24px clamp(14px, 3vw, 28px);
    line-height: 2.05;
    font-size: clamp(14.5px, 1.9vw, 16.5px);
}

.desc-typography p {
    margin: 0 0 12px;
}

.desc-typography h2, .desc-typography h3, .desc-typography h4 {
    margin: 18px 0 10px;
    font-weight: 800;
}

.desc-typography h2 {
    font-size: clamp(18px, 2.2vw, 22px);
}

.desc-typography h3 {
    font-size: clamp(17px, 2vw, 20px);
}

.desc-typography h4 {
    font-size: clamp(16px, 1.8vw, 18px);
}

.desc-typography ul {
    list-style: none;
    margin: .2rem 0 .8rem;
    padding: 0 1.1rem 0 0;
}

.desc-typography ul li {
    position: relative;
    padding-right: 1.15rem;
    margin: .35rem 0;
}

.desc-typography ul li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: .2rem;
    font-weight: 700;
    opacity: .9;
}

.desc-typography a {
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.desc-typography img, .desc-typography video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 10px auto;
}

.catdesc {
    margin: 0 auto;
    padding: 8px 16px 32px;
}

.catdesc__head {
    text-align: center;
    margin: 8px 0 18px;
}

.catdesc__title {
    margin: 0;
    font-weight: 800;
    color: var(--text);
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.02em;
}

.catdesc__subtitle {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: .95rem;
}

.catdesc__content {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text);
    margin: 0 auto;
    padding: 26px clamp(14px, 3vw, 28px);
    line-height: 2.05;
    font-size: clamp(14.5px, 1.9vw, 16.5px);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .6s ease, transform .6s ease;
}

    .catdesc__content.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    .catdesc__content::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        border-radius: var(--radius) var(--radius) 0 0;
        background: linear-gradient(90deg, var(--brand), var(--brand-2));
    }

.desc-typography p {
    margin: 0 0 16px;
}

.desc-typography h2, .desc-typography h3, .desc-typography h4 {
    margin: 18px 0 10px;
    font-weight: 800;
    color: var(--text);
    position: relative;
    padding-right: 10px;
}

.desc-typography h2 {
    font-size: clamp(18px, 2.2vw, 22px);
}

.desc-typography h3 {
    font-size: clamp(17px, 2vw, 20px);
}

.desc-typography h4 {
    font-size: clamp(16px, 1.8vw, 18px);
}

    .desc-typography h2::before, .desc-typography h3::before, .desc-typography h4::before {
        content: "";
        position: absolute;
        right: 0;
        top: .35em;
        width: 4px;
        height: 1em;
        background: var(--brand);
        border-radius: 3px;
    }

.desc-typography ul {
    list-style: none;
    margin: .2rem 0 .9rem;
    padding: 0 1.1rem 0 0;
}

    .desc-typography ul li {
        position: relative;
        padding-right: 1.15rem;
        margin: .35rem 0;
    }

        .desc-typography ul li::before {
            content: "✓";
            position: absolute;
            right: 0;
            top: .2rem;
            color: var(--brand);
            font-weight: 700;
            opacity: .9;
        }

.desc-typography a {
    color: var(--brand);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

.desc-typography img, .desc-typography video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 10px auto;
}

@media (min-width: 1200px) {
    .catdesc__content {
        padding: 36px 48px;
    }
}
.catdesc {
    background: #fff;
    padding: 8px 16px 32px;
    margin: 0 auto; 
}

.catdesc__content {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.desc-typography a:hover {
    color: #15803d;
    border-color: #15803d;
}

.catdesc {
    background: #fff;
    padding: 8px 16px 32px;
    margin: 0 auto;
}

.catdesc__head {
    text-align: center;
    margin: 8px 0 18px;
}

.catdesc__title {
    margin: 0;
    font-weight: 800;
    color: #1f2937;
    font-size: clamp(22px, 2.6vw, 30px);
    letter-spacing: -.02em;
}

.catdesc__subtitle {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: .95rem;
}

.catdesc__content {
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04), 0 1px 3px rgba(0,0,0,.08);
    color: #1f2937;
    padding: 32px 40px;
    margin: 0 auto;
    line-height: 2.05;
    font-size: clamp(15px, 1.8vw, 17px);
    transition: box-shadow .25s ease, transform .25s ease, max-width .3s ease;
}

    .catdesc__content::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 5px;
        border-radius: 14px 14px 0 0;
        background: linear-gradient(90deg, #16a34a, #22c55e);
    }

.catdesc__content {
    opacity: 0;
    transform: translateY(10px);
}

    .catdesc__content.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

@media (hover:hover) {
    .catdesc__content:hover {
        box-shadow: 0 12px 30px rgba(0,0,0,.06), 0 2px 6px rgba(0,0,0,.08);
        transform: translateY(-1px);
    }
}
@media (min-width: 1400px) {
    .catdesc__content {
        font-size: 18px;
        line-height: 2.1;
        padding: 36px 48px;
    }
}

@media (max-width: 600px) {
    .catdesc__content {
        padding: 22px 16px;
        font-size: 15px;
        line-height: 2;
    }
}

.desc-typography p {
    margin: 0 0 16px;
}

.desc-typography h2,
.desc-typography h3,
.desc-typography h4 {
    margin: 18px 0 10px;
    font-weight: 800;
    color: #1f2937;
    position: relative;
    padding-right: 10px;
}

.desc-typography h2 {
    font-size: clamp(18px, 2.2vw, 22px);
}

.desc-typography h3 {
    font-size: clamp(17px, 2vw, 20px);
}

.desc-typography h4 {
    font-size: clamp(16px, 1.8vw, 18px);
}

    .desc-typography h2::before,
    .desc-typography h3::before,
    .desc-typography h4::before {
        content: "";
        position: absolute;
        right: 0;
        top: .35em;
        width: 4px;
        height: 1em;
        background: #16a34a;
        border-radius: 3px;
    }

.desc-typography ul {
    list-style: none;
    margin: .2rem 0 .9rem;
    padding: 0 1.1rem 0 0;
}

    .desc-typography ul li {
        position: relative;
        padding-right: 1.15rem;
        margin: .35rem 0;
    }

        .desc-typography ul li::before {
            content: "✓";
            position: absolute;
            right: 0;
            top: .2rem;
            color: #16a34a;
            font-weight: 700;
            opacity: .9;
        }

.desc-typography a {
    color: #16a34a;
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
}

    .desc-typography a:hover {
        color: #15803d;
        border-color: #15803d;
    }

.desc-typography img,
.desc-typography video {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    margin: 10px auto;
}

.desc-typography table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 16px;
    border-radius: 12px;
    overflow: hidden;
}

.desc-typography th,
.desc-typography td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: right;
}

.desc-typography th {
    background: #f9fafb;
    font-weight: 800;
}
