html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column; 
   overflow-x: hidden;
  font-family: 'Vazir', Tahoma, sans-serif;
}

main {
  flex: 1;
}

.ck.ck-editor__editable_inline {
  background-color: white !important;
  color: black !important;
}


.ck-toolbar {
  flex-wrap: wrap !important;
  background-color: #f8f9fa !important; /* رنگ پس‌زمینه نوار ابزار */
  border-radius: 6px;
}
.ck-toolbar__items {
  display: flex;
  flex-wrap: wrap !important;
}

.ck-editor__editable_inline {
  min-height: 300px;
  width: 100%;
}







.floating-cart-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #28a745; /* سبز درخشان */
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-size: 24px;
  z-index: 9999;
  transition: all 0.3s ease;
}

.floating-cart-btn:hover {
  background: #34d058; /* سبز روشن‌تر در هاور */
  transform: scale(1.1);
}


@media (max-width: 576px) {
  .floating-cart-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 15px;
    right: 15px;
  }
}





/* فقط برای اطمینان از ظاهر */
.footer-modern {
  background-color: #222; /* یا رنگ دلخواه */
  color: white;
}


nav .nav-link {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

nav .nav-link:hover,
nav .nav-link:focus {
  color: coral; /* می‌تونی رنگ برندت یا گرادیانت بزنی */
}


.profile-box {
    transition: 0.5s;
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    font-size: 20px;
    box-shadow: 0px 0px 15px 5px ;
    cursor: pointer;
}



.profile-label {
    font-weight: bold;
    color: #495057;
}



.post-image {
    height: 470px;
    object-fit: cover;
    border-radius: 8px;
    width: 100%;
}



.card-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.card-container:hover {
    transform: scale(1.02);
    cursor: pointer;
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card-container:hover .card-overlay {
    opacity: 1;
}

.card-overlay h5 {
    margin-bottom: 15px;
}

.card-overlay p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}





.blurred-box {
    backdrop-filter: blur(10px);
    background-color:  rgba(255, 22, 208, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 22, 208, 0.2);
    padding: 50px;
}




.profile-pic {
  width: 100;
  height: 100;
  object-fit: cover;
  border-radius: 50%;
}






  .product-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
  }
  .product-img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
  }
  .product-title {
    color: #2281f7;
  }

  .color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }



.product-comments {
  padding: 30px;
  border-radius: 12px;
  font-family: 'Vazir', Tahoma, sans-serif;
}

.comment-form h2, .comments-list h2 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #333;
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.btn-send {
  background-color: #00B894;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}
.btn-send:hover {
  background-color: #009475;
}

.comment-card {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.3s;
}
.comment-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.comment-avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.comment-content {
  flex: 1;
}
.comment-info {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
  color: #777;
}

.no-comments {
  text-align: center;
  color: #aaa;
  font-style: italic;
  padding: 10px;
}


.tool-box{
  border-radius: 40px;
  width: 33%;
  text-align: center;
  color: white;
}

.tool-box2{
  border-radius: 40px;
  width: 20%;
  text-align: center;
  color: white;
}



.share-box{
  border-radius: 200px;
  width: 13%;
  text-align: center;
  color: white;
}

.zoom-hover{
  transition: 0.3s;
}

.zoom-hover:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}




.cart-card {
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 30px;
  transition: transform 0.3s ease;
}

.product-img-chart {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.price-tag {
  font-size: 1.2rem;
  color: #198754;
  font-weight: bold;
}
.total-price {
  font-size: 1.4rem;
  font-weight: bold;
}




.order-card {
      margin-bottom: 30px;
  }
.order-header {
    background-color: #309898;
    color: white;
    padding: 10px 20px;
    border-radius: 5px 5px 0 0;
}
.order-body {
    background-color: white;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 5px 5px;
}
.item-row {
    border-bottom: 1px solid #dee2e6;
    padding: 10px 0;
}
.item-row:last-child {
    border-bottom: none;
}







.container.gallery-container {
    background-color: #fff;
    color: #35373a;
    min-height: 100vh;
    border-radius: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.06);
}

.gallery-container h1 {
    text-align: center;
    margin-top: 70px;
  font-family: 'Vazir', Tahoma, sans-serif;
    font-weight: bold;
}

.gallery-container p.page-description {
    text-align: center;
    max-width: 800px;
    margin: 25px auto;
    color: #888;
    font-size: 18px;
}

.tz-gallery {
    padding: 40px;
}

.tz-gallery .lightbox img {
    width: 100%;
    margin-bottom: 30px;
    transition: 0.2s ease-in-out;
    box-shadow: 0 2px 3px rgba(0,0,0,0.2);
}


.tz-gallery .lightbox img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}


.tz-gallery img {
    border-radius: 4px;
}

.baguetteBox-button {
    background-color: transparent !important;
}


@media(max-width: 768px) {
    body {
        padding: 0;
    }

    .container.gallery-container {
        border-radius: 0;
    }
}




 .btn-modern {
  color: white;
  padding: 15px;
  font-size: 1.1rem;
  border-radius: 40px;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn-modern:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.btn-danger    { background: linear-gradient(135deg, #dc3545, #a71d2a); }
.btn-primary   { background: linear-gradient(135deg, #0d6efd, #0a58ca); }
.btn-info      { background: linear-gradient(135deg, #0dcaf0, #0aa9cc); }
.btn-success   { background: linear-gradient(135deg, #198754, #146c43); }
.btn-warning   { background: linear-gradient(135deg, #ffc107, #e0a800); }

a{
  text-decoration: none;
}

.btn-gradient{
  --g1: #7b2ff7;   
  --g2: #2b6cf6;   
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, var(--g1), var(--g2));
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(43, 76, 190, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
  transform-origin: center;
  background-size: 200% 100%;
}

.btn-gradient:hover{
  animation: btn-shake 600ms cubic-bezier(.22,.9,.35,1);
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(43, 76, 190, 0.24);
  background-position: 100% 0; 
}

.btn-gradient:active{
  transform: translateY(-1px) scale(0.995);
  animation: none;
}

@keyframes btn-shake {
  0%   { transform: translateY(-4px) translateX(0); }
  15%  { transform: translateY(-4px) translateX(-6px); }
  30%  { transform: translateY(-4px) translateX(6px); }
  45%  { transform: translateY(-4px) translateX(-4px); }
  60%  { transform: translateY(-4px) translateX(4px); }
  75%  { transform: translateY(-4px) translateX(-2px); }
  90%  { transform: translateY(-4px) translateX(2px); }
  100% { transform: translateY(-4px) translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-gradient,
  .btn-gradient:hover {
    transition: none;
    animation: none;
    transform: none;
    box-shadow: 0 8px 20px rgba(43, 76, 190, 0.12);
  }
}





.navbar-nav .nav-item {
  margin: 5px 0;
}

/* Make dropdowns full width on mobile */
@media (max-width: 768px) {
  .navbar-nav .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    background-color: #f8f9fa; /* light background for visibility */
    border: none;
    padding-left: 10px;
  }

  .navbar-nav .dropdown-menu .submenu {
    padding-left: 20px;
  }

  .navbar-nav .dropdown-toggle::after {
    display: inline-block;
    float: right;
    margin-left: .255em;
    vertical-align: .255em;
    content: "▾"; /* arrow for mobile */
  }

  /* Increase touch area for buttons */
  .navbar-nav .btn {
    width: 100%;
    text-align: center;
    margin: 5px 0;
  }
}




/* Navbar base */
.custom-navbar {
  background: transparent; /* یا فقط برای فاصله */
  padding: 0;
  box-shadow: none;
}



/* Logo */
/*.logo-img {
  width: 130px;
  height: 110px;

}*/

/* Toggler animation */
.custom-toggler {
  border: none;
  outline: none;
}
.custom-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255,255,255,0.8)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Profile button */
.profile-btn {
  background: linear-gradient(135deg, #8208fb, #ff00d7);
  color: white; !important;
  font-weight: bold;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease-in-out;
}
.profile-btn:hover {
  transform: scale(1.05);

}

/* Admin button */
.admin-btn {
  background: linear-gradient(135deg, #ff4d4d, #ff0000);
  color: #fff !important;
  font-weight: bold;
  border-radius: 30px;
  padding: 0.4rem 1rem;
  transition: all 0.3s ease-in-out;
}
.admin-btn:hover {
  background: linear-gradient(135deg, #ff0000, #ff4d4d);
  transform: scale(1.05);
}

/* Nav links */
.nav-link {
  /*color: #f8f9fa !important;*/
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}


/* Dropdown menu */
.dropdown-menu {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.dropdown-item:hover {
  background-color: #f0f0f0;
}




.footer-modern {
  background: linear-gradient(135deg, #2c2c2c, #1f1f1f);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
  border-radius: 20px 20px 0 0;
}

.section-title {
  color: #ffc107;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-text {
  color: #e0e0e0;
  line-height: 1.8;
}

.footer-link {
  color: #f8f9fa;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
.footer-link:hover {
  color: #ffc107;
  text-decoration: underline;
}

.icon-color {
  color: #ffc107;
}

/* شبکه‌های اجتماعی */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  transition: all 0.3s ease-in-out;
  color: #fff;
}
.facebook { background-color: #3b5998; text-decoration:none; }
.youtube { background-color: #e80a0a; text-decoration:none; }
.instagram { background-color: #e1306c; text-decoration:none; }
.linkedin { background-color: #0077b5; text-decoration:none; }

.social-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
  color: white;
}





.toast-fancy {
  min-width: 400px;
  border-radius: 18px;
  font-size: 1.15rem;
  animation: slideDown 0.5s ease-out forwards;
  opacity: 0.95;
  backdrop-filter: blur(6px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-fancy:hover {
  transform: scale(1.02);
  opacity: 1;
}

@keyframes slideDown {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}




.ajax-toast {
    min-width: 250px;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.ajax-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.ajax-toast.success { background-color: #28a745; }
.ajax-toast.error { background-color: #dc3545; }




/* استایل کلی نوار بالا و پایین */

.top-bar { background-color: #f8f9fa; }

.bottom-bar .nav-link {
  color: #fff;
  font-weight: 500;
}
.bottom-bar .nav-link:hover {
  color: #ffc107;
}

.middle-bar { background-color: #ffffff; }


.top-bar, .middle-bar, .bottom-bar {
  /*position: ;*/
  z-index: 1;
}


.nav-link:hover {
    color: #ffc107 !important;
}

.btn-gradient {
    background: linear-gradient(90deg, #0dcaf0, #0d6efd);
    border: none;
}

.btn-gradient:hover {
    opacity: 0.9;
}

/*.logo-img {
  width: 160px;
  height: 110px;
}
*/
#chart-count {
    font-size: 0.7rem;
}



.glass-navbar {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.glass-navbar:hover {
  background: rgba(255, 255, 255, 0.9);
}

.navbar .nav-link {
  font-weight: 600;
  color: #222 !important;
  transition: color 0.3s ease;
  margin: 0 8px;
}

.navbar .nav-link:hover {
  color: #dc3545 !important;
}

.dropdown-menu {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: none;
  background-color: #fff;
}

.logo-img {
  height: 55px;
  width: auto;
  transition: transform 0.2s ease;
}
.logo-img:hover {
  transform: scale(1.1);
}

@media (max-width: 992px) {
  .navbar-nav {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 10px;
  }
  .nav-link {
    color: #000 !important;
  }
}




.avatar-circle {
  width: 60px;
  height: 60px;
  background-color: #007bff;
  color: white;
  font-weight: bold;
  font-size: 20px;
  border-radius: 50%;
}




/*
.blur-on-hover-container img {
  transition: filter 0.3s ease;
}

.blur-on-hover-container:hover img {
  filter: blur(100px); 
}
*/