/*-- Error handeling ---*/
.input-error-validation{
  margin-top: 7px;
  color: #F44336;
}

/* ----- Global Style -----*/

.mb-20{
  margin-bottom: 20px;
}



/*  ------  index Style ------*/
.specialoffer-bg{
	background-color: #EF5350;
	border-radius: 10px;
	padding: 35px 15px;
}
.btn-cta {
    position: relative;
    padding-inline: 18px;
    font-weight: 600;
    letter-spacing: 0.3px;

    /* قرمز جذاب‌تر از قرمز بوت‌استرپ */
    background: linear-gradient(135deg, #ff4b5c, #ff1f3d);
    border-color: #ff1f3d;
    /* سایه قرمز */
    box-shadow: 0 6px 16px rgba(255, 31, 61, 0.45);

    /* افکت نرم روی هاور */
    transition:
        transform 0.18s ease-out,
        box-shadow 0.18s ease-out,
        background 0.18s ease-out,
        border-color 0.18s ease-out;
}

/* حالت hover / focus */
.btn-cta:hover,
.btn-cta:focus {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 24px rgba(255, 31, 61, 0.6);
    background: linear-gradient(135deg, #ff1f3d, #ff4b5c);
    border-color: #ff0022;
    color: #fff;
}

/* یه هاله‌ی ظریف دور دکمه (اختیاری ولی جذابه) */
.btn-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.35);
    opacity: 0.0;
    transition: opacity 0.2s ease-out;
}

.btn-cta:hover::after {
    opacity: 1;
}

/*--- Category Shop sidebar ---- */
.category-tree {
  list-style-type: none;
  padding: 0;
}
.category-tree > li {
  margin: 10px 0;
}
.category-tree a {
  text-decoration: none;
  color: #333;
  font-weight: normal;
  display: block;
  padding: 5px;
  border-radius: 5px;
}
.category-tree a:hover {
  background-color: #f0f0f0;
}
.category-tree .active > a {
  color: #fff;
  background-color: #d9534f;
  font-weight: bold;
}
.subcategory {
  list-style-type: none;
  padding-left: 20px;
  display: none;
}
.category-tree li.active > .subcategory {
  display: block;
}
.category-tree .active > a {
  color: #fff;
  font-weight: bold;
}
.category-tree li .subcategory li{
  margin-bottom: 10px;
}

.sort-by-product-area {
  display: flex;
  gap: 10px;
}
.btn-sort {
  border:none;
  color: #78909C;
  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
}
.btn-sort:hover{
  color: #263238 !important;
  background-color: #f1f1f1;
}

.category-description{
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 0 6px 0 rgba(0,0,0,.16);
  padding: 15px 20px;
  line-height: 2.5;
  color: #455A64;
  font-size: 1.1rem!important;
  font-family: inherit;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}
.expand-button {
  cursor: pointer;
  display: block;
  width: 50%;
  background-color: transparent;
  border:none;
  margin-top: 1rem;
  margin-left: auto;
  margin-right: auto;
  color: #78909C;
  font-size: 1rem;
  padding: 0.5rem;
}

.special-text {
  position: relative;
  max-height: 150px;
  overflow: hidden;
  transition: max-height 1s ease;
}
.special-text h1 {
  font-size: 18px;
  margin-bottom: 15px;
}
.special-text p{
  font-size: 15px;
  line-height: 1.8;
}
.special-text.-expanded {
  max-height: 300vh;
}

.special-text:not(.-expanded)::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(255, 255, 255, 0), white);
}

/*------- product details -----*/

.product-detail .detail-info .title-detail{
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 10px;
}

.btn-product-cart{
  background-color: #002147;
  color: #fff;
  border:none;
}
.detail-extralink{
  align-items: center;
}

.whastapp-btn{
  background-color: #25D366;
  color: #fff;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 4px 10px rgba(37, 211, 102, 0.3);
  position: relative;
  overflow: visible;
}
.whatsapp-btn:hover {
  transform: scale(1.2);
  box-shadow: 0px 10px 15px rgba(37, 211, 102, 0.5);
}
.whatsapp-btn::after {
  content: ' 📩';
  position: absolute;
  right: -25px;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.whatsapp-btn:hover::after {
  right: 10px;
  opacity: 1;
}
.related_product_slider{
  background-color: #1c2841;
  border-radius: 10px;
  padding: 20px;
}

/*------ User profile Style -----*/

.tab-content{
  padding: 2rem 1.5rem;
  background-color: #fff;
  border-radius: 10px;
}

.address-title span{
  background-color: #FDD835;
  padding: 5px;
  border-radius: 5px;
}


/* ------- Login Page ---------*/

.login_wrap{
	padding: 50px 30px;
}



/* ------- Cart Page ---------*/
.remove-cart-icon{
  color: #E53935;
}
.product-attributes-badget{
  background-color: #F5F5F5;
  color: #263238;
  padding: 7px;
  font-size: 14px;
  max-width: 80%;
}


/* ------- Contact Page ---------*/
.contact-wrapper{

}
textarea.form-control{
	height: auto;
	resize: none; /* کاربر نمیتونه اندازه رو تغییر بده */
  width: 100%; 
}
.contact-box {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}
.contact-box:hover {
  background: #e9f5ff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 22px;
}
.contact-title h4 {
  margin-bottom: 10px;
  font-weight: bold;
  color: #333;
}
.contact-title p {
	margin-right: 10px;
	margin-bottom: 0;
	padding-bottom: 5px;
  display: block;
  color: #666;
  font-size: 15px;
}


/*--- Header Search  ---- */

#searchForm {
  position: relative;
  display: flex;
  align-items: center;
}

#searchInput {
  padding: 10px;
  font-size: 14px;
  width: 350px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
}

#searchForm button {
  position: absolute;
  left: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #555;
}

#searchForm button:hover {
  color: #25D366; /* رنگ سبز برای افکت هاور */
}
#searchResults {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-top: 5px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none; /* پنهان بودن نتایج به صورت پیش‌فرض */
}

#resultsList {
  padding: 8px;
  margin: 0;
  list-style: none;
  background-color: #f5f5f5;
}

#resultsList li {
  padding: 8px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#resultsList li:hover {
  background-color: #f5f5f5;
}



@media (max-width: 768px) {
  .carausel-4-columns .slick-slide {
   margin: 0 10px;
 }
}


/* ----------- Product Commetns section ----------- */

.customer-comment-box .customer-section{
  display:flex;
  align-items:flex-start;     /* آواتار و متن از بالا تراز بشن */
  border:1px solid #ccc;
  border-radius:8px;
  padding:15px;
  margin-bottom:10px;
  gap:15px;                  /* فاصله بین آیتم‌ها */
}

.customer-comment-box .customer-section .customer-profile img{
  width:70px;
  border-radius:50%;
  object-fit:cover;
}

.customer-comment-box .customer-section .customer-details{
  flex:1;                    /* بخش متن کش بیاد */
  margin-right:20px;         /* اگر RTL هستی خوبه؛ در LTR می‌تونی margin-left بدی */
}

.customer-comment-box .customer-section .comment-date{
  margin-inline-start:auto;  /* هل بده به انتهای سطر (چپ در RTL، راست در LTR) */
  align-self:flex-end;       /* بره پایین کارت */
  white-space:nowrap;        /* تاریخ نشکنه و نره خط بعد */
  color:#fff;
  font-size:.9rem;
  background-color: #6c757d;
  border-radius: 5px;
  padding: 5px;
}

/* ------------------- Product Card -------------*/
.out-of-stock span{
	background-color: #EEEEEE;
	color: #37474F;
	padding: 5px 15px;
	border-radius: 5px;
}
/*.wishlist-btn{
	position: absolute;
	left: 20px;
	top: 20px;
	background-color: transparent;
}
*/

/* ----------- User profile Styles ------*/
.review-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.review-card { display: flex; gap: 12px; padding: 14px; border: 1px solid #e9ecef; border-radius: .75rem; background: #fff; }
.review-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid #e5e7eb; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-product a { color: #dc3545; text-decoration: none; }
.review-product a:hover { text-decoration: underline; }
.review-stars i { margin-left: 2px; }
.review-text { line-height: 1.9; color: #444; }
.badge-soft { background: #f1f5f9; color: #334155; border-radius: 8px; padding: 4px 8px; font-size: .8rem; }
.empty-state { border: 1px dashed #e2e8f0; border-radius: .75rem; padding: 20px; text-align: center; color: #64748b; background: #fff; }
@media (min-width: 768px){ .review-list { grid-template-columns: 1fr; } }



