/* ============================================
   SipScore — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown-dark:   #5B4839;
  --brown-mid:    #A68268;
  --brown-light:  #BCA18E;
  --gold:         #D4A96A;
  --gold-light:   #F0D5A8;
  --cream:        #FFF8E6;
  --cream-dark:   #FFFCCF;
  --white:        #FFFFFF;
  --text-dark:    #2C1A1A;
  --text-mid:     #5C3D2E;
  --text-light:   #9B7355;
  --gray-light:   #E8E0D5;
  --gray-mid:     #BDB0A0;
  --success:      #4CAF50;
  --error:        #E53935;
  --info:         #1976D2;
  --warning:      #F9A825;
  --radius:       10px;
  --radius-lg:    18px;
  --shadow:       0 2px 12px rgba(74,44,42,0.10);
  --shadow-md:    0 6px 24px rgba(74,44,42,0.15);
  --shadow-lg:    0 12px 40px rgba(74,44,42,0.20);
  --transition:   0.2s ease;
  --font-serif:   Georgia, 'Times New Roman', serif;
  --font-sans:    'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brown-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brown-dark); }

img { max-width: 100%; height: auto; display: block; }

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-main { flex: 1; padding: 32px 0 48px; }

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img { height: 48px; width: auto; }
.logo-text { font-family: var(--font-serif); font-size: 1.5rem; font-weight: bold; color: var(--brown-dark); display: none; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-mid);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--brown-dark); background: var(--cream-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Nav user dropdown */
.nav-user { position: relative; }
.nav-avatar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.nav-avatar:hover { background: var(--cream-dark); }
.nav-avatar img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.nav-avatar span { font-size: 0.9rem; font-weight: 600; color: var(--text-dark); }

.nav-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  overflow: hidden;
  z-index: 200;
}
.nav-dropdown a {
  display: block;
  padding: 10px 16px;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: background var(--transition);
}
.nav-dropdown a:hover { background: var(--cream-dark); }
.nav-user:hover .nav-dropdown { display: block; }

/* --- Footer --- */
.site-footer {
  background: var(--brown-dark);
  color: var(--cream);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold);
}
.logo-img-sm { height: 32px; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: center; }
.footer-nav a { color: var(--cream); font-size: 0.9rem; opacity: 0.8; }
.footer-nav a:hover { opacity: 1; color: var(--gold); }
.footer-copy { color: var(--cream); opacity: 0.5; font-size: 0.85rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--brown-dark); color: var(--white); }
.btn-primary:hover { background: var(--brown-mid); color: var(--white); box-shadow: var(--shadow); }
.btn-accent { background: var(--gold); color: var(--brown-dark); }
.btn-accent:hover { background: var(--gold-light); color: var(--brown-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--brown-dark); border: 2px solid var(--brown-dark); }
.btn-outline:hover { background: var(--brown-dark); color: var(--white); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--brown-dark); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #c62828; }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-google {
  background: var(--white);
  color: var(--text-dark);
  border: 1px solid var(--gray-mid);
  gap: 10px;
}
.btn-google:hover { background: var(--cream-dark); color: var(--text-dark); box-shadow: var(--shadow); }

/* --- Flash Messages --- */
.flash-messages { margin-bottom: 20px; }
.flash {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.95rem;
}
.flash-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.flash-error   { background: #FFEBEE; color: #B71C1C; border: 1px solid #EF9A9A; }
.flash-info    { background: #E3F2FD; color: #1565C0; border: 1px solid #90CAF9; }
.flash-warning { background: #FFF8E1; color: #F57F17; border: 1px solid #FFD54F; }
.flash-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; opacity: 0.6; padding: 0 4px; }
.flash-close:hover { opacity: 1; }

/* --- Forms --- */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; color: var(--text-mid); }
.form-label .req { color: var(--error); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--text-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--brown-mid);
  box-shadow: 0 0 0 3px rgba(139,94,60,0.15);
}
.form-control::placeholder { color: var(--gray-mid); }
.form-text { font-size: 0.82rem; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 0.82rem; color: var(--error); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 8px; }

/* Star rating input */
.rating-group { margin-bottom: 20px; }
.rating-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-mid); }
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 2rem;
  color: var(--gray-light);
  cursor: pointer;
  transition: color var(--transition);
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold); }

.rating-slider-wrap { display: flex; align-items: center; gap: 12px; }
.rating-slider { flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px; background: var(--gray-light); outline: none; }
.rating-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.rating-display { font-size: 1.1rem; font-weight: bold; color: var(--brown-dark); min-width: 30px; text-align: center; }

/* Autocomplete */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  color: var(--text-dark);
  border: 1.5px solid var(--gray-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background var(--transition);
}
.autocomplete-item:hover, .autocomplete-item.active { background: var(--cream-dark); }

/* Photo upload zone */
.upload-zone {
  border: 2px dashed var(--gray-mid);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--cream-dark);
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--gold); background: var(--gold-light); }
.upload-zone p { color: var(--text-light); font-size: 0.9rem; margin-top: 8px; }
.upload-zone input[type="file"] { display: none; }
.upload-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-preview {
  position: relative;
  width: 90px; height: 90px;
  border-radius: var(--radius);
  overflow: hidden;
}
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview-remove {
  position: absolute; top: 2px; right: 2px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brown-dark);
}
.card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--gray-light);
  background: var(--cream);
}

/* --- Grid Layouts --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- Auth Pages --- */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}
.auth-header {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  padding: 32px;
  text-align: center;
  color: var(--white);
}
.auth-header .auth-logo { height: 56px; margin: 0 auto 12px; filter: brightness(0) invert(1); }
.auth-header h1 { font-family: var(--font-serif); font-size: 1.6rem; margin-bottom: 6px; }
.auth-header p { opacity: 0.8; font-size: 0.9rem; }
.auth-body { padding: 32px; }
.auth-divider { text-align: center; margin: 20px 0; position: relative; }
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--gray-light);
}
.auth-divider span { position: relative; background: var(--white); padding: 0 12px; color: var(--text-light); font-size: 0.85rem; }
.auth-footer { padding: 20px 32px; background: var(--cream); text-align: center; font-size: 0.9rem; border-top: 1px solid var(--gray-light); }

/* Multi-step progress */
.step-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; }
.step-item { display: flex; align-items: center; }
.step-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-mid);
  background: var(--white);
  color: var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.step-circle.active { border-color: var(--gold); background: var(--gold); color: var(--brown-dark); }
.step-circle.done { border-color: var(--brown-mid); background: var(--brown-mid); color: var(--white); }
.step-line { width: 48px; height: 2px; background: var(--gray-light); }
.step-line.done { background: var(--brown-mid); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--brown-dark) 0%, var(--brown-mid) 60%, var(--gold) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.4;
}
.hero .container { position: relative; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Review Card --- */
.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: box-shadow var(--transition);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.review-author { font-weight: 700; font-size: 0.95rem; color: var(--brown-dark); }
.review-author span { font-weight: 400; color: var(--text-light); font-size: 0.85rem; }
.review-location { font-size: 0.85rem; color: var(--text-light); }
.review-location a { color: var(--brown-mid); font-weight: 500; }
.review-scores { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.review-score { text-align: center; }
.review-score-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.review-body { color: var(--text-dark); line-height: 1.7; margin-bottom: 14px; font-size: 0.95rem; }
.review-photos { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.review-photo { width: 100px; height: 100px; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: transform var(--transition); }
.review-photo:hover { transform: scale(1.04); }
.review-actions { display: flex; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--gray-light); }
.review-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color var(--transition);
  padding: 4px 8px;
  border-radius: 6px;
}
.review-action-btn:hover { color: var(--brown-dark); background: var(--cream-dark); }
.review-action-btn.liked { color: var(--error); }
.review-time { margin-left: auto; font-size: 0.8rem; color: var(--gray-mid); }

.review-score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* --- Stars Display --- */
.stars { display: inline-flex; gap: 1px; }
.star.full  { color: var(--gold); }
.star.half  { color: var(--gold); opacity: 0.6; }
.star.empty { color: var(--gray-light); }
.star-score { font-size: 0.85rem; font-weight: 600; color: var(--text-mid); margin-left: 4px; }

/* --- Location Card --- */
.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.location-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.location-card-img { height: 160px; background: var(--cream-dark); }
.location-card-img img { width: 100%; height: 100%; object-fit: cover; }
.location-card-img .no-img { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; }
.location-card-body { padding: 18px; }
.location-name { font-weight: 700; font-size: 1.05rem; color: var(--brown-dark); margin-bottom: 4px; }
.location-addr { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.location-scores { display: flex; gap: 8px; align-items: center; }
.location-score-pill {
  background: var(--cream-dark);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown-dark);
}

/* --- Profile --- */
.profile-header {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--white);
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 32px;
}
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
}
.profile-info h2 { font-family: var(--font-serif); font-size: 1.8rem; margin-bottom: 4px; }
.profile-username { opacity: 0.75; font-size: 0.9rem; margin-bottom: 8px; }
.tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212,169,106,0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}
.profile-stats { display: flex; gap: 32px; margin-top: 16px; }
.profile-stat-num { font-size: 1.4rem; font-weight: 700; }
.profile-stat-label { font-size: 0.8rem; opacity: 0.7; }

/* --- Search --- */
.search-hero {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  padding: 48px 0;
  text-align: center;
  color: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.search-hero h2 { font-family: var(--font-serif); font-size: 2rem; margin-bottom: 16px; }
.search-bar {
  display: flex;
  max-width: 580px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.search-bar input {
  flex: 1;
  padding: 14px 22px;
  border: none;
  font-size: 1rem;
  background: transparent;
  outline: none;
  color: var(--text-dark);
}
.search-bar button {
  background: var(--gold);
  border: none;
  padding: 14px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--brown-dark);
  font-size: 0.95rem;
  transition: background var(--transition);
}
.search-bar button:hover { background: var(--gold-light); }

.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-chip {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  color: var(--text-mid);
  cursor: pointer;
  font-size: 0.88rem;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--gold); background: var(--gold-light); color: var(--brown-dark); font-weight: 600; }

/* --- Comments --- */
.comment-list { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.comment {
  display: flex;
  gap: 12px;
}
.comment-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--cream-dark); }
.comment-bubble {
  background: var(--cream-dark);
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: 12px 16px;
  flex: 1;
}
.comment-author { font-weight: 600; font-size: 0.88rem; color: var(--brown-dark); margin-bottom: 4px; }
.comment-body { font-size: 0.9rem; line-height: 1.6; }
.comment-time { font-size: 0.78rem; color: var(--gray-mid); margin-top: 4px; }

/* --- Shop --- */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-img { height: 200px; background: var(--cream-dark); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; }
.product-name { font-weight: 700; margin-bottom: 4px; color: var(--brown-dark); }
.product-sku { font-size: 0.78rem; color: var(--gray-mid); margin-bottom: 8px; }
.product-price { font-size: 1.3rem; font-weight: 700; color: var(--brown-mid); margin-bottom: 12px; }
.product-shipping { font-size: 0.82rem; color: var(--text-light); }

/* Cart */
.cart-item { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--gray-light); }
.cart-item-img { width: 70px; height: 70px; border-radius: var(--radius); object-fit: cover; }
.cart-item-name { font-weight: 600; color: var(--brown-dark); }
.cart-qty { display: flex; align-items: center; gap: 8px; }
.cart-qty button { background: var(--cream-dark); border: none; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; transition: background var(--transition); }
.cart-qty button:hover { background: var(--gray-light); }
.cart-total { margin-top: 16px; text-align: right; font-size: 1.2rem; font-weight: 700; color: var(--brown-dark); }

/* --- Advertiser --- */
.ad-banner {
  background: linear-gradient(135deg, var(--gold-light), var(--cream-dark));
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.ad-banner img { height: 60px; border-radius: 6px; }
.ad-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); }

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  gap: 0;
}
.event-date-box {
  background: var(--brown-dark);
  color: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
}
.event-date-box .month { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.event-date-box .day { font-size: 2rem; font-weight: 700; line-height: 1; }
.event-info { padding: 20px; flex: 1; }
.event-title { font-weight: 700; font-size: 1.05rem; color: var(--brown-dark); margin-bottom: 4px; }
.event-location { font-size: 0.85rem; color: var(--text-light); margin-bottom: 8px; }

/* --- Modals --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brown-dark);
}
.modal-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--gray-mid); padding: 0 4px; }
.modal-close:hover { color: var(--text-dark); }
.modal-body { padding: 24px; }

/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 600; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

/* --- Pagination --- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; }
.page-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1.5px solid var(--gray-light);
  color: var(--text-mid);
  font-size: 0.9rem;
  transition: all var(--transition);
}
.page-link:hover { border-color: var(--gold); background: var(--gold-light); color: var(--brown-dark); }
.page-link.active { background: var(--brown-dark); border-color: var(--brown-dark); color: var(--white); }

/* --- Section headings --- */
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-family: var(--font-serif); font-size: 1.5rem; color: var(--brown-dark); }
.section-title span { color: var(--gold); }

/* --- Sidebar layout --- */
.page-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-widget { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.sidebar-widget-head { padding: 14px 20px; background: var(--cream-dark); font-weight: 700; font-size: 0.9rem; color: var(--brown-dark); border-bottom: 1px solid var(--gray-light); }
.sidebar-widget-body { padding: 16px 20px; }

/* Utility */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-light); }
.text-sm     { font-size: 0.875rem; }
.text-gold   { color: var(--gold); }
.text-brown  { color: var(--brown-dark); }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.hidden { display: none !important; }

/* Loading spinner */
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--gray-light); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-light); }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-serif); font-size: 1.3rem; color: var(--text-mid); margin-bottom: 8px; }

/* Notification dot */
.notif-dot { display: inline-block; width: 8px; height: 8px; background: var(--error); border-radius: 50%; vertical-align: super; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .review-score-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 768px) {
  .site-main { padding: 20px 0 40px; }

  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 2px solid var(--cream-dark);
    box-shadow: var(--shadow-md);
    gap: 6px;
    z-index: 99;
  }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-user { width: 100%; }
  .nav-avatar { width: 100%; }
  .nav-dropdown { position: static; display: none; box-shadow: none; border: 1px solid var(--gray-light); margin-top: 4px; border-radius: var(--radius); }
  .nav-user.open .nav-dropdown { display: block; }

  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.8rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .profile-header { flex-direction: column; padding: 28px 20px; }
  .profile-stats { gap: 20px; }

  .auth-body { padding: 24px 20px; }
  .auth-header { padding: 24px 20px; }

  .search-hero { padding: 32px 16px; }

  .page-layout { gap: 20px; }

  .event-card { flex-direction: column; }
  .event-date-box { flex-direction: row; min-width: 0; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .step-line { width: 28px; }
  .review-scores { gap: 10px; }
}
