/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
  background: #0b1220;
  color: #e6e6e6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
}

/* =========================
   HEADER
========================= */
header {
  background: #0f1b2d;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.logo {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #4da3ff;
}

nav {
  display: flex;
  gap: 15px;
}

nav a {
  padding: 8px 16px;
  border-radius: 6px;
  background: #13233a;
  transition: 0.3s;
  font-size: 14px;
}

nav a:hover {
  background: #1b3a5f;
}

/* =========================
   MAIN / PRODUCTS
========================= */
.main {
  padding: 60px 40px;
}

.products {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* PRODUCT CARD */
.product-card {
  background: #0f1b2d;
  width: 260px;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 0 30px rgba(0,140,255,0.35);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.product-card p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.product-card button {
  width: 100%;
  padding: 10px;
  background: #1b5cff;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}

.product-card button:hover {
  background: #1447c7;
}

/* =========================
   CART PAGE
========================= */
.cart-container {
  max-width: 800px;
  margin: 60px auto;
  background: #0f1b2d;
  padding: 30px;
  border-radius: 14px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #1f3350;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item button {
  background: #ff3b3b;
  padding: 6px 12px;
  border-radius: 5px;
  color: #fff;
}

/* =========================
   FORMS (LOGIN / REGISTER)
========================= */
.form-container {
  max-width: 400px;
  margin: 80px auto;
  background: #0f1b2d;
  padding: 30px;
  border-radius: 14px;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: none;
  background: #1b2f4d;
  color: #fff;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background: #1b5cff;
  color: #fff;
  border-radius: 6px;
}

/* =========================
   CONTACT PAGE
========================= */
.contact-container {
  max-width: 500px;
  margin: 80px auto;
  background: #0f1b2d;
  padding: 30px;
  border-radius: 14px;
  text-align: center;
}

.contact-container a {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #25d366;
  color: #fff;
  border-radius: 8px;
}

/* =========================
   PAYMENT PAGE
========================= */
.payment-container {
  max-width: 500px;
  margin: 90px auto;
  background: #0f1b2d;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 0 35px rgba(0,120,255,0.25);
  text-align: center;
}

.payment-container h1 {
  margin-bottom: 30px;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pay-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 60px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s;
  font-size: 16px;
}

.pay-option img {
  height: 36px;
}

.pay-apple {
  background: #000;
  color: #fff;
}

.pay-google {
  background: #fff;
  color: #000;
}

.pay-option:hover {
  transform: scale(1.03);
}

/* =========================
   FOOTER
========================= */
footer {
  margin-top: 80px;
  padding: 25px;
  text-align: center;
  background: #0f1b2d;
  font-size: 13px;
  opacity: 0.7;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .products {
    flex-direction: column;
    align-items: center;
  }

  header {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== FIX PAYMENT BUTTONS ONLY ===== */

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pay-option {
  height: 52px;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  font-size: 15px;
}

/* Apple Pay */
.pay-apple {
  background: #000;
  color: #fff;
}

/* Google Pay */
.pay-google {
  background: #fff;
  color: #000;
}

.pay-option img {
  height: 26px;     /* 👈 حجم منطقي */
  width: auto;
  max-width: 60px;
  object-fit: contain;
}

/* منع أي صورة من التخريب */
.payment-container img {
  max-width: 100%;
}