/* إعدادات عامة */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #faf7f2;
  color: #302a2c;
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #956b80;
  outline-offset: 4px;
}

/* رأس الموقع */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 6%;
  background: #fffdf9;
  border-bottom: 1px solid #e6ddd5;
}

.brand {
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: 26px;
}

.brand span {
  display: block;
  margin-top: 3px;
  color: #8e6858;
  font-size: 11px;
  letter-spacing: 4px;
}

#language-button {
  padding: 10px 20px;
  background: transparent;
  color: #533e48;
  border: 1px solid #d9cbc0;
  border-radius: 30px;
}

#language-button:hover {
  background: #eee4dc;
}

/* تنبيه النسخة التجريبية */
.demo-notice {
  margin: 0;
  padding: 10px 16px;
  background: #eee4dc;
  text-align: center;
  font-size: 12px;
}

/* مقدمة الموقع */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  max-width: 1250px;
  margin-inline: auto;
  padding: 65px 6%;
}

.eyebrow {
  color: #916c58;
  font-size: 13px;
}

.hero h1 {
  margin: 15px 0;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 500;
  line-height: 1.4;
}

.hero-content > p:not(.eyebrow) {
  max-width: 450px;
  margin-bottom: 28px;
  color: #756765;
}

.primary-button {
  display: inline-block;
  padding: 12px 26px;
  background: #533e48;
  color: white;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.2s;
}

.primary-button:hover {
  background: #705260;
}

/* رسم توضيحي لعبوة عطر */
.hero-art {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 330px;
  padding: 45px;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 30% 30%,
    #f3e0d2,
    #d6b8aa
  );
  border-radius: 180px 180px 18px 18px;
}

.perfume-bottle {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 130px;
  height: 190px;
  background: linear-gradient(
    100deg,
    #bc8264,
    #efd1a4,
    #b7805e
  );
  border: 1px solid #ad8666;
  border-radius: 10px 10px 24px 24px;
  box-shadow: 18px 18px 25px #79584544;
}

.perfume-bottle::before {
  content: "";
  position: absolute;
  top: -39px;
  width: 65px;
  height: 38px;
  background: linear-gradient(
    90deg,
    #614b43,
    #a78872,
    #614b43
  );
  border-radius: 5px 5px 0 0;
}

.perfume-bottle span {
  color: #533b31;
  font-family: Georgia, serif;
  font-size: 17px;
  letter-spacing: 3px;
  text-align: center;
}

/* قسم المنتجات */
.collection {
  max-width: 1250px;
  margin-inline: auto;
  padding: 10px 6% 70px;
  scroll-margin-top: 20px;
}

.collection h2 {
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 500;
}

.collection label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
}

#product-search {
  width: 100%;
  max-width: 420px;
  padding: 12px 18px;
  background: #fffdf9;
  color: #302a2c;
  border: 1px solid #dfd4ca;
  border-radius: 30px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0;
}

.category-filters button {
  padding: 10px 19px;
  background: transparent;
  color: #533e48;
  border: 1px solid #d9cbc0;
  border-radius: 30px;
  transition:
    background 0.2s,
    color 0.2s;
}

.category-filters button:hover {
  background: #eee4dc;
}

.category-filters button.active {
  background: #533e48;
  color: white;
  border-color: #533e48;
}

/* بطاقات المنتجات التي سنضيفها لاحقاً */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  overflow: hidden;
  background: #fffdf9;
  border: 1px solid #ede5dd;
  border-radius: 14px;
}

.product-image {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 210px;
  background: #eee2da;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  margin: 8px 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.product-info p {
  color: #756765;
  font-size: 13px;
}

.product-price {
  margin: 15px 0;
  font-weight: bold;
}

.order-button {
  width: 100%;
  padding: 10px;
  background: transparent;
  color: #533e48;
  border: 1px solid #d9cbc0;
  border-radius: 25px;
}

.order-button:hover {
  background: #eee4dc;
}

#empty-message {
  padding: 45px 20px;
  color: #756765;
  text-align: center;
  border: 1px dashed #d9cbc0;
  border-radius: 12px;
}

/* أسفل الموقع */
.site-footer {
  padding: 25px 6%;
  background: #fffdf9;
  color: #756765;
  text-align: center;
  border-top: 1px solid #e6ddd5;
}

.site-footer p {
  margin: 5px 0;
}

.site-footer small {
  font-size: 11px;
}

/* الشاشات المتوسطة */
@media (max-width: 900px) {
  .hero {
    gap: 30px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* الموبايل */
@media (max-width: 600px) {
  .site-header {
    padding: 18px 5%;
  }

  .brand strong {
    font-size: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 35px 6%;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-art {
    min-height: 260px;
    padding: 30px;
  }

  .perfume-bottle {
    width: 100px;
    height: 150px;
  }

  .collection h2 {
    font-size: 26px;
  }

  .category-filters button {
    padding: 9px 14px;
    font-size: 12px;
  }

  .product-grid {
    gap: 12px;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 12px;
  }

  .product-info h3 {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none;
  }
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-block: 18px;
}

.legal-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.legal-links a:hover {
  text-decoration: underline;
}