:root {
  --pink: #e8b8b0;
  --dark: #5a3e36;
  --bg: #fff7f5;
}

* {
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 40px;
}

.brand span {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

header button {
  background: var(--pink);
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
}

/* HERO */
.hero {
  padding: 60px 20px;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
}

/* GRID */
.gown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 24px;
}

.gown-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.gown-card img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.gown-content {
  padding: 16px;
}

.gown-content h4 {
  margin: 0 0 6px;
  font-weight: 500;
}

.price {
  margin: 6px 0;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.actions button {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 20px;
  cursor: pointer;
}

.rent {
  background: var(--pink);
}

.buy {
  background: #f2d0c8;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 20px;
  background: white;
  margin-top: 40px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
}

.modal-actions button {
  margin: 10px;
  padding: 12px 20px;
  border-radius: 25px;
  border: none;
  background: var(--pink);
  cursor: pointer;
}

/* CONFIRM MODAL */
#confirmModal .modal {
  max-width: 320px;
}

.gallery-modal img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
}

.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 12px 0;
}

.gallery-controls button {
  font-size: 22px;
  background: var(--pink);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.close-btn {
  background: none;
  border: none;
  margin-top: 10px;
  color: var(--dark);
  cursor: pointer;
}

/* TERMS MODAL */
.terms-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
}

.terms-modal h3 {
  text-align: center;
  margin-bottom: 6px;
}

.terms-location {
  text-align: center;
  font-size: 14px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.terms-content ul {
  padding-left: 18px;
}

.terms-content li {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.terms-highlight {
  background: #fff0ec;
  padding: 10px;
  border-radius: 8px;
  margin: 12px 0;
  font-weight: 500;
}

