/*
 Theme Name:   Kaveh Child
 Template:     kavehTheme
 Description:  Child theme for Kaveh — modern minimal WooCommerce pages
 Author:       SDG
 Version:      1.0.3
*/

body.woocommerce-minimal {
  margin: 0;
  font-family: 'abr', sans-serif;
  direction: rtl;
  background: #fafafa;
  color: #333;
}

/* container for WC pages */
.wc-container {
  max-width: 1200px;
  margin: 24px auto;
  padding: 16px;
}

/* full width content */
.woocommerce #content,
.woocommerce-page #content {
  width: 100%;
}

/* bigger buttons */
.woocommerce .button,
.woocommerce-page .button {
  padding: 14px 20px;
  font-size: 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

/* hide shipping address */
.woocommerce-customer-details .woocommerce-column--shipping-address,
#ship-to-different-address,
.shipping_address {
  display: none !important;
}

/* full width billing address */
.woocommerce-columns--addresses .woocommerce-column--billing-address {
  width: 100% !important;
  flex: 1 1 100% !important;
  max-width: 100% !important;
}

/* map behind checkout button */
div#osm-map {
  z-index: 1 !important;
}

/* --- Checkout Progress / Steps --- */
.checkout-progress {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
  font-family: inherit;
  padding: 8px 12px;
}

.checkout-actions {
  margin-bottom: 8px;
}

.checkout-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* modern checkout steps */
.checkout-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  position: relative;
}

.checkout-step {
  position: relative;
  text-align: center;
  flex: 1;
  font-size: 14px;
  color: #555;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.checkout-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #e0e0e0;
  z-index: -1;
  transform: translateX(0%);
}

.checkout-step.active:not(:last-child)::after {
  background: linear-gradient(90deg, #4fc3f7, #0288d1);
}

.checkout-step .icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
  transition: all 0.3s ease;
}

.checkout-step.active .icon {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  transform: scale(1.3);
  box-shadow: 0 4px 12px rgba(79, 195, 247, 0.4);
  color: #fff;
}

.checkout-step span {
  margin-top: 4px;
}

.checkout-side {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Buttons Modern --- */
.btn-cart, .btn-store {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.12);
}

.btn-cart:hover, .btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.18);
}

/* --- Account Button --- */
.account-btn {
  position: relative;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.account-btn:hover {
  border-color: #1e88e5;
  box-shadow: 0 4px 12px rgba(30,136,229,0.2);
}

.account-dropdown {
  display: none;
  position: absolute;
  top: 85%;
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  z-index: 1001;
  padding: 8px 0;
  margin-top: 6px;
}

.account-btn:hover .account-dropdown,
.account-btn:focus-within .account-dropdown {
  display: block;
}

.account-dropdown .dropdown-item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.account-dropdown .dropdown-item:hover {
  background: #e3f2fd;
  color: #1e88e5;
}

/* --- Modal Login Fixed --- */
.modalSDG {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* پیشفرض مخفی */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  overflow-y: auto;
  padding: 16px;
  pointer-events: none;
}

.modalSDG.active {
  display: flex;
  pointer-events: auto;
}

.modalSDG-content {
  background: #fff;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.25s ease-out;
  pointer-events: auto;
}

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

.close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 22px;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}

.close-button:hover {
  color: #0288d1;
}

.login-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-button {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  background: #f2f2f2;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tab-button.active {
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.login-form {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.login-form.active {
  display: flex;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus {
  border-color: #0288d1;
  box-shadow: 0 0 6px rgba(2,136,209,0.3);
}

.submit-button {
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #4fc3f7, #0288d1);
  color: #fff;
  transition: all 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,195,247,0.4);
}

#smsActions button {
  width: 100%;
  margin-top: 6px;
  font-size: 13px;
}

#showPasswordTab, #forgotPasswordLink {
  display: inline-block;
  margin-top: 6px;
  font-size: 13px;
  text-decoration: underline;
  color: #0288d1;
  cursor: pointer;
}

#loginMessage {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
}

.message.success {
  background: #e3f2fd;
  color: #0288d1;
}

.message.error {
  background: #fdecea;
  color: #d32f2f;
}

/* prevent scroll when modal open */
body.modalSDG-open {
  overflow: hidden;
}

/* --- Responsive --- */
@media(max-width:768px){
  .checkout-progress {
    padding: 8px;
    font-size: 13px;
  }

  .checkout-buttons {
    gap: 6px;
  }

  .btn-cart, .btn-store, .account-btn, .login-button {
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .checkout-steps {
    gap: 12px;
    padding-top: 6px;
    margin-top: 4px;
  }

  .checkout-step {
    font-size: 12px;
  }

  .checkout-step .icon {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .modalSDG-content {
    padding: 16px;
  }

  .tab-button {
    font-size: 12px;
    padding: 8px 0;
  }

  .form-group input, .submit-button {
    font-size: 13px;
    padding: 8px 10px;
  }

  #smsActions button {
    font-size: 12px;
  }
}

/* --- shop - card product img --- */
.product-image>a>img
Specificity: (0,1,2)
 {
    height: 986px;
}

.product-image>a>img {
    height: auto;               /* ارتفاع خودکار */
    max-height: 400px;          /* می‌تونی بزرگ‌تر یا کوچک‌تر کنی */
    max-width: 100%;            /* محدود کردن عرض */
    display: block;             
    margin: 0 auto;             /* افقی سنتر */
    transform: scale(1.1);      /* کمی بزرگ‌تر کردن عکس */
    transition: transform 0.3s; /* انیمیشن نرم برای تغییر سایز */
    z-index: 1; /* زیر پالت رنگ */
}

.product-eleven .product-image {
    padding: 0;
    margin: 0;
}

.product-image {
    position: relative; /* ضروری برای position:absolute فرزند */
    padding: 0;
    margin: 0;
}
.product-image .colors {
    position: absolute !important;
    top: 35px;
    left: 23px;
    z-index: 10; /* بالای عکس */
}
.product-eleven .product-image .colors li a {
    position: relative;
    border: 2px solid rgba(64, 64, 132, 0.8); /* مرز اصلی */
    border-radius: 50%; /* اگر دایره‌ایه */
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), /* مرز خارجی روشن برای اطمینان */
    inset 0 0 2px rgba(0, 0, 0, 0.3); /* سایه داخلی برای برجستگی */
}
span.woocommerce-Price-amount.amount{
    background: linear-gradient(135deg, #ff6ec4, #7873f5, #42e695);
    color: #fff;
    padding: 5px 12px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}
.product .detail .price span {
margin: 0px 0px 10px 0px;
}
.product .status {
    z-index: 10;
}
.cart-three-item .detail .profit span.woocommerce-Price-amount.amount {
    color: #361f66 !important;
    padding: 5px 2px;
}
@media (max-width: 768px) {
  .product-bed-two .btns .btn-add-to-cart {
    margin: 0px -30px 0px 0px;
    width: 20%;
  }
}
/* --- END shop - card product img --- */

/* ----------------------------
   Global Skeleton Loader
   Utility classes to show skeleton placeholders for blocks, text, images and buttons
   Apply by adding `.skeleton` or `.skeleton-*` classes to elements, or use
   `document.documentElement.classList.add('skeleton-loading')` to enable on page load
   ---------------------------- */

:root {
  --skeleton-bg: #efefef;
  --skeleton-highlight: #f7f7f7;
  --skeleton-duration: 1.4s;
}

.skeleton,
.skeleton-loading [data-skeleton],
.skeleton-loading .skeleton {
  position: relative !important;
  overflow: hidden !important;
  background-color: var(--skeleton-bg) !important;
  color: transparent !important;
  pointer-events: none !important;
}

.skeleton::after,
[data-skeleton]::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 150%;
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  animation: skeleton-shimmer var(--skeleton-duration) infinite linear;
  transform: translateZ(0);
}

@keyframes skeleton-shimmer {
  0% { left: -150%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Text lines */
.skeleton-text,
[data-skeleton='text'] {
  display: inline-block;
  height: 1em;
  min-width: 40px;
  border-radius: 4px;
}

.skeleton-line,
[data-skeleton='line'] {
  display: block;
  height: 14px;
  width: 100%;
  border-radius: 6px;
  margin: 8px 0;
}

.skeleton-title { height: 20px; width: 60%; border-radius:6px; }
.skeleton-subtitle { height: 16px; width: 40%; border-radius:6px; }

/* Image placeholders */
.skeleton-img,
[data-skeleton='img'] {
  display: block;
  width: 100%;
  height: 200px;
  border-radius: 8px;
}

.skeleton-avatar,
[data-skeleton='avatar'] {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
}

/* Button */
.skeleton-button,
[data-skeleton='button'] {
  display: inline-block;
  height: 36px;
  min-width: 84px;
  border-radius: 8px;
}

/* Card/Block */
.skeleton-block,
[data-skeleton='block'] {
  display: block;
  width: 100%;
  height: 120px;
  border-radius: 8px;
}

/* Helpers: show skeleton only during loading state */
.skeleton-loading .hide-while-loading { visibility: hidden !important; }
.skeleton-loading .show-while-loading { visibility: visible !important; }

/* Example integration helpers for common theme elements */
.skeleton-loading .product-image img,
.skeleton-loading .woocommerce-cart-form .cart_item img { visibility: hidden; }
.skeleton-loading .product .detail .price span { visibility: hidden; }





/* --- shop - card page --- */
.cart-three-item .detail .profit span{
    font-size: 14px;
    font-weight: 700;
    margin-left: 0px;
    margin-bottom: 2px;
 }
 
 .cart-three-item .detail .profit {
     direction:ltr;
 }
 
 .cart-three-item .detail .price {
    direction:ltr;
 }
 
 
 .cart-three-item .detail .price span {
    font-size: 14px;
    font-weight: 400;
 }
 
 span.woocommerce-Price-amount.amount {
    padding: 5px 5px;
 }
 
 .product .detail {
    padding: 0 5px 0px;
 }
 /* --- END  shop - card page --- */
 
.cart-three-sidebar-content .profit span.woocommerce-Price-amount.amount {
    color: #011066 !important;
}
.product {
    box-shadow: 0px 10px 2px 0px rgba(0, 0, 0, .1);
}






 /* --- blog link color --- */
a, a:hover, a:focus, a:active, a:hover, a:active, a:focus {
    color: #0039ff;
}
/* فقط لینک‌های داخل بخش options-site-forteen-items */
ul.options-site-forteen-items a {
  color: inherit !important;        /* رنگ رو از متن اطراف بگیره (نه آبی) */
  text-decoration: none !important; /* خط زیر لینک رو حذف کنه */
  pointer-events: none !important;  /* خاصیت کلیک رو غیرفعال کنه */
  cursor: default !important;       /* نشانگر موس عادی بشه */
}

/* برای اطمینان هیچ حالت hover هم نداشته باشه */
ul.options-site-forteen-items a:hover,
ul.options-site-forteen-items a:focus,
ul.options-site-forteen-items a:active {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

a:has(> .section-heading-title) {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}
a:has(> .time-work) {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}
a:has(> .footer-three-titr) {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
}
 /* --- breadcrumb single product color --- */
.single-product .breadcrumb a, a:hover, a:focus, a:active, a:hover, a:active, a:focus  {
    color: #0039ff;
}

 /* --- blog link color --- */
 
 


    

/* استایل دسکتاپ دکمه های کنار عکس های البومی محصولات */
.detail-product-four-modal-gallery-origin .swiper-button-next, .detail-product-four-modal-gallery-origin .swiper-button-prev {
    background-image: linear-gradient(240deg, rgb(228 64 64 / 59%) -43.11%, #fff 59.43%);
    border: 1px solid #c53434;
}
 .swiper-button-next {
    right: 85% !important;
 }
.swiper-button-prev {
    right: 5% !important;
}
/* استایل موبایل */
@media (max-width: 768px) {
  .swiper-button-next {
    right: 88% !important;  /* دکمه بعدی نزدیک‌تر به سمت راست */
  }

  .swiper-button-prev {
    left: 88% !important;   /* دکمه قبلی نزدیک‌تر به سمت چپ */
    right: auto !important; /* جلوگیری از تداخل */
  }
} 
 /* استایل تبلت */
@media (max-width: 576px) {
  .swiper-button-next {
    right: 83% !important;  /* دکمه بعدی نزدیک‌تر به سمت راست */
  }

  .swiper-button-prev {
    left: 83% !important;   /* دکمه قبلی نزدیک‌تر به سمت چپ */
    right: auto !important; /* جلوگیری از تداخل */
  }
} 
 /* استایل موبایل */

@media (max-width: 480px) {
  .swiper-button-next {
    right: 78% !important;  /* دکمه بعدی نزدیک‌تر به سمت راست */
  }

  .swiper-button-prev {
    left: 78% !important;   /* دکمه قبلی نزدیک‌تر به سمت چپ */
    right: auto !important; /* جلوگیری از تداخل */
  }
} 
@media (max-width: 400px) {
  .swiper-button-next {
    right: 68% !important;  /* دکمه بعدی نزدیک‌تر به سمت راست */
  }

  .swiper-button-prev {
    left: 68% !important;   /* دکمه قبلی نزدیک‌تر به سمت چپ */
    right: auto !important; /* جلوگیری از تداخل */
  }
}  
@media (max-width: 360px) {
  .swiper-button-next {
    right: 72% !important;  /* دکمه بعدی نزدیک‌تر به سمت راست */
  }

  .swiper-button-prev {
    left: 72% !important;   /* دکمه قبلی نزدیک‌تر به سمت چپ */
    right: auto !important; /* جلوگیری از تداخل */
  }
} 

/* استایل دسکتاپ دکمه های کنار عکس های البومی محصولات */












