.font_all_mplus {
    font-family: 'M PLUS 1', sans-serif !important;
}
.min-height-full {
  min-height: 59vh;
}
body {
  background: white;
  font-family: 'M PLUS 1', sans-serif !important;
}

.max-width-1200 {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

@media (max-width: 768px) {
  .max-width-1200 {
    padding: 0 8px;
  }
  .max-800 {
    padding: 0 8px !important;
  }
}
.main_title {
  text-align: center;
  margin: 50px 0;
  margin-top: 100px;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-text-color);
  background-color: var(--secondary-background-color);
  padding: 16px 32px;
  display: inline-block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.ec-shelfGrid__item-image {
  background-color: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.ec-shelfGrid__item-image img {
  width: 277px;
  height: 250px;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ec-shelfGrid__item > a:hover .ec-shelfGrid__item-image img {
  transform: scale(1.05);
}
.product_item_title {
  font-weight: 700;
  font-size: 16px;
  color: black;
  text-align: center;
  /* max 2 line */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  height: 45px;
}

.product_item_price {
  font-weight: 700;
  font-size: 20px;
  color: var(--primary-text-color);
  text-align: center;
}
.ec-shelfGrid .ec-shelfGrid__item {
  margin-bottom: 92px;
}

.ec-shelfGrid__item > a {
  display: block;
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.ec-shelfGrid__item > a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  pointer-events: none;
}

.ec-shelfGrid__item > a:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 24px rgba(0, 174, 239, 0.15);
  transform: translateY(-6px);
}

.ec-shelfGrid__item > a:hover::before {
  border-color: var(--primary-color);
  opacity: 0.3;
}

.ec-shelfGrid__item > a:hover .ec-shelfGrid__item-image {
  background-color: #f0f8ff;
}

/* max 1200px */
@media (max-width: 1200px) {
  .ec-shelfGrid .ec-shelfGrid__item {
    width: 50%;
  }
}

@media (max-width: 768px) {
  .ec-shelfGrid__item > a {
    padding: 8px !important;
  }
  .ec-shelfGrid__item-image img {
    height: 160px;
  }

}


/* up button */
.ec-blockTopBtn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.ec-blockBtn--action, .ec-blockBtn--action:hover, .ec-blockBtn--action:active, .ec-blockBtn--action:focus {
  background-color: white;
  color: black;
  border: 1px solid black;
  border-radius: 0;
  outline: none;
}
.ec-blockBtn--action:hover {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.hide-number-input::-webkit-outer-spin-button,
.hide-number-input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.hide-number-input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
.ec-footerNavi .ec-footerNavi__link a {
  font-size: 16px;
}
.table-cell .link {
  display: block;
}

/* color */
.text-color-primary {
  color: var(--primary-text-color) !important;
}
.page-title {
  color: var(--primary-text-color) !important;
}

/* style */
:root {
  --primary-color: #00AEEF;
  --header-color: #00AEEF;
  --header-text-color: #000;
  --footer-color: #00AEEF;
  --secondary-color: #42A5F5;
  --primary-text-color: #1565C0;
  --secondary-background-color: #E3F2FD;
  --accordion-background-color: #f4faff;
  --cart-button-color: #1565C0;
  --header2-background-color: #d8f3ff;
  --header2-text-color: #000;
  --accordion-button-text-color: #1565C0;
}
 .header__logo-link {
  background-image: url(../img/default2/logo.png);
}
.icon_user_svg {
  background-image: url(../img/default2/icon_user.png);
}
.icon_cart_svg {
  background-image: url(../img/default2/icon_cart.png);
}

.icon_logout_svg {
  background-image: url(../img/default2/icon_logout.png);
}


.main_button {
  color: white !important;
  background-color: var(--secondary-color);
  padding: 15px 20px;
  margin-top: 20px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  display: inline-block;
  width: 276px;
  height: 54px;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(66, 165, 245, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.main_button:hover {
  background-color: var(--primary-color);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
  transform: translateY(-2px);
}

.main_button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
}

.main_button_icon_right:after {
  content: '';
  display: block;
  position: absolute;
  height: 22px;
  width: 11px;
  right: 14px;
  bottom: 16px;
  background-image: url(../img/default2/arrow.png);
  background-size: contain;
  background-repeat: no-repeat;
}

/* đổi thành màu xanh dương */
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231565C0' stroke='%231565C0' stroke-width='1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231565C0' stroke='%231565C0' stroke-width='1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
