@font-face {
  font-family: 'Aurebesh';
  src: url('https://raw.githubusercontent.com/Lominub44/Aurebesh/main/Aurebesh.ttf') format('truetype');
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: #222;
}

.section-title {
  margin: 20px;
  text-align: center;
}

section {
  display: flex;
  gap: 1rem;
}

button {
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

.button-div-center {
  text-align: center;
}

.button-div-right {
  text-align: right;
  margin-right: 0.5rem;
}

button:hover {
  background: #276628;
}

.back-button {
  margin: 0.5rem;
}

.sortDropdown {
  position: absolute;
  left: 240px;
  z-index: 10;
}



.category-sideview {
  position: sticky;
  top: 0;
  align-self: flex-start;
  width: 220px;
  min-width: 180px;
  height: 100vh;
  padding: 1rem;
  border-right: 1px solid #eee;
  background: #fafafa;
  overflow: auto;
}

.category-sideview ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-sideview li + li {
  margin-top: 0.5rem;
}

.category-link {
  display: block;
  padding: 0.5rem 0.25rem;
  color: #222;
  text-decoration: none;
}

.category-link:hover {
  text-decoration: underline;
}

/* product-list */
.productsFlexContainer {
  flex: 1;
  padding: 1rem 1rem 2rem;
  margin-top: 1rem;
  position: relative;
}


.listGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* product cards grow untill 1/3 width, so "there would be space for 3" */
.productCard {
  flex: 1 1 280px;
  max-width: calc(33.333% - 1rem);
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 0.75rem;
}

.productCard:hover {
  background-color: #d8d8d8;
}

/* card content */
.productImg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.productName {
  margin: 0.5rem 0 0.25rem; font-size: 1rem;
}

.price {
  margin: 0.5rem 0; 
  font-weight: 600;
}

/* status */
.discount {
  margin: 0.25rem 0;
  color: #b00020; 
  font-weight: 600;
  display: inline-block;
}
.available {
  margin: 0.25rem 0;
  color: #2e7d32;
  font-weight: 600;
}
.outOfStock {
  margin: 0.25rem 0;
  color: #6b7280;
}


/* responsiveness */
@media (max-width: 900px) {
  section {
    flex-direction: column;
  }
  .category-sideview {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .productCard {
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 520px) {
  .productCard {
    max-width: 100%;
  }
}





/* product details */
.headProductContainer_D {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  margin-right: 10rem;
  text-align: right;
}

.productImg_D {
  margin-left: 0.5rem;
  margin-right: 20px;
  max-width: calc(30% - 1rem);
}

.productInfo_D {
  flex: 1;
}

.descriptionProductContainer_D {
  margin-left: 20px;
  margin-right: 30px;
}

.discount_D {
  margin: 0.25rem 0; 
  color: #b00020; 
  font-weight: 600;
}
.available_D {
  margin: 0.25rem 0; 
  color: #2e7d32; 
  font-weight: 600;
}
.outOfStock_D {
  margin: 0.25rem 0; 
  color: #6b7280;
}

.shopping-cart-button_D {
  margin-top: 0.5rem;
  margin: 0.25rem 0;
}

@media (max-width: 900px) {
  .headProductContainer_D {
    margin-right: 2rem;
  }
  .descriptionProductContainer_D {
    margin-left: 10px;
    margin-right: 10px;
  }
  .productImg_D {
    max-width: 40%;
  }
}

@media (max-width: 600px) {
  .headProductContainer_D {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 0;
  }
  .productImg_D {
    margin-right: 0;
    margin-bottom: 15px;
    max-width: 80%;
  }
  .descriptionProductContainer_D {
    margin-left: 0;
    margin-right: 0;
  }
}


/* Shopping-cart */

.sc-checkout-button {
  margin-bottom: 1.5vh;
}

.sc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.sc-item:hover {
  background-color: #d8d8d8;
}

.sc-image {
  width: 50px;
  height: auto;
  border-radius: 4px;
  margin-right: 1rem;
}

.sc-name {
  flex: 1;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.sc-price,
.sc-available,
.sc-outOfStock {
  text-align: right;
  font-size: 0.9rem;
}

.sc-original-price {
  text-decoration: line-through;
  color: #6b7280;
  margin-right: 0.5rem;
}

.sc-discount {
  color: #b00020;
  font-weight: 600;
}

.sc-available {
  color: #2e7d32;
}

.sc-outOfStock {
  color: #6b7280;
}

.sc-quantity {
  width: 50px;
  margin-top: 0.5rem;
  padding: 0.25rem;
  border-radius: 4px;
}

.sc-plus {
  color: black;
  margin-left: 0px;
  margin-right: 20px;
}

.sc-minus {
  color: black;
  margin-left: 20px;
  margin-right: 5px;
}

.boring-container {
  margin-left: 50px;
}

#invis-btn {
  background:none;
  border:none;
  padding:0;
  font:inherit;
  color:inherit;
}

#invis-btn {
  position: absolute;
  margin-left: 5px;
}

.center-of-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  margin: 0;
  text-align: center;
}




/* hero styling */
.hero-div {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(60%);
  z-index: -1;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10rem;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); 
  text-align: center;
  padding: 0 20px;
  margin: 0;
}

.hero-btn {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10rem;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 0 20px;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-text {
    font-size: 5rem;
  }
}


/* form styling stolen from adress-book */
input {
  margin: 10px;
}

input[type="date"]:hover {
  cursor: text;
}

label {
  margin-top: 10px;
}

form {
  border: 2px solid #333333;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}