:root {
  --primary: #d72527;
  --secondary: #393646;
  --tertiary: #f4eee0;
  --quaternary: #f5f5f5;
}

/* Apply default color for no breakpoint condition */
.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-tertiary {
  background-color: var(--tertiary);
}
.bg-quaternary {
  background-color: var(--quaternary);
}

.hover-bg-primary:hover {
  background-color: var(--primary);
}
.hover-bg-secondary:hover {
  background-color: var(--secondary);
}
.hover-bg-tertiary:hover {
  background-color: var(--tertiary);
}
.hover-bg-quaternary:hover {
  background-color: var(--quaternary);
}

button,
#primary {
  background-color: var(--primary);
  color: var(--secondary);
  font-weight: bold;
  padding: 0.8rem;
  padding-bottom: 0.4rem;
  padding-top: 0.4rem;
  border-radius: 10px;
  transition-duration: 0.2s;
}

button {
  background-color: var(--quaternary);
  color: var(--secondary);
  font-weight: bold;
  padding: 0.8rem;
  padding-bottom: 0.4rem;
  padding-top: 0.4rem;
  border-radius: 10px;
  transition-duration: 0.2s;
}

button:hover {
  filter: brightness(1.5);
}

/* Max-lg breakpoint (below 1024px) */
@media (max-width: 1023px) {
  .max-lg\:bg-primary {
    background-color: var(--primary);
  }
  .max-lg\:bg-secondary {
    background-color: var(--secondary);
  }
  .max-lg\:bg-tertiary {
    background-color: var(--tertiary);
  }
  .max-lg\:bg-quaternary {
    background-color: var(--quaternary);
  }
}

/* Lg breakpoint (1024px and above) */
@media (min-width: 1024px) {
  .lg\:bg-primary {
    background-color: var(--primary);
  }
  .lg\:bg-secondary {
    background-color: var(--secondary);
  }
  .lg\:bg-tertiary {
    background-color: var(--tertiary);
  }
  .lg\:bg-quaternary {
    background-color: var(--quaternary);
  }
}

/* Apply default text color for no breakpoint condition */
.text-primary {
  color: var(--primary);
}
.text-secondary {
  color: var(--secondary);
}
.text-tertiary {
  color: var(--tertiary);
}
.text-quaternary {
  color: var(--quaternary);
}

/* Max-lg breakpoint (below 1024px) */
@media (max-width: 1023px) {
  .max-lg\:text-primary {
    color: var(--primary);
  }
  .max-lg\:text-secondary {
    color: var(--secondary);
  }
  .max-lg\:text-tertiary {
    color: var(--tertiary);
  }
  .max-lg\:text-quaternary {
    color: var(--quaternary);
  }
}

/* Lg breakpoint (1024px and above) */
@media (min-width: 1024px) {
  .lg\:text-primary {
    color: var(--primary);
  }
  .lg\:text-secondary {
    color: var(--secondary);
  }
  .lg\:text-tertiary {
    color: var(--tertiary);
  }
  .lg\:text-quaternary {
    color: var(--quaternary);
  }
}

/* Apply default border color for no breakpoint condition */
.border-primary {
  border-color: var(--primary);
}
.border-secondary {
  border-color: var(--secondary);
}
.border-tertiary {
  border-color: var(--tertiary);
}
.border-quaternary {
  border-color: var(--quaternary);
}

/* Max-lg breakpoint (below 1024px) */
@media (max-width: 1023px) {
  .max-lg\:border-primary {
    border-color: var(--primary);
  }
  .max-lg\:border-secondary {
    border-color: var(--secondary);
  }
  .max-lg\:border-tertiary {
    border-color: var(--tertiary);
  }
  .max-lg\:border-quaternary {
    border-color: var(--quaternary);
  }
}

/* Lg breakpoint (1024px and above) */
@media (min-width: 1024px) {
  .lg\:border-primary {
    border-color: var(--primary);
  }
  .lg\:border-secondary {
    border-color: var(--secondary);
  }
  .lg\:border-tertiary {
    border-color: var(--tertiary);
  }
  .lg\:border-quaternary {
    border-color: var(--quaternary);
  }
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --scroll-behavior: smooth !important;
  scroll-behavior: smooth !important;
  transition-duration: 1s;
}

.header-full-width {
  width: 100%;
  max-width: 100%;
}

.layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 350px;
  grid-template-rows: 105px 50px 40px 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  transition-duration: 1s;
  background-color: var(--primary);
  @apply animate-website-intro;
}

@media all and (min-width: 1024px) {
  .perspective {
    perspective: 1500px;
  }
}

@media not all and (min-width: 1024px) {
  .layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 0px;
    grid-template-rows: 70px 50px 40px 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    transition-duration: 1s;
    @apply animate-website-intro;
  }
}

.layout-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 350px;
  grid-template-rows: 140px 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  transition-duration: 1s;
  background-color: var(--primary);
  @apply animate-website-intro;
}

@media not all and (min-width: 1024px) {
  .layout-profile {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 0px;
    grid-template-rows: 70px 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    transition-duration: 1s;
    @apply animate-website-intro;
  }
}

.layout-checkout {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 350px;
  grid-template-rows: 140px repeat(2, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  transition-duration: 1s;
  background-color: var(--primary);
}

@media not all and (min-width: 1024px) {
  .layout-checkout {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 0px;
    grid-template-rows: 70px repeat(2, 1fr);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    transition-duration: 1s;
  }
}

.headerMain {
  grid-area: 1 / 1 / 2 / 4;
}
.categories {
  grid-area: 2 / 1 / 3 / 4;
}
.subcategories {
  grid-area: 3 / 1 / 4 / 4;
}
.menuItems {
  grid-area: 4 / 1 / 5 / 4;
}
.footer {
  grid-area: 5 / 1 / 6 / 4;
}
.cartSidebar {
  grid-area: 1 / 4 / 6 / 5;
}

.profileContent {
  grid-area: 2 / 1 / 5 / 4;
}

.headerMain-cartless {
  grid-area: 1 / 1 / 2 / 4;
}
.mainContent-cartless {
  grid-area: 2 / 2 / 3 / 3;
}
.footer-cartless {
  grid-area: 3 / 1 / 4 / 4;
}

.layout-cartless {
  display: grid;
  grid-template-columns: 0 1fr 0;
  grid-template-rows: 140px 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  transition-duration: 1s;
  background-color: var(--primary);
}

@media not all and (min-width: 1024px) {
  .layout-cartless {
    display: grid;
    grid-template-columns: 0 1fr 0;
    grid-template-rows: 70px 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    transition-duration: 1s;
  }
}

@keyframes custom-pulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(100%);
  }
  50% {
    opacity: 1;
    transform: scale(105%);
  }
}

.animate-custom-pulse {
  animation: custom-pulse 1s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes custom-bounce {
  0%,
  100% {
    opacity: 0.9;
    transform: scale(100%);
  }
  50% {
    opacity: 1;
    transform: scale(107.5%);
  }
}

.animate-custom-bounce {
  animation: custom-bounce 1s infinite cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

@keyframes new-product-animation {
  0% {
    box-shadow: 0 0 30px goldenrod;
    outline: 3px goldenrod solid;
  }
  80% {
    box-shadow: 0 0 30px goldenrod;
    outline: 3px goldenrod solid;
  }
  100% {
    box-shadow: 0 0 0px goldenrod;
    outline: 0px goldenrod solid;
  }
}

@keyframes website-intro-animation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate-website-intro {
  animation-delay: 0s;
  animation: website-intro-animation 1s cubic-bezier(0.645, 0.045, 0.355, 1);
  animation-fill-mode: none;
}

@keyframes cart-item-anim {
  0% {
    opacity: 0.5;
    transform: scale(0);
    filter: blur(2px);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0px);
  }
}

.cart-item-animation {
  animation-delay: 0s;
  animation: cart-item-anim 0.25s linear;
  animation-fill-mode: none;
}

@keyframes new-product-animation-text {
  0% {
    text-shadow: 0 0 3px goldenrod;
  }
  80% {
    text-shadow: 0 0 3px goldenrod;
  }
  100% {
    text-shadow: 0 0 0px goldenrod;
  }
}

.animate-new-product {
  animation: new-product-animation 5s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

.animate-new-product-text {
  animation: new-product-animation-text 5s
    cubic-bezier(0.455, 0.03, 0.515, 0.955);
}

/* styles.module.css or any global CSS file */
.reactMarkdown img {
  display: block; /* This will put each image on a new line */
  margin: 15px 0px; /* Center the image with automatic horizontal margins */
  border: #000000 1px solid;
  border-radius: 15px;
  box-shadow: 0 0 15px #0000009a;
  width: 200px !important;
  height: 200px !important;
  object-fit: cover !important;
}

.reactMarkdown ul {
  list-style-type: disc;
  margin-top: 10px;
}

.reactMarkdown ol {
  list-style-type: decimal;
  margin-top: 10px;
}

.reactMarkdown li {
  list-style-type: decimal;
  margin-top: 10px;
}

.reactMarkdown p {
  list-style-type: decimal;
  margin: 0;
}

.typing-indicator {
  background-color: var(--primary);
  width: auto;
  border-radius: 50px;
  padding: 10px;
  display: table;
  margin: 10px 10px;
  position: relative;
  -webkit-animation: 2s bulge-parent infinite ease-in-out 2.0001s;
  animation: 2s bulge-parent infinite ease-in-out 2.0001s;
}

.typing-indicator .content {
  position: relative;
  will-change: transform;
}

.bulge-before,
.bulge-after {
  content: "";
  position: absolute;
  height: 10px;
  width: 10px;
  left: -11px;
  bottom: -19px;
  border-radius: 50%;
  background-color: var(--primary);
}

.typing-indicator-intro {
  width: 70px;
  -webkit-animation: 1s msg-indicator-intro
    cubic-bezier(0.68, -0.55, 0.265, 1.55);
  animation: 1s msg-indicator-intro cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.message-intro {
  -webkit-animation: 1s msg-indicator-intro
    ccubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: 1s message-intro-anim cubic-bezier(0.23, 1, 0.32, 1);
}

.bulge-before {
  -webkit-animation: 2s bulge-before infinite ease-in-out 1.3333s;
  animation: 2s bulge-before infinite ease-in-out 1.3333s;
}

.bulge-after {
  height: 5px;
  width: 5px;
  left: -15px;
  bottom: -23px;
  border-radius: 10px;
  -webkit-animation: 2s bulge-after infinite ease-in-out 0.6666s;
  animation: 2s bulge-after infinite ease-in-out 0.6666s;
}

.typing-indicator span {
  height: 7.5px;
  width: 7.5px;
  float: left;
  margin: 0 1px;
  filter: brightness(0.8);
  background-color: var(--primary);
  display: block;
  border-radius: 50%;
  opacity: 0.7;
}
.typing-indicator span:nth-of-type(1) {
  -webkit-animation: 1s blink infinite 0.3333s;
  animation: 1s blink infinite 0.3333s;
}
.typing-indicator span:nth-of-type(2) {
  -webkit-animation: 1s blink infinite 0.6666s;
  animation: 1s blink infinite 0.6666s;
}
.typing-indicator span:nth-of-type(3) {
  -webkit-animation: 1s blink infinite 0.9999s;
  animation: 1s blink infinite 0.9999s;
}

@-webkit-keyframes blink {
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes blink {
  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes bulge-parent {
  50% {
    transform: scale(1.05);
  }
}

@keyframes bulge-before {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(0.95);
  }
}
@keyframes bulge-after {
  0% {
    transform: scale(0.95);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(0.95);
  }
}

@keyframes msg-indicator-intro {
  0% {
    transform: scale(1) translate(-100px, 0px) rotate(-90deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) translate(0px, 0px) rotate(0deg);
    opacity: 1;
  }
}

@keyframes message-intro-anim {
  0% {
    transform: translate(-500%, 0px);
    opacity: 0;
  }
  100% {
    transform: translate(0px, 0px);
    opacity: 1;
  }
}

.selected-category {
  position: relative; /* Add position relative so the pseudo element will origin off this with position absolute */
  z-index: 10;
}

.deselected-category {
  position: relative; /* Add position relative so the pseudo element will origin off this with position absolute */
}

.selected-category:after {
  z-index: 10;
  content: "";
  position: absolute;

  background-color: transparent;
  bottom: 0px;
  right: -25px;
  height: 50px;
  width: 25px;
  border-bottom-left-radius: 25px;
  box-shadow: 0 25px 0 0 var(--secondary);
}

.selected-category:before {
  z-index: 10;
  content: "";
  position: absolute;

  background-color: transparent;
  bottom: 0px;
  left: -25px;
  height: 50px;
  width: 25px;
  border-bottom-right-radius: 25px;
  box-shadow: 0 25px 0 0 var(--secondary);
}

.deselected-category:before {
  transition-duration: 0.2s;
  content: "";
  position: absolute;

  background-color: transparent;
  bottom: 0px;
  left: -25px;
  height: 50px;
  width: 25px;
  border-bottom-right-radius: 25px;
  box-shadow: 0 25px 0 0 #00000000;
}

.deselected-category:after {
  transition-duration: 0.2s;
  content: "";
  position: absolute;

  background-color: transparent;
  bottom: 0px;
  right: -25px;
  height: 50px;
  width: 25px;
  border-bottom-left-radius: 25px;
  box-shadow: 0 25px 0 0 #00000000;
}

.deselected-category:hover:after {
  content: "";
  position: absolute;

  background-color: transparent;
  bottom: 0px;
  right: -25px;
  height: 50px;
  width: 25px;
  border-bottom-left-radius: 25px;
  box-shadow: 0 25px 0 0 #00000035;
}

.deselected-category:hover:before {
  content: "";
  position: absolute;

  background-color: transparent;
  bottom: 0px;
  left: -25px;
  height: 50px;
  width: 25px;
  border-bottom-right-radius: 25px;
  box-shadow: 0 25px 0 0 #00000035;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 1s ease-in-out both;
}
