/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* باکس اصلی کارت محصول */
.custom-card-wrapper {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 16px;
    padding: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

/* افکت هاور روی کل کارت */
.custom-card-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* تصویر محصول */
.custom-card-thumb {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.custom-card-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.custom-card-wrapper:hover .custom-card-thumb img {
    transform: scale(1.05);
}

/* نشان تخفیف */
.custom-badge-sale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ef4444;
    color: #fff;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 2;
}

/* اطلاعات متنی */
.custom-card-body {
    text-align: right;
}

/* دسته‌بندی‌ها */
.custom-card-cats, .custom-card-cats a {
    font-size: 12px;
    color: #94a3b8 !important;
    text-decoration: none;
}

/* عنوان محصول */
.custom-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.6;
}

.custom-card-title a {
    color: #1e293b !important;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-card-title a:hover {
    color: #3b82f6 !important;
}

/* قیمت محصول */
.custom-card-price {
    margin: 12px 0;
    font-size: 16px;
}

.custom-regular-price {
  height: 24px; 
  margin-bottom: 8px;
}

.line-through {
  text-decoration: line-through;
  color: #999; 
  font-size: 14px;
}

.empty-price {
  display: inline-block;
  height: 24px;
}

/* قیمت جدید (حراج) */
.custom-card-price ins {
    color: #10b981;
    text-decoration: none;
    font-weight: 700;
}

/* بخش دکمه مشاهده جزئیات */
.custom-card-action .custom-btn {
    display: block;
    width: 100%;
    background-color: #3b82f6;
    color: #ffffff !important;
    padding: 10px;
    border-radius: 10px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s;
    border: none;
    box-sizing: border-box;
}

.custom-card-action .custom-btn:hover {
    background-color: #2563eb;
}

/* public */

.text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

