* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: #f8f9fa;
}

/* hamburger */
.bar1,
.bar2,
.bar3 {
  width: 35px;
  height: 5px;
  background-color: #9fd7eb;
  margin: 4px 0;
  transition: 0.4s;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

/* sidebar */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 20000;
  top: 0;
  left: 0;
  background-color: #046582;
  overflow-x: hidden;
  transition: 0.4s;
  padding-top: 70px;
}

.sidenav.open {
  width: 250px;
}

.sidebarHdr {
  margin-top: 20px;
  color: #f4f3eb;
  padding: 0 12px;
}

.sidenav a {
  padding: 8px 16px;
  text-decoration: none;
  font-size: 1.1rem;
  color: #f4f3eb;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: #f39189;
}

.menuIcon {
  position: fixed;
  top: 86px;
  left: 18px;
  z-index: 21000;
  cursor: pointer;
}

/* page titles / header */
.title {
  font-size: 3rem;
  color: #111827;
}

.prodPage {
  color: #111827;
  font-weight: 700;
}

/* login + cart area */
.topRight {
  position: absolute;
  top: 18px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  z-index: 5;
}

.LoginContainer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background-color: #9fd7eb;
  color: #046582;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
  white-space: nowrap;
}

.LoginContainer:hover {
  background-color: #f4f3eb;
  color: #046582;
}

.iconRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iconBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  color: #046582;
  text-decoration: none;
  font-size: 1.25rem;
}

.iconBtn:hover {
  color: #9fd7eb;
}

/* search */
.search {
  width: 100%;
}

.search .form-control {
  min-width: 0;
  height: 56px;
  border-radius: 8px 0 0 8px;
  font-size: 1rem;
}

.searchIcon {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-left: 0;
  color: #046582;
  padding-left: 18px;
  padding-right: 18px;
  border-radius: 0 8px 8px 0;
}

.searchIcon:hover {
  background-color: #f4f3eb;
  color: #046582;
}

/* brands strip */
.brandHdrContainer {
  width: 100%;
  background-color: #046582;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 0;
  margin-top: 26px;
}

.brandbar {
  display: inline-flex;
  gap: 10px;
  padding: 10px 15px;
  min-width: max-content;
  align-items: center;
  white-space: nowrap;
}

.brandbar .logo {
  color: #f4f3eb;
  font-weight: 700;
}

.brandbar a {
  text-decoration: none;
  color: #f4f3eb;
  padding: 8px 12px;
  border-radius: 4px;
  transition: 0.3s;
}

.brandbar a:hover {
  background-color: #f4f3eb;
  color: #046582;
}

/* buttons */
.catalogButton {
  background-color: transparent;
  color: #046582;
  border: 1px solid #046582;
  white-space: nowrap;
}

.catalogButton:hover {
  background-color: #046582;
  color: #ffffff;
}

/* cards */
.productCard {
  background-color: #f4f3eb;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: 0.3s;
  height: 100%;
}

.productCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.photoPlaceholder {
  height: 160px;
  width: 100%;
  border-radius: 8px;
  background-color: #9fd7eb;
  color: #046582;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.productName {
  margin: 0 0 6px;
  color: #046582;
}

.productPrice {
  margin: 6px 0;
  font-weight: 700;
  color: #046582;
}

.productDesc {
  margin: 0;
  color: #333;
  font-size: 14px;
  line-height: 1.3;
}

img {
  max-width: 100%;
  height: auto;
}

/* catalog helpers */
.list-group-item {
  word-break: break-word;
}

.card-footer form,
.card-footer .btn,
.card-footer a {
  width: 100%;
}

/* tablet */
@media (max-width: 991.98px) {
  .title {
    font-size: 2.3rem;
    text-align: center;
  }
  
  .prodPage {
    font-size: 1.6rem;
  }
  
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  
  .menuIcon {
    top: 82px;
    left: 14px;
  }
}

/* phone */
@media (max-width: 767.98px) {
  .title {
    font-size: 2rem;
    margin-top: 8px;
  }
  
  .prodPage {
    font-size: 1.4rem;
  }
  
  .menuIcon {
    top: 76px;
    left: 12px;
    transform: scale(0.9);
  }
  
  .topRight {
    position: static;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    margin-bottom: 12px;
  }
  
  .LoginContainer {
    padding: 8px 12px;
    font-size: 0.95rem;
  }
  
  .iconBtn {
    min-width: 36px;
    min-height: 36px;
    font-size: 1.1rem;
  }
  
  .search .form-control {
    height: 50px;
    font-size: 1rem;
  }
  
  .searchIcon {
    padding-left: 14px;
    padding-right: 14px;
  }
  
  .brandHdrContainer {
    margin-top: 8px;
  }
  
  .catalogButton {
    width: 100%;
    margin-top: 10px;
  }
  
  .card-body,
  .card-footer,
  section.bg-white {
    padding: 1rem !important;
  }
  
  .btn,
  .list-group-item {
    font-size: 0.95rem;
  }
  
  .photoPlaceholder {
    height: 180px;
  }
}