body {
  font-family: "Poppins", serif;
}

/*Header*/
header {
  background-color: #003153;
  height: 45px;
  color: white;
  text-align: center;
  justify-content: center;
  align-content: center;
  display: flex;
}
.title-text {
  font-family: "Montserrat", sans-serif;
}

.navy-text {
  color: #26387d;
}
.highlight-pink {
  background-color: #ffc0c4;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  border: 1px solid black;
  box-shadow: 3px 3px 0px #000;
  font-weight: 600;
}

.highlight-blue {
  background-color: #d2eaf4;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  border: 1px solid black;
  box-shadow: 3px 3px 0px #000;
  font-weight: 600;
}

.highlight-yellow {
  background-color: #fff4bf;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  border: 1px solid black;
  box-shadow: 3px 3px 0px #000;
  font-weight: 600;
}

.highlight-orange {
  background-color: #ffd498;
  padding: 0.3rem 1rem;
  border-radius: 6px;
  border: 1px solid black;
  box-shadow: 3px 3px 0px #000;
  font-weight: 600;
}

.custom-navy-btn {
  background-color: #26387d;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 5px;
  font-weight: 400;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(38, 56, 125, 0.15);
}

.custom-navy-btn:hover,
.custom-navy-btn:focus {
  background-color: #1b285c;
  color: #fff;
  box-shadow: 0 4px 16px rgba(38, 56, 125, 0.25);
  text-decoration: none;
}

/* Navbar style */
.navbar-custom {
  background-color: white;
  padding: 0.5rem 2.5rem;
}

.search-box {
  display: flex;
  justify-self: end;
  background-color: #f1f1f1;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
  width: 80%;
}
.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: gray;
}
.vmc-logo {
  max-width: 120px;
  height: auto;
}

.basket-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  margin-right: 10px;
  transition: 0.3s ease;
}

.basket-btn:hover {
  background-color: #26387d;
  color: white;
  opacity: 0.85;
  transform: scale(1.05);
}

/* Offcanvas menu */
.offcanvas-custom {
  background-color: #26387d;
  color: white;
  width: 270px;
}
.offcanvas-custom a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
}
.offcanvas-custom a:hover {
  background-color: #0f2474;
}
.profile-section {
  text-align: center;
  padding: 1.5rem 0;
}
.profile-section img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.profile-section h6 {
  margin-top: 0.7rem;
  font-weight: bold;
}
.dropdown-toggle::after {
  float: right;
  margin-top: 0.5rem;
}

/*Product Card*/

.product-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: relative;
  transition: 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-card img {
  width: 100%;
  height: 240px;
  border-radius: 10px 10px 0 0;
  object-fit: contain;
  border: 1px solid black;
  background: linear-gradient(180deg, #fff 0%, rgba(200, 224, 243, 0.5) 99.99%);
  padding: 10px;
}
.product-info {
  padding: 12px;
}
.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-info p {
  font-size: 0.85rem;
  margin: 0;
}
.badges {
  margin: 8px 0;
}
.badges .badge {
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 8px;
  font-weight: 500;
}
.preschool_badge {
  background-color: #abf3a8;
  color: #000;
}
.uniform_badge {
  background-color: #ffc0c4;
  color: #000;
}

.price {
  font-weight: bold;
  font-size: 1rem;
}
.rating {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}
.rating i {
  font-size: 1rem;
}
.rating span {
  margin-left: 4px;
}
.icon-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.fav-button {
  background: #fff;
  border: 1px solid #e8261a;
  color: #e8261a;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fav-button:hover,
.fav-button:focus {
  background: #e8261a;
  color: #fff;
}

.basket-button {
  background: #fff;
  border: 1px solid #26387d;
  color: #26387d;
  border-radius: 100px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.basket-button:hover,
.basket-button:focus {
  background: #26387d;
  color: #fff;
}

/*pagination*/
.custom-pagination {
  background: #f4f4f4;
  border-radius: 15px;
  padding: 3px 10px;
}

.custom-pagination .page-link {
  border: none;
  background: transparent;
  color: #26387d;
  font-weight: 500;
  margin: 0 3px;
}

.custom-pagination .page-item.active .page-link {
  background-color: #26387d;
  color: #fff !important;
  border-radius: 10px;
  padding: 5px 12px;
}

.custom-pagination .page-link:focus {
  box-shadow: none;
}

.top-text {
  display: flex;
  align-self: baseline;
  height: 45px;
  width: 100%;
  justify-content: center;
}

/*header*/
.top-container {
  display: flex;
  height: auto;
  width: 12%;
  justify-content: space-around;
  float: right;
  margin-right: 2%;
}
.top-container a {
  color: white;
  text-decoration: none;
  font-size: 13px;
  display: flex;
  align-items: center;
  padding: 10px 10px;
  transition: background-color 0.3s ease-in-out;
}

.top-container a:hover {
  background-color: #567180;
}

.top-container a:focus {
  background-color: #567180;
}

.top-container a.active {
  background-color: #567180;
}

.top-container ul {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: space-evenly;
}
.top-container img {
  height: 25px;
  width: auto;
  transition: transform 0.3s ease-in-out;
}

.top-container a:hover img {
  transform: scale(1.1);
}

.top-container a:hover img,
.top-container a:focus img,
.top-container a.active img {
  transform: scale(1.1);
}

/* Purchase History */
.card {
  background-color: #e8edef;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid black;
}

.card hr {
  border: 1px solid black;
}

/* Status Section */
.card .d-flex.align-items-center img:first-child {
  margin-right: 8px;
}

.card strong {
  font-weight: 600;
  font-size: 15px;
}

/* Product Image and Info */
.card img {
  border-radius: 8px;
}

.card .d-flex.align-items-center.mb-2 img {
  object-fit: cover;
}

/* Text Info */
.card p {
  font-size: 14px;
  font-weight: 500;
}

.card small {
  font-size: 13px;
  color: #666;
}

/* Buttons */
.card button {
  font-size: 13px;
  padding: 8px 24px;
  font-weight: 500;
}

/* Totals */
.card .text-end {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

/* Border Styling for Special Statuses */
.border-danger {
  border-left: 5px solid #dc3545 !important;
}

.border-info {
  border-left: 5px solid #0dcaf0 !important;
}

.tab-card {
  border: 1px solid black;
}
.tab-button {
  border: none;
  background-color: #e8edef;
  font-weight: 400;
  padding: 20px 30px;
  color: #000000;
  text-align: center;
}
.tab-button.active {
  border: 1px solid #3d87f5;
  color: #00527f;
  background-color: #a9ceea;
}
.tab-button:hover {
  background-color: #d1e7f5;
  color: #00527f;
  cursor: pointer;
}

.custom-outline-black {
  border: 1px solid black;
  background-color: transparent;
  color: black;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 500;
  transition: 0.2s;
}
.custom-outline-black:hover {
  background-color: black;
  color: #fff;
}
/* Blue button for "Request for Refund" */
.custom-blue-btn {
  background-color: #007bff; /* bootstrap blue */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-weight: 500;
  margin-left: 8px;
  transition: 0.2s;
}
.custom-blue-btn:hover {
  background-color: #0069d9;
  color: #fff;
}

.form-control {
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
}

.otp-form-control {
  border-radius: 8px;
  padding: 0px;
  font-size: 16px;
}

.btn-primary {
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-primary:hover {
  background-color: #02206f;
}

/*Footer*/
footer {
  background: linear-gradient(
    102deg,
    rgba(255, 166, 171, 0.5) -4.28%,
    rgba(86, 121, 255, 0.5) 46.09%,
    rgba(255, 237, 152, 0.5) 121.59%
  );
  color: #000;
}

.footer-logo {
  height: 80px;
}

.footer-link {
  color: inherit;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-icon {
  color: inherit;
  text-decoration: none;
}

.footer-icon:hover {
  color: #444;
}

/* Category Icons */
.category-icon {
  width: 200px;
  height: auto;
  margin: 0px;
}
.category-text {
  font-weight: medium;
}

/* Announcement Section */
.announcement-container {
  background: #e7e9f7;
  padding: 40px 0;
  margin-bottom: 30px;
}

.homepage-title {
  font-family: "Ubuntu", sans-serif;
  font-weight: bold;
  color: #00527f;
}

.yearlevel-container {
  margin-top: 50px;
}

/* Year-Level Section */
.custom-icon img {
  transition: transform 0.3s ease-in-out;
}

.custom-icon img:hover {
  transform: scale(1.05);
}

.year-level img {
  transition: transform 0.3s ease-in-out;
}

.year-level img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* SEE MORE BUTTON */
.see-more-btn {
  background-color: #00527f; /* Dark blue background */
  color: white;
  font-size: 18px;
  font-weight: medium;
  padding: 12px 40px;
  border-radius: 5px;
  border: none;
  margin-top: 20px;
  margin-bottom: 40px;
  transition: 0.3s ease-in-out;
  text-decoration: none;
}

.see-more-btn:hover {
  background-color: #003366; /* Darker blue on hover */
  color: white;
}

/* FAQ SECTION */
/* Custom Accordion Item */
.accordion-item {
  padding: 10px;
  background-color: #fbf4bc !important; /* Ensure background stays yellow */
  border: 1px solid #000;
}

/* Accordion Header (Before Clicked) */
.accordion-button {
  background-color: #fbf4bc !important;
  color: black;
  box-shadow: none;
}

/* Remove Bootstrap's Default Blue Click Effect */
.accordion-button:focus,
.accordion-button:active {
  box-shadow: none;
  background-color: #fbf4bc !important; /* Stay the same */
  color: black;
}

/* Remove Hover Effect */
.accordion-button:hover {
  font-weight: bold;
  border-bottom: none;
}

/* Keep Opened Button Background Yellow */
.accordion-button:not(.collapsed) {
  background-color: #fbf4bc !important;
  color: black;
  font-weight: bold;
}

/* Accordion Body */
.accordion-body {
  background-color: #fbf4bc !important;
  color: black;
  font-size: 16px;
}

/*TAGS-BADGES STYLES*/
#tagsChecklist .form-check {
  margin-bottom: 0;
}
#tagsChecklist .badge {
  font-size: 0.95em;
  padding: 0.5em 0.9em;
}
.badges {
  margin: 8px 0;
}
.badges .badge {
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 8px;
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  box-shadow: 0 2px 6px rgba(7, 148, 0, 0.08);
  letter-spacing: 0.5px;
}
.green-badge {
  background-color: #abf3a8;
  color: #079400;
  border: 1px solid #79e37b;
}

.red-badge {
  background-color: #ffbbc0;
  color: #d11408;
  border: 1px solid #d11408;
}
.uniform_badge {
  background-color: #ffc0c4;
  color: #000;
}
.supplies_badge {
  background-color: #dde1f1;
  color: #000;
}
.pre_school_badge {
  background-color: #abf3a8;
  color: #000;
}
.kindergarten_badge {
  background-color: #a8eef3;
  color: #000;
}
.elementary_badge {
  background-color: #ffed98;
  color: #000;
}
.junior_high_school_badge {
  background-color: #ff9e5e;
  color: #000;
}
.senior_high_school_badge {
  background-color: #ffbff1;
  color: #000;
}
.bs_tourism_management_badge {
  background-color: #ddafaf;
  color: #000;
}
.bs_information_system_badge {
  background-color: #baaafa;
  color: #000;
}
.bs_hotel_and_restaurant_management_badge {
  background-color: #94d6cc;
  color: #000;
}
.bs_secondary_education_badge {
  background-color: #96b7ff;
  color: #000;
}
.bs_elementary_education_badge {
  background-color: #e18cf8;
  color: #000;
}
.bs_business_administration_badge {
  background-color: #e88a8b;
  color: #000;
}
.criminology_badge {
  background-color: #d2d2d2;
  color: #000;
}

.writing_tools_badge {
  background-color: #d7ff5e;
  color: #000;
}
.paper_products_badge {
  background-color: #bfcaff;
  color: #000;
}
.tag_badge,
.art_supplies_badge {
  background-color: #ecbfff;
  color: #000;
}
.school_merchandise_badge {
  background-color: #ede9a4;
  color: #000;
}

/* Floating button */
.chat-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2c3e91;
  color: white;
  border: none;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2),
    0px 8px 24px rgba(44, 62, 145, 0.25);
  transition: transform 0.2s;
}
.chat-btn:hover {
  transform: scale(1.1);
}

/* Chat Box */
.chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 400px;
  height: 550px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
}

/* Active (visible) */
.chat-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Chat Header */
.chat-header {
  background: #2c3e91;
  color: white;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(44, 62, 145, 0.12);
}

/* Avatar */
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(44, 62, 145, 0.12);
}

/* Chat Body */
.chat-body {
  flex-grow: 1;
  overflow-y: auto;
  background: #fdfdfd;
  max-height: calc(100% - 100px); /* leaves space for header + footer */
}

/* Chat Bubbles */
.chat-bubble {
  text-align: start;
  padding: 10px 15px;
  max-width: 350px;
}
.chat-bubble.admin {
  border-radius: 10px 10px 10px 0;
  background-color: #e5e5e5;
}
.chat-bubble.user {
  border-radius: 10px 10px 0px 10px;
  background-color: #2c3e91;
  color: white;
}

/* chat Footer */
.chat-footer {
  background: #fff;
}
.chat-footer .text-area {
  resize: none;
  border: none;
  min-height: 40px;
  max-height: 120px;
  overflow-y: auto;
}
.send-button {
  background-color: white;
  border: none;
  color: #2c3e91;
  padding: 8px 12px;
  font-size: 22px;
  cursor: pointer;
}

/* Responsive for chat box below 575.98px */
@media (max-width: 575.98px) {
  .chat-box {
    width: 100vw;
    height: 100vh;
    right: 0;
    bottom: 0;
    border-radius: 0;
    max-width: 100vw;
    max-height: 100vh;
    z-index: 1050; /* Ensure chat-box is above navbar */
  }
  .chat-bubble {
    max-width: 90vw;
    font-size: 15px;
    padding: 8px 10px;
  }
  .chat-header {
    padding: 8px;
    font-size: 16px;
  }
  .chat-footer .text-area {
    font-size: 15px;
  }
  .navbar-custom {
    z-index: 1000; /* Lower than chat-box */
  }
}

@media (max-width: 991.98px) {
  .navbar-custom {
    padding: 0.5rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .container-fluid.d-flex.align-items-center {
    justify-content: start;
  }
  .vmc-logo {
    max-width: 90px;
  }
  .search-box {
    width: 100%;
    font-size: 0.85rem;
    margin-top: 0.5rem;
  }

  .basket-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
    margin-right: 5px;
  }

  footer {
    font-size: 1rem;
  }
}
