:root {
  --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  --dark: #0a1f44
}


* {
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/*
body{
 width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  align-items:flex-start;
  flex-flow:row wrap;
  background-color: white;
}
*/

#fullPhotoBox {
  width: 98%;
  height: 0%;
  margin: 0px;
  padding: 0px;
  position: absolute;
  left: 1%;
  top: 80px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-flow: row wrap;
  border-style: solid;
  border-radius: 11px;
  border-width: 0px;
  background-color: rgb(255, 255, 255);
  box-sizing: border-box;
  overflow: hidden;
}

#fullPhotoCloseBox {
  width: 100%;
  height: 30px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0px;
  padding: 0px;
  padding-right: 11px;
  box-sizing: border-box;
}

#fullPhotoCloseIcon {
  min-width: 80px;
  height: 30px;
  font-size: 16px;
  font-weight: 600;
  color: grey;
  margin: 0px;
  padding: 0px;
  border-style: solid;
  border-width: 0px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

#fullPhotoCloseIcon:active {
  box-shadow: 2px 2px 10px grey;
}

#fullPhoto {
  max-width: 90%;
  max-height: calc(90% - 30px);
}

#mainContent {
  padding: 11px;
  width: 100%;
  min-height: calc(100% - 80px);
  display: flex;
  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 31px;
  box-sizing: border-box;
}

#mainContentTitle {
  width: 98%;
  padding: 11px;
  min-height: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.adBox {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-flow: row wrap;
  height: 360px;
  width: 100%;
  text-decoration: none;
  color: grey;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  border-style: solid;
  background-color: white;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0px;
}



.previewProduct {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-flow: row wrap;
  height: 360px;
  width: 100%;
  text-decoration: none;
  color: grey;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  background-color: white;
  border-style: solid;
  cursor: pointer;
  box-sizing: border-box;
  margin: 0px;
}

main {
  width: 100%;
  min-height: 80px;
  padding: 0px;
  margin: 0px;
  box-sizing: border-box;
}

/*
@media screen and (max-width:767px){
.previewProduct{
  width:100%;
  min-height:360px;
}

}
*/

@media screen and (min-width:768px) {

  .previewProduct,
  .adBox {
    min-width: 380px;
    max-width: 380px;
    height: 320px;
  }
}


.previewProduct img {
  width: auto;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px
}

.previewProductPhotoBox,
.adPhoto {
  max-width: 220px;
  height: 160px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0px;
  border-style: solid;
  border-radius: 0px;
  border-width: 0px;
  background-color: red;
}

.previewProductPhotoLoading {
  width: 64px;
  height: 64px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 64px 64px;
  margin: 0px;
  padding: 0px;
  border-radius: 1000px;
  border-style: solid;
  border-width: 0px;
  animation: previewProductPhotoLoading 1s linear infinite;
}

@keyframes previewProductPhotoLoading {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.previewProductTitle,
.adTitle {
  width: 100%;
  min-height: 20px;
  max-height: 40px;
  margin: 0px;
  padding: 0px;
  overflow-wrap: break-word;
  color: grey;
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}

.previewProductDescription {
  overflow-wrap: break-word;
  color: grey;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  display: none;
}


.previewProductPrice {
  width: 100%;
  min-height: 30px;
  margin: 0px;
  padding: 5px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-flow: row wrap;
  color: grey;
}

.priceField {
  min-width: 80px;
  overflow-wrap: break-word;
  background-position: center center;
  background-size: 32px 32px;
  background-repeat: no-repeat;

}

.previewProductPrice>span[class=label] {
  color: darkblue;
}

.previewProductPrice>span[class=field] {
  color: darkblue;
}



.previewProductShopIcon {
  width: 48%;
  min-height: 30px;
  margin: 0px;
  padding: 5px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  color: darkblue;
  overflow-wrap: break-word;
}




#byCategory {
  display: flex;
  flex-wrap: wrap;
  /*
  flex-flow:row wrap;
  justify-content:flex-start;
  align-content:flex-start;*/
  gap: 0px;
  width: 100%;
  height: 80px;
  color: black;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 5px;
  border-radius: 0px;
  border-width: 0px;
  background-color: transparent;
  border-style: solid;
  overflow-y: hidden;
}


.byCategory {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-flow: row;
  min-width: 100px;
  max-width: 135px;
  min-height: 40px;
  max-height: 50px;
  text-decoration: none;
  color: grey;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 14px;
  border-radius: 12px;
  border-width: 0px;
  background-color: white;
  border-style: solid;
}

#byCategoryTitle {
  padding: 11px;
  padding-left: 5px;
  min-width: 80px;
  font-size: 1.3em;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
  color: black;
  min-height: 30px;
  max-height: 40px;
  border-style: solid;
  border-radius: 5px;
  border-width: 0px;
  background-color: white;
  cursor: pointer;
  overflow-wrap: break-word;
}


.byCategoryTitle {
  font-size: 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: grey;
  width: 98%;
  min-height: 30px;
  text-decoration: none;
}





.prevewProductDetail {

  min-width: 320px;
  min-height: 320px;

}


.product {
  background: #fff;
  border-radius: 0px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 800px;
  width: 100%;
  height: 80%;
  max-height: 90%;
  overflow-y: auto;
  padding: 11px;
  box-sizing: border-box;
  border-style: solid;
  border-radius: 11px;
  border-width: 0px;
  background-color: transparent;
}

.productHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: darkblue;
  background: linear-gradient(90deg, var(--dark), #12314a);
  color: white;
  padding: 20px;
  border-style: solid;
  border-width: 0px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.productHeader img {
  min-width: auto;
  height: 160px;
  aspect-ratio: 1/1;
  border-radius: 10px;
  object-fit: contain;
  object-position: center center;
  margin-right: 20px;
}

.productInfo h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
}

/* Pestañas */
.tabs {
  display: flex;
  border-bottom: 2px solid #ddd;
  background-color: #fafafa;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.tab:hover {
  background-color: #e3f2fd;
}

.tab.active {
  color: white;
  border-bottom: 3px solid #1565c0;
  background: linear-gradient(90deg, var(--dark), #12314a);
}

/* Contenido de pestañas */
.tabContent {
  display: none;
  padding: 20px;
  line-height: 1.6;
  animation: fadeIn 0.3s ease;
}

.tabContent.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

ul {
  list-style: disc;
  margin-left: 20px;
}

.buy {
  display: inline-block;
  background-color: #1e88e5;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.buy:hover {
  background-color: #1565c0;
}

.shareProductBox {
  width: 98%;
  height: 40px;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  cursor: pointer;
  color: darkblue;
  overflow-wrap: break-word;
}

.shareProductIcon {
  width: 24px;
  height: 24px;
  border-style: solid;
  border-radius: 100px;
  border-width: 0px;
  background-position: center center;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  margin: 0px;
  padding: 0px;
  background-color: transparent;
  cursor: pointer;
}