html, body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  color: #333;
  min-height: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* .device-mobile nav.header-actions {
#  justify-content: center;
} */

header {
  background: linear-gradient(to right, #d79a00, #b98400);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 1.5rem;
  height: 115px;
  min-height: 115px;
  position: sticky;
  top: 0;
  z-index: 1000;
  position: relative;
  overflow: visible;
  width: 100%;
  box-sizing: border-box;
}

header::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 6px;
  bottom: -2px;
  background-color: #b98400; /* darker gold */
  z-index: 1002;
}


.header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  justify-content: flex-start !important;
  margin-right: auto;
  position: relative;
  z-index: 9999;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
  position: relative;
  z-index: 9999;
  margin-left: 45px;
}

.logo-area img {
  max-height: 110px;
  width: auto;
  display: block;
  cursor: pointer;
  margin-left: 0;
}

.logo-area > a:first-of-type {
  order: 2;
}

.logo-area .bagelman {
  cursor: default !important;
  position: absolute;
  left: -85px;
  bottom: -40px;
  height: 220px;
  z-index: 9998;
}

.logo-area .bagelman-road {
  position: absolute;
  left: -76px;
  bottom: -42px;
  width: 90px;
  height: 40px;
  background: #b98400;
  clip-path: polygon(0% 0, 85% 0, 100% 100%, 15% 100%);
  z-index: 9997;
}

.vertical-home-link,
.vertical-home-link:visited,
.vertical-home-link:hover,
.vertical-home-link:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: #ffffff !important;
  font-size: 0.6rem;
  text-decoration: none !important;
  opacity: 0.85;
  letter-spacing: 0.18em;
  padding: 0.12rem 0.12rem;
  margin-left: 0;
  min-height: 90px;
  background: transparent;
  border: none;
  font-weight: 600;
}

header nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  justify-content: flex-end;
  margin-left: auto;
  flex-wrap: nowrap;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
  padding: 0.12rem 0.55rem;
  flex: 0 0 auto;
}

/* User dropdown styles */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-name {
  cursor: pointer;
  color: #000;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  display: inline-block;
}

.user-dropdown:hover .user-name {
  background-color: rgba(0, 0, 0, 0.1);
}

.dropdown-content {
  position: absolute;
  z-index: 1000;
  display: none;
  top: 0;
  left: 0;
  right: 0;
}

.dropdown-item {
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: block;
  margin: 2px 0;
}

.profile-item {
  background-color: #007bff;
  color: white;
  position: absolute;
  bottom: calc(100% - 4px);
  margin-bottom: 5px;
  width: 100%;
  text-align: center;
}

.profile-item:hover {
  background-color: #0056b3;
}

.signout-item {
  background-color: #dc3545;
  color: white;
  position: absolute;
  top: calc(100% + 30px);
  margin-top: 5px;
  width: 100%;
  text-align: center;
  z-index: 1001;
}

.signout-item:hover {
  background-color: #c82333;
}

/* Show dropdown on hover */
.user-dropdown:hover .dropdown-content {
  display: block;
}

.profile-button {
  background: #007bff;
  color: white;
}

.profile-button:hover {
  background: #0056b3;
  color: white;
}

.signout-button {
  background: #dc3545;
  color: white;
}

.signout-button:hover {
  background: #c82333;
  color: white;
}

/* Rewards line separator */
.rewards-line {
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.6);
  margin: 0 8px;
  vertical-align: middle;
}

/* Profile page styles */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-container h1 {
  color: #d79a00;
  text-align: center;
  margin-bottom: 2rem;
}

.profile-info {
  display: grid;
  gap: 1rem;
}

.profile-info p {
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin: 0;
  border-left: 4px solid #d79a00;
}

.edit-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.edit-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.edit-button {
  background: #d79a00;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.edit-button:hover {
  background: #b98400;
}

.signout-button {
  background: #dc3545;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.signout-button:hover {
  background: #c82333;
  color: white;
}

.edit-form {
  margin-top: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.name-inputs {
  display: flex;
  gap: 1rem;
}

.name-inputs input {
  flex: 1;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #d79a00;
  box-shadow: 0 0 0 2px rgba(215, 154, 0, 0.2);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.save-button {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-button:hover {
  background: #218838;
}

.cancel-button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cancel-button:hover {
  background: #5a6268;
}


.container {
  position: relative;
  z-index: 10;
  padding: 2rem;
  max-width: 900px;
  margin: auto;
  padding-bottom: 6rem;
  flex: 1;
}

footer {
  background: linear-gradient(to left, #bbbbbb, #f1f1f1); /* darker to lighter */
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background-color: #bbbbbb; /* slightly darker gold than footer */
  z-index: 1;
}


.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

.footer-left {
  font-size: 0.9rem;
  color: #555;
  text-align: left;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: center;
}

.footer-link {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #d79a00;
}

.footer-separator {
  color: #999;
  font-size: 0.8rem;
}

.footer-icons {
  display: flex;
  gap: 1rem;
  justify-self: end;
}

/* Mobile adjustments */
.device-mobile header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0;
  height: auto;
  min-height: 64px;
  text-align: left;
  gap: clamp(0.4rem, 4vw, 0.8rem);
}

.device-mobile .header-left {
  justify-content: flex-start !important;
  margin: 0;
  gap: 0.45rem;
  transform: translateX(0) !important;
  padding-left: clamp(0.2rem, 2vw, 0.35rem);
}

.device-mobile .logo-area {
  justify-content: flex-start;
  gap: 0.45rem;
  margin: 0;
  padding-left: 0;
}

.device-mobile .logo-area .logo-img {
  max-height: 56px;
}

.device-mobile .logo-area .bagelman,
.device-mobile .logo-area .bagelman-road {
  display: none !important;
}

.device-mobile .vertical-home-link,
.device-mobile .vertical-home-link:visited,
.device-mobile .vertical-home-link:hover,
.device-mobile .vertical-home-link:active {
  min-height: 56px;
  padding: 0.05rem 0.1rem;
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  margin-left: -0.2rem;
}

.device-mobile nav {
  width: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding: 0;
  max-width: none;
  margin: 0;
  margin-left: clamp(0.65rem, 6vw, 1.4rem);
  margin-right: clamp(0.2rem, 2.5vw, 0.45rem);
  flex: 0 0 auto;
}

.device-mobile .user-dropdown {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
}

.device-mobile .user-name {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0.32rem 0.55rem;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 12px;
  color: #fff;
  font-weight: 600;
  font-size: clamp(0.72rem, 3.1vw, 0.82rem);
  line-height: 1.08;
  white-space: normal;
  text-align: right;
  max-width: clamp(4.6rem, 32vw, 6.1rem);
  letter-spacing: 0.03em;
  box-sizing: border-box;
}

.device-mobile .user-name-line {
  display: block;
}

.device-mobile .user-name-line--first {
  font-weight: 700;
}

.device-mobile .user-name-line--last {
  font-size: clamp(0.62rem, 2.6vw, 0.74rem);
  text-transform: uppercase;
  opacity: 0.92;
}

.device-mobile .user-dropdown:hover .user-name {
  background: rgba(255, 255, 255, 0.22);
}

.device-mobile nav .headerButton {
  flex: 0 0 auto;
  min-width: 110px;
  max-width: none;
  padding: 0.3rem 0.5rem;
  font-size: 0.78rem;
  border-radius: 10px;
  line-height: 1.05;
  box-sizing: border-box;
  background: transparent;
  border: none;
}

.device-mobile nav .headerButton#rewards-button,
.device-mobile nav .headerButton#sign-in-link {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 0.38rem 0.55rem;
  font-size: 0.8rem;
}

.device-mobile nav .headerButton:nth-child(3) {
  flex-basis: auto;
}

.device-mobile nav .headerButton:not(.header-shipping) {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.device-mobile nav .header-shipping {
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.5rem;
}

.device-mobile nav .header-shipping .label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
}

.device-mobile nav .header-shipping .sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  margin-top: 0.08rem;
}

.device-mobile .container {
  width: 100%;
  padding: 1.5rem 1rem 4rem;
  box-sizing: border-box;
}

.device-mobile footer {
  margin-top: 2.25rem;
  padding: 1.4rem 1rem 2.1rem;
}

.device-mobile .footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
}

.device-mobile .footer-left {
  font-size: 0.92rem;
  line-height: 1.4;
  text-align: center;
}

.device-mobile .footer-center {
  gap: 0.65rem;
  justify-content: center;
}

.device-mobile .footer-icons {
  justify-content: center;
  gap: 1.05rem;
}

@media (max-width: 992px) {
  header {
    padding: 0.6rem 1rem;
    height: auto;
    gap: 0.45rem;
  }
  .logo-area img.logo-img {
    max-height: 90px;
  }
  footer {
    padding: 1.6rem 1.4rem 2.2rem;
  }
}

.bagelman,
.bagelman-road {
  transition: all 0.25s ease;
}

.bagelman {
  position: absolute;
  left: -43px;
  bottom: -60px;
  height: 240px;
  z-index: 1003;
  pointer-events: none;
}

.bagelman-road {
  position: absolute;
  left: -30px;
  bottom: -55px;
  width: 80px;
  height: 50px;
  background: #b98400; /* darker gold */
  clip-path: polygon(0% 0, 85% 0, 100% 100%, 15% 100%);
  z-index: 0;
}

.background-blur {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("../img/bagels.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    filter: blur(2px);
    opacity: 0.5;
    z-index: 0;
  }
  

.order-button {
  padding: 1rem 2rem;
  background-color: #ed1c24;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  font-size: 1.2rem;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.order-button:hover {
  background-color: white;
  color: #ed1c24;
  border-color: #ed1c24;
}

.item-content {
  transition: background-color 0.3s ease;
}

.item-content.checked {
  background-color: #d4edda;
  color: #155724;
}

.item-content.checked::before {
  content: "✓";
  font-size: 2rem;
  margin-right: 1rem;
}




/* GOLD TRANSITION BUTTONS */
.button2 {
  background-color: transparent;
  border: 1px solid white;
  border-radius: 8px;
  padding: 0.18rem 0.45rem;
  color: #fff;
  font-size: 0.86rem;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease-out;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-shipping {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  padding: 0.32rem 0.55rem;
}

.header-shipping .label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-shipping .sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.08rem;
}


.button2::before,

.button2::before,
.button2::after {
  content: "";
  position: absolute;
  height: 2px;
  background-color:#f9dd08;
  opacity: 0;
  transition: opacity 0.3s ease-out, width 0.5s ease-out;
}

.button2::before {
  top: 0;
  left: 0;
  width: 0;
}

.button2::after {
  bottom: 0;
  right: 0;
  width: 0;
}

.button2:hover {
  color: #f9dd08
}

.button2:hover::before,
.button2:hover::after {
  opacity: 1;
  width: 100%;
}
.headerButton {
  cursor: pointer;
  z-index: 4;
  background-color: transparent;
  border: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  letter-spacing: 2px;
  height: auto;
  width: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

/* Payment Methods Section */
.payment-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.payment-section h2 {
  color: #d79a00;
  margin-bottom: 1rem;
}

.payment-method-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  border-left: 4px solid #d79a00;
}

.payment-method-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-method-brand {
  font-weight: bold;
  color: #333;
}

.payment-method-last4 {
  color: #666;
}

.payment-method-default {
  background-color: #d79a00;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

.payment-method-actions {
  display: flex;
  gap: 0.5rem;
}

.payment-method-btn {
  padding: 0.25rem 0.5rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background-color 0.3s ease;
}

.set-default-btn {
  background-color: #007bff;
  color: white;
}

.set-default-btn:hover {
  background-color: #0056b3;
}

.delete-payment-btn {
  background-color: #dc3545;
  color: white;
}

.delete-payment-btn:hover {
  background-color: #c82333;
}

.add-payment-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.add-payment-button:hover {
  background-color: #218838;
}

/* Payment Modal */
.payment-modal {
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.payment-modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
}

.close-payment-modal {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.close-payment-modal:hover {
  color: #333;
}

.card-element {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
  background: white;
}

.card-errors {
  color: #dc3545;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.add-payment-submit {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 100%;
}

.add-payment-submit:hover {
  background-color: #218838;
}

.add-payment-submit:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.desktop-only {
  display: inline-flex;
}

.device-mobile .desktop-only {
  display: none !important;
}

.logo-area .vertical-home,
.logo-area .vertical-home:visited,
.logo-area .vertical-home:hover,
.logo-area .vertical-home:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

