:root {
    --primary: #0A0B23;
    --accent: #06c371;
    --bg: #FFFFFF;
    --text: #0A0B23;
    --card: #FFFFFF;
    --border: #E5E5E5;
    --focus: #005fcc;
}

/* ------- RESET ------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    direction: rtl;
    font-family: Open Sans, Heebo, Alef;
}

/* ------- GLOBAL ------- */
html, body {
    height: 100%;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 65px;
}

/* ===================================== */
/*            ACCESSIBILITY              */
/* ===================================== */

/* Skip link (דלג לתוכן הראשי) */
.skip-link{
    position: absolute;
    top: -50px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    z-index: 100000;
    text-decoration: none;
    font-weight: 700;
}
.skip-link:focus,
.skip-link:focus-visible{
    top: 12px;
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* פוקוס ברור למקלדת */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* fallback לדפדפנים בלי focus-visible */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

/* HIGH CONTRAST ACCESSIBILITY MODE (איחוד הגדרות שלא יתנגשו) */
body.high-contrast {
    background-color: #000 !important;
    color: #fff !important;
}

body.high-contrast header,
body.high-contrast footer {
    background-color: #000 !important;
    border-bottom: 2px solid #fff !important;
}

body.high-contrast .product-card,
body.high-contrast .testimonial-card {
    background-color: #000 !important;
    border: 2px solid #fff !important;
    color: #fff !important;
}

body.high-contrast a {
    color: #00ffff !important;
}

body.high-contrast button,
body.high-contrast .hero-btn {
    background: #fff !important;
    color: #000 !important;
    border: 2px solid #fff !important;
}

/* ------- HEADER ------- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 65px;
    padding: 0 20px;
    background: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-left {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
}

/* Profile & Cart Buttons */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 650;
    background: var(--accent);
    color: var(--primary);
    transition: 0.2s ease;
}

.profile-btn:hover {
    background: white;
    color: var(--accent);
}

.cart-btn i {
    color: white;
    font-size: 22px;
    margin-left: 19px;
    position: relative;
    top: 1px;
}

.cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 650;
    transition: 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

/* ===== AUTH TEXT IN HEADER ===== */
.auth-text,
.auth-sep {
    color: #ffffff;
    font-weight: 650;
    display: inline-block;
}

.auth-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: #ffffff;
    font-weight: 650;
    font-size: 16px;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--accent);
}

.header-left .auth-text {
    margin-left: 0;
}

/* ===== WAVING HAND ANIMATION ===== */
.wave-emoji {
    display: inline-block;
    transform-origin: 70% 70%;
    animation: wave 1.2s infinite;
}

@keyframes wave {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

/* ------- HERO SECTION ------- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0px;
    height: 700px;
    margin: 0;
    flex-direction: row-reverse;
}

.hero-image {
    flex: 1.2;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    mask-image: linear-gradient(to right, black 60%, transparent 100%);
    mask-repeat: no-repeat;
    mask-size: cover;
}

/* ------- HERO TEXT ------- */
.hero-text {
    display: flex;
    margin-right: 28px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: var(--primary);
    padding-left: 0;
    padding-right: 64px;
}

.hero-text h1 {
    font-size: 40px;
    margin-bottom: 12px;
}

.hero-text p {
    font-size: 24px;
    margin-bottom: 11px;
    margin-right: 119px;
}

/* HERO BUTTONS WRAPPER */
.hero-buttons {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    margin-right: 119px;
    align-items: center;
}

/* ------- HERO BUTTON ------- */
.hero-btn {
    padding: 12px 28px;
    border-radius: 8px;
    background-color: var(--accent);
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    transform-origin: center;
    position: relative;
    z-index: 1;
}

.hero-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.05);
    z-index: 10;
}

/* ------- CARDS ------- */
.cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    margin-top: 60px;
    overflow-x: visible;
    padding-bottom: 10px;
    justify-content: center;
}

.card {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.08),
        rgba(255,255,255,0.02)
    ), var(--primary);
    border-radius: 14px;
    padding: 0 0 60px 0;
    position: relative;
    color: white;
    overflow: hidden;
    box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-top-left-radius: 14px;
    border-top-right-radius: 10px;
}

.card h3, .card p {
    color: white;
    padding: 10px 20px 0 20px;
    text-align: center;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}

.card-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    margin-right: 20px;
    background: none;
    color: var(--accent);
    padding: 0;
    border: none;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    gap: 6px;
}

.card-btn:hover {
    color: var(--card);
}

/* ============================= */
/*      TESTIMONIALS SECTION     */
/* ============================= */
.testimonials {
    padding: 60px 20px;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 30px;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 300px);
    gap: 20px;
    justify-content: center;
}

.testimonial-card {
    background: var(--bg);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card p {
    font-size: 16px;
    line-height: 1.6;
    font-style: italic;
    padding-top: 25px;
}

.stars {
    color: #f1c40f;
}

.arrow-btn {
    background: none;
    border: none;
    font-size: 40px;
    cursor: pointer;
    color: var(--primary);
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 10px;
    line-height: 1;
}

.arrow-btn:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* ------- FOOTER ------- */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: auto;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .hero-section { flex-direction: column-reverse; height: auto; text-align: center; }
  .hero-text { align-items: center; padding: 0 20px; }
  .hero-text h1 { font-size: 32px; }
  .hero-text p { font-size: 18px; margin-right: 0; }
  .hero-buttons { margin-right: 0; justify-content: center; }
  .cards { flex-wrap: wrap; }
  .card { flex: 1 1 45%; max-width: 45%; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-right nav { display: none; }
  .profile-btn, .cart-btn { font-size: 14px; padding: 4px 8px; }
}

@media (max-width: 600px) {
  .card { flex: 1 1 100%; max-width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 26px; }
  .hero-text p { font-size: 16px; }
  .hero-image img { height: 200px; }
}