:root {
  --primary: #710000;
  --gold: #f0c28b;
  --white: #fff;
  --black: #222;
  --gray: #f7f7f7;
  --dark: #270001;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
}

body {
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
  direction: rtl;
  background: var(--gray);
  color: var(--black);
  margin: 0;
  padding: 0 3px;
  box-sizing: border-box;
}

/* الهيدر */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 2px solid var(--gold);
  animation: slideDown 0.8s;
}
@keyframes slideDown {
  from {transform: translateY(-40px); opacity: 0;}
  to {transform: translateY(0); opacity: 1;}
}
.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
.logo-area {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.site-title {
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
  font-size: 21px;
  font-weight: bold;
  color: #710000;
  letter-spacing: 1px;
  white-space: nowrap;
  margin: 0 0 0 10px;
  position: relative;
  top: -6px;
  left: 10px;
}
.logo {
  height: 48px;
  width: auto;
  margin-left: 0;
  transition: transform 0.2s;
  display: block;
}
.logo:hover {
  transform: scale(1.07) rotate(-4deg);
}
.header-links {
  display: flex;
  gap: 12px;
}
.header-links a {
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
  font-weight: bold;
  font-size: 17px;
  color: #710000;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 7px;
  transition: background 0.2s, color 0.2s;
}
.header-links a:hover {
  background: #71000010;
  color: #a90000;
}
.main-header a {
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
  font-weight: bold;
  font-size: 17px;
  color: #710000;
  text-decoration: none;
  padding: 7px 18px;
  transition: color 0.2s;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  margin: 0 5px;
  display: inline-block;
}
.main-header a:hover { color: #f0c28b; }

/* ميديا كويري للجوال: اللوجو واسم الموقع فوق، الروابط تحت */
@media (max-width: 600px) {
  .main-header .container {
    flex-direction: column;
    gap: 9px;
    align-items: stretch;
    padding: 0 6px;
  }
  .logo-area {
    order: 1;
    justify-content: center;
    width: 100%;
    margin-bottom: 5px;
  }
  .site-title {
    font-size: 16px;
    top: -2px;
    left: 0;
    margin: 0 0 0 6px;
  }
  .logo {
    height: 38px;
    margin: 0;
  }
  .header-links {
    order: 2;
    justify-content: center;
    width: 100%;
    gap: 7px;
    display: flex;
    flex-wrap: wrap;
  }
  .main-header a, .header-links a {
    font-size: 15px;
    padding: 7px 10px;
    margin: 0 2px;
  }
}

.sizes-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  direction: rtl;
  margin: 30px 0 40px 0;
  background: var(--white, #fff);
  color: var(--black, #222);
  font-family: "Cairo", "Segoe UI", Arial, sans-serif;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(113,0,0,0.12);
  border-right: 3px solid var(--gold, #f0c28b);
  border-left: 3px solid var(--gold, #f0c28b);
}

.sizes-table th, .sizes-table td {
  padding: 15px 10px;
  border-bottom: 1.5px solid #f0c28b33;
  text-align: center;
  font-size: 17px;
  background: var(--white, #fff);
}

.sizes-table th {
  background: var(--primary, #710000);
  color: var(--gold, #f0c28b);
  font-size: 19px;
  font-weight: bold;
  border-bottom: 2.5px solid var(--gold, #f0c28b);
  letter-spacing: 1px;
}

.sizes-table tr:last-child td {
  border-bottom: none;
}

/* خطوط ذهبية رأسية */
.sizes-table th:not(:last-child), .sizes-table td:not(:last-child) {
  border-left: 1.5px solid #f0c28b33;
}

/* صفوف متبادلة رمادية ناعمة */
.sizes-table tbody tr:nth-child(even) {
  background: var(--gray, #f7f7f7);
}

/* تكبير الخط للجوال وتوسيط الجدول */
@media (max-width: 700px) {
  .sizes-table th, .sizes-table td {
    font-size: 15px;
    padding: 10px 6px;
  }
}

@media (max-width: 430px) {
  .sizes-table th, .sizes-table td {
    font-size: 13px;
    padding: 7px 3px;
  }
  .sizes-table {
    border-radius: 8px;
  }
}

/* الفوتر */
.footer {
  background: var(--primary);
  color: var(--gold);
  padding: 32px 18px 16px 18px;
  font-family: 'Cairo', Arial, sans-serif;
  direction: rtl;
  border-top: 2px solid var(--gold);
  margin-top: 30px;
  animation: fadeInFooter 0.8s;
}
@keyframes fadeInFooter {
  from {opacity: 0;}
  to {opacity: 1;}
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}
.footer-section {
  flex: 1;
  min-width: 215px;
  margin-bottom: 12px;
}
.footer-section h3 {
  margin-bottom: 7px;
  font-size: 18px;
  color: var(--gold);
  font-weight: bold;
}
.footer-section a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-section a:hover {
  color: var(--gold);
  text-decoration: underline;
}
.footer-bottom {
  text-align: center;
  padding-top: 10px;
  font-size: 15px;
  color: var(--white);
  border-top: 1px solid var(--gold);
  margin-top: 18px;
}
@media (max-width: 750px) {
  .footer-content {
    flex-direction: column;
    gap: 10px;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  background: var(--gold);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}