* {
    padding: 0;
    box-sizing: border-box;
    
}


a {
    
    text-decoration: none;  
    color: #000000; 
    transition: color 0.3s ease, transform 0.3s ease;
}


a:hover {
    color: #1b3769; 
}


a:active {
    color: #1b3769; 
}

.h6 {
    direction: rtl;
}


body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;    
    text-align: right; 
            
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.header {
    position: sticky; 
    top: 0;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 1000; 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start;
    padding: 10px 20px; 
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: background-color 0.3s, box-shadow 0.3s;
}

.header-l1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;

}

.header-l2 {
    display: flex;
    flex-direction: row;
    font-size: 17px;
    padding-top: 15px;

}

.header-l2-mobile {
    display: none;
}
.nav-bar {
    display: none;
}

.header h1 {
    margin: 0;
    font-size: 35px;
    color: rgb(0, 0, 0);
}


.header-actions {

    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}
.login a {
    margin-right:10px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
}
.header a {
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
}
.header-username {
    margin-bottom: 0;
}
.login-title {
    margin-bottom: 0;
}
.bar-btn {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

}
.dropbtn {
  background-color: transparent;
  padding-right: 5px;
  padding-left: 15px;
  font-family: Vazirmatn;
  font-size: 19px;
  border: none;
  display: flex;
  flex-direction: row-reverse;
}
.catergory-dropdown:hover .categories-dropdown-content {
    display: flex;
}
.categories:hover .cat-brands {
    display: flex;
}
.cart-btn {
    padding-right: 2px;
    padding-left: 5px;
    font-size: 19px;
}
.cart-toast {
    position: fixed;
    top: 10px;                   
    left: 50%;
    transform: translate(-50%, -200%);  
    background: #28a745;
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    transition: transform 0.4s ease;
    font-size: 0.95rem;
    max-width: 90vw;
    white-space: nowrap;
}

.cart-toast.show {
    transform: translate(-50%, 0);
}

.toast-icon {
    font-size: 1.4rem;
}

.toast-message {
    flex: 1;
}

.toast-continue-link {
    background: #fff;
    color: #28a745;
    padding: 4px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: background 0.2s;
}

.toast-continue-link:hover {
    background: #e9ecef;
    color: #1e7e34;
}


.category-btn {
    font-weight: bold;
    font-size: 17px;
}
.catbtn {
    border: none;
    background: transparent;
}
.categories {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    
}
.categoriesMain {
    display: flex;
    flex-direction: column;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    
}
.categories-panel {
    width: 180px;          
    background: #faf8f8;
    padding: 8px 0;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 20px;
}
.categories-menu {
    width: auto;          
    background: #faf8f8;
    border-left: 1px solid #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.categoriesMain.active .catbtn {
    color:  #dc3545;
}
.categories.active .catbtn {
    color:  #dc3545;
}
.cat-brands {
    display: none;
}
.sub-list {
    columns: 3;
}
.sub-list a {
    direction: rtl;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
}
.categories-dropdown-content::before {
    content: '';
    position: absolute;
    top: -30px;         
    left: 0;
    width: 100%;
    height: 30px; 
    background: transparent;
    z-index: -1;
}
.categories-dropdown-content {

    top: 110%;
    right: 2%;
    height: 500px;
    width: 900px;
    border-radius: 20px;
    display: none;
    position: absolute;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 1000;
    flex-direction: row;  
}

.border-red {
    display: flex;
    height: auto;
    width: 3px;
    border-radius: 15px;
    background-color: #dc3545;
    margin-left: 5px;
}

.dropdown-content a {

    direction: rtl;
    color: black;
    text-decoration: none;
    display: flex;
}

.subcategory-panel {
    flex: 1;  
    padding: 12px 16px;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.badge {   
    background: #dc3545;             
    color: white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dropdown-toggle::after {
    content: none;
    margin-left: none;

}
.category-container {
    z-index: 100;
    position: sticky;
    flex: 1;
    display: flex;
    flex-direction: row;
}
.form-control {
    direction: rtl;
    background-color: transparent;
    resize: none;
    width: 500px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    color: unset;
    background-color: unset;
    border-color: unset;
    box-shadow: unset;
}


.label {
    direction: rtl;
}
.search-bar {
    padding-right: 40px;
    margin-left: auto;
}
.search-bar-mobile {
    display: none;
}
.search-container {
    padding: 8px 0px 8px 0px;
    display: flex;
    flex-direction: row-reverse;
}

.cart-button {

    display: flex;
    justify-content: center;
}
.header-logo {

    display: flex;
    align-items: center;

}
.header-img {

    padding-left: 25px;
    border-radius: 100%;
    max-height: 55px;

}


.nav-links {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

.nav-links a {

    margin-left: 20px;
    text-decoration: none;
    transition: color 0.3s, transform 0.3s;
    
}
.btn {
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.photos {
    height: 200px;
    border-radius: 20px;      
            
}


footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: white;
    background-color: #2b2b2c;
    clear: both;
}

footer h3 {
    margin: 0;
}

footer a {
    text-decoration: none;
    color: white;
}



footer a:hover {
    color: #000000;
    transition: color 0.3s, transform 0.3s;
    transform: scale(1.01);
}
form {
    background-color: #b1b1b126;
    border-radius: 10px;
}

.form-control input[type="text"]:focus,
.form-control input[type="email"]:focus,
.form-control input[type="password"]:focus {
    border-color: #000000;
    outline: none;
}

.btn-primary {
    font-family: Vazirmatn;
    background-color: transparent;
    border: none;
    padding: 0px 8px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}


.carousel-progress {
    height: 4px;
    background: #ddd;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
}

.carousel-progress-bar {
    height: 100%;
    width: 0%;
    background: #007bff; 
    transition: width 3s linear; 
}

.carousel-item img {
    animation: fadeIn 0.8s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0.7; }
    to { opacity: 1; }
}
.card {

    
    width: 100%;
    --bs-card-border-color : none;
    --bs-card-bg : none;
    

}

.card-img-top {
    object-fit: cover;
    height: 420px;
    position: relative;
    border-radius: 0;
    border-top-right-radius: 0;
    border-top-left-radius : 0;
    transition: transform 0.5s ease;
    
}

.card-img-top:hover {

     transform: scale(1.01);
}

.custom-content {
    padding-top: 15px;
    padding-bottom: 15px;
}

.nav-links a,
.footer-links a {
    transition: color 0.3s, transform 0.3s;
}
.nav-links a:hover,
.footer-links a:hover {
    color: #dc3545;
    transform: translateX(-3px);
}

.comment_counter {

    padding-right: 20px;
    color: white;
}

.postlikes-count {

    color: white;
}

.card-description {

   font-family: Vazirmatn-Light;
   color: white;

}
.card-title {

    color: white;
    transition: color 0.3s, transform 0.3s;
    font-weight: bold;
    font-size: 35px;
}

.card-title:hover {

    color :rgb(230, 40, 40)
}
.notification-dropdown-content {

    padding: 10px 10px 2px 10px;
    flex-direction: column;
    border-radius: 20px;
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    width: 300px;
    max-height: 500px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: -56px;
}
.notification-dropdown:hover .notification-dropdown-content {display: flex;}

.notification-wrapper {
    position: relative;
    display: inline-block;
}


.mark-all-read-btn {
    display: flex;
    color: #dc3545;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
}
.notification-header {
    display: flex;
}
.notification-header h3 {
    margin-left: auto;
}
.notification-item {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}


.notification-text {
    display: flex;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 12px;
    color: #888;
}

.notification-empty {
    padding: 14px 16px;
    color: #777;
    text-align: center;
}

.notifications-list {

    display: flex;


}


.notification-dot {

    position: absolute;
    height: 8px;
    width: 8px;
    background-color: red;
    border-radius: 100%;
}

.profile-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;  
    margin-right: 10px;  
}

.article-content img {
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    max-width: 100%; 
    height: auto;     
    display: block;        
    margin: 10px auto;         
}


.article-content {

    text-align: right;
    padding-left : 400px;
    padding-right: 400px;
    padding-top: 15px;
    padding-bottom: 30px;

}

body, h1, h2, h3, p, a {
    font-family: 'Vazirmatn', sans-serif;
}

.dashboard-form {

    display: flex;
    justify-content: space-around;

}

.profile-form {

    display: flex;
    flex-direction: column;

}
.comment {



    display: flex;
    justify-content: center;
    flex-direction: column;
    
}
.comment-text {


    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-author {

    padding-right: 450px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
   

}
.comment-border {

    display: flex;
    justify-content: center;


}

.comment-body {

    display: flex;
    justify-content: center;
    padding: 5px;


}
.comment-text p {

    width: 900px; 
    word-wrap: break-word; 
    display: block;
}
.not-available {

    display: flex;
    justify-content: center;

}

.author-profile-image {
    padding: 5px ;
    border-radius: 50%;
    margin-right: 10px;
}


.main-content {

}

.login-form {
    width: 550px;
    border-radius: 20px;
    padding: 8px 8px 8px 8px;
    box-shadow: 0px 8px 20px -9px;

}
.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    right: 0%;
    left: 0%;
    margin-top: 50px;
    margin-bottom: 120px;
}

.auth-btn-div {
    display: flex;
    justify-content: center;
}
.auth-btn {
    background-color: #dc3545;
    width: 525px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    font-size: 17px;
    height: 50px;
    margin-top: 25px;
    margin-bottom: 15px;

}
.auth-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    padding-bottom: 20px;
    margin-top:30px;
}
.auth-title h2 {
    font-size: 25px;
    font-weight: bold;
}
.auth-username {
    
    margin-bottom: 60px;
    height: 50px;
}
.auth-password {
    margin-bottom: 10px;
}
.auth-username-input {
    direction: ltr;
    background: white;
    width: 550px;
    height: 45px;
}
.auth-password-input {
    direction: ltr;
    background: white;
    width: 518px;
    height: 50px;
}
.auth-label {
    padding-right: 10px;
}
.auth-label h6 {
    font-size: 14px;
    font-weight: bold;
    background:#f3f3f3;
}
.auth-field {
    border-radius: 10px 10px 10px 10px;
    background-color: white;
    display: flex;
    align-items: center;
    width: 520px;
    margin-right: 7px;
}
.auth-icon {
    display: flex;
    position: relative;
    right: 2%;


}
.auth-links {
    display: flex;
    flex-direction: row-reverse;
    padding: 30px 0px 0px 10px;
}
.auth-links a {
    font-size: 14px;
}
.auth-img {
    padding-left: unset;
    border-radius: 100%;
    max-height: 50px;
    margin-bottom: 7px;
}

.pass-reset-link {
    display: flex;
    margin-left: auto;
}
.register-form {

    margin-top : 25vh; 

}

.errorlist {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
    list-style: none;
}


.logo {

    margin-left: 4px;
    width: 80px;
    height: 80px;
    border-radius: 100%;
}

.dashboard-logo {

    border: 3px solid #dc3545;
    margin-right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 100%;

}
.dashboard-dropdown-content {

    padding: 10px 10px 2px 10px;
    flex-direction: column;
    border-radius: 20px;
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    left: 0;
    margin-left: 15px;
}

.dashboard-dropdown:hover .dashboard-dropdown-content {
    display: flex;
}


.userinfo {

    width: 100%;
    padding: 10px 10px 10px 10px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.username-header {
    
    justify-content: center;
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 10px; 
    border-right:solid  gray 1px;
}

.userstats {

    display: flex;
    flex-direction: row-reverse;
}
.total-comments {

    width: 80px;
    margin-right: 25px;
}
.total-comments-label {

    font-size: 10px;
}

.dashlinks {

    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.dashlinks a {

    padding-right:10px;
    color: black;
}

.dashlink {

    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
}

.dashlink a {
    padding-right: 3px;
}

.product-card-container {
    display: flex;
    overflow-x: auto; 
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none; 
}
.product-card-container::-webkit-scrollbar {
    display: none;
}

.product-card-container.active {
    cursor: grabbing;
}
.product-card {
    margin-top:8px;
    margin-right: 7px;
    margin-left: 7px;
    min-width: 210px;
    max-width: 250px;
    border: 1px solid #0000001c;
    border-radius: 20px;
    position: relative;
}
.product-card-img {
    margin: 10px 3px 5px 3px;
    width: 200px;
    height: 200px;
    object-fit: contain;
    transition: transform 0.5s ease;
}
.product-card-text {
    color: black;
}
.product-card-title {
    display: flex;
    margin-top: 10px;
    margin-right: 5px;
    margin-bottom: 12px;
    height: 47px;
    transition: transform 0.5s ease;
}
.product-card-title:hover {
    color: #dc3545;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.product-card-price-container {
    position: relative;
    display: flex;
}
.product-card-price {
    
}
.product-card-text {
    padding-top: 10px;
}
.product-card-discount {
    position: relative;
}
.product-card-price-section {
    display: flex;
    margin-right: auto;
    margin-left: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 7px;
    height: 52px;
}
.product-card-discount {
    display: flex;
    flex-direction: column;
}
.product-card-old-price {
    font-size: 12px;
    color: #d1d1d1;
    text-decoration: line-through;
}
.product-card-old-price-section {
    align-items: center;
    height: 5px;
}
.product-card-discount-badge {
    position: relative;
    left: 8px;
    background-color: #dc3545;
    color: white;
    border-radius: 100%;
    display: flex;
    height: 20px;
    width: 20px;
    font-size: 12px;
    align-items: center;
    justify-content: center;
}

.card-cart-btn {
    right: 8%;
    position: absolute;
    bottom: 5%;
    border: none;
    background: #2b3031a1;
    padding: 10px;
    width: 48px;
    height: 46px;
    border-radius: 14px;
    transition: background-color 0.3s, box-shadow 0.3s;
}
.card-cart-btn:hover {
    background-color: #dc3545;
}
.secondhand-badge {
    
    margin-top: 11px;
    margin-left: 190px;
    font-size: 10px;
    color: white;
    border-radius: 15px;
    padding: 4px;
    background-color: #0d6efd;
    position: absolute;
    display: flex;

}
.mainpage-categories {
    padding: 20px 70px 0px 70px;
}
.toman-h6 {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    margin-right: 5px;
    font-size: 11px;
    font-weight: bold;
}
.cards {
    display: flex;
    flex-direction: row;
}
.card1 {
    margin-left: 15px;
}
.site-footer {
    background-color: #212529;
    color: #dee2e6;
    padding-top: 50px;
    
    font-family: 'Vazirmatn', sans-serif;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-logo-img {
    max-width: 120px;
    filter: brightness(0.9);
}

.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #adb5bd;
    text-align: justify;
}

.footer-title {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: #dc3545; 
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    font-size: 0.9rem;
}

.footer-links li a::before {
    content: '\f100';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 8px;
    color: #dc3545;
    font-size: 0.7rem;
}

.footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-info li {
    margin-bottom: 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.footer-contact-info i {
    margin-left: 10px;
    color: #dc3545;
    width: 18px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: #dc3545;
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-bottom {
    background-color: #1a1d21;
    padding: 15px 0;
    margin-top: 40px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #6c757d;
}

.trust-symbols {
    max-width: 100%;
}

.faq-wrapper {
    padding: 60px 0;
    background-color: #f8f9fa;  
    min-height: 80vh;
}

.faq-container {
    max-width: 800px;         
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.faq-heading {
    font-size: 2rem;
    font-weight: bold;
    color: #212529;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.faq-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: #dc3545;  
    border-radius: 2px;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.05rem;
    color: #212529;
    background-color: #fff;
    transition: all 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: #fff5f5;  
    color: #dc3545;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220,53,69,.25);
}

.accordion-icon i {
    color: #dc3545;
    font-size: 1.2rem;
}

.accordion-button::after {
    margin-right: auto;
    margin-left: 0;            
}

.accordion-body {
    background-color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #495057;
    padding: 1.2rem 1.8rem;
    border-top: 1px solid #f1f1f1;
}

.accordion-item {
    border: none;
    margin-bottom: 10px;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.accordion-item:last-of-type {
    margin-bottom: 0;
}
.dashboard-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.dashboard-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dc3545;
}

.dashboard-nav .dashboard-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 10px;
    color: #495057;
    text-decoration: none;
    transition: all 0.2s;
    margin-bottom: 6px;
    font-weight: 500;
}

.dashboard-nav .dashboard-link:hover,
.dashboard-nav .dashboard-link.active {
    background: #fff5f5;
    color: #dc3545;
}

.dashboard-nav .dashboard-link i {
    margin-left: 10px;
    font-size: 1.2rem;
}
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform 0.2s;
}

.avatar-wrapper:hover .profile-avatar-large {
    transform: scale(1.03);
}

.avatar-change-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #dc3545;
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.avatar-change-btn:hover {
    background: #b02a37;
    transform: scale(1.1);
}
.username-edit {
    background-color: white;
    padding: 10px;
    margin-right: 10px;
}
.form-control:focus {
    background-color: white;
}
.add-def-badge {
    border-radius: 5px;
    height: 17px;
    width: 58px;
    margin-right: 5px;
}
.page-heading {
    position: relative;
    padding-bottom: 10px;
    font-weight: bold;
    margin-bottom: 20px;
}
.page-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;             
    width: 60px;    
    height: 3px;
    background-color: #dc3545;
    border-radius: 2px;
}

.filter-sidebar {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    padding: 24px 20px;
    position: relative;
    
    overflow-y: auto;        
}

.filter-main-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #212529;
    padding-bottom: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.filter-main-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: #dc3545;
    border-radius: 2px;
}

.filter-group {
    margin-bottom: 24px;
    border-bottom: 1px dashed #e9ecef;
    padding-bottom: 18px;
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.filter-group-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f1f1f1;
}

.filter-group-title i {
    color: #dc3545;
    font-size: 1.1rem;
}

.form-check {
    padding-right: 1.5em; 
    margin-bottom: 6px;
}



.form-check-label {
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
}

.form-check-label:hover {
    color: #dc3545;
}

.filter-apply-btn {
    background-color: #dc3545;
    border: none;
    border-radius: 10px;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.filter-apply-btn:hover {
    background-color: #b02a37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220,53,69,0.3);
}

.secondhand-check {
    border-top: 1px dashed #e9ecef;
    padding-top: 12px;
    margin-top: 8px;
}

.product-page-container {
    padding-left: 10vw;
}
.product-col {
    margin-bottom: 15px;
}
.product-purchase-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.product-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #212529;
    line-height: 1.4;
    margin-bottom: 8px;
}

.brand-link {
    color: #0d6efd;
    text-decoration: none;
    font-weight: 500;
}

.price-section {
    margin: 16px 0;
}

.old-price {
    display: block;
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
}

.final-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #000;
}

.discount-badge {
    background: #dc3545;
    color: #fff;
    border-radius: 10px;
    padding: 2px 12px;
    font-size: 0.85rem;
    margin-right: 8px;
    vertical-align: middle;
}

.color-circle {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    margin-left: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.color-circle:hover {
    border-color: #dc3545;
}

.btn-add-to-cart {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-add-to-cart:hover { background: #b02a37; }
.btn-add-to-cart:disabled { background: #adb5bd; cursor: not-allowed; }

.main-product-image {
    max-height: 450px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 12px;
}

.thumbnail-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.thumbnail {
    width: 65px;
    height: 65px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumbnail.active, .thumbnail:hover {
    border-color: #dc3545;
}

.specs-table .spec-name {
    font-weight: 500;
    color: #6c757d;
    width: 35%;
}
.specs-table .spec-value {
    color: #000;
}

.comment-form-card .star-rating .star-icon {
    font-size: 1.4rem;
    color: #ffc107;
    cursor: pointer;
}
.comment-item {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-radius: 12px;
}
.main-image-container {
    position: relative;
    height: 450px;               
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.main-product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}



.thumbnail-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}
.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s;
}
.thumbnail.active, .thumbnail:hover {
    border-color: #dc3545;
}

.pinned-specs-box {
    border: 1px dashed #ffc107;
}

.btn-like {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.4rem;
    transition: all 0.2s;
}
.btn-like:hover {
    background-color: #dc3545;
    color: #fff;
    border-color: #dc3545;
}
.color-circle.selected {
    border: 3px solid #000;     
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.post-body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #333;
    line-height: 1.9;
    text-align: justify;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: block;
}

.post-body table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
    margin: 1rem 0;
}

.post-body table td, .post-body table th {
    padding: 8px 12px;
    border: 1px solid #ddd;
}

.post-body iframe {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

.post-body h2, .post-body h3 {
    color: #212529;
    margin-top: 1.5rem;
}

.post-body p {
    margin-bottom: 1rem;
}
.comment-form-card .star-rating .star-icon {
    font-size: 1.8rem;
    color: #ffc107;
    cursor: pointer;
    transition: transform 0.1s;
}
.comment-form-card .star-rating .star-icon:hover {
    transform: scale(1.2);
}

.avatar-placeholder {
    font-size: 0.9rem;
    font-weight: bold;
    background-color: #6c757d;
}

.reply-btn {
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}
.reply-btn:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.star-display i {
    font-size: 0.9rem;
}

.replies {
    padding-right: 0.5rem;
}
.form-control:focus {
    background-color: transparent;
}
.color-circle-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.cart-page-wrapper {
    background: #f8f9fa;
    min-height: 80vh;
}

.cart-main-title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #212529;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.cart-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 3px;
    background: #dc3545;
    border-radius: 2px;
}

.cart-items-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    overflow: hidden;
}

.cart-item-row {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}
.cart-item-row:last-child { border-bottom: none; }
.cart-item-row:hover { background: #fafafa; }

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #eee;
}

.cart-item-name a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.cart-item-name a:hover { color: #dc3545; }

.cart-item-meta { margin-top: 4px; }
.badge-meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #555;
    margin-left: 4px;
}
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}
.product-card-img {
    transition: transform 0.4s ease;
}
.product-card:hover .product-card-img {
    transform: scale(1.07);
}
.card-cart-btn {
    transition: background-color 0.3s, transform 0.3s;
}
.card-cart-btn:hover {
    background-color: #dc3545;
    transform: scale(1.05);
}
.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid #ccc;
}

.unit-price { font-weight: 500; color: #555; }
.item-total { font-weight: bold; color: #212529; }

.quantity-control .qty-btn { border: 1px solid #dee2e6; }
.quantity-control .qty-input {
    max-width: 50px;
    text-align: center;
    border-left: 0;
    border-right: 0;
    pointer-events: none;
}

.remove-btn { font-size: 1.2rem; transition: transform 0.2s; }
.remove-btn:hover { transform: scale(1.2); }

/* کارت‌های کناری (اسمبل، تخفیف، جمع کل) */
.side-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}
.side-card-header {
    background: #fff;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    align-items: center;
    gap: 10px;
}
.side-card-header i { font-size: 1.3rem; color: #dc3545; }
.side-card-header h5 { margin: 0; font-size: 1.1rem; font-weight: bold; }

.side-card-body { padding: 20px; }

.assemble-status {
    font-size: 0.85rem;
    padding: 10px;
    border-radius: 10px;
}
.assemble-status.available { background: #d4edda; color: #155724; }
.assemble-status.unavailable { background: #f8d7da; color: #721c24; }

.btn-assemble { transition: all 0.3s; }
.assemble-price {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 500;
}

.discount-form .form-control {
    border-radius: 10px 0 0 10px;
    border: 1px solid #ced4da;
    transition: border-color 0.2s;
}
.discount-form .form-control:focus {
    border-color: #dc3545;
    box-shadow: none;
}
.discount-form .btn {
    border-radius: 0 10px 10px 0;
}

.total-card .side-card-body { font-size: 0.95rem; }
.total-card hr { margin: 12px 0; }

.btn-checkout {
    background: #dc3545;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s;
}
.btn-checkout:hover {
    background: #b02a37;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220,53,69,0.3);
}

.empty-cart i { opacity: 0.7; }
button.add-to-cart-btn:disabled,
button.btn-add-to-cart:disabled {
    pointer-events: none;      /* جلوگیری از هرگونه کلیک */
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}
/* کنترل تعداد شیک */
.quantity-control-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px 16px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #ffffff;
    color: #495057;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    user-select: none;
    line-height: 1;
}

.qty-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    min-width: 40px;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #212529;
    user-select: none;
}
.cart-dropdown {
    position: relative;
    display: inline-block;
}
.cart-dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    width: 360px;
    max-height: 450px;
    overflow-y: auto;
    z-index: 1100;
    padding: 10px 0;
}
.cart-dropdown-content.show {
    display: block;
}
.cart-item-mini {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}
.cart-item-mini:hover {
    background: #f8f9fa;
}
.cart-continue-text {
    font-size: 0.75rem;
    color: #28a745;
    font-weight: 500;
    margin-right: 6px;
    white-space: nowrap;
}
.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #28a745;
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(40,167,69,0.2);
}
.btn-continue-shopping:hover {
    background: #218838;
    color: #fff;
    
}
.cart-item-mini-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-left: 10px;
}
.cart-item-mini-info {
    flex: 1;
    margin-right: 8px;
}
.cart-item-mini-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #212529;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-mini-price {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}
.cart-item-mini-qty {
    font-size: 0.75rem;
    color: #999;
}
.cart-item-mini-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    transition: transform 0.2s;
}
.cart-item-mini-remove:hover {
    transform: scale(1.2);
}
.cart-dropdown-footer {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-dropdown-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
}
.cart-dropdown-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.cart-dropdown-btn:hover {
    background: #b02a37;
}
.cart-empty-dropdown {
    text-align: center;
    padding: 20px;
    color: #999;
}
.cart-notification {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: fadeInOut 2s ease forwards;
}
.cart-notification.show {
    display: block;
}
.checkout-page {
    background: #f8f9fa;
    min-height: 70vh;
}

.checkout-title {
    font-size: 2rem;
    font-weight: 800;
    color: #212529;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}
.checkout-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: #dc3545;
    border-radius: 4px;
}

.checkout-card,
.summary-card {
    border: none;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.checkout-card:hover,
.summary-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.checkout-card .card-header,
.summary-card .card-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 22px;
}
.checkout-card .card-body,
.summary-card .card-body {
    padding: 22px;
}

.address-item,
.shipment-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.address-item:hover,
.shipment-item:hover {
    border-color: #dc3545;
    background: #fff8f8;
}
.address-item.selected,
.shipment-item.selected {
    border-color: #dc3545;
    background: #fff0f0;
    box-shadow: 0 0 0 4px rgba(220,53,69,0.12);
}

.address-item input[type="radio"],
.shipment-item input[type="radio"] {
    display: none;
}
.address-item label,
.shipment-item label {
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.checkout-btn {
    border-radius: 16px;
    padding: 16px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 16px rgba(220,53,69,0.25);
    transition: all 0.3s ease;
}
.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(220,53,69,0.35);
    background: #b02a37;
}
.checkout-btn:active {
    transform: scale(0.97);
}

.summary-items {
    max-height: 300px;
    overflow-y: auto;
    padding-left: 4px;
}
.summary-items::-webkit-scrollbar {
    width: 4px;
}
.summary-items::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 8px;
}
.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
}
.summary-item:last-child {
    border-bottom: none;
}

.notification-button .dropbtn,
.cart-button a,
.dashboard-button .dropbtn {
    transition: transform 0.2s;
}
.notification-button .dropbtn:hover,
.cart-button a:hover,
.dashboard-button .dropbtn:hover {
    transform: scale(1.01);
}
.totals {
    background: #fafafa;
    padding: 14px 18px;
    border-radius: 14px;
}
.totals .d-flex {
    padding: 4px 0;
}
.totals hr {
    margin: 10px 0;
}

.color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ddd;
    vertical-align: middle;
    margin-left: 4px;
}
.checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 35px;
}
.checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #adb5bd;
    font-size: 0.9rem;
    font-weight: 600;
}
.checkout-step .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #adb5bd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s;
}
.checkout-step.active .step-circle,
.checkout-step.done .step-circle {
    background: #dc3545;
    color: #fff;
}
.checkout-step.active,
.checkout-step.done {
    color: #212529;
}
.checkout-step-divider {
    width: 40px;
    height: 2px;
    background: #f1f1f1;
}


.co-panel {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.co-panel:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.co-panel-header {
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.co-panel-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}
.co-panel-body {
    padding: 22px;
}

.address-item, .shipment-item {
    position: relative;
    padding-right: 42px;
}
.radio-check-indicator {
    position: absolute;
    top: 16px;
    right: 14px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.address-item.selected .radio-check-indicator,
.shipment-item.selected .radio-check-indicator {
    background: #dc3545;
    border-color: #dc3545;
}
.radio-check-indicator i {
    font-size: 0.7rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}
.address-item.selected .radio-check-indicator i,
.shipment-item.selected .radio-check-indicator i {
    opacity: 1;
}

.shipment-item.opacity-50 {
    opacity: 0.45;
    pointer-events: none;
}

@media (min-width: 992px) {
    .summary-card-sticky {
        position: sticky;
        top: 90px;
    }
}

.empty-address-box {
    text-align: center;
    padding: 35px 15px;
}
.empty-address-box i {
    font-size: 2.2rem;
    color: #dee2e6;
    margin-bottom: 10px;
    display: block;
}
.empty-address-box p {
    color: #999;
    margin-bottom: 12px;
}

.shipment-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff5f5;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.header-alert-bar {
    background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1020;
    text-align: center;
}
.header-alert-bar .btn-close {
    filter: invert(1);
}
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-ring {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #f3f3f3;       
    border-top: 4px solid #dc3545;    
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #ffffff;        
    padding: 5px;
    box-shadow: 0 0 0 2px #ffffff;     
}

.notification-dropdown-content,
.dashboard-dropdown-content,
.categories-dropdown-content,
.subcategory-panel {
    animation: fadeInMenu 0.3s ease-in-out;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(10px); }
    15% { opacity: 1; transform: translateX(-50%) translateY(0); }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
@media (max-width:375px) {
    .form-control {
        width: 275px!important;
    }
    .nav-links a {
        font-size: 13px;

    }
}

@media (max-width : 600px) {
    .product-page-container {
        padding-right: 10vw;
    }
}
@media (max-width: 1100px) {

    .checkout-title {
        font-size: 1.5rem;
    }
    .checkout-card .card-header {
        flex-wrap: wrap;
    }
    .checkout-card .card-header .btn {
        margin-top: 6px;
    }
    .summary-card {
        margin-bottom: 20px;
    }
    .checkout-btn {
        font-size: 1rem;
        padding: 14px;
    }
    .footer-title {
        margin-top: 1.5rem;
    }
    .social-links {
        justify-content: center;
    }
    .footer-about-text {
        text-align: center;
    }

    .faq-container {
        padding: 25px 15px;
        border-radius: 12px;
    }
    .faq-heading {
        font-size: 1.7rem;
    }
    .search-bar {
        display: none;
    }
    .search-bar-mobile {
        padding-top: 15px;
        display: flex;
    }
    .form-control {
        width: 86vw;
    }
    
    .header-actions {
        margin-right: auto;
    }
    .header-l2 {
        display: none;
    }
    .header-l2-mobile {
    display: flex;
    }
    .nav-bar {
        display: flex;
        flex-direction: row-reverse;
        bottom: 0%;
        height: 70px;
        right: 0%;
        left: 0%;
        padding-top: 3px;
        position: fixed;
        background-color: white;
        justify-content: center;
    }
    .nav-links {
        margin: 8px;
    }
    .sub-list {
        columns: unset;
    }
    .sub-list a {
        padding: 20px 5px;
    }
    .btn-primary {
        padding: unset;
    }

    .login-form {
        width: 330px;
    }
    .auth-field {
        width: 300px;
    }
    .auth-username {
        margin-bottom: 25px;
    }
    .auth-links {
        padding: 5px 0px 0px 0px;
    }
    .auth-title {
        padding-bottom: 1px;
        margin-top: 1px;
    }
    .auth-btn {
        margin-top: 1px;
        margin-bottom: 3px;
    }
    .header-username {
        display: none;
    }
    .card-img-top {
        object-fit: cover;
        height: 200px;
    }
    .mainpage-categories {
        padding: 1px 5px 0px 5px;
    }
    .cards {
        flex-direction: column;
    }
    .card1 {
        margin-left: unset;
        margin: 6px;
    }
    .card2 {
        margin: 6px;
    }
    footer {
        flex-direction: column;
        padding-bottom: 110px;
    }
    .username-edit {
        width: 275px;!important
    }
    .product-col {
        width: 315px;
    }
    .product-row {
        justify-content: center;
    }
     .cart-toast {
        top: 15px;
        padding: 8px 12px;
        gap: 6px;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .toast-icon {
        font-size: 1.1rem;
    }

    .toast-continue-link {
        padding: 3px 10px;
        font-size: 0.75rem;
    }
}
