html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-image: url("../styles/background.svg");
  background-size: clamp(120px, 20vw, 200px);
  background-repeat: repeat;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}


/* ---------- HEADER ---------- */

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header {
  background-color: #ff90d6;
  padding: 20px 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #441c2d;
  margin: 8px 12px;
  font-weight: bold;
}

.nav a:hover {
  color: #c2185b;
}


/* ---------- CARDS ---------- */

.card {
  background-color: #f7edd1;
  border: none;
}


/* ---------- FOOTER ---------- */

.site-footer {
  background-color: #ff90d6;
  padding: 15px 0;
  text-align: center;
}


/* ---------- ORDER SUMMARY ---------- */

.order-summary {
  background-color: #f7edd1;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  position: sticky;
  top: 20px;
}


/* ---------- SPECIAL BADGES ---------- */

.special-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: bold;
  color: #fff;
  margin-left: 0.5rem;
}

.special-badge.weekly {
  background-color: #c2185b;
}

.special-badge.seasonal {
  background-color: #ff90d6;
  color: #441c2d;
}

.special-badge.weekend {
  background-color: #4caf50;
}

.special-badge.morning {
  background-color: #ffb74d;
}

.special-badge.family {
  background-color: #2196f3;
}


/* ---------- LOGIN PAGE ---------- */

body.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-card {
  background-color: #f7edd1;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 100%;
  max-width: 400px;
}

.login-card h2 {
  text-align: center;
  color: #441c2d;
  margin-bottom: 1.5rem;
}

.btn-login {
  background-color: #ff90d6;
  border: none;
  color: #441c2d;
  font-weight: bold;
  min-height: 44px;
}

.btn-login:hover {
  background-color: #c2185b;
  color: #fff;
}


/* ---------- SLIDESHOW ---------- */

.slideshow {
  text-align: center;
  margin-bottom: 50px;
}

.slideshow-wrapper {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: relative;
}

.slideshow-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
  display: block;
}


/* ---------- SEARCH BAR ---------- */

header form {
  margin-top: 10px;
}


/* ---------- MOBILE STYLES ---------- */

@media (max-width: 768px){

.header-flex{
  flex-direction: column;
  text-align: center;
}

.nav{
  width:100%;
  justify-content:center;
}

.nav a{
  padding:8px 12px;
}

header form{
  width:100%;
}

header form input{
  width:100%;
}

.slideshow-wrapper{
  height:250px;
}

}


/* ---------- TABLET STYLES ---------- */

@media (max-width: 992px){

.nav{
  justify-content:center;
}

}