/* =====================================================
   GLOBAL SETTINGS
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =====================================================
   HEADER STYLES
===================================================== */
.top-navbar1 {
  display: none;
}

.unibrew-header {
  background-color: #FFF5E3;
  padding: 20px;
  display: flex;
  justify-content: end;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: fixed;
  z-index: 9999;
  width: 100%;
}

.unibrew-header .unibrew-d-flex {
  order: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.unibrew-header .unibrew-logo {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  order: 1;
}

.unibrew-header .cart-container {
  order: 2;
  display: flex;
  align-items: center;
}

/* =====================================================
   LOGO
===================================================== */
.unibrew-logo img {
  height: 30px;
  z-index: 10;
}

/* =====================================================
   ICONS
===================================================== */
.unibrew-menu-icon,
.unibrew-close-btn,
#cart-close {
  font-size: 30px;
  cursor: pointer;
  background: none;
  border: none;
  color: black;
  padding: 5px;
}

.unibrew-menu-icon {
  margin-bottom: 5px;
}

.unibrew-cart-icon {
  margin-left: 15px;
}

/* =====================================================
   SIDEBAR
===================================================== */
.unibrew-sidebar {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background-color: white;
  color: #343a40;
  padding-top: 80px;
  transition: 0.4s ease-in-out;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: start;
  overflow-y: auto;
  overflow-x: hidden;
}

.unibrew-sidebar.show {
  left: 0;
}

.unibrew-sidebar-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  padding-bottom: 120px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.unibrew-sidebar-content::-webkit-scrollbar {
  display: none;
}

.unibrew-sidebar a {
  padding: 12px 40px;
  font-size: 8px;
  text-decoration: none;
  color: #343a40;
  display: block;
  width: 100%;
  transition: 0.3s;
}

.unibrew-sidebar a:hover {
  color: #ED2024;
  background: #f7f7f7;
}

/* Dropdown inside Sidebar */
.unibrew-dropdown {
  width: 100%;
}

.unibrew-dropdown-menu {
  display: none;
  text-align: left;
  margin: 0;
}

.unibrew-dropdown.show .unibrew-dropdown-menu {
  display: block;
}

.unibrew-dropdown-item {
  font-size: 12px !important;
  margin: 0 5px;
  width: 100%;
  color: #343a40;
  text-transform: none !important;
  transition: background-color 0.3s ease;
  line-height: 1.02;
}

.unibrew-dropdown-item:hover {
  background-color: #f5f5f5;
}

.unibrew-close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  color: #959595;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.unibrew-close-btn:hover {
  color: #ED2024;
  transform: scale(1.1);
}

/* =====================================================
   SIGN IN BUTTON
===================================================== */
#unibrew-signInLink {
  padding: 10px 15px;
  font-size: 18px;
  width: 100%;
  margin: 5px 0;
  background-color: #941616;
  color: white;
  transition: background-color 0.3s ease;
}

#unibrew-signInLink:hover {
  color: white;
}

#unibrew-signInLink a {
  text-decoration: none;
  color: white;
  padding: 0 10px;
}

#unibrew-signInLink i {
  font-size: 24px;
  color: #f5f5f5;
  padding: 0 8px;
}

/* =====================================================
   TOP NAVIGATION (DESKTOP)
===================================================== */
.unibrew-top-nav {
  display: none;
  gap: 20px;
  align-items: center;
  justify-content: end;
}

.unibrew-top-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 14px;
}

.unibrew-top-nav a:hover {
  color: #ED2024;
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  min-width: 250px;
  z-index: 999;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  padding: 10px 30px;
  white-space: nowrap;
}

/* =====================================================
   CART PANEL
===================================================== */
#cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  overflow-y: auto;
}

#cart-panel.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header-right img {
  width: 50px;
  height: 50px;
}

#cart-count-header {
  position: absolute;
  top: 20px;
  right: 10px;
  background-color: red;
  color: white;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.cart-item img {
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.cart-item .details {
  flex-grow: 1;
}

.cart-item .price {
  font-weight: bold;
}

.cart-item .remove-btn {
  color: red;
  cursor: pointer;
}

.quantity-container {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.quantity-btn {
  background-color: #941616;
  border: none;
  padding: 4px 10px;
  font-size: 18px;
  color: white;
  border-radius: 3px;
  cursor: pointer;
}

.quantity-btn:hover {
  background-color: #ED2024;
}

.quantity-display {
  min-width: 24px;
  text-align: center;
  font-size: 16px;
}

#cart-total {
  padding: 10px;
  text-align: center;
  font-size: 1.2em;
}

.cart-container {
  position: relative;
  cursor: pointer;
}

.cart-icon {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: 10px;
  background-color: red;
  color: white;
  font-size: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
===================================================== */
@media screen and (min-width: 300px) {
  .unibrew-header {
    padding: 10px;
    position: fixed;
  }

  .unibrew-sidebar a {
    font-size: 18px;
  }

  .unibrew-logo img {
    height: 32px;
  }
}

@media screen and (min-width: 768px) {
  .unibrew-header {
    position: fixed;
  }    
    
  .unibrew-sidebar a {
    font-size: 18px;
  }

  .unibrew-logo img {
    height: 35px;
  }
}

@media (min-width: 992px) {
  .unibrew-header {
    padding: 10px;
    position: fixed;
    background-color: white;
    top: 40px;
  }

  .unibrew-header .unibrew-logo {
    position: absolute;
    left: 30px;
  }

  .unibrew-top-nav {
    display: flex;
  }

  .top-navbar1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background: #5E0606;
    position: fixed;
    z-index: 10100;
    top: 0;
  }

  .top-navbar-content {
    width: 97%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px;
  }

  .top-navbar-content a {
    text-decoration: none;
    color: white;
    font-size: 12px;
    margin-right: 18px;
  }

  .top-navbar-content a:hover {
    color: #F59B9B;
  }

  .unibrew-menu-icon,
  #unibrew-sidebar {
    display: none !important;
  }

  #cart-panel {
    right: -500px;
    width: 500px;
  }

  #cart-panel.open {
    right: 0;
  }

  #unibrew-signInLink {
    padding: 10px 8px;
    width: 120px;
    font-size: 18px;
    background-color: #941616;
    color: white;
    border-radius: 5px;
  }

  #unibrew-signInLink a {
    color: white;
    padding: 0 5px;
  }

  #unibrew-signInLink i {
    font-size: 20px;
    color: #f5f5f5;
    padding: 0 5px;
  }
}

/* =====================================================
   UTILITIES
===================================================== */
.active-page {
  color: #EA2828;
  background: #f7f7f7;
}


