/* 
   Polimedia - Luxury Mattress Website
   Main Stylesheet
   Direction: RTL for Hebrew
*/

/* CSS Reset and Base Styles */
:root {
    /* Color Palette */
    --primary-color: #2c3e50;
    --secondary-color: #c0392b;
    --accent-color: #d4af37;  /* Gold accent */
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --text-color: #333333;
    --text-light: #ffffff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --body-font: 'Heebo', sans-serif;
    --heading-font: 'Heebo', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    direction: rtl;
    text-align: right;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    position: relative;
    font-size: 2.5rem;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: var(--spacing-sm) auto 0;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: -2rem auto 3rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

.primary-btn:hover {
    background-color: #34495e;
    color: var(--text-light);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--secondary-color);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(192, 57, 43, 0.2);
}

.secondary-btn:hover {
    background-color: #e74c3c;
    color: var(--text-light);
    transform: translateY(-2px);
}

.outlined-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.outlined-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.center-button {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

/* Accessibility Toolbar - עיצוב משודרג ומיקום אופטימלי */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.accessibility-toolbar {
    position: fixed;
    bottom: 20px;
    right: 80px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: all 0.3s ease;
    transform: translateX(0);
    width: max-content; /* נשנה את הרוחב כך שיהיה בהתאם לתוכן */
}

.accessibility-toolbar.hidden {
    transform: translateX(calc(100% + 100px));
}

.accessibility-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.accessibility-toolbar button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #f5f5f5;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accessibility-toolbar button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.accessibility-toolbar button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Header Styles - משופר */
header {
    background-color: white;
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensuring header has high z-index */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.logo-image {
    max-height: 60px;
    width: auto;
    margin-left: var(--spacing-md);
    transition: transform 0.3s ease;
    object-fit: contain; /* מונע עיוות של הלוגו */
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--primary-color);
    font-weight: 700;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--secondary-color);
    font-weight: 400;
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: var(--spacing-lg);
}

nav ul li a {
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    padding: 10px;
    border: none;
    background: transparent;
}

.mobile-menu-btn i {
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }
    
    nav {
        width: 100%;
        position: static;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001; /* Increased z-index to be higher than hero */
        gap: 0;
        margin: 0;
    }
    
    nav ul.show {
        display: flex !important;
        position: absolute;
        top: 80px; /* Adjust based on your header height */
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1001; /* Consistent z-index higher than hero */
        padding: 0;
        flex-direction: column;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    nav ul.show li {
        width: 100%;
        margin: 0;
    }
    
    nav ul.show li a {
        padding: 15px;
        display: block;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}

@media screen and (max-width: 992px) {
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.8rem;
    }
    
    nav ul {
        gap: var(--spacing-md);
    }
}

@media screen and (max-width: 768px) {
    header .container {
        padding: 0 var(--spacing-sm);
        width: 100%;
        max-width: 100%;
        position: relative;
    }
    
    .mobile-menu-btn {
        display: block;
        position: absolute;
        left: 15px;
        top: 50%; /* Center vertically */
        transform: translateY(-50%); /* Center vertically */
        z-index: 1001; /* Ensure it's above all content */
    }
    
    nav {
        width: 100%;
        position: static;
    }
    
    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
        gap: 0;
        margin: 0;
    }
    
    /* Fix for the mobile menu to show properly */
    nav ul.show {
        display: flex !important;
        z-index: 1000;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 0.8rem 0;
    }
    
    .logo {
        gap: var(--spacing-sm);
    }
    
    .logo-image {
        max-height: 45px;
        margin-left: var(--spacing-sm);
    }
}

@media screen and (max-width: 576px) {
    header {
        padding: var(--spacing-sm) 0;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    .logo-image {
        max-height: 40px;
    }
    
    body {
        overflow-x: hidden; /* מניעת גלישה אופקית בכל הדף */
    }
}

/* Accessibility Toolbar - עיצוב משודרג ומיקום אופטימלי */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.accessibility-toolbar {
    position: fixed;
    bottom: 20px;
    right: 80px;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: row;
    gap: 10px;
    transition: all 0.3s ease;
    transform: translateX(0);
    width: max-content; /* נשנה את הרוחב כך שיהיה בהתאם לתוכן */
}

.accessibility-toolbar.hidden {
    transform: translateX(calc(100% + 100px));
}

.accessibility-toolbar button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: #f5f5f5;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    font-size: 1.2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.accessibility-toolbar button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

.accessibility-toolbar button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Hero Section - מעודכן ומודרני */
.hero {
    position: relative;
    min-height: 85vh;
    overflow: hidden;
    padding: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    background: #f9f9f9;
    z-index: 10; /* Lower z-index than header and mobile menu */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0z' fill='%23d4af37' fill-opacity='0.05'/%3E%3C/svg%3E");
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3; /* This is relative to the parent .hero element */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 1rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image img {
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform: perspective(1000px) rotateY(-5deg);
    transition: all 0.5s ease;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-image:after {
    content: '';
    position: absolute;
    top: 3%;
    right: -5%;
    width: 100%;
    height: 94%;
    border-radius: 20px;
    background: var(--accent-color);
    z-index: -1;
    opacity: 0.3;
}

.animate-image {
    animation: floatImage 5s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: perspective(1000px) rotateY(-5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-2deg) translateY(-10px); }
    100% { transform: perspective(1000px) rotateY(-5deg) translateY(0); }
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 900;
}

.animate-title {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero h1 .highlight {
    color: var(--accent-color);
    position: relative;
    z-index: 1;
}

.hero h1 .highlight:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    height: 10px;
    background-color: rgba(212, 175, 55, 0.2);
    z-index: -1;
}

.hero-subtitle {
    margin-bottom: 2rem;
    animation: fadeIn 1.2s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-subtitle p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.4s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.badge i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.badge span {
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeIn 1.6s ease-out forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero .btn {
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hero .btn-primary {
    background: var(--accent-color);
    color: #000;
    border: none;
}

.hero .btn-primary:hover {
    background: #c29b29;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.hero .btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.hero .btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* מדיה queries לתצוגה תקינה במסכים שונים */
@media screen and (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 4rem 0;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle p {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media screen and (max-width: 576px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle p {
        font-size: 1rem;
    }
    
    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Featured Products */
.featured-products {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.product-card .price {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem var(--spacing-md) 1rem;
    text-align: center;
    padding: 0.5rem 0;
    position: relative;
    background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.1), transparent);
}

.product-card .price::before {
    content: '';
    position: absolute;
    top: 0;
    right: 30%;
    left: 30%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color), transparent);
}

.product-card:nth-child(1) .product-image {
    background-image: url('../images/mattress-full-on-bed.jpg');
}

.product-card:nth-child(2) .product-image {
    background-image: url('../images/mattress-side-view.jpg');
}

.product-card:nth-child(3) .product-image {
    background-image: url('../images/mattress-top-view-plain.jpg');
}

.product-card h3 {
    padding: var(--spacing-md) var(--spacing-md) 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    padding: var(--spacing-md) var(--spacing-md) 0.5rem;
}

.product-card p {
    padding: 0 var(--spacing-md);
    margin-bottom: 1rem;
    color: #666;
    flex-grow: 1;
    text-align: center;
}

.product-card .btn {
    margin-top: 0.5rem;
    align-self: center;
    width: calc(100% - 3rem);
    margin-right: auto;
    margin-left: auto;
    margin-bottom: var(--spacing-md);
}

/* Gallery Preview */
.gallery-preview {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-bg);
}

.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.gallery-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-preview-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-preview-item:hover img {
    transform: scale(1.1);
}

.gallery-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-lg);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-preview-item:hover .gallery-preview-overlay {
    opacity: 1;
}

.gallery-preview-overlay h3 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.8rem;
    text-align: center;
}

.gallery-preview-overlay .btn-outline {
    color: var(--text-light);
    border-color: var(--text-light);
}

.gallery-preview-overlay .btn-outline:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

.gallery-item {
    height: 200px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.gallery-item:nth-child(1) {
    background-image: url('../images/factory-workspace-1.jpg');
}

.gallery-item:nth-child(2) {
    background-image: url('../images/factory-workspace-2.jpg');
}

.gallery-item:nth-child(3) {
    background-image: url('../images/production-line-view.jpg');
}

.gallery-item:nth-child(4) {
    background-image: url('../images/mattress-quality-check.jpg');
}

/* Products Section */
.products {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Why Choose Us */
.why-us {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.feature {
    background: white;
    border-radius: 10px;
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.5rem;
}

.feature p {
    color: #666;
}

/* Features Section */
.features {
    padding: var(--spacing-xl) 0;
    background-color: white;
    position: relative;
}

.features .section-title {
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
}

.features .section-title::after {
    width: 100px;
    height: 4px;
    margin: var(--spacing-md) auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.feature-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-color);
}

.feature-card h3 {
    padding: var(--spacing-lg) var(--spacing-lg) 0.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    margin-top: 0.5rem;
    position: relative;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 50%;
    transform: translateX(50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.feature-card p {
    padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
    color: #666;
    text-align: center;
    line-height: 1.7;
    flex-grow: 1;
}

@media screen and (max-width: 992px) {
    .features .section-title {
        font-size: 2.4rem;
    }
    
    .feature-card img {
        height: 200px;
    }
}

@media screen and (max-width: 576px) {
    .features .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        gap: var(--spacing-lg);
    }
    
    .feature-card h3 {
        font-size: 1.3rem;
        padding-top: var(--spacing-md);
    }
    
    .feature-card p {
        padding: var(--spacing-md);
    }
}

/* About Section */
.about {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text {
    padding-right: var(--spacing-lg);
}

.about-text .section-title {
    text-align: right;
    margin-bottom: var(--spacing-lg);
}

.about-text .section-title::after {
    margin-right: 0;
    margin-left: auto;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    color: #555;
    line-height: 1.7;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

@media screen and (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-text {
        order: 1;
        padding-right: 0;
    }
    
    .about-text .section-title {
        text-align: center;
    }
    
    .about-text .section-title::after {
        margin-right: auto;
    }
    
    .about-image {
        order: 0;
    }
}

/* Contact CTA */
.contact-cta {
    padding: var(--spacing-xl) 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/showroom-beds-frontview.jpg');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.contact-form-mini {
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.form-row input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 1rem;
}

/* תיקון יישור שדות קלט לתמיכה ב-RTL */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: white;
    text-align: right;
    direction: rtl;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    text-align: right;
    direction: rtl;
}

.form-message {
    height: 20px;
    font-weight: 500;
}

/* Contact Page Styles */
.contact-section {
    padding: var(--spacing-xl) 0;
    background-color: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form-container {
    padding: var(--spacing-lg);
    background-color: var(--light-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
    position: relative;
}

.contact-form-container h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: var(--spacing-sm) auto 0;
}

.form-group {
    margin-bottom: var(--spacing-md);
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-color: white;
    text-align: right;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
    text-align: right;
    direction: rtl;
}

#contact-form .btn {
    width: 100%;
    padding: 12px;
    margin-top: var(--spacing-md);
    font-weight: 600;
    letter-spacing: 1px;
}

#form-message {
    margin-top: var(--spacing-md);
    text-align: center;
    font-weight: 500;
    min-height: 24px;
}

.error-message {
    color: var(--secondary-color);
    font-weight: bold;
}

.success-message {
    color: #27ae60;
    font-weight: bold;
}

input.error,
textarea.error {
    border-color: var(--secondary-color);
    background-color: rgba(192, 57, 43, 0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background-color: var(--primary-color);
    color: var(--text-light);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
    position: relative;
    text-align: center;
}

.contact-info h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: var(--spacing-sm) auto 0;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-md);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h3 {
    color: var(--accent-color);
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.info-item p {
    color: var(--text-light);
    margin: 0;
}

.contact-image {
    margin-top: auto;
    border-radius: 8px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.contact-image:hover img {
    transform: scale(1.05);
}

/* Map Section */
.map-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-bg);
}

.map-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    border: none;
}

/* Showroom Gallery Section */
.showroom-gallery {
    padding: var(--spacing-xl) 0;
    background-color: white;
    text-align: center;
}

.showroom-gallery p {
    margin-bottom: var(--spacing-lg);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    height: 250px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* Footer Styles - משופר */
footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-section h3 {
    color: var(--text-light);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
}

.footer-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1rem;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* מרווח בין פריטי הרשימה */
}

.footer-section ul li a {
    color: #ccc;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

.footer-section p i {
    margin-left: 10px;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: var(--spacing-lg);
    font-size: 1rem;
    color: #999;
}

.copyright p {
    padding: 1rem;
    font-weight: 300;
}

/* מדיה קוורי לרספונסיביות של הפוטר */
@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media screen and (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .footer-section p i {
        margin-left: 5px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-section ul li a:hover {
        transform: translateX(0) scale(1.05);
    }
}

/* Responsive adjustments for the contact page */
@media screen and (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .contact-info {
        order: -1;
    }
    
    .info-item {
        align-items: center;
    }
}

@media screen and (max-width: 576px) {
    .contact-form-container {
        padding: var(--spacing-md);
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }
    
    #contact-form .btn {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: var(--spacing-md);
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-item h3 {
        font-size: 1.1rem;
    }
    
    .info-item p {
        font-size: 0.9rem;
    }
}

/* Accessibility Styles - משופר */
:root {
    --toolbar-width: 200px;
}

.accessibility-toolbar {
    width: var(--toolbar-width);
    right: 80px;
}

.accessibility-toggle {
    right: calc(20px);
}

@media screen and (max-width: 768px) {
    .accessibility-toolbar {
        width: 250px;
    }

    .accessibility-toggle {
        right: calc(20px);
    }
}

@media screen and (max-width: 576px) {
    .accessibility-toolbar {
        width: 200px;
    }

    .accessibility-toggle {
        right: calc(20px);
    }
}

/* Products Page Styles - Improved */
.product-categories {
    padding: var(--spacing-xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.category-card {
    background-color: white;
    border-radius: 10px;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: var(--text-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.category-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.category-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
}

.category-card p {
    color: var(--text-color-light);
    font-size: 0.9rem;
    margin: 0;
}

.products-section {
    padding: var(--spacing-xl) 0;
}

.products-section.bg-light {
    background-color: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.product-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: #FFB900;
}

.product-rating span {
    color: var(--text-color-light);
    margin-right: var(--spacing-xs);
    font-size: 0.9rem;
}

.product-description {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.product-features li {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.product-features li i {
    color: var(--primary-color);
    margin-left: var(--spacing-xs);
}

.product-actions {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: auto;
}

/* Media Queries for Products Page */
@media screen and (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        flex-direction: column;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-info {
        padding: var(--spacing-sm);
    }
}
