/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  background: #eef5f8;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ============================================================
   HEADER + NAVIGATION
   ============================================================ */
.header {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.logo { height: 55px; }

.title { font-weight: 600; font-size: 22px; }

.nav a {
  margin-left: 15px;
  text-decoration: none;
  font-weight: 500;
  color: #003c63;
  padding: 8px 12px;
  border-radius: 5px;
}

.nav a:hover,
.nav a.active { background: #00AEEF; color: white; }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product {
  display: inline-block;
  margin: 12px;
  padding: 12px;
  width: 220px;
  background: white;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.product img {
  width: 180px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.product .product-price {
  display: block;
  margin-top: 4px;
  font-weight: 600;
  color: #007dc3;
}

/* 🎟 Ticket Value (NEW – SAFE ADDITION) */
.product .ticket-tag {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #e67e22;
}

.product button {
  margin-top: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 5px;
  background: #00AEEF;
  color: white;
  cursor: pointer;
}

.product button:disabled {
  background: #ccc;
  color: #666;
  cursor: not-allowed;
}

/* ============================================================
   BUTTONS (UNIFORM)
   ============================================================ */
.button,
.submit-btn,
.clean-order-submit {
  background: #00AEEF;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  transition: background 0.2s;
}

.button:hover,
.submit-btn:hover,
.clean-order-submit:hover { background: #0088bb; }

.button-danger { background: #ff5c5c; }
.button-danger:hover { background: #e74c3c; }

/* ============================================================
   BASKET TABLE
   ============================================================ */
.basket-list table { width: 100%; border-collapse: collapse; }
.basket-list th { background: #00AEEF; color: white; padding: 10px; }
.basket-list td { padding: 10px; border-bottom: 1px solid #ddd; }

/* ============================================================
   CLEAN ORDER FORM
   ============================================================ */
.clean-order-form,
.order-box {
  max-width: 600px;
  margin: 20px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.clean-order-form .form-group,
.order-box .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.clean-order-form label,
.order-box label {
  font-weight: 600;
  margin-bottom: 6px;
}

.clean-order-form input,
.clean-order-form textarea,
.order-box input,
.order-box textarea {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fafafa;
  font-size: 15px;
}

.clean-order-form .clean-order-submit {
  width: 100%;
  padding: 12px;
  background: #00AEEF;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 17px;
  cursor: pointer;
}

.clean-order-form .clean-order-submit:hover { background: #0088bb; }

/* ============================================================
   CATEGORY FILTERS
   ============================================================ */
.category-filters {
  margin-bottom: 20px;
  text-align: center;
}

.category-filters button {
  background: #eee;
  color: #333;
  border: 1px solid #ccc;
  padding: 6px 12px;
  margin: 4px;
  border-radius: 5px;
  cursor: pointer;
}

.category-filters button.active {
  background: #00AEEF;
  color: white;
  border-color: #00AEEF;
}

/* ============================================================
   HOMEPAGE CARDS
   ============================================================ */
body.home .card-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

body.home .home-card {
  background: white;
  width: 300px;
  padding: 25px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

body.home .home-icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 10px;
}

body.home .home-card h3 {
  margin: 10px 0 6px;
  font-size: 20px;
  color: #007dc3;
}

body.home .home-card p {
  margin: 0 0 10px;
  font-size: 14px;
  flex-grow: 1;
}

/* ============================================================
   HOMEPAGE CARD BUTTONS
   ============================================================ */
body.home .home-card .home-btn {
  display: inline-block;
  background: #00AEEF;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  margin-top: 12px;
  transition: background 0.2s;
}

body.home .home-card .home-btn:hover { background: #0088bb; }

/* ============================================================
   HOMEPAGE BANNER
   ============================================================ */
.home-banner {
  max-width: 1100px;
  margin: 0 auto 30px auto;
  padding: 20px;
  background: #00AEEF;
  color: white;
  border-radius: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.home-banner span {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  body.home .card-row {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .header { flex-direction: column; gap: 10px; }
  .nav a { display: inline-block; margin: 6px; }
  .product { width: 100%; }
}

/* ============================================================
   ADMIN PAGE FIXES (SAFE OVERRIDES)
   ============================================================ */

/* Keep admin buttons inside cards */
.admin-actions {
  margin-top: 25px;
  text-align: center;
}

/* Override global full-width button ONLY in admin pages */
.admin-actions .button {
  width: auto;
  display: inline-block;
  padding: 10px 18px;
}

