* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: #f7fbff;
  color: #17233c;
}

.page {
  min-height: 100vh;
  direction: rtl;
}

.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 210px;
  height: 100vh;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0 0 0 28px;
  padding: 24px 18px;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.08);
  overflow-y: auto;
}

.logo-box {
  text-align: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #edf2f7;
}

.logo-box img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

.logo-box h2 {
  margin: 8px 0 0;
  font-size: 23px;
  color: #0f2d5c;
}

.menu {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.menu a {
  height: 52px;
  padding: 0 15px;
  border-radius: 16px;
  color: #334155;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 17px;
  font-weight: 700;
  transition: 0.25s;
}

.menu a i {
  font-size: 23px;
}

.menu a:hover,
.menu a.active {
  background: #eaf3ff;
  color: #2563eb;
}

.menu .logout {
  margin-top: 18px;
  color: #ef4444;
}

.main {
  padding: 34px;
  margin-right: 210px;
}

.page-title h1 {
  margin: 0;
  color: #0f2d5c;
  font-size: 38px;
}

.page-title p {
  color: #64748b;
  font-size: 18px;
}

.favorites-list {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.favorite-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e6ecf5;
  text-align: center;
}

.favorite-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.favorite-card h3 {
  margin: 16px;
  color: #0f172a;
}

.favorite-card button {
  margin-bottom: 18px;
  border: none;
  padding: 11px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-weight: bold;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .favorites-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .page {
    display: flex;
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    min-height: auto;
    border-radius: 0;
  }

  .menu {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .main {
    margin-right: 0;
  }

  .favorites-list {
    grid-template-columns: 1fr;
  }
}

.favorite-card .remove-btn {
  background: linear-gradient(135deg, #ef4444, #f87171);
}
