/* Events, Gallery & Store Pages */
/* Events */
.events-tabs, .gallery-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0 30px;
}

.tab-btn, .tab-link {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn.active, .tab-btn:hover, .tab-link.active, .tab-link:hover {
  border-color: var(--gold);
  background: var(--cream);
  color: var(--maroon);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 8px;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .22s;
}

.event-card:hover { box-shadow: 0 8px 24px rgba(74, 29, 18, .08); }
.event-cover { height: 180px; overflow: hidden; background: var(--cream); }
.event-cover img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.event-body h3 { margin: 0 0 4px; color: var(--maroon); font-size: 18px; }
.event-title-en { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.event-details { display: grid; gap: 6px; margin: 12px 0; font-size: 12px; }
.event-details span { display: flex; align-items: center; gap: 6px; color: #5a4a3f; }
.event-body p { margin: 8px 0 14px; font-size: 13px; line-height: 1.7; color: var(--muted); flex: 1; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .22s;
}

.gallery-item:hover { transform: translateY(-2px); }
.gallery-photo { cursor: pointer; }
.gallery-photo img { width: 100%; height: 200px; object-fit: cover; display: block; }
.gallery-video { display: block; text-decoration: none; color: inherit; }
.gallery-thumb {
  width: 100%;
  height: 200px;
  background: #2c1a16;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  display: grid;
  place-items: center;
  color: var(--maroon);
  font-size: 26px;
  transition: transform .2s;
}

.gallery-item:hover .play-btn { transform: scale(1.1); }
.gallery-info { padding: 10px 14px 12px; }
.gallery-info strong { display: block; font-size: 13px; color: var(--ink); }
.gallery-info small { font-size: 11px; color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  cursor: pointer;
}

.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 8px; }
.lightbox-close { position: absolute; top: 20px; right: 30px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

/* Store badges */
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-weight: 600; text-transform: uppercase; }
.badge-confirmed { background: #e6f4ea; color: #137333; }
.badge-pending { background: #feefc3; color: #b06000; }
.badge-cancelled { background: #fce8e6; color: #c5221f; }

@media (max-width: 820px) {
  .events-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .events-tabs, .gallery-tabs { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}
