/* =========================
   RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111111;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font-family: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}


/* =========================
   SALE BAR
========================= */

.sale-banner {
  width: 100%;
  background: #111111;
  color: #ffffff;

  padding: 20px 22px;
}

.sale-banner-inner {
  max-width: 1350px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 40px;
}

.sale-title {
  color: #ffd400;

  font-size: 25px;
  font-weight: 900;

  letter-spacing: 0.6px;
}

.timer {
  display: flex;
  align-items: center;

  gap: 10px;
}

.time-box {
  min-width: 48px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.time-box span {
  font-size: 28px;
  font-weight: 900;

  line-height: 1;
}

.time-box small {
  margin-top: 5px;

  font-size: 9px;
  font-weight: 700;

  opacity: 0.8;
}

.timer-colon {
  font-size: 25px;
  font-weight: 900;

  margin-top: -10px;
}

.sale-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #111111;

  padding: 14px 28px;

  border-radius: 999px;

  font-size: 13px;
  font-weight: 900;

  transition: 0.2s ease;
}

.sale-button:hover {
  transform: scale(1.04);
}


/* =========================
   HEADER
========================= */

.header {
  width: 100%;
  background: #ffffff;

  border-bottom: 1px solid #eeeeee;
}

.header-inner {
  max-width: 1350px;

  height: 95px;

  margin: 0 auto;

  padding: 0 30px;

  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;
}

.brand {
  grid-column: 2;

  justify-self: center;

  font-size: 28px;
  font-weight: 900;

  letter-spacing: -0.7px;
}

.cart-button {
  grid-column: 3;

  justify-self: end;

  border: 0;
  background: transparent;

  color: #111111;

  font-size: 16px;
  font-weight: 500;
}


/* =========================
   PRODUCTS
========================= */

.products-section {
  max-width: 1280px;

  margin: auto;

  padding: 55px 24px 80px;
}

.section-title {
  text-align: center;

  font-size: 32px;
  font-weight: 500;

  margin-bottom: 38px;
}

.product-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 36px 18px;
}


/* =========================
   PRODUCT CARD
========================= */

.product-card {
  min-width: 0;
}

.product-image-wrapper {
  position: relative;

  display: block;

  width: 100%;
  height: 230px;

  background: #f5f5f5;

  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;

  object-fit: contain;

  padding: 7px;

  transition: 0.25s;
}

.product-card:hover .product-image {
  transform: scale(1.02);
}

.sale-tag {
  position: absolute;

  top: 8px;
  left: 8px;

  z-index: 2;

  background: #111111;
  color: white;

  padding: 5px 9px;

  font-size: 9px;
  font-weight: 700;
}

.product-info {
  padding-top: 11px;

  text-align: center;
}

.product-name {
  display: block;

  font-size: 13px;

  margin-bottom: 7px;
}

.product-price-row {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 8px;

  margin-bottom: 12px;
}

.current-price {
  font-size: 13px;
  font-weight: 800;
}

.old-price {
  color: #888;

  font-size: 11px;

  text-decoration: line-through;
}


/* =========================
   PRODUCT BUTTONS
========================= */

.product-buttons {
  display: flex;

  gap: 8px;
}

.add-cart-button,
.buy-now-button {
  flex: 1;

  height: 42px;

  border-radius: 999px;

  font-size: 10px;
  font-weight: 800;
}

.add-cart-button {
  background: white;
  color: #111;

  border: 1.5px solid #111;
}

.add-cart-button:hover {
  background: #eeeeee;
}

.buy-now-button {
  background: #111;
  color: white;

  border: 1.5px solid #111;
}

.buy-now-button:hover {
  background: #292929;
}


/* =========================
   REVIEWS
========================= */

.reviews-section {
  background: #fafafa;

  border-top: 1px solid #eee;

  padding: 75px 20px 90px;
}

.reviews-container {
  max-width: 1150px;

  margin: auto;
}

.reviews-heading {
  text-align: center;

  margin-bottom: 38px;
}

.reviews-heading h2 {
  font-size: 31px;

  margin-bottom: 12px;
}

.reviews-summary {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  color: #666;

  font-size: 13px;
}

.review-stars,
.card-stars {
  color: #ffb000;
}

.reviews-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.review-card {
  background: white;

  border: 1px solid #e3e3e3;

  border-radius: 14px;

  padding: 20px;

  min-height: 145px;
}

.review-card-top {
  display: flex;

  justify-content: space-between;

  gap: 10px;

  margin-bottom: 13px;
}

.review-card-top strong {
  font-size: 13px;
}

.card-stars {
  font-size: 11px;

  letter-spacing: 1px;

  white-space: nowrap;
}

.review-card p {
  color: #444;

  font-size: 13px;

  line-height: 1.6;
}

.extra-review {
  display: none;
}

.reviews-grid.expanded .extra-review {
  display: block;
}

.read-more-reviews {
  display: block;

  min-width: 210px;
  height: 49px;

  margin: 30px auto 0;

  padding: 0 28px;

  border: 2px solid #111;

  border-radius: 999px;

  background: white;
  color: #111;

  font-size: 12px;
  font-weight: 900;
}

.read-more-reviews:hover {
  background: #111;
  color: white;
}


/* =========================
   FOOTER
========================= */

.footer {
  padding: 28px 16px;

  border-top: 1px solid #eee;

  text-align: center;

  color: #666;

  font-size: 11px;
}


/* =========================
   CART OVERLAY
========================= */

.cart-overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.42);

  opacity: 0;
  visibility: hidden;

  z-index: 999;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}


/* =========================
   CART DRAWER
========================= */

.cart-drawer {
  position: fixed;

  top: 0;
  right: -430px;

  width: 400px;
  max-width: 100%;

  height: 100vh;

  background: white;

  z-index: 1000;

  display: flex;
  flex-direction: column;

  transition: 0.28s;
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  padding: 21px;

  border-bottom: 1px solid #eee;
}

.close-cart {
  border: 0;

  background: transparent;

  font-size: 30px;
}

.cart-items {
  flex: 1;

  overflow-y: auto;

  padding: 18px 21px;
}

.empty-cart {
  text-align: center;

  margin-top: 40px;

  color: #777;
}

.cart-item {
  display: grid;

  grid-template-columns:
    70px 1fr;

  gap: 14px;

  padding: 14px 0;

  border-bottom: 1px solid #eee;
}

.cart-item img {
  width: 70px;
  height: 70px;

  object-fit: contain;

  background: #f5f5f5;
}

.cart-item-name {
  font-size: 12px;

  font-weight: 700;
}

.cart-item-bundle {
  color: #777;

  font-size: 10px;

  margin-top: 4px;
}

.cart-item-price {
  margin-top: 5px;

  font-size: 12px;
}

.quantity-controls {
  display: flex;

  align-items: center;

  gap: 9px;

  margin-top: 9px;
}

.quantity-controls button {
  width: 26px;
  height: 26px;

  border: 1px solid #ddd;

  border-radius: 50%;

  background: white;
}

.remove-item {
  margin-top: 9px;

  border: 0;

  background: transparent;

  color: #777;

  text-decoration: underline;

  font-size: 10px;
}

.cart-footer {
  padding: 20px;

  border-top: 1px solid #eee;
}

.cart-subtotal {
  display: flex;

  justify-content: space-between;

  margin-bottom: 15px;
}

.checkout-button {
  width: 100%;
  height: 49px;

  border: 0;

  border-radius: 999px;

  background: #111;
  color: white;

  font-weight: 900;
}


/* =========================
   TABLET
========================= */

@media (max-width: 1000px) {

  .product-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .reviews-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 650px) {

  /* BIGGER SALE BAR */

  .sale-banner {
    padding: 14px 8px;
  }

  .sale-banner-inner {
    justify-content: space-between;

    gap: 10px;
  }

  .sale-title {
    font-size: 14px;
  }

  .timer {
    gap: 3px;
  }

  .time-box {
    min-width: 27px;
  }

  .time-box span {
    font-size: 17px;
  }

  .time-box small {
    font-size: 6px;
  }

  .timer-colon {
    font-size: 15px;

    margin-top: -7px;
  }

  .sale-button {
    padding: 9px 13px;

    font-size: 8px;
  }


  /* BIGGER HEADER */

  .header-inner {
    height: 72px;

    padding: 0 14px;
  }

  .brand {
    font-size: 21px;
  }

  .cart-button {
    font-size: 12px;
  }


  /* PRODUCTS */

  .products-section {
    padding: 40px 9px 55px;
  }

  .section-title {
    font-size: 26px;

    margin-bottom: 27px;
  }

  .product-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 28px 8px;
  }

  .product-image-wrapper {
    height: 155px;
  }

  .product-name {
    font-size: 11px;
  }

  .current-price {
    font-size: 11px;
  }

  .old-price {
    font-size: 9px;
  }

  .product-buttons {
    gap: 5px;
  }

  .add-cart-button,
  .buy-now-button {
    height: 35px;

    font-size: 8px;
  }


  /* REVIEWS */

  .reviews-section {
    padding: 55px 12px 70px;
  }

  .reviews-heading h2 {
    font-size: 24px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .review-card {
    min-height: 0;

    padding: 16px;
  }


  /* CART */

  .cart-drawer {
    width: 100%;
  }

}