/* ==========================================================================
   ووکامرس - استایل سفید مدرن با جلوه‌های پویا
   طراحی ریسپانسیو و بهینه شده بدون تداخل با استایل‌های موجود
   ========================================================================== */

/* ریست‌های انتخابی برای جلوگیری از تداخل */
.woocommerce-additional-fields,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-bacs-bank-details,
.woocommerce-breadcrumb,
.woocommerce-cart,
.woocommerce-cart-form,
.woocommerce-cart-form__cart-item,
.woocommerce-cart-form__contents,
.woocommerce-checkout,
.woocommerce-checkout-payment,
.woocommerce-checkout-review-order,
.woocommerce-checkout-review-order-table,
.woocommerce-column,
.woocommerce-column--1,
.woocommerce-column--2,
.woocommerce-column--billing-address,
.woocommerce-column--shipping-address,
.woocommerce-column__title,
.woocommerce-columns,
.woocommerce-columns--2,
.woocommerce-columns--addresses,
.woocommerce-customer-details,
.woocommerce-customer-details--email,
.woocommerce-customer-details--phone,
.woocommerce-info,
.woocommerce-loop-product__link,
.woocommerce-loop-product__title,
.woocommerce-message,
.woocommerce-no-js,
.woocommerce-notice,
.woocommerce-notices-wrapper,
.woocommerce-noreviews,
.woocommerce-order,
.woocommerce-order-details,
.woocommerce-order-details__title,
.woocommerce-ordering,
.woocommerce-order-overview,
.woocommerce-order-overview__date,
.woocommerce-order-overview__email,
.woocommerce-order-overview__order,
.woocommerce-order-overview__payment-method,
.woocommerce-order-overview__total,
.woocommerce-order-received,
.woocommerce-page,
.woocommerce-products-header,
.woocommerce-products-header__title,
.woocommerce-product-details__short-description,
.woocommerce-product-gallery,
.woocommerce-product-gallery--columns-4,
.woocommerce-product-gallery--with-images,
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper,
.woocommerce-product-rating,
.woocommerce-result-count,
.woocommerce-Reviews,
.woocommerce-Reviews-title,
.woocommerce-shop,
.woocommerce-site-status-badge-live,
.woocommerce-table,
.woocommerce-table--order-details,
.woocommerce-table__line-item,
.woocommerce-table__product-name,
.woocommerce-table__product-table,
.woocommerce-table__product-total,
.woocommerce-tabs,
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-totals,
.woocommerce-thankyou-order-details,
.woocommerce-thankyou-order-received,
.woocommerce-privacy-policy-link,
.woocommerce-privacy-policy-text,
.woocommerce-shipping-calculator,
.woocommerce-shipping-destination,
.woocommerce-shipping-fields,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-shipping-methods,
.woocommerce-shipping-totals,
.woocommerce-form-coupon,
.woocommerce-form-coupon-toggle,
.woocommerce-form__input,
.woocommerce-form__input-checkbox,
.woocommerce-form__label,
.woocommerce-form__label-for-checkbox,
.woocommerce-input-wrapper,
.woocommerce-account,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation-link,
.woocommerce-MyAccount-navigation-link--customer-logout,
.woocommerce-MyAccount-navigation-link--dashboard,
.woocommerce-MyAccount-navigation-link--downloads,
.woocommerce-MyAccount-navigation-link--edit-account,
.woocommerce-MyAccount-navigation-link--edit-address,
.woocommerce-MyAccount-navigation-link--orders,
.woocommerce-dashboard,
.woocommerce-checkout .payment_methods,
.woocommerce-checkout .payment_methods li,
.woocommerce-checkout #payment,
.woocommerce-checkout #place_order,
.woocommerce-shop ul.products,
.woocommerce-shop ul.products li.product,
.woocommerce-cart .shop_table,
.woocommerce-cart .shop_table thead,
.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td,
.woocommerce-pagination,
.woocommerce-pagination ul,
.woocommerce-pagination a,
.woocommerce-pagination span {
  /* ریست‌های اولیه */
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  background-color: transparent;
  border: none;
  list-style: none;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

/* === استایل‌های اصلی سفید مدرن === */

/* استایل کلی صفحات ووکامرس */
.woocommerce-page,
.woocommerce-cart,
.woocommerce-checkout,
.woocommerce-account,
.woocommerce-shop {
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  min-height: 100vh;
  padding: 2rem 1rem;
  position: relative;
  overflow-x: hidden;
}

.woocommerce-page::before,
.woocommerce-cart::before,
.woocommerce-checkout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, 
    #ff6b6b 0%, 
    #4ecdc4 25%, 
    #45b7d1 50%, 
    #96ceb4 75%, 
    #feca57 100%);
  z-index: 1000;
}

/* هدرها و عناوین */
.woocommerce-products-header__title,
.woocommerce-order-details__title,
.woocommerce-Reviews-title,
.woocommerce-column__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.woocommerce-products-header__title::after,
.woocommerce-order-details__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60%;
  height: 3px;
  background: #1e293b;
  border-radius: 2px;
}

/* کارت‌ها و باکس‌ها */
.woocommerce-checkout-review-order,
.woocommerce-customer-details,
.woocommerce-order-details,
.woocommerce-MyAccount-content,
.woocommerce-MyAccount-navigation,
.woocommerce-additional-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-checkout-payment {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.woocommerce-checkout-review-order::before,
.woocommerce-customer-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #4ecdc4, #45b7d1);
}

/* جداول */
.woocommerce-cart .shop_table,
.woocommerce-checkout-review-order-table,
.woocommerce-table--order-details {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.woocommerce-cart .shop_table thead th,
.woocommerce-checkout-review-order-table th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.2rem 1rem;
  font-weight: 600;
  text-align: right;
  border: none;
}

.woocommerce-cart .shop_table td,
.woocommerce-checkout-review-order-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
}

.woocommerce-cart .shop_table tr:hover td {
  background: rgba(78, 205, 196, 0.05);
  transform: translateX(5px);
}

/* فرم‌ها و اینپوت‌ها */
.woocommerce-form__input,
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper textarea,
.woocommerce-input-wrapper select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #4ecdc4, #45b7d1) border-box;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.woocommerce-form__input:focus,
.woocommerce-input-wrapper input:focus {
  outline: none;
  border-color: #4ecdc4;
  box-shadow: 
    0 0 0 3px rgba(78, 205, 196, 0.1),
    0 8px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.woocommerce-form__label-for-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.woocommerce-form__label-for-checkbox:hover {
  background: rgba(78, 205, 196, 0.1);
}

/* دکمه‌ها و CTA */
.woocommerce-checkout #place_order,
.woocommerce-cart .button,
.woocommerce-Button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.woocommerce-checkout #place_order:hover,
.woocommerce-cart .button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 15px 40px rgba(102, 126, 234, 0.4),
    0 0 0 5px rgba(102, 126, 234, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateY(-3px) scale(1.02); }
  50% { transform: translateY(-3px) scale(1.05); }
}

/* ناوبری و پینج‌یشن */
.woocommerce-MyAccount-navigation {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.woocommerce-MyAccount-navigation-link {
  margin-bottom: 0.5rem;
}

.woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 1rem 1.5rem;
  color: #2c3e50;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.woocommerce-MyAccount-navigation-link a:hover,
.woocommerce-MyAccount-navigation-link.is-active a {
  background: linear-gradient(90deg, rgba(78, 205, 196, 0.1), rgba(69, 183, 209, 0.1));
  color: #2c3e50;
  transform: translateX(10px);
}

.woocommerce-MyAccount-navigation-link a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #4ecdc4, #45b7d1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.woocommerce-MyAccount-navigation-link a:hover::before,
.woocommerce-MyAccount-navigation-link.is-active a::before {
  opacity: 1;
}

.woocommerce-pagination {
  text-align: center;
  margin-top: 3rem;
}

.woocommerce-pagination ul {
  display: inline-flex;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.woocommerce-pagination a,
.woocommerce-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-weight: 600;
  transition: all 0.3s ease;
}

.woocommerce-pagination a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.1);
}

/* پیام‌ها و اطلاعیه‌ها */
.woocommerce-message,
.woocommerce-info,
.woocommerce-notice {
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  border: none;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
  border-right: 6px solid #667eea;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.woocommerce-message::before,
.woocommerce-info::before {
  content: '💫';
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

/* گالری محصولات */
.woocommerce-product-gallery {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.woocommerce-product-gallery__image {
  position: relative;
  overflow: hidden;
}

.woocommerce-product-gallery__image:hover img {
  transform: scale(1.05);
}

.woocommerce-product-gallery__image img {
  transition: transform 0.5s ease;
  border-radius: 15px;
}

/* محصولات در حلقه */
.woocommerce-shop ul.products li.product {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.woocommerce-shop ul.products li.product:hover {
  transform: translateY(-10px);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(78, 205, 196, 0.2);
}

.woocommerce-loop-product__link {
  display: block;
  overflow: hidden;
  position: relative;
}

.woocommerce-loop-product__link::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.woocommerce-shop ul.products li.product:hover .woocommerce-loop-product__link::after {
  opacity: 1;
}

.woocommerce-loop-product__title {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 1.5rem;
  transition: color 0.3s ease;
}

.woocommerce-shop ul.products li.product:hover .woocommerce-loop-product__title {
  color: #4ecdc4;
  background: linear-gradient(45deg, #4ecdc4, #45b7d1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* حالت موبایل و ریسپانسیو */
@media (max-width: 768px) {
  .woocommerce-page,
  .woocommerce-cart,
  .woocommerce-checkout,
  .woocommerce-account {
    padding: 1rem 0.5rem;
  }
  
  .woocommerce-products-header__title,
  .woocommerce-order-details__title {
    font-size: 1.8rem;
  }
  
  .woocommerce-checkout-review-order,
  .woocommerce-customer-details,
  .woocommerce-MyAccount-content {
    padding: 1.5rem;
  }
  
  .woocommerce-columns--2,
  .woocommerce-columns--addresses {
    flex-direction: column;
  }
  
  .woocommerce-cart .shop_table {
    display: block;
    overflow-x: auto;
  }
  
  .woocommerce-MyAccount-navigation {
    margin-bottom: 2rem;
  }
  
  .woocommerce-MyAccount-navigation ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .woocommerce-pagination ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .woocommerce-checkout #place_order {
    width: 100%;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .woocommerce-products-header__title {
    font-size: 1.5rem;
  }
  
  .woocommerce-checkout-review-order,
  .woocommerce-customer-details {
    padding: 1rem;
  }
  
  .woocommerce-cart .shop_table th,
  .woocommerce-cart .shop_table td {
    padding: 0.8rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .woocommerce-form__input,
  .woocommerce-input-wrapper input {
    padding: 0.8rem 1rem;
  }
}

/* انیمیشن‌های ویژه */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.woocommerce-thankyou-order-received {
  animation: float 3s ease-in-out infinite;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  text-align: center;
  margin: 2rem 0;
}

/* افکت‌های شیشه‌ای برای المان‌های مهم */
.woocommerce-checkout-payment,
.woocommerce-order-overview {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 8px 32px rgba(31, 38, 135, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* استایل برای المنت‌های خاص با جلوه‌های ویژه */
.woocommerce-site-status-badge-live {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
  animation: pulse 2s infinite;
}




/* فرم شماره پیگیری */
#payment_tracking_field {
  background: rgba(255,255,255,0.95);
  border-radius: 15px;
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow:0 5px 15px rgba(0,0,0,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
  max-width:400px;
  margin:1rem auto;
}
#payment_tracking_field h3{
  font-size:1.1rem;
  font-weight:600;
  color:#1e293b;
  margin-bottom:0.8rem;
  text-align:right;
}
#payment_tracking_field input[type="text"]{
  width:100%;
  padding:0.6rem 0.8rem;
  border:2px solid transparent;
  background:linear-gradient(white,white) padding-box,linear-gradient(45deg,#4ecdc4,#45b7d1) border-box;
  border-radius:8px;
  font-size:0.9rem;
  font-weight:500;
  transition:all 0.3s ease;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}
#payment_tracking_field input[type="text"]:focus{
  outline:none;
  box-shadow:0 0 0 2px rgba(78,205,196,0.1),0 4px 10px rgba(0,0,0,0.1);
  transform:translateY(-1px);
}
#payment_tracking_field input[type="submit"]{
  width:100%;
  margin-top:0.5rem;
  background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);
  color:#fff;
  padding:0.7rem 1.5rem;
  border-radius:35px;
  font-weight:500;
  font-size:0.95rem;
  border:none;
  cursor:pointer;
  box-shadow:0 5px 15px rgba(102,126,234,0.3);
  transition:all 0.3s ease;
}
#payment_tracking_field input[type="submit"]:hover{
  transform:translateY(-1px) scale(1.01);
  box-shadow:0 10px 25px rgba(102,126,234,0.4);
}





/* کاهش اندازه عنوان ستون‌ها در ووکامرس */
.woocommerce-column__title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}
