/* ===== FILE: wholesale.css (Style 1: Professional & Clean) ===== */

/* --- Wholesale Box on Product Page --- */
.wt-wh-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.wt-wh-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.wt-wh-col {
    flex: 1 1 50%;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 12px;
    position: relative;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wt-wh-col:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.wt-wh-label {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.wt-wh-value {
    font-weight: 700;
    font-size: 18px;
    color: #212529;
}

.wt-wh-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: bold;
    background-image: linear-gradient(45deg, #ff8c00, #ff4500);
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(255, 107, 0, 0.4);
}

.wt-wh-live {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: 14px;
    background-color: #e9ecef;
    border-radius: 8px;
}
.wt-wh-live span {
    color: #495057;
}
.wt-wh-live strong {
    font-size: 18px;
    color: #007bff; /* A nice blue to highlight the final price */
}

.wt-wh-muted {
    color: #adb5bd;
}

/* --- Card Badge (on Shop/Archive Page) --- */
.wt-wh-badge-card {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: #0056b3;
    border: 1px solid rgba(0, 123, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 60px;
}

/* --- Card Teaser (below title on Shop/Archive Page) --- */
.wt-wh-card-teaser {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wt-wh-card-toggle {
    border: none;
    background-color: #e7f3ff;
    color: #0056b3;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.wt-wh-card-toggle:hover {
    background-color: #007bff;
    color: #fff;
}

.wt-wh-card-info {
    font-size: 13px;
    color: #495057;
}

/* --- Label in Cart --- */
.wt-wh-applied {
    color: #28a745; /* A vibrant green */
    font-weight: 600;
    font-size: 12px;
}
.wt-wh-applied::before {
    content: '✓ ';
    font-weight: bold;
}

/* ====== Price Toggle Buttons on Product Cards ====== */
.product-grid-item .wt-wh-price-toggle {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px auto;
    max-width: 200px; /* یا عرض دلخواه */
}

.product-grid-item .wt-wh-toggle-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 12px;
    font-weight: 498;
    color: #333;
    transition: all 0.2s ease-in-out;
    text-align: center;
    line-height: 1.5;
}

.product-grid-item .wt-wh-toggle-btn:first-of-type {
    border-left: 1px solid #e0e0e0;
}

.product-grid-item .wt-wh-toggle-btn.active {
    background-color: #f0f0f0; /* رنگ حالت فعال */
    color: #111;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

/* Badge position */
.product-grid-item .wt-wh-badge-card {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}