/**
 * WC Vendors Manager — עיצוב תצוגת מוצר בפרונט
 */
.wcvm-product {
    direction: rtl;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Heebo", Arial, sans-serif;
    max-width: 1100px;
    margin: 0 auto;
    color: #1d2327;
    line-height: 1.7;
}

.wcvm-product * { box-sizing: border-box; }

/* ─── Layout ─── */
.wcvm-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 780px) {
    .wcvm-product-layout { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── Gallery ─── */
.wcvm-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #f9fafb;
    border: 1px solid #e4e7eb;
}
.wcvm-gallery-main-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 480px;
}
.wcvm-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.wcvm-gallery-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid #e4e7eb;
    transition: border-color 0.15s;
}
.wcvm-gallery-thumb.active,
.wcvm-gallery-thumb:hover { border-color: #2271b1; }

/* ─── Info ─── */
.wcvm-product-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.25;
}

/* ─── Vendor badge ─── */
.wcvm-product-vendor-badge {
    display: inline-block;
    background: #f0f6fc;
    border: 1px solid #c6dcf0;
    color: #185a8a;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-decoration: none;
}
.wcvm-product-vendor-badge a {
    color: inherit;
    text-decoration: none;
}
.wcvm-product-vendor-badge a:hover { text-decoration: underline; }

/* ─── Price ─── */
.wcvm-product-price-wrap {
    margin-bottom: 20px;
}
.wcvm-price-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wcvm-price {
    font-size: 28px;
    font-weight: 700;
    color: #1d2327;
}
.wcvm-price-sale { color: #d63638; }
.wcvm-price-original {
    font-size: 18px;
    color: #8c8f94;
    text-decoration: line-through;
}
.wcvm-price-badge {
    background: #d63638;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
}
.wcvm-price-range .wcvm-price { font-size: 24px; }

/* ─── Variation price update area ─── */
.wcvm-variation-price-area {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px 0 16px;
}
.wcvm-variation-selected-price { font-size: 20px; margin-bottom: 4px; }
.wcvm-variation-stock-info { font-size: 13px; color: #15803d; font-weight: 500; }
.wcvm-variation-description-text { font-size: 14px; color: #50575e; margin-top: 6px; }
.wcvm-variation-unavailable {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0;
    color: #991b1b;
    font-size: 14px;
}

/* ─── Short description ─── */
.wcvm-product-short-desc {
    font-size: 15px;
    color: #3c434a;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e4e7eb;
    line-height: 1.7;
}

/* ─── Variations form ─── */
.wcvm-variations { margin-bottom: 18px; }
.wcvm-variation-field {
    margin-bottom: 14px;
}
.wcvm-variation-field label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #3c434a;
}
.wcvm-variation-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    font-size: 15px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s;
    font-family: inherit;
}
.wcvm-variation-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34,113,177,0.15);
}
.wcvm-reset-variations {
    font-size: 13px;
    color: #646970;
    display: inline-block;
    margin-bottom: 10px;
    text-decoration: underline;
}

/* ─── Quantity + Add to cart ─── */
.wcvm-quantity-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.wcvm-quantity-row label { font-weight: 600; font-size: 14px; white-space: nowrap; }
.wcvm-quantity {
    display: flex;
    align-items: center;
    border: 1px solid #c3c4c7;
    border-radius: 6px;
    overflow: hidden;
}
.wcvm-qty-btn {
    width: 38px;
    height: 42px;
    background: #f6f7f7;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: #2c3338;
    transition: background 0.1s;
}
.wcvm-qty-btn:hover { background: #e4e7eb; }
.wcvm-qty-input {
    width: 58px;
    height: 42px;
    text-align: center;
    border: none;
    border-right: 1px solid #c3c4c7;
    border-left: 1px solid #c3c4c7;
    font-size: 15px;
    font-family: inherit;
    -moz-appearance: textfield;
}
.wcvm-qty-input::-webkit-outer-spin-button,
.wcvm-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.wcvm-btn-add-to-cart {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: #2271b1;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    text-align: center;
    font-family: inherit;
}
.wcvm-btn-add-to-cart:hover:not(:disabled) {
    background: #185a8a;
}
.wcvm-btn-add-to-cart:active:not(:disabled) { transform: translateY(1px); }
.wcvm-btn-add-to-cart:disabled {
    background: #a7aaad;
    cursor: not-allowed;
}
.wcvm-out-of-stock {
    padding: 12px 16px;
    background: #fef2f2;
    border-radius: 8px;
    color: #991b1b;
    font-weight: 600;
}

/* ─── Meta ─── */
.wcvm-product-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e4e7eb;
    font-size: 14px;
}
.wcvm-product-meta-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.wcvm-meta-label { color: #646970; font-weight: 600; }
.wcvm-meta-value { color: #3c434a; }
.wcvm-stock-badge {
    font-weight: 600;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 20px;
}
.wcvm-stock-badge.in-stock { background: #dcfce7; color: #15803d; }
.wcvm-stock-badge.out-of-stock { background: #fef2f2; color: #991b1b; }

/* ─── Long description ─── */
.wcvm-product-description {
    border-top: 2px solid #e4e7eb;
    padding-top: 32px;
    margin-top: 10px;
}
.wcvm-product-description-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1d2327;
}
.wcvm-product-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #3c434a;
}
.wcvm-product-description-content h1,
.wcvm-product-description-content h2,
.wcvm-product-description-content h3 {
    color: #1d2327;
    margin-top: 1.5em;
}
.wcvm-product-description-content ul,
.wcvm-product-description-content ol {
    padding-right: 20px;
    margin: 1em 0;
}
.wcvm-product-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 12px 0;
}
.wcvm-product-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.wcvm-product-description-content th,
.wcvm-product-description-content td {
    padding: 10px 14px;
    border: 1px solid #e4e7eb;
    text-align: right;
}
.wcvm-product-description-content th { background: #f9fafb; font-weight: 600; }

/* ─── WhatsApp כפתור צף (FAB) ─── */
.wcvm-whatsapp-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.45);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    animation: wcvm-fab-bounce 1.2s ease 1s both;
}

.wcvm-whatsapp-fab svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.wcvm-whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 22px rgba(37,211,102,0.6);
}

@keyframes wcvm-fab-bounce {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* ─── WhatsApp כפתור בתוך עמוד מוצר ─── */
.wcvm-whatsapp-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 13px 20px;
    background: #25d366;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s, transform 0.1s;
}

.wcvm-whatsapp-product-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.wcvm-whatsapp-product-btn:hover {
    background: #1ebe5d;
    transform: translateY(-1px);
}

/* ─── כפתור WhatsApp בדף מוצר רגיל של WooCommerce ─── */
.single-product .wcvm-whatsapp-product-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px;
    background: #25d366;
    color: #fff !important;
    border-radius: 6px;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.15s, transform 0.1s;
    direction: rtl;
    box-sizing: border-box;
}

.single-product .wcvm-whatsapp-product-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #fff;
}

.single-product .wcvm-whatsapp-product-btn:hover {
    background: #1ebe5d;
    color: #fff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ═══════════════════════════════════════
   כפתורי FAB — עיגולים ציפים שמאל למטה
═══════════════════════════════════════ */
.wcvm-fab-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 99999;
    align-items: center;
}

.wcvm-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    transition: transform 0.18s, box-shadow 0.18s;
    cursor: pointer;
    border: none;
    animation: wcvm-fab-in 0.4s ease both;
}

.wcvm-fab-btn:nth-child(2) {
    animation-delay: 0.08s;
}

@keyframes wcvm-fab-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.wcvm-fab-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

/* צ'אט */
.wcvm-fab-chat {
    background: #2271b1;
    color: #fff;
}

.wcvm-fab-chat svg {
    width: 26px;
    height: 26px;
    stroke: #fff;
}

/* WhatsApp */
.wcvm-fab-whatsapp {
    background: #25d366;
    color: #fff !important;
}

.wcvm-fab-whatsapp svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}
