/*region for screen reader announcements*/
.sr-only {
  height: 1px;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}


/*Galery card add to crt button  (appended)*/
.add-to-cart{
  border: 0px;
  max-width: fit-content;
}

.add-to-cart button:hover{
  background-color: #BDD4DA;
}


button:focus, .close:focus {
  outline: 2px solid #00231C;
  outline-offset: 2px;
}
/*Cart view/ summary */
#cart-title{
  color: #00231C;
  margin: 1px;
  padding: 1px;
}

#cart-total{
  align-content: center;
  color: #00231C;
  display: block;
  font-weight: bold;
  margin: 1px;
}

#modal-product-image{
  aspect-ratio: 4 / 5;
  display: block;
  height: 100%;
  margin: 0 auto;
  object-fit: cover;
  width: 100%;
}

#modal-view-container{
  background-color: var(--brand-blonde);
  border: solid 2px #000;
  border-radius: 5px;
  display: block;
  margin-left: 2px;
  margin-right: 2px;
  max-width: 100%;
  overflow: auto;
  padding: 2px;
  padding-left: 5px;
  padding-right: 5px;
  width: 100%;
  min-height: 20vh;
}




/*Modal/ hidden */

.cart-price-container{
  align-items: center;
  display: flex;
  justify-content: space-around;
}

.cart-view-modal{
  border: solid 2px #000;
  border-radius: 15px;
  display: block;
  margin-left: 2px;
  margin-right: 2px;
  max-width: 100%;
  overflow: auto;
  padding: 2px;
  padding-left: 5px;
  padding-right: 5px;
  width:100%;
}

.clear-cart{
  background-color:#BDD4DA;
  border-radius: 10px;
  box-shadow: 2px #96BAA0;
  color: #00231C;
  font-weight: bold;
  margin: 2px 1px;
  padding: 1px 2px 1px 2px;
}

.close {
  color: #00231C;
  cursor: pointer;
  font-size: 2.3rem;
  padding: 1px;
  position: absolute;
  right: 10px;
  top: 10px;
}


.modal {
  align-items: center;
  background: #392d3394;
  cursor: pointer;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 0.2s ease;
  z-index: 9999;
}

.hidden {
  display: none !important;
}
.modal p{
  line-height: 1.3;
  max-width: 100%;
}

.modal-add-to-cart{
  margin: 10px;
}

.modal-content {
  align-items: center ;
  animation: fadeIn 0.2s ease-in-out;
  background: var(--bg-surface);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: default;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-height:70vh;
  max-width: 520px;
  min-width: 240px;
  min-height: 40vh;
  outline: none;
  padding: 10px;
  position: relative;
  text-align: center;
  width: 70vw;
}

.modal-image-wrapper {
  max-width: 100%;
  overflow: hidden;
  width: 100%;
}
#modal-title{
  align-self: center;
}

.modal-price{
  color: var(--brand-green);
  font-weight: bold;
}

.modal-thumb {
  cursor: pointer;
  width: 15%;
}

.modal-thumbnails {
  display: flex;
  flex-direction: row;
  float: left;
  gap: 10px;
  margin-top: 10px;
}

.modal-variants {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
}

#open-cart{
  color: white;
  background-color: #C94C86;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  border: none;
  margin: 10px;
  padding: 6px 12px;
}
#open-cart:hover{
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.18);
}
.order-now{
  background-color: #BDD4DA;
  border-radius: 10px;
  box-shadow: 2px #96BAA0;
  font-weight: bold;
  margin: 2px 1px;
  padding: 1px 3px 1px 3px;
}

.order-now:hover{
  background-color: #96BAA0;
  color:  #00231C;
}

.product-modal-content{
  align-content: center;
  align-items: center;
  display: grid;
  grid-template-columns: auto ;
  height:100%;
  justify-content: center;
  max-width: 100%;
}


/*Focus states*/

#users-card{
  align-items: center;
  background-color: #F6EFEA;
  border: #2B2B2B 2px solid;
  border-radius: 14px;
  display: flex;
  grid-column: 2;
  gap: 10px;
  justify-content: space-between;
  margin: 3px;
  margin-bottom: 20px;
  max-width: fit-content;
  padding: 2px;
}