.card {
    display: inline-block;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    max-width: 300px;
    /*min-width: 300px;*/
    margin: 20px;
    text-align: center;
    font-family: arial;
    border: 1px solid black;
    position: relative;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.25s ease-in-out;
    height: 400px;
    border-radius: 4px;
  }

  .card:hover {
    transform: scale(1.1);
    height: auto;
    max-height: 1000px;
    white-space: normal;

  }
  
  .price {
    color: grey;
    font-size: 22px;
  }
  
  .card-button {
    border: none;
    outline: 0;
    padding: 10px;
    /*color: white;*/
    /*background-color: #000;*/
    background-color: #6B6B6B;
    color: whitesmoke;
    text-align: center;
    cursor: pointer;
    width: 175px;
    font-size: 18px;
    bottom: 0;
    margin: 10px;
    border-radius: 12px;
  }
  
  .card button:hover {
    opacity: 0.7;
  }

  .card-view-kit {
    border: none;
    outline: 0;
    padding: 10px;
    /*color: white;*/
    /*background-color: #000;*/
    background-color: #6B6B6B;
    color: whitesmoke;
    text-align: center;
    cursor: pointer;
    width: 175px;
    font-size: 18px;
    bottom: 0;
    border-radius: 12px;
    margin-left: 75px;
    margin-bottom: 10px;
  }

  .card-view-kit:hover {
    opacity: 0.7;
  }

  .configure-button {
    border: none;
    outline: 0;
    padding: 10px;
    color: whitesmoke;
    background-color: #6B6B6B;
    text-align: center;
    cursor: pointer;
    width: 125px;
    font-size: 14px;
    bottom: 0;
    margin: 5px;
    border-radius: 12px;
  }

  .configure-button:hover {
    opacity: 0.7;
  }

  .center {
    margin: auto;
    width: 100%;
    border: 1px solid green;
    padding: 10px;
  }

  .center-button {
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
  }

.product-image {
    max-width: 190px;
    max-height: 190px;
    margin-bottom:10px;
    text-align:center;
    margin:auto;
}

.limit-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 5px;
    font-size: 14px;
}

.overflow {
    margin: 0
}

.image-size {
  width: 300px;
  height: 200px;
  display: flex;
  justify-content: center;
}

input[type=number] {
  padding: 0;
  height: 40px;
  width: 50px;
  position: relative;
  left: 0;
  outline: none;
  border: 1px solid #cdcdcd;
  border-color: rgba(0, 0, 0, .15);
  background-color: white;
  border-radius: 8px;
  font-size: 16px;
  margin: 10px;
}

#search-input-home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  width: 50vw;
  max-width: 900px;
  border-radius: 8px;
  background-color: var(--portalThemeColor7);
  color: var(--portalThemeOnColor7);
  font-size: 18px;
  /*border: none;*/
  border: 1px solid black;
  box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.1),
    0px 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding-left: 60px;
}

#search-input-home::placeholder {
  color: var(--portalThemeOnColor7) !important;
}

.searchContainer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 64px;
  margin-left: auto;
  margin-right: auto;
}

#searchIcon {
  position: absolute !important;
  width: 28px;
  height: 28px;
  margin-left: 20px;
}

.search-categories-container {
  display: flex;
  background-color: #fff;
  margin: 0 15%;
  padding: 72px 0;
  gap: 64px;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

#cat-search-input-home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 30vw;
  border-radius: 8px;
  background-color: var(--portalThemeColor7);
  color: var(--portalThemeOnColor7);
  font-size: 18px;
  border: 1px solid black;
  box-shadow: 0px 0.3px 0.9px rgba(0, 0, 0, 0.1),
    0px 1.6px 3.6px rgba(0, 0, 0, 0.13);
  padding-left: 60px;
}

#cat-search-input-home::placeholder {
  color: var(--portalThemeOnColor7);
}

#cat-searchIcon {
  position: absolute !important;
  width: 28px;
  height: 28px;
  margin-left: 1%;
}

.cat-searchContainer {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 10%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 900px) {
  #cat-search-input-home {
    width: 100%;
    padding-left: 40px;
    font-size: 14px;
  }
  .cat-searchContainer {
    width: 100%;
    margin: 0 5%;
    padding: 0;
  }
}

/* Center the loader */
#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 120px;
  height: 120px;
  margin: -76px 0 0 -76px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from { bottom:-100px; opacity:0 } 
  to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
  from{ bottom:-100px; opacity:0 } 
  to{ bottom:0; opacity:1 }
}

#myDiv {
  display: none;
  text-align: center;
}

.overlay {
    background-color:#EFEFEF;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1000;
    top: 0px;
    left: 0px;
    opacity: .5; /* in FireFox */ 
    filter: alpha(opacity=50); /* in IE */
}
.body-cart {
  font-family: Arial, sans-serif;
}

.shopping-cart {
  width: 50%;
  margin: 0 auto;
  /*border: 1px solid #ddd;*/
  padding: 20px;
  border-radius:4px;
}

.shopping-cart h2 {
  text-align: center;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table, th, td {
  border: 1px solid black;
}

th, td {
  padding: 10px;
  text-align: center;
  width: 30%;
}

th {
  background-color: #f2f2f2;
}

.td-description {
  white-space: nowrap;
  overflow: hidden;
  max-width: 175px;
  text-overflow: ellipsis;
}

.minus-btn, .plus-btn {
  background-color: #f2f2f2;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.minus-btn:hover, .plus-btn:hover {
  background-color: #ddd;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.delete-btn {
  background-color: inherit;
  /*background: url("/Cart/binBold.png") no-repeat;*/
  border: none;
  /*appearance: none;*/
  padding: 5px 10px;
  cursor: pointer;
  margin: 5px;
  transition: transform .7s ease-in-out;
}

.delete-btn:hover {
  background-color: inherit;
  /*background: url("/Cart/bin_Standard.png") no-repeat;*/
}

.update-btn {
  background-color: inherit;
  border: none;
  appearance: none;
  padding: 5px 10px;
  cursor: pointer;
  margin: 5px;
  transition: transform .7s ease-in-out;
}

.update-btn:hover {
  transform: rotate(360deg);
}

.submit-order {
  background-color: #24b322;
  color: white;
  padding: 10px 20px;
  margin: 20px auto;
  display: block;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 12px;
  float: right;
}

.submit-order:hover {
  background-color: #1f961d;
}

.card-payment {
  background-color: #b32229;
  color: white;
  padding: 10px 20px;
  margin: 20px auto;
  display: block;
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 12px;
  float: right;
}

.card-payment:hover {
  background-color: #a51f1f;
}

.quantity-input {
  width: 50px;
  text-align: center;
  margin: 0 5px;
  padding: 5px;
}

/* Center the loader */
#loader {
position: absolute;
left: 50%;
top: 50%;
z-index: 1;
width: 120px;
height: 120px;
margin: -76px 0 0 -76px;
border: 16px solid #f3f3f3;
border-radius: 50%;
border-top: 16px solid #3498db;
-webkit-animation: spin 2s linear infinite;
animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
0% { -webkit-transform: rotate(0deg); }
100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* Add animation to "page content" */
.animate-bottom {
position: relative;
-webkit-animation-name: animatebottom;
-webkit-animation-duration: 1s;
animation-name: animatebottom;
animation-duration: 1s
}

@-webkit-keyframes animatebottom {
from { bottom:-100px; opacity:0 } 
to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
from{ bottom:-100px; opacity:0 } 
to{ bottom:0; opacity:1 }
}

#myDiv {
display: none;
text-align: center;
}

.overlay {
  background-color:#EFEFEF;
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 1000;
  top: 0px;
  left: 0px;
  opacity: .5; /* in FireFox */ 
  filter: alpha(opacity=50); /* in IE */
}

.continue-button {
  background-color: #CB725D;
  color: white;
  padding: 10px 20px;
  margin: 0; /* REMOVE auto margins */
  display: inline-block; /* OR remove this line because buttons are inline by default */
  border: none;
  cursor: pointer;
  font-size: 18px;
  border-radius: 12px;
}

.continue-button:hover {
  background-color: #6B6B6B;
}

/*select {
/* A reset of styles, including removing the default dropdown arrow
appearance: none;
background-color: transparent;
border: 1px solid black;
border-radius: 4px;
padding: 0 1em 0 0;
margin: auto;
width: 100%;
font-family: inherit;
font-size: inherit;
cursor: inherit;
line-height: inherit;
height: 30px;
float: right;
min-width: 15ch;
max-width: 30ch;
}*/

.ship-to {
appearance: none;
background-color: transparent;
border: 1px solid black;
border-radius: 4px;
padding: 0 1em 0 0;
margin: auto;
width: 100%;
font-family: inherit;
font-size: inherit;
cursor: inherit;
line-height: inherit;
height: 30px;
float: right;
min-width: 15ch;
max-width: 30ch;
}

.product-container {
  display: flex;
  flex-direction: column;
}

.continue-button-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px; /* Space between buttons */
  margin-top: 20px;
  width: fit-content;
  margin-bottom: 20px;
}


.card-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid, min 300px per card */
  /*gap: 16px;*/
  grid-template-columns: repeat(3, 1fr);
}

.product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
