/* @import url(https://fonts.bunny.net/css?family=lato:400,700,900|quicksand:400,500,600,700); */

/* * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
} */

:root {
  --primary-color: #275f61;
  --secondary-color: #fdc040;
  --background-color: #e4e4e4;
  --card-background: #000000;
  --white: #f2f2f2;
}

/* body {
  font-family: "Lato", sans-serif;
} */

.popup-box {
  position: fixed;
  z-index: 1000;
  height: 100vh;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  align-content: center;
  justify-items: center;
}

.cal_section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  gap: 30px;
  /* change this */
  background-color: var(--card-background);
  width: 80%;
  padding: 20px;
  position: relative;
}

#cal_close {
  position: absolute;
  top: 30px;
  right: 30px;
  background-color: transparent;
  font-size: 40px;
  color: var(--white);
  border: none;
  outline: none;
}

/* Heading section */
.cal_heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.cal_heading h1 {
  font-size: clamp(30px, 5vw, 60px);
  /* change color */
  color: var(--white);
}
.cal_heading h1 span {
  /* color: var(--primary-color); */
  /* change color */
  color: var(--white);
}
.cal_heading p {
  font-size: clamp(16px, 2vw, 20px);
  color: #b5b5b5;
}

.cal_lower_content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  justify-content: space-between;
  padding: 20px;
}

.cal_left_section,
.cal_right_section {
  border: 2px solid rgb(223, 223, 223);
  border-radius: 15px;
  padding: 20px;
  flex: 1;
  min-width: 250px;
  transition: box-shadow 0.3s ease;
}

.cal_left_section:hover,
.cal_right_section:hover {
  box-shadow: 0 6px 10px rgba(156, 156, 156, 0.494);
}

/* Left Section */
.cal_left_section {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* change style */
.cal_first_row {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}

.cal_logo_background {
  background-color: var(--primary-color);
  padding: 5px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cal_logo {
  width: 100%;
  max-width: 110px;
  height: auto;
  padding: 5px;
  filter: brightness(0) invert(1);
}

.cal_logo_background span {
  font-size: 20px;
  font-weight: 500;
  color: #fff;
}

.cal_first_row div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
}

.cal_text {
  font-size: 25px;
  font-weight: 800;
}

.cal_inner_text {
  color: #4d4d4d;
  font-weight: 100;
  font-size: 15px;
}

.cal_first_row div span:nth-of-type(2) {
  color: #149a00;
  font-weight: 100;
  font-size: 15px;
}

.cal_second_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* change 2 color */
  background-color: #152215;
  border: 2px solid #196415;
  border-radius: 10px;
  padding: 10px;
}

.cal_second_row div:nth-of-type(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cal_second_row div:first-child {
  font-size: 18px;
  font-weight: 700;
  /* change color */
  color: #ffffff;
  /* color: rgb(44, 44, 44); */
}

.cal_second_row_price {
  color: #ffffff;
}

.cal_second_row > div > i {
  font-size: 25px;
}

.cal_second_row div:nth-of-type(2) span:last-of-type {
  font-size: 12px;
  color: #ff8888;
}

/* Right Section */
.cal_right_section {
  display: flex;
  flex-direction: column;
}

.cal_slider_div {
  border-bottom: 1px solid rgb(223, 223, 223);
  padding-bottom: 16px;
  display: flex;
  gap: 13px;
}

.cal_slider_div span {
  border: 1px solid rgb(223, 223, 223);
  border-radius: 15px;
  padding: 6px;
  font-size: 11px;
  cursor: pointer;
  color: var(--white);
}

/* change */
.cal_all {
  background-color: #fff;
  color: black !important;
}

.cal_deselect {
  border: none !important;
}

/* cal_card Grid Layout */
.cal_card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
  height: 300px; /* Adjust height based on total content */
  padding: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Item Box Styling */
.cal_item-box {
  position: relative;
  background-color: #e4fff1;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
  width: 100%;
  height: 100%;
  transition: box-shadow 0.3s ease;
}

.cal_item-box:hover {
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Image styling inside item box */
.cal_item-box img {
  width: 45px;
  height: auto;
  margin-bottom: 5px;
  border-radius: 10px;
}

/* Text styling */
.cal_item-box span {
  color: #333;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap; /* Keeps text within single line */
}

/* Quantity styling */
.cal_item-box .cal_quantity {
  font-size: 9px;
  font-weight: 500;
  color: #333;
}

/* Checkbox styling */
.checkbox {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  appearance: none;
  background-color: #ffffff;
  border: 2px solid #ccc;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.checkbox:checked {
  background-color: #4caf50;
  border: none;
}

.checkbox:checked::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  position: absolute;
  top: 3px;
  left: 6px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cal_item-box.checked {
  border: 2px solid #4caf50;
}

/* Media query below 1000px*/

@media only screen and (max-width: 1000px) {
  .cal_section {
    height: auto;
    min-height: 80vh;
    width: 80%;
    background-color: #000000;
    padding: 12px;
    gap: 20px;
    margin-top: 50px;
    position: relative;
  }

  #cal_close {
    font-size: 24px;
    top: 5px;
    right: 5px;
  }

  .cal_heading {
    gap: 5px;
  }

  .cal_heading h1 {
    font-size: clamp(32px, 5vw, 45px);
    color: #f2f2f2;
    margin-top: 26px;
  }

  .cal_heading h1 span {
    color: #f2f2f2;
  }

  .cal_heading p {
    font-size: clamp(12px, 2vw, 18px);
    color: #b5b5b5;
  }

  .cal_lower_content {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    padding: 0;
  }

  .cal_left_section,
  .cal_right_section {
    display: contents;
  }

  .cal_first_row {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 10px;
  }

  .cal_logo_background {
    padding: 3px 8px;
    border-radius: 6px;
  }

  .cal_logo {
    max-width: 80px;
    padding: 3px;
  }

  .cal_logo_background span {
    font-size: 15px;
  }

  .cal_text {
    color: black;
    font-size: medium;
  }

  .cal_inner_text {
    font-size: 10px;
  }

  .cal_first_row div span:nth-of-type(2) {
    font-size: 12px;
    color: #149a00;
  }

  .cal_second_row {
    background-color: #152215;
    border: 2px solid #196415;
    padding: 2px 14px;
  }

  .cal_second_row div:first-child {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
  }

  .cal_second_row > div > i {
    font-size: 20px;
  }

  .cal_second_row div:first-child {
    font-size: 15px;
  }

  .cal_second_row_price {
    font-size: 12px;
    width: 600;
  }

  .cal_second_row div:nth-of-type(2) span:last-of-type {
    font-size: 10px;
  }

  .cal_slider_div {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding-top: 16px;
    padding-bottom: 0;
    gap: 15px;
    border-bottom: none;
  }

  .cal_slider_div span {
    font-size: 11px;
    border-radius: 25px;
    padding: 2px 8px;
  }

  .cal_card div span {
    font-size: 8px;
    font-weight: 500;
  }
}

/*Break point Screen size 600px */
@media only screen and (max-width: 600px) {
  .cal_section {
    gap: 20px;
    margin-top: 0;
  }
  .cal_heading h1 {
    font-size: 29px;
    margin-top: 14px;
  }

  .cal_heading p {
    font-size: 11px;
  }

  .cal_card {
    height: auto;
    gap: 5px;
    padding: 5px;
  }

  .cal_item-box {
    padding: 3px;
    height: 70px;
  }

  .cal_slider_div {
    margin-top: 0;
    padding-top: 2px;
  }

  .cal_slider_div span {
    font-size: 9px;
  }

  .cal_item-box img {
    width: 35px;
    height: auto;
  }

  .cal_item-box span {
    font-size: 9px;
  }

  .checkbox {
    width: 12px;
    height: 12px;
  }
}

/* Breakpoint 450px */
@media only screen and (max-width: 450px) {
  .cal_slider_div {
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 5px;
    justify-content: center;
  }

  .cal_slider_div span {
    font-size: 8px;
    padding: 2px 4px;
    border-radius: 12px;
    min-width: auto;
    white-space: nowrap;
  }
}
