/* עיצוב כללי ואיפוס */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* מיכל המוצר המפוצל */
.product-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 80vh;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* עמודת התמונה */
.product-image {
    flex: 1;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* גורם לתמונה למלא את כל השטח בצורה יפה */
}

/* עמודת הפרטים */
.product-details {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f4f4f2; /* צבע הרקע הבהיר מהתמונה */
    text-align: left; /* הטקסט באתר המקורי הוא משמאל לימין */
    direction: ltr;   /* שומר על כיווניות האלמנטים כמו בצילום המסך */
}

.product-title {
    font-size: 2.8rem;
    font-weight: 300;
    color: #111;
    margin-bottom: 5px;
}

.product-series {
    font-size: 2.5rem;
    font-weight: 400;
    color: #111;
    margin-bottom: 30px;
}

/* מחיר וסטטוס */
.product-status {
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.price {
    color: #222;
    margin-right: 15px;
}

.sold-out-badge {
    color: #777;
    font-size: 0.9rem;
}

/* בחירת כמות */
.quantity-section {
    margin-bottom: 30px;
}

.quantity-label {
    display: block;
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.quantity-picker {
    display: inline-flex;
    align-items: center;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
}

.qty-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    cursor: pointer;
    color: #444;
}

.qty-input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;
    background: transparent;
    color: #111;
    -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* כפתורים */
.actions-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
}

.btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #bbb;
    color: #999;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #111;
    border: 1px solid #111;
    color: #fff;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #333;
}

/* העיצוב של חלונית ההתראה החדשה */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #222222; /* צבע כהה יוקרתי */
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 4px;
    font-family: sans-serif;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    pointer-events: none;
}

/* מצב שבו ההתראה מוצגת על המסך */
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
