.profile-main {
    width: 100%;
    max-width: 1300px;
    margin-right: auto;
    margin-left: auto;
}

.profile-main .bg-white {
    border-radius: 24px 24px 0 0;
    background: #ffffff;
    position: relative;
}

.profile-main .header {
    width: 100%;
    max-width: 1300px;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    margin-bottom: 250px;
}

.header .prof-baner {
    background: url("../assets/images/prof-bg.png");
    width: 100%;
    height: 262px;
    border-radius: 24px;
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px;
}

.header .prof-baner .right .span-1 {
    font-family: "Rokh" !important;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 51px;
    text-align: right;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.header .prof-baner .right .span-1 svg {
    margin-right: 8px;
}

.header .prof-baner .right .span-2 {
    margin-top: 8px;
    font-family: "Yekan Bakh" !important;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 37px;
    text-align: right;
    color: #ffffff;
}

.header .user {
    display: flex;

    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 180px;
    padding: 0 32px;
}

.header .user img {
    border: 3px solid #ffffff;
    border-radius: 152px;
    width: 156px;
    height: 156px;
    margin-right: 25px;
    margin-left: 25px;
    background-color: #f1f1f1;
}

.header .user .right {
    display: flex;
    align-items: center;
}

.header .user .right .name {
    /* font-family: "Yekan Bakh" !important; */
    font-style: normal;
    font-weight: 650;
    font-size: 36px;
    line-height: 50px;
    color: #ffffff;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0, 0.25);
}

.header .user .tick {
    border: none;
    width: 30px;
    height: 30px;
    margin-top: -10px;
    margin-left: 0px;
    margin-right: 5px;
    background: none;
}

.profile-main .info{
    width: 30px;
    height: 30px;
    margin-left: 0;
    margin-right: 0;
}


.profile-main .card-info {
    background-color: white;
    border-radius: 20px;
    box-shadow: 2px 4px 20px rgba(0, 0, 0, 0.25);
    padding: 5px;
    min-width: 400px;
}

.profile-main .card-info .row{
    margin: 0 0 5px 5px;
    padding: 0;
    border-bottom: 1px solid #ccc;
}

.profile-main .card-info .row .col{
    margin: 0;
    padding: 0;
}

.profile-main .card-info p{
    direction: ltr;
    padding: 0;
    font-size: 24px;
}

.profile-main .info-description{
    max-height: 200px;
    /* -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgb(124, 38, 38)), to(rgba(0, 0, 0, 0))); */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
    transition: all 1s;

}

.profile-main .info-description.expanded{
    max-height: 1800px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 100%);
 }

.more-product-description{
    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, from(rgb(124, 38, 38)), to(rgba(0, 0, 0, 0)));
    animation: expand 12s ease-out forwards;
}

.profile-main .more-details {
    font-size: 16px;
    color: #979EA3;
    cursor: pointer;
}

.profile-main .card {
    background-color: white;
    border-radius: 20px;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
    padding: 5px;
    min-width: 200px;
    height: 494px;
    overflow: hidden;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-main .card.medium{
    height: 270px;
}

.profile-main .card a{
    text-decoration: none;
}

.profile-main .card .img{
    width: 100%;
    height: auto;
    display: block;
}

.profile-main .card .top{
    margin-top: 1px;
    max-height: 300px;
    overflow: hidden;
}

.profile-main .card .down{
    margin-bottom: 15px;
}

.profile-main .card .title{
    font-style: normal;
    font-size: 28px;
    line-height: 30px;
    font-weight: 700;
    text-align: right;
    color: #000000;
    margin-top: 5px;
    margin-right: 15px;
    margin-left: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-main .card .description{
    font-style: normal;
    font-size: 20px;
    text-align: justify;
    color: #000000;
    margin-right: 15px;
    margin-left: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* نمایش محتوا در 2 خط */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 4.5em; /* حداقل ارتفاع 2 خط */
}

.profile-main .card .price{
    margin-right: 15px;
    margin-left: 15px;
}

.profile-main .card .price .right{
    text-align: right;
    font-weight: 700;
    font-size: 20px;
    font-weight: bold;
    color: #000000;
}

.profile-main .card .price .left{
    text-align: left;
    font-weight: 700;
    font-size: 20px;
    font-weight: bold;
    color: #F79E1C;
}

.profile-main nav {
    position: sticky;
    z-index: 999;
    top: 0;
    right: 0;
    height: 60px;
    border-radius: 0 0 24px 24px;
    background-color: #fff;
    padding: 24px 32px;
}

.profile-main ul {
    display: flex;
    align-items: center;
    list-style: none;
}

.profile-main ul li {
    margin-left: 24px;
}

.profile-main ul li a {
    display: flex;
    align-items: center;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    text-align: right;
    color: #868e96 !important;
}

.profile-main ul a svg {
    margin-left: 8px;
}

.profile-main ul a.active {
    color: #6c6b8d !important;
}

.profile-main ul a.active svg path {
    stroke: #6c6b8d;
}

.profile-main ul a.active .with-fill path {
    fill: #6c6b8d;
}

.profile-main .why {
    font-style: normal;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    text-align: right;
    color: #212D61;
    margin-top: 15px;
}

.profile-main .title {
    font-style: normal;
    font-size: 28px;
    line-height: 30px;
    font-weight: 700;
    text-align: right;
    color: #212D61;
    margin-top: 15px;
}

.profile-main .text {
    font-style: normal;
    font-size: 20px;
    text-align: justify;
    line-height: 30px;
    color: #000000;
    margin-top: 15px;
}

.profile-main .line {
    margin-left: 15px;
    margin-right: 15px;
    border-bottom: 1px solid #212D61;
}

.profile-main .profile-product {
    max-height: 673px;
    transition: all 1s;
    overflow: hidden;
}

.profile-main .profile-product a {
    text-decoration: none;
}

.profile-main .profile-product.expanded{
    /* background-color: green; */
    max-height: 1800px;
 }

.profile-product-transition {
    overflow: hidden;
  }

  .profile-product-transition.expanded {
    animation: fadeInDown 0.5s ease-in-out;
  }

  .profile-product-transition:not(.expanded) {
    animation: fadeOutUp 0.5s ease-in-out;
  }

.profile-main .profile-product .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-main .profile-product .head span {
    font-family: "Rokh" !important;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 41px;
    text-align: right;
    color: #212529;
}

.profile-main .profile-product .head .sort {
    display: flex;
    align-items: center;
}

.profile-main .profile-product .head .sort span {
    font-family: "Yekan Bakh" !important;
    font-size: 16px;
    line-height: 19px;
    text-align: right;
    color: #868e96;
}

.profile-main .profile-product .head .sort select {
    font-family: "Yekan Bakh" !important;
    font-size: 16px;
    line-height: 19px;
    color: #2c6eba;
    border: none;
    outline: none;
    background-color: transparent;
    font-weight: 600;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("./assets/images/arr.png");
    background-repeat: no-repeat;
    padding-right: 10px;
    padding-left: 20px;
    cursor: pointer;
}

.profile-main .same-products-profile .card {
    margin-left: 16px;
}

.profile-main .p-baner {
    margin-top: 120px;
    width: 100%;
    max-width: 1300px;
    margin-right: auto;
    margin-left: auto;
}

.profile-main .profile-baner {
    width: 100%;
    height: 262px;
    background: url("./assets/images/profile-baner.png");
    background-size: cover;
    padding: 63px 40px;
    display: flex;
    align-items: center;
    border-radius: 24px;
}

.profile-main .profile-baner .flex-end {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    width: 550px;
}

.profile-main .profile-baner .title {
    font-family: "Rokh" !important;
    font-style: normal;
    font-weight: 700;
    font-size: 90px;
    line-height: 115px;
    text-align: right;
    color: #ffffff;
    display: block;
}

.profile-main .profile-baner .title span {
    color: #f29311;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 999;
}

.profile-main .gallery {
    max-height: 370px;
    overflow: hidden;
}

.profile-main .carousel {
    overflow: hidden;
}

.profile-main .carousel .items {
    transition: transform 0.5s ease;
}

.profile-main .carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    padding: 5px;
    background-color: rgba(236, 234, 234, 0.752);
    border: none;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.5s ease;
  }

  .profile-main .carousel .carousel-btn:hover {
    background-color: rgba(190, 190, 190, 0.9);
  }

  .profile-main .carousel .carousel-btn.prev {
    left: 10px;
  }

  .profile-main .carousel .carousel-btn.next {
    right: 10px;
  }

  .profile-main .modal-slider {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .profile-main .modal-slider .modal-content {
    background-color: #fefefe;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    height: 80%;
    display: block;
    text-align: center;
    justify-content: center;
  }

  .profile-main .modal-slider .close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .profile-main .modal-slider .close-button:hover,
  .profile-main .modal-slider .close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .profile-main .modal-slider .modal-image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
