@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/7.0.1/css/all.min.css');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  text-decoration: none;
  list-style: none;
  color: inherit;
}

body {
  background-color: rgba(0, 0, 0, .05);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/*================== Common Styles ==================*/
/* Buttons */
.btn {
  display: inline-block;
  padding: .5rem 1rem;
  margin-top: 1rem;
  background-color: black;
  color: white;
  border: 2px solid black;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: white;
  color: black;
}

/* logo */
.shop-logo {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 1.6rem;
  border-radius: 5px;
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, .15);
}

/* form */
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem;
  padding: 2rem;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}

form h1 {
  text-align: center;
  font-size: 2rem;
}

form a {
  text-decoration: underline;
}

/* input */
input {
  padding: .5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* input group */
.input-group {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

/*================== Header ==================*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: white;
}

.logo img {
  width: 6rem;
  height: 2rem;
}

/*================== Main ==================*/
/* --- Hero Section --- */
#hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: lightblue;
  color: black;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

#hero .content {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  max-width: 50%;
}

#hero h2 {
  color: white;
  font-size: 1rem;
}

#hero p {
  font-size: .8rem;
}

#hero img {
  width: 40%;
}

/* --- Product Section --- */
#products-container h2 {
  text-align: center;
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 2rem 0 1rem 0;
}

/* Product Container */
.product-container {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.product-container h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.carousel-container {
  background-color: white;
  padding: .5rem;
  overflow: hidden;
}

/* Product List */
.product-list {
  display: flex;
  gap: 1rem;
  padding: .5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.product-list::-webkit-scrollbar {
  display: none;
}

.product-list .card {
  flex-shrink: 0;
  width: 40%;
}

/* Card */
.card {
  display: flex;
  flex-direction: column;
  background: white;
  color: black;
  aspect-ratio: 1/1.2;
  padding: .5rem;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}

.description {
  margin: 1rem 0;
}

.description h4 {
  font-size: .8rem;
  margin-bottom: .3rem;
  font-weight: 400;
}

.description .name {
  font-size: .9rem;
  font-weight: 600;
}

img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
  border-radius: 12px;
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.05);
}

/*=================== Product ==================*/
#productItems {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: white;
  color: black;
  border-radius: 4px;
  gap: .5rem;
  margin: 2rem;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .3);
}

#productBrand {
  font-size: .8rem;
  color: grey;
  text-transform: uppercase;
}

#productName {
  font-size: 1.25rem;
  font-weight: 600;
}

#productDescription {
  font-size: 1rem;
  color: #222222;
}

#productPrice {
  font-size: .7rem;
  font-style: italic;
  margin-top: 1rem;
}

#productPrice span {
  color: red;
  font-weight: 600;
}

#affiliateBtn {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

#affiliateBtn button {
  background-color: black;
  color: white;
  width: 100%;
  padding: .5rem 5rem;
  border: 2px solid black;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

#affiliateBtn button:hover {
  background-color: white;
  color: black;
}

/*================== Footer ==================*/
.footer{
  font-size: .6rem;
  color: grey;
  text-align: center;
  padding: .5rem;
  background-color: white;
}