/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* FULL-SCREEN LOADING OVERLAY */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* GOLD SPINNER */
.loading-spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #e6d6ac; /* soft gold outer */
  border-top-color: #cf9e25; /* main gold */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.install-app-btn {
  position: relative;
  margin: 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #cf9e25;
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;

  width: 90%;
  max-width: 420px; 

}

.install-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
  background: #b88920;
}

.install-app-btn:active {
  transform: translateY(1px);
}

/* GLOBAL FONT */
body {
  margin: 0;
  padding: 0;
  font-family: 'Playfair Display', sans-serif;
  background: #fafafa;
  color: #333;
}

/* HEADERS */
h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* USER ICON */
.user-btn .material-icons {
  font-size: 30px;
  color: #333;
  transition: color 0.2s ease;
}

.user-btn.logged-in .material-icons {
  color: #cf9e25;
  /* GOLD when logged in */
}

/* ACCOUNT SHEET (bottom slide-up modal) */
.account-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -100%;
  height: auto;
  background: #fff;
  padding: 24px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transition: bottom 0.35s ease;
  z-index: 500;
}

.account-sheet.active {
  bottom: 0;
}

.sheet-content {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.close-sheet {
  position: absolute;
  right: 24px;
  top: 16px;
  font-size: 26px;
  cursor: pointer;
  color: #777;
}

#accountActions button {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: 0.25s;
}

/* Primary gold button */
.account-primary {
  background: #cf9e25;
  color: #fff;
  box-shadow: 0 3px 10px rgba(207, 158, 37, 0.3);
}

.account-primary:hover {
  background: #b8891f;
}

/* Secondary neutral button */
.account-secondary {
  background: #eee;
}

.account-secondary:hover {
  background: #ddd;
}


/* TOP HEADER */
.user-email {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  padding-right: 10px;
  opacity: 0.8;
}

.signout-btn {
  margin-left: 10px;
  padding: 6px 12px;
  font-size: 14px;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.signout-btn:hover {
  background: #ddd;
}

.top-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  /* left — center — right */
  align-items: center;
  padding: 18px 40px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-left {
  /* keeps space on the left to balance the icons on the right */
  justify-content: left;
}

.logo-container {
  display: flex;
  justify-content: center;
}

.logo {
  height: 45px;
  object-fit: contain;
}

.header-icons {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}


.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.icon-btn .material-icons {
  font-size: 30px;
  color: #333;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 16px 0;
  background: #ffffff;
  border-bottom: 1px solid #e3e3e3;
  position: relative;
  overflow: hidden;
}

/* NAV LINKS */
.navbar a {
  position: relative;
  text-decoration: none;
  color: #444;
  font-weight: 600;
  letter-spacing: 0.6px;
  padding: 6px 2px;
  transition: color 0.25s ease;
}

/* Underline Animation */
.navbar a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.6, 0.35, 1);
  transform: translateX(-50%);
}

/* Hover Effect */
.navbar a:hover {
  color: #000;
}

.navbar a:hover::after {
  width: 80%;
}

/* Fancy subtle highlight on hover */
.navbar a:hover {
  color: #111;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.12);
}

/* Active link — optional (if you ever add .active class) */
.navbar a.active {
  color: #111;
}

.navbar a.active::after {
  width: 80%;
}

/* MOBILE */
@media (max-width: 700px) {
  .navbar {
    gap: 22px;
    padding: 14px 0;
  }

  .navbar a {
    font-size: 15px;
  }
}


/* HERO */
.hero {
  width: 100%;
  height: 420px;
}

.hero-image {
  width: 100%;
  height: 100%;
  background: url('images/pastries-1.jpg') center/cover no-repeat;
}

/* WELCOME SECTION */
.welcome {
  text-align: center;
  padding: 60px 20px;
  max-width: 760px;
  margin: 0 auto;
}

.welcome h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.welcome p {
  font-size: 22px;
  color: #555;
  line-height: 1.6;
}

/* *********************************************************************************** */

.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  /* optional: prevent it from stretching too wide */
  aspect-ratio: 18 / 8;
  /* keeps a nice proportional map shape */
  overflow: hidden;
  border-radius: 8px;
  /* optional */
  margin: 0 auto;
  /* centers on small screens */
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


.hours-location {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: #f9f9f9;
  color: #222;
  padding: 3rem 2rem;
  gap: 2rem;
  flex-wrap: wrap;
  /* ensures proper wrapping on small screens */
  border-top: 2px solid #ddd;
  border-bottom: 2px solid #ddd;
}

/* Left column */
.hours-left {
  flex: 1;
  min-width: 200px;
}

.hours-left h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #111;
}

/* Middle column (address) */
.hours-center {
  flex: 1;
  min-width: 250px;
  text-align: center;
  line-height: 1.8;
}

/* Right column (hours list) */
.hours-right {
  flex: 1;
  min-width: 220px;
}

.hours-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hours-right li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.hours-right li span {
  font-weight: bold;
  margin-right: 1rem;
}

/* Responsive layout */
@media (max-width: 768px) {
  .hours-location {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 2rem 1rem;
    /* slightly less padding to fit small screens */
  }

  .map-wrapper {
    max-width: 100%;
    padding-bottom: 75%;
    /* a bit taller on mobile */
  }

  .hours-right ul {
    width: 100%;
  }
}

/* FOOTER */
.footer {
  padding: 30px;
  text-align: center;
  background: #222;
  color: #ddd;
  font-size: 14px;
}

@media (max-width: 700px) {
  .navbar {
    gap: 18px;
    font-size: 14px;
  }

  .top-header {
    padding: 18px 20px;
  }
}

.center-image {
  display: block;
  /* makes margin auto work */
  margin: 40px auto;
  /* centers and adds top/bottom spacing */
  max-width: 90%;
  /* responsive scaling */
  width: 800px;
  /* ideal desktop size */
  height: auto;
  /* keep proportions */

  border-radius: 12px;
  /* soft corners */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  /* subtle shadow */

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.center-image:hover {
  transform: scale(1.02);
  /* slight zoom hover */
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* LOGIN CTA */
.login-cta {
  text-align: center;
  background: #ffffff;
  padding: 50px 30px;
  margin: 40px auto;
  max-width: 800px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-cta h2 {
  font-size: 32px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #222;
}

.login-cta p {
  font-size: 18px;
  color: #555;
  margin-bottom: 26px;
}

.login-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.cta-btn {
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 600;
  background: #111;
  border: none;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background: #000;
  transform: translateY(-2px);
}

.upcoming-banner {
  background: linear-gradient(135deg, #fff5e0, #ffffff);
  border: 1px solid #f1ddaa;
  border-radius: 18px;
  padding: 22px;
  margin: 24px auto;
  max-width: 1100px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.upcoming-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.upcoming-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: #c38800;
  margin: 0 0 4px 0;
}

.upcoming-heading {
  margin: 0;
  font-size: 26px;
  color: #111;
}

.upcoming-subtext {
  margin: 6px 0 0 0;
  color: #444;
  font-size: 16px;
}

.arrival-btn {
  min-width: 240px;
  padding: 14px 20px;
  font-size: 18px;
  font-weight: 700;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.arrival-btn:disabled {
  background: #cfcfcf;
  color: #555;
  cursor: not-allowed;
  box-shadow: none;
}

.arrival-btn:not(:disabled):hover {
  background: #000;
  transform: translateY(-1px);
}

.arrival-status {
  margin: 8px 0 0 0;
  color: #7a5b0a;
  font-size: 15px;
}

.hidden {
  display: none !important;
}

.order-now {
  display: inline-block;
  padding: 14px 26px;
  background: #cf9e25;
  /* GOLD */
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: 0.22s ease;
  box-shadow: 0 4px 10px rgba(207, 158, 37, 0.35);
  /* GOLD SHADOW */
}

.order-now:hover {
  background: #b8891f;
  /* DARKER GOLD */
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(207, 158, 37, 0.45);
}

.order-now:active {
  background: #a4771a;
  /* PRESSED GOLD */
  transform: translateY(1px);
  box-shadow: 0 3px 8px rgba(207, 158, 37, 0.3);
}

/* CART BADGE */
#cart-badge {
  display: none;
  position: absolute;
  top: -4px;
  /* small, elegant offset */
  right: -4px;
  /* balanced inside corner */
  background: crimson;
  color: white;
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 50%;
  line-height: 1;
  pointer-events: none;
}

.cart.icon-btn,
.header-icons .cart {
  position: relative;
}

/* ============================================
   MOBILE LAYOUT FIXES (MAX 700PX)
   ============================================ */
@media (max-width: 700px) {

  /* ===== TOP HEADER ===== */
  .top-header {
    grid-template-columns: auto 1fr auto;
    padding: 10px 14px;
    /* reduced for better spacing */
  }

  .logo {
    height: 32px;
    /* shrinks to prevent squishing */
    max-width: 160px;
    object-fit: contain;
  }

  .header-left {
    display: flex;
    align-items: center;
  }

  .header-icons {
    gap: 12px;
    /* tighter spacing */
  }

  /* Reduce icon sizes */
  .icon-btn .material-icons,
  .user-btn .material-icons {
    font-size: 24px;
  }

  .user-btn,
  .cart {
    min-width: 32px;
    /* prevents layout shifting */
  }

  /* PRETTY MOBILE NAV BUTTONS */
  .navbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 10px;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
  }

  .navbar a {
    flex: 1 1 46%;
    text-align: center;
    font-size: 15px;
    padding: 12px 10px;
    font-weight: 600;

    background: #ffffff;
    border-radius: 12px;

    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);

    color: #333;
    transition: all 0.25s ease;
  }

  /* Hover & Active */
  .navbar a:hover {
    background: #fff7e0;
    /* soft gold-tinted background */
    border-color: #e1c578;
    /* subtle gold line */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    color: #b8891f;
    /* dark gold text */
  }

  .navbar a.active {
    background: #fff4d0;
    border-color: #cf9e25;
    /* branded gold */
    color: #a77916;
    box-shadow: 0 4px 14px rgba(207, 158, 37, 0.25);
  }

  /* Disable animated underline on mobile */
  .navbar a::after {
    display: none;
  }


  /* ===== HERO ===== */
  .hero {
    height: 260px;
  }

  /* ===== LOGIN CTA ===== */
  .login-cta {
    padding: 32px 20px;
    margin: 20px 16px;
    border-radius: 12px;
  }

  .login-cta h2 {
    font-size: 24px;
  }

  .login-cta p {
    font-size: 16px;
  }

  .cta-btn {
    font-size: 16px;
    padding: 12px 20px;
  }

  /* ===== WELCOME SECTION ===== */
  .welcome {
    padding: 40px 16px;
  }

  .welcome h1 {
    font-size: 28px;
  }

  .welcome p {
    font-size: 18px;
    line-height: 1.5;
  }

  /* ORDER BUTTON */
  .order-now {
    font-size: 16px;
    padding: 12px 22px;
  }

  /* ===== HOURS & LOCATION ===== */
  .hours-location {
    padding: 2rem 1rem;
    flex-direction: column;
    gap: 2rem;
  }

  .map-wrapper {
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hours-center h2 {
    font-size: 22px;
  }

  .hours-right li {
    font-size: 15px;
  }

  /* ===== ACCOUNT SHEET ===== */
  .sheet-content {
    width: 90%;
  }

  #accountActions button {
    font-size: 15px;
    padding: 12px;
  }
}

/* ================================
   HONEY MONEY CARD (Centered & Polished)
================================ */

.honey-card {
  display: flex;
  flex-direction: column;
  /* stack vertically */
  justify-content: center;
  /* center vertically */
  align-items: center;
  /* center horizontally */

  background: linear-gradient(135deg,
      rgba(255, 220, 95, 0.30),
      rgba(255, 193, 43, 0.25));

  padding: 20px;
  border-radius: 18px;

  border: 1px solid rgba(207, 158, 37, 0.35);
  box-shadow: 0 4px 12px rgba(207, 158, 37, 0.25);

  margin-top: 22px;
  text-align: center;
  /* center label & number */
}

.honey-coin {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;

  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.honey-text-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.honey-label {
  font-size: 16px;
  font-weight: 600;
  color: #6a4a0c;
  letter-spacing: 0.3px;
}

.honey-amount {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  color: #d4a021;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Mobile polish */
@media (max-width: 700px) {
  .honey-card {
    padding: 18px;
    border-radius: 16px;
  }

  .honey-coin {
    width: 60px;
    height: 60px;
  }

  .honey-amount {
    font-size: 26px;
  }
}

/* ================================
   REWARD REDEMPTION
================================ */
.reward-highlight-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(22, 101, 52, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(217, 179, 16, 0.14));
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.16);
  color: #0f5132;
}

.reward-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.reward-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f5132;
}

.reward-honey {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #b78b09;
}

.reward-coin {
  width: 28px;
  height: 28px;
}

.reward-hint {
  margin-top: 10px;
  font-size: 14px;
  color: #0f5132;
}

.reward-remove {
  background: transparent;
  border: 1px solid rgba(15, 81, 50, 0.4);
  color: #0f5132;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.reward-remove:hover {
  background: rgba(15, 81, 50, 0.08);
}

.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
}

.reward-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reward-card.unavailable {
  opacity: 0.55;
  filter: grayscale(0.4);
}

.reward-card button {
  background: linear-gradient(90deg, #16a34a, #d4af37);
  color: #0f172a;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.reward-card button:disabled {
  cursor: not-allowed;
  background: #ccc;
  color: #555;
  box-shadow: none;
}

.reward-cost-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #b78b09;
}