

@font-face {
    font-family: 'laleh';
    src: url('../assets/font/Lalezar-Regular.ttf');
}


/* Base Styles */
:root {
    --primary-color: #7c0076; /* Coffee brown */
    --secondary-color: #c484c1; /* Light coffee */
    --accent-color: #c900db; /* Golden */
    --text-color: #333;
    --light-text: #777;
    --bg-color: #f9f9f9;
    --white: #ffd4ff;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: 'laleh';
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: url('../assets/img/galaxie.jfif');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding-bottom: 60px;
    text-align: right;
  }

  
/* Small screens (e.g., phones) */
@media (max-width: 600px) {

}

/* Medium screens (e.g., tablets) */
@media (min-width: 601px) and (max-width: 1024px) {

}

/* Large screens (e.g., desktops) */
@media (min-width: 1025px) {
  body {
    background-image: url('../assets/img/web.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }
}
  
  /* Header Styles */
  .header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .header-left {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
  }
  
  .menu-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .logo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
  }
  
  .logo span {
    font-weight: 700;
    font-size: 1.1rem;
  }
  
  .time {
    font-size: 0.9rem;
    font-weight: 500;
  }
  
  /* Location Section */
  .location {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--light-text);
  }
  
  .location i {
    color: var(--primary-color);
  }
  
  /* Search Bar */
  .search {
    padding: 10px 20px;
  }
  
  .search-container {
    position: relative;
    width: 100%;
  }
  
  .search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
  }
  
  .search-container input {
    text-align: right;
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background-color: var(--white);
    font-family: 'laleh';
  }
  
  .search-container input:focus {
    border-color: var(--primary-color);
  }
  
  /* Promo Banner */
  .promo-banner {
    position: relative;
    padding: 10px 20px 0px 20px;
    display: flex;
    height: 63vw;
    justify-content: space-around;
  }
  .promo-banner img{
    position: absolute;
    top: 10;
    left: 50%;
    transform: translate(-50%, -0%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;

    width: 90%;
    height: 60vw;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  }
  
.banner-img:not(.hidden) {
  opacity: 1;
  z-index: 1;
}
@media (min-width: 1025px) {
  .promo-banner img{

    height: 40vw;

  }
  .promo-banner{
    height: 42vw;
  }
}
.hidden {
  display: block; /* ensures img remains in layout */
  opacity: 0;
  z-index: 0;
}
  
  .banner-content {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
  }
  
  .banner-content span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
  }
  
  .banner-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
  }
  
  /* Category Filter */
  .category-filter {
    display: flex;
    flex-direction: row-reverse;
    justify-content: right;
    padding: 10px 20px 15px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;

  }
  
  .category-filter::-webkit-scrollbar {
    display: none;
  }
  
  .categories {
    display: flex;
    flex-direction: row-reverse;
    
    gap: 10px;
    width: max-content;
  }
  
  .category {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background-color: var(--white);
    color: var(--text-color);
    font-family: 'laleh';
    font-size: large;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);

    box-shadow:
    5px 5px 15px rgba(0, 0, 0, 0.6),   /* outer shadow */
    inset -2px -2px 10px rgba(255, 255, 255, 0.4), /* top-left inner light */
    inset 5px 5px 10px rgba(0, 0, 0, 0.4); 
  }
  
  .category.active {
    background-color: var(--primary-color);
    color: var(--white);
  }
  
  /* Products Grid */
  .products {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .product {
    background-color: var(--white);
    border-radius: 10px;
    padding: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;


    
  box-shadow:
  5px 5px 15px rgba(0, 0, 0, 0.6),   /* outer shadow */
  inset -2px -2px 10px rgba(255, 255, 255, 0.4), /* top-left inner light */
  inset 5px 5px 10px rgba(0, 0, 0, 0.2);
  }
  
  .product:hover {
    transform: translateY(-5px);
  }
  
  .product h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .rating {
    position: absolute;
    background: rgba(255, 255, 255, 0.6); /* semi-transparent */
    backdrop-filter: blur(4px); /* blurs what's behind */
    -webkit-backdrop-filter: blur(10px); /* for Safari */
    padding: 0px 5px;
    border: 1px solid var(--accent-color);
    border-radius: 10px;

    top: 95%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: var(--accent-color);
  }
  
  .price {
    font-weight: 700;
    color: var(--primary-color);
  }
  
  /* Product Details */
  .product-details {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    z-index: 200;
    overflow-y: auto;
    transform: translateX(100%);
    transition: var(--transition);
    padding: 20px;
  }
  
  .product-details.active {
    transform: translateX(0);
  }
  
  .details-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .back-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
  }
  
  .details-header h2 {
    font-size: 1.4rem;
  }
  
  .rating-section {
    margin-bottom: 20px;
  }
  
  .description {
    margin-bottom: 25px;
  }
  
  .description p {
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--light-text);
  }
  
  .size-options h4, .price-section h4 {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .sizes {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .size-option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: none;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .size-option.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
  }
  
  .price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
  }
  
  .buy-now {
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .buy-now:hover {
    opacity: 0.9;
  }
  
  .delivery-options h4 {
    margin-bottom: 10px;
    font-size: 1rem;
  }
  
  .options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .option {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: none;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .option.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
  }
  
  .delivery-address {
    margin-bottom: 25px;
  }
  
  .delivery-address h4 {
    margin-bottom: 10px;
  }
  
  .delivery-address p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 5px;
  }
  
  .edit-address, .add-note {
    display: inline-block;
    margin-top: 10px;
    margin-right: 10px;
    padding: 5px 10px;
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .edit-address:hover, .add-note:hover {
    background-color: #f5f5f5;
  }
  
  .payment-summary {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
  }
  
  .payment-summary h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
  }
  
  .summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
  }
  
  .summary-item.total {
    font-weight: 700;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
  }
  
  .place-order {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 15px;
    cursor: pointer;
    transition: var(--transition);
  }
  
  .place-order:hover {
    opacity: 0.9;
  }
  
  /* Sidebar Menu */
  .sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    left: auto;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--white);
    z-index: 300;
    transition: var(--transition);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
  }
  
  .sidebar.active {
    right: 0;
    left: auto;
  }
  
  .sidebar-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
  }
  
  .close-menu {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
  }
  
  .sidebar-nav {
    padding: 20px;
  }
  
  .nav-link {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
  }
  
  .nav-link i {
    width: 20px;
    text-align: center;
  }
  
  .nav-link:hover {
    color: var(--primary-color);
  }
  
  /* Back to Top Button */
  .back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
  }
  
  .back-to-top.active {
    opacity: 1;
    visibility: visible;
  }
  
  .back-to-top i {
    font-size: 1.2rem;
  }
  
  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Responsive Styles */
  @media (min-width: 768px) {
    .products {
      grid-template-columns: repeat(3, 1fr);
    }
    
    .category-filter {
      padding: 20px;
    }
    
    .promo-banner {
      padding: 15px 20px;
    }
  }
  
  @media (min-width: 1024px) {
    .products {
      grid-template-columns: repeat(4, 1fr);
      gap: 20px;
      padding: 0 30px;
    }
    
    .product-details {
      width: 50%;
      left: 50%;
    }
    
    .sidebar {
      right: 0;
      transform: translateX(100%);
    }
    
    .sidebar.active {
      transform: translateX(0);
    }
  }


  /* Product Image */
.product-image {
    position: relative;

    width: 100%;
    aspect-ratio: 1/1; /* Square ratio */
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ingredients */
.ingredients {
    font-size: 0.8rem;
    color: var(--light-text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em; /* 2 lines */
}

/* Adjust existing product styles */
.product {
    display: flex;
    flex-direction: column;
    padding: 12px;
    align-items: end;
}

.product h3 {
    font-size: 0.95rem;
    margin: 5px 0;
}

.product-meta {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
    margin-top: auto; /* Pushes price to bottom */
}

.sidebar-footer{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sidebar-footer img{
  width: 40%;
  margin: 0 auto 25px auto;
}

.events{
  margin: 20px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
}
.event{
  margin: 15px 10px;
  background-color: var(--white);
  border-radius: 10px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
}


.event:hover {
  transform: translateY(-5px);
}
.event img{
  width: 100%;
  border-radius: 10px;
}
hr{
  width: 70%;
  color: #7c0076;
  box-shadow: 0px 0px 10px 2px #7c0076;
  margin: 10px 0;
}
.event h3{
  margin-top: 15px;
  text-align: center;
}
.events-meta{
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
.event a{
  background-color: #7c0076;
  width: 100%;
  padding: 8px;
  color: #ffd4ff;
  border-radius: 10px;
  text-align: center;
  text-decoration-line: none;
  transition: all 0.5s;
  font-size: larger;
}
.event a:hover{
  background-color: #ffd4ff;
  border: 2px solid #7c0076;

  color: #7c0076;

}

.reserve-form{
  margin: 20px auto;
  background-color: #ffd4ff;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  width: 90%;
  border-radius: 15px;
}

.reserve-form input{
  border: 2px solid #7c0076;
  background: none;
  padding: 8px;
  margin: 10px 10px 5px 10px;
  border-radius: 15px;
  text-align: right;
  text-decoration: none;
  width: 180px;
}

.reserve-form button{
  background-color: #7c0076;
  width: 90%;
  padding: 8px;
  color: #ffd4ff;
  border-radius: 10px;
  text-align: center;
  text-decoration-line: none;
  transition: all 0.5s;
  font-size: larger;
  border: none;
  margin: 10px;
}
.reserve-form button:hover{
  background-color: #ffd4ff;
  border: 2px solid #7c0076;

  color: #7c0076;

}



/* MESSAGES */
/* General alert style */
.messages{
  position: absolute;
  z-index: 100;
  top: 15%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  width: 100%;


}
.alert {


  top: 50px;
  margin: 0px auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 75%;
  padding: 25px;
  border-radius: 12px;
}

.message-btn-close{
  padding: 11px 15px;
  border-radius: 100px;
  border: none;
  
}
/* Success message */
.alert-success {
  color: #3c763d;
  background-color: #b7ff9a;
  
}
.alert-success .message-btn-close{
  background-color: #3c763d;
  color: white;
}

/* Error message */
.alert-error {
  background-color: rgb(255, 156, 156);
  color: rgb(133, 0, 0);
}
.alert-error .message-btn-close{
  background-color: rgb(133, 0, 0);
  color: white;
}

/* Info message */
.alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

/* Warning message */
.alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}


/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


.button{
  background-color: #7c0076;
  width: 90%;
  padding: 8px;
  margin: 10px;
  color: #ffd4ff;
  border-radius: 10px;
  text-align: center;
  text-decoration-line: none;
  transition: all 0.5s;
  font-size: larger;
}
.button:hover{
  background-color: #ffd4ff;
  border: 2px solid #7c0076;

  color: #7c0076;

}

.TOA-description{
  padding: 12px;
  text-align: right;
  white-space: pre-line;
  direction: rtl;
}
textarea{
  direction: rtl;
  text-align: right;
  padding: 10px;
  margin: 12px;
  background: none;
  border: 2px solid #7c0076;
  border-radius: 12px;
  width: 180px;
  height: 130px;

}
.menu-description{
  width: 90%;
  margin: 0px auto 15px auto;
  height: fit-content;
  position: relative;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 8px;
  padding: 15px 20px;


  box-shadow:
    5px 5px 15px rgba(0, 0, 0, 0.6),   /* outer shadow */
    inset -2px -2px 10px rgba(255, 255, 255, 0.4), /* top-left inner light */
    inset 5px 5px 10px rgba(0, 0, 0, 0.4);    
}