:root {
  --primary-gold: #c6a04f;
  --light-gold: #e6c35b;
  --dark-gold: #a68838;
  --bg-cream: #fffdf5;
  --bg-light: #f9f7f0;
  --text-dark: #2c2c2c;
  --text-medium: #555;
  --text-light: #888;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-medium: rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] header,
html[dir="rtl"] nav,
html[dir="rtl"] footer {
  direction: rtl;
}


body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, var(--bg-cream), var(--bg-light));
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 60px;
  box-shadow: 0 2px 15px var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header img {
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(198, 160, 79, 0.3);
  transition: transform 0.3s ease;
}

header img:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--primary-gold);
  font-size: 18px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav a:hover {
  background-color: rgba(198, 160, 79, 0.1);
  color: var(--dark-gold);
}

nav a:hover::after {
  width: 60%;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-gold) 30%,
    var(--primary-gold) 70%,
    transparent
  );
  margin: 0;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px;
}

#welcome {
  text-align: center;
  padding: 40px 20px 60px;
}

#welcome p {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-gold);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

#welcome article {
  font-size: 18px;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-medium);
  background-color: rgba(255, 255, 255, 0.6);
  padding: 25px 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow-light);
}

main > hr {
  max-width: 600px;
  margin: 50px auto;
}

main > h2 {
  text-align: center;
  font-size: 28px;
  color: var(--primary-gold);
  margin: 40px 0;
  font-weight: 600;
}

#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 35px;
  padding: 20px 0;
}

#products > div {
  background-color: white;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 20px var(--shadow-light);
  transition: all 0.3s ease;
  text-align: center;
}

#products > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px var(--shadow-medium);
}

#products img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

#products > div:hover img {
  transform: scale(1.05);
}

#products ul {
  list-style: none;
}

#products li {
  padding: 8px 0;
  font-size: 16px;
  color: var(--text-medium);
}

#products li:first-child {
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 5px;
}

#products li:last-child {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 17px;
  margin-top: 5px;
}

footer {
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 50px 40px 20px;
  box-shadow: 0 -2px 15px var(--shadow-light);
  margin-top: 60px;
}

footer section {
  flex: 1;
  max-width: 350px;
  padding: 0 20px;
}

footer h2 {
  color: var(--primary-gold);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  padding-bottom: 8px;
  position: relative;
}

footer h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-gold);
  border-radius: 2px;
}

footer article {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-medium);
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

footer ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--primary-gold);
  font-weight: bold;
  font-size: 18px;
}

footer a {
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--primary-gold);
  padding-left: 3px;
}

#followus ul {
  display: flex;
  gap: 15px;
}

#followus ul li::before {
  display: none;
}

footer img {
  transition: transform 0.3s ease;
}

footer a:hover img {
  transform: scale(1.2);
}

footer .copyright {
  text-align: center;
  width: 100%;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 14px;
  color: var(--text-light);
  border-top: 1px solid rgba(198, 160, 79, 0.2);
}

@media (max-width: 1024px) {
  #products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  #products {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 35px;
  }

  footer ul li {
    padding-left: 0;
  }

  footer ul li::before {
    display: none;
  }

  #followus ul {
    justify-content: center;
  }
}


@media (max-width: 480px) {
  header img {
    width: 80px;
    height: 80px;
  }
}

a:focus,
button:focus {
  outline: 2px solid var(--primary-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}


.lang-switch {
  font-size: 16px;
  color: #c6a04f;
  opacity: 0.85;
  font-weight: 500;
  border: 1px solid #c6a04f;
  border-radius: 20px;
  padding: 5px 12px;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  background-color: #c6a04f;
  color: white;
  opacity: 1;
  transform: scale(1.05);
}

html[dir="rtl"] footer {
    direction: rtl;
}

html[dir="rtl"] footer h2 {
    text-align: right;
}

html[dir="rtl"] footer h2::after {
    right: 0;
    left: auto;
}

html[dir="rtl"] footer ul li {
    padding-right: 20px;
    padding-left: 0;
}

html[dir="rtl"] footer ul li::before {
    right: 0;
    left: auto;
}
html[dir="ltr"] footer h2,
html[dir="ltr"] footer section,
html[dir="ltr"] footer ul li,
html[dir="ltr"] #aboutus,
html[dir="ltr"] #contactus {
    text-align: left !important;
}

html[dir="ltr"] footer * {
    text-align: left !important;
    direction: ltr !important;
}
