body {
  font-family: 'Cairo', Arial, sans-serif;
  background: #181c2b;
  margin: 0;
  direction: rtl;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
.hero-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0ea5e9 100%);
  z-index: -2;
}
.main-header {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
  padding: 24px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 32px #0004;
  position: relative;
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 2em;
  font-weight: bold;
  letter-spacing: 2px;
}
.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  object-fit: cover;
  box-shadow: 0 2px 8px #0003;
}
.cart-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0ea5e9;
  color: #fff;
  padding: 8px 22px;
  border-radius: 30px;
  font-size: 1.2em;
  box-shadow: 0 2px 8px #0ea5e955;
}
.cart-btn i.fa-shopping-cart {
  font-size: 1.5em;
}
#cart-count {
  background: #fff;
  color: #0ea5e9;
  border-radius: 50%;
  padding: 2px 10px;
  font-weight: bold;
  margin: 0 4px;
}
#open-cart-btn {
  background: #fff;
  color: #0ea5e9;
  border: none;
  border-radius: 20px;
  padding: 5px 16px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
  margin-right: 8px;
}
#open-cart-btn:hover {
  background: #0ea5e9;
  color: #fff;
  border: 1px solid #fff;
}
main {
  display: flex;
  justify-content: center;
  padding: 60px 0 40px 0;
}
#products {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  width: 100%;
}
.card {
  background: linear-gradient(135deg, #f8fafc 60%, #e0f2fe 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px #0ea5e933, 0 2px 8px #0001;
  padding: 28px 18px 22px 18px;
  width: 270px;
  text-align: center;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1.5px solid #bae6fd;
}
.card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, #38bdf8 0%, transparent 70%);
  opacity: 0.13;
  z-index: 0;
}
.card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 12px 40px #0ea5e955, 0 4px 16px #0002;
}
.card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #f1f5f9;
  box-shadow: 0 2px 12px #38bdf855;
  border: 2.5px solid #0ea5e9;
  z-index: 1;
}
.card img[alt="القرش العادي"] {
  border: 3px solid #0ea5e9;
  box-shadow: 0 0 24px #0ea5e955, 0 2px 8px #0002;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
}
.card h3 {
  margin: 10px 0 5px 0;
  font-size: 1.35em;
  color: #0284c7;
  font-weight: bold;
  z-index: 1;
}
.card h3:has(+ img[alt="القرش العادي"]),
.card img[alt="القرش العادي"] + h3 {
  color: #0ea5e9;
  text-shadow: 0 2px 8px #0ea5e955;
}
.card p {
  color: #334155;
  margin: 0 0 14px 0;
  font-size: 1.1em;
  z-index: 1;
}
.card button,
#open-cart-btn,
.shark-btn {
  background: linear-gradient(90deg, #0ea5e9 60%, #38bdf8 100%);
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  box-shadow: 0 4px 16px #0ea5e933, 0 1.5px 6px #0001;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.card button:hover {
  background: linear-gradient(90deg, #38bdf8 60%, #0ea5e9 100%);
  transform: scale(1.07);
  box-shadow: 0 8px 32px #0ea5e955, 0 2px 8px #0002;
}
.card button:active::after,
#open-cart-btn:active::after,
.shark-btn:active::after {
  width: 200%;
  height: 200%;
}
.card button i,
#open-cart-btn i,
.shark-btn i {
  margin-left: 8px;
}
.cart-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 370px;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  box-shadow: 8px 0 32px #0ea5e955;
  padding: 0 24px 24px 24px;
  z-index: 100;
  transform: translateX(-110%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.active {
  transform: translateX(0);
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0 18px 0;
  border-bottom: 1px solid #e2e8f0;
}
.cart-header h2 {
  font-size: 1.3em;
  color: #0ea5e9;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-header button {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}
.cart-header button:hover {
  color: #0ea5e9;
}
#cart {
  margin-top: 18px;
  flex: 1;
  overflow-y: auto;
}
#cart div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 7px;
  font-size: 1.08em;
}
#cart button {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 3px 12px;
  cursor: pointer;
  font-size: 0.95em;
  transition: background 0.2s;
}
#cart button:hover {
  background: #b91c1c;
}
#total {
  margin-top: 18px;
  font-weight: bold;
  font-size: 1.15em;
  color: #0ea5e9;
  text-align: left;
}
.popup {
  display: none;
  position: fixed;
  top: 40px;
  right: 40px;
  background: #0ea5e9;
  color: #fff;
  padding: 18px 32px;
  border-radius: 12px;
  font-size: 1.15em;
  box-shadow: 0 4px 16px #0ea5e955;
  z-index: 1000;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px);}
  to { opacity: 1; transform: translateY(0);}
}
.shark-btn {
  background: linear-gradient(90deg, #0ea5e9 60%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 38px;
  font-size: 1.15em;
  font-weight: bold;
  box-shadow: 0 2px 8px #0ea5e933;
  cursor: pointer;
  margin: 40px auto 0;
  display: block;
  transition: background 0.2s, transform 0.15s;
}
.shark-btn:hover {
  background: linear-gradient(90deg, #38bdf8 60%, #0ea5e9 100%);
  transform: scale(1.07);
}
.bad-btn {
  background: #888;
  color: #222;
  border: 3px dashed #ff0000;
  border-radius: 2px;
  padding: 7px 18px;
  font-size: 1em;
  font-family: 'Comic Sans MS', cursive, sans-serif;
  margin: 10px auto 30px;
  display: block;
  box-shadow: none;
  cursor: pointer;
  transition: none;
}
.bad-btn:hover {
  background: #ffdddd;
  color: #ff0000;
  border-color: #222;
}
.details-btn {
  background: linear-gradient(90deg, #6366f1 60%, #0ea5e9 100%);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
  transition: background 0.2s, transform 0.15s;
}
.details-btn:hover {
  background: linear-gradient(90deg, #0ea5e9 60%, #6366f1 100%);
  transform: scale(1.05);
}
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(30,41,59,0.75);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px 28px 28px;
  width: 350px;
  max-width: 95vw;
  box-shadow: 0 8px 32px #0ea5e955;
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s;
}
.modal-content img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 18px;
  background: #f1f5f9;
}
.modal-content h3 {
  margin: 10px 0 5px 0;
  color: #0ea5e9;
  font-size: 1.25em;
}
.modal-content p {
  color: #334155;
  font-size: 1.05em;
  margin-bottom: 12px;
}
.modal-price {
  font-size: 1.15em;
  color: #0ea5e9;
  font-weight: bold;
  margin-bottom: 18px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.buy-btn {
  background: linear-gradient(90deg, #22c55e 60%, #0ea5e9 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.buy-btn:hover {
  background: linear-gradient(90deg, #0ea5e9 60%, #22c55e 100%);
  transform: scale(1.05);
}
.modal .cart-btn {
  background: linear-gradient(90deg, #0ea5e9 60%, #38bdf8 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.modal .cart-btn:hover {
  background: linear-gradient(90deg, #38bdf8 60%, #0ea5e9 100%);
  transform: scale(1.05);
}
.close {
  position: absolute;
  left: 18px;
  top: 12px;
  font-size: 1.7em;
  color: #64748b;
  cursor: pointer;
  transition: color 0.2s;
}
.close:hover {
  color: #0ea5e9;
}
::-webkit-scrollbar {
  width: 8px;
  background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
  background: #0ea5e9;
  border-radius: 8px;
}
@media (max-width: 900px) {
  .main-header { flex-direction: column; gap: 18px; }
  .cart-sidebar { width: 100vw; }
  #products { gap: 18px; }
  .card { width: 95vw; max-width: 340px; }
}

