body {
  background-color: #fdfeff;
  font-family: Arial, sans-serif;
  color: black;
}

#page {
  width: 1000px;
  margin: auto; /*centers the page horizontally*/
  padding-top: 20px;
}

#header {
  width: 100%;
  display: flex; /*helps with horizontal layout*/
  justify-content: space-between; /*space between the logo area and the search/icons area*/
  margin-bottom: 30px;
}

#logoArea {
  width: 260px;
  height: 80px;
}

#logoImage {
  width: 260px;
  height: 80px;
}

#searchArea {
  width: 430px;
  display: flex;
  align-items: center;
  margin-top: 25px;
}

#searchArea input {
  width: 340px;
  height: 34px;
  border: 1px solid #888888;
  background-color: white;
  padding-left: 10px;
  font-size: 16px;
  font-style: italic;
  color: gray;
  box-sizing: border-box;
}

#searchButton {
  width: 34px;
  height: 34px;
  border: 1px solid black;
  background-color: black;
  margin-left: -1px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

#searchIcon {
  width: 20px;
  height: 20px;
}

#topIcons {
  display: flex;
  align-items: center;
  margin-top: 23px;
  gap: 8px;
}

.topIcon.profileIcon {
  width: 22px;
  height: 22px;
}

.topIcon.heartIcon {
  width: 25px;
  height: 22px;
}

.profileWrapper {
  position: relative;
  align-items: center;
}

.profileHoverText {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  font-size: 12px;
  padding: 5px 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  white-space: nowrap;

}

.profileWrapper:hover .profileHoverText {
  opacity: 1;
  visibility: visible;
}

#cartIconWrapper {
  position: relative;
  width: 31px;
  height: 47px;
  margin-left: 4px;
  margin-right: 2px;
}

/*the three cart icons are stacked on top of each other, and only one is visible at a time, depending on the number of items in the cart*/
.cartIcon { 
  position: absolute;
  display: none;
}

.activeCart {
  display: block;
}

#cartIconOne {
  width: 31px;
  height: 24px;
  top: 12px;
  left: 0;
}

#cartIconTwo {
  width: 31px;
  height: 24px;
  top: 12px;
  left: 0;
}

#cartIconThree {
  width: 31px;
  height: 28px;
  top: 12px;
  left: 0;
}

#cartCount {
  align-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background-color: rgb(200, 8, 8);
  color: white;
  font-size: 14px;
  font-weight: normal;
  line-height: 1;
  border-radius: 999px;
  box-sizing: border-box; /*padding is included in the total width of the element, preventing it from expanding beyond the intended size*/
  margin-right: 8px;
}

.iconNumber {
  font-size: 16px;
  line-height: 1;
}

#navBar {
  text-align: center;
  font-size: 14px;
  margin-top: 40px;
  margin-bottom: 55px;
}

#navBar span {
  margin-left: 18px;
  margin-right: 18px;
}

#navBar span:first-child {
  font-weight: 800;
}

#breadcrumbs {
  color: gray;
  font-size: 16px;
  margin-bottom: 20px;
  margin-left: 30px;
}

#thumbnailColumn {
  float: left;
  width: 80px;
  margin-left: 30px;
}

.sideThumb {
  width: 60px;
  height: 80px;
  display: block;
  margin-bottom: 18px;
  object-fit: cover; /*image fills the thumbnail area without distortion*/
  background-color: black;
  cursor: pointer;
}

#mainImageColumn {
  float: left;
  width: 360px;
  margin-left: 0;
}

#mainImage {
  width: 390px;
  height: 500px;
  object-fit: cover;
  background-color: black;
  margin-bottom: 60px;
}

#detailsColumn {
  float: left;
  width: 360px;
  margin-left: 30px;
}

#itemName {
  float: left;
  font-size: 28px;
  margin-top: 10px;
  margin-bottom: 8px;
  margin-left: 40px;
}

.shareWrapper {
  position: relative; /*allows the hover text to be positioned relative to this wrapper*/
  float: left;
  width: 23px;
  height: 22px;
  margin-top: 15px;
  margin-left: 40px;
  cursor: pointer;
}

.shareIcon {
  width: 23px;
  height: 22px;
  display: block; /*ensures the share icon fills the wrapper and is clickable across the entire area*/
}

.shareHoverText {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  font-size: 12px;
  padding: 5px 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10; /*the hover text appears above other elements and doesn't interfere, like a third dimension */
}

.shareWrapper:hover .shareHoverText {
  opacity: 1;
  visibility: visible;
}

.likeIcon {
  width: 26px;
  height: 22px;
  margin-top: 15px;
  margin-left: 15px;
  cursor: pointer;
}

#sellerText {
  clear: both;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 10px;
  margin-left: 40px;
}

#price {
  font-size: 30px;
  color: #ae1212;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 25px;
  margin-left: 40px;
}

#detailsColumn h3 {
  font-size: 16px;
  font-weight: normal;
  margin-top: 25px;
  margin-bottom: 15px;
  margin-left: 40px;
}

#colorGrid {
  width: 280px;
  margin-left: 40px;
}

.colorThumb,
.colorBox {
  width: 42px;
  height: 42px;
  margin-right: 8px;
  margin-bottom: 10px;
  vertical-align: top;
  background-color: black;
}

.colorThumb {
  object-fit: cover;
  cursor: pointer;
}

#sizeRow {
  margin-left: 35px;
}

#sizeRow button {
  border: 1px solid gray;
  background-color: #eeeeee;
  border-radius: 20px;
  padding: 5px 10px;
  margin-right: 2px;
  margin-bottom: 8px;
  margin-left: 4px;
  font-size: 14px;
  cursor: pointer;
}

#descriptionSection {
  clear: both; /*ensures this section starts below the floated columns above*/ 
  width: 760px;
  margin-left: 70px;
  margin-top: 50px;
}

#descriptionSection h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

#infoBox {
  font-size: 16px;
  line-height: 1.35;
  width: 100%;
}
 
#hazardSection { /*initially hidden, only shown if the item is hazardous*/
  display: none;
  text-align: center;
  margin-top: 30px;
}

#warningTitle {
  color: #ff0000;
  font-size: 18px;
  margin-bottom: 18px;
}

.hazardIcon {
  width: 70px;
  height: 70px;
  margin-left: 10px;
  margin-right: 10px;
}

#warningText {
  display: inline-block;
  color: #e21a1a;
  font-size: 18px;
  border-top: 2px solid #e21a1a;
  border-bottom: 2px solid #e21a1a;
  padding: 8px 14px;
  margin-top: 18px;
}

#buttonArea {
  text-align: center;
  margin-top: 35px;
  margin-bottom: 60px;
}

#cartButton {
  background-color: black;
  color: white;
  border: none;
  padding: 16px 28px;
  font-size: 16px;
  cursor: pointer;
}

#footer {
  background-color: #dddddd;
  width: 100%;
  overflow: hidden; /*clears the floats inside the footer, ensuring it expands to contain its floated children*/
  padding-top: 25px;
  padding-bottom: 25px;
}

.footerColumn {
  float: left;
  width: 28%;
  margin-left: 5%;
}

.footerColumn h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.footerColumn p {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 14px;
}

.footerIcon {
  width: 42px;
  height: 42px;
  margin-right: 10px;
  margin-top: 8px;
}

#copyright {
  text-align: center;
  font-size: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
  background-color: white;
}