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

:root {
  --color-white: #fff;
  --color-product: #f5f5f5;
  --color-background: #1d1d1f;
  --color-text-color: #e2e2e2;
  --color-btn-color: #fe6d2c;
  --color-btn-hover: #fe7c41;
}
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-white);
  color: black;
  position: relative;
  /* overflow: hidden; */
  /* z-index: -1; */
}
.page--active {
  display: block;
}
li {
  list-style: none;
  font-size: 1.6rem;
  font-family: "Fraunces", serif;
}
a {
  text-decoration: none;
  color: black;
}
h1 {
  font-family: "Fraunces", serif;
}
h3 {
  font-size: 3.2rem;
}
p {
  font-size: 1.4rem;
  /* font-family: "Fraunces", serif; */
  font-family: "Sora", sans-serif;
}
h3 {
  font-family: "Sora", sans-serif;
}
input:focus {
  outline: none;
}
.container {
  max-width: 1400px;
  width: 100%;
  padding: 8rem;
  margin: auto;
}
.hidden {
  visibility: hidden;
}
.custom-grid-3 {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); */
  grid-template-columns: repeat(3, 25%);
  justify-content: center;
  gap: 2rem;
  row-gap: 3rem;
}
.custom-grid-3 h2 {
  grid-column: 1/-1;
  font-size: 2.4rem;
}
.custom-flex {
  display: flex;
  align-items: center;
}
.no-scroll {
  overflow: hidden;
  /* height:100vh; */
}
.custom-alert {
  position: fixed;
  top: 14%;
  background: white;
  padding: 0.8rem 2rem;
  border-radius: 10rem;
  display: flex;
  align-items: center;
  justify-self: center;
  z-index: 99;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);

  animation: showModal 0.2s ease 1;
  display: none;
}
.custom-alert i {
  margin-right: 1rem;
}
.success-icon {
  font-size: 1.4rem;
  display: none;
}
.failure-icon {
  font-size: 1.4rem;
  display: none;
}
@keyframes showModal {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}
.nav-section {
  width: 100%;
  position: fixed;
  z-index: 97;
}
.nav-cell {
  background-color: transparent;
  padding-block: 1.4rem;
  /* background-color: var(--color-background); */
}
.nav-cell h1 {
  flex-grow: 1;
  font-size: 3.2rem;
  /* color: var(--color-btn-color); */
  color: var(--color-white);
  font-weight: 900;
}
.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-right: 8rem;
}
.nav-menu a {
  color: var(--color-white);
  /* color: black; */
}
.custom-icon-style {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  color: var(--color-white);
  background-color: var(--color-btn-color);
  padding: 2.4rem;
}

/*  */
.hero-section {
  background-image: url("images/hero-vector.png");
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-color: #000;
  height: 70rem;
  display: grid;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-section {
  z-index: -2;
}
.hero-section h1 {
  font-size: 5.2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  text-align: center;
}
/* .search-bar {
  width: 90%;
  background: #ffffff;
  border-radius: 10rem;
  display: flex;
  align-items: center;
  margin: 0 auto;
  padding: 0.6rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
} */

/* .search-input {
  flex: 1;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 20px;
  font-size: 15px;
  color: #333;
}

.search-input::placeholder {
  color: #aaa;
}

.search-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #f5701f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  color: var(--color-white);
}

.search-btn:hover {
  background: #dd6117;
} */
.hero-text {
  z-index: 1;
}
.hero-desc {
  display: flex;
  justify-self: center;
  color: white;
  font-size: 1.6rem;
  text-align: center;
}
.overlay {
  position: absolute;
  inset: 0; /* shorthand for top:0; right:0; bottom:0; left:0; */
  background: linear-gradient(to bottom, #0000004d 40%, #00000033 100%);
  /* height: 100px; */
  top: 0;
  right: 0;
  pointer-events: none;
  /* z-index: 0;  */
}
.search-bar {
  z-index: 99;
}
.price-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-box h3 {
  text-transform: capitalize;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.product-box p {
  font-size: 1.6rem;
}
.product-img {
  width: 100%;
  margin-bottom: 2rem;
  padding: 4rem;
  background-color: var(--color-product);
  border-radius: 1rem;
}
.product-img img {
  width: 100%;
  height: 20rem;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.product-img img:hover {
  transform: scale(1.05);
}
#order-btn {
  background-color: var(--color-btn-color);
  padding: 1rem;
  border-radius: 1rem;
  color: var(--color-white);
  font-family: "Sora", sans-serif;
  cursor: pointer;
  transition: all 0.5s ease;
}
#order-btn:hover {
  background-color: var(--color-btn-hover);
  transform: scale(1.05);
}
.footer-section {
  background-color: var(--color-background);
  color: var(--color-text-color);
  padding-block: 3rem 2rem;
  display: flex;
  justify-content: space-between;
}

/* body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #1a1a1a;
  min-height: 100vh;
}  */

/* Dark backdrop behind the cart, mimics the page peeking through */
.page-backdrop {
  position: fixed;
  inset: 0;
  background: #1a1a1a80;
  z-index: 1;
  display: none;
}

/* ===================== Overlay & Modal Shell ===================== */
.cart-overlay {
  /* inset: 0; */
  /* z-index: 10; */
  /* display: flex; */
  /* justify-content: flex-end; */
  /* position: absolute;
  top: 0.5%;
  right: 1%; */
}
.cart-box {
  position: relative;
}
.cart-btn {
  font-size: 1.6rem;
  transition: all 0.3s;
  cursor: pointer;
}
.cart-btn:hover {
  background-color: var(--color-btn-hover);
}
.cart-item-count {
  content: "2";
  position: absolute;
  top: 0;
  right: 0;
  background-color: white;
  border-radius: 50%;
  padding: 0.7rem;
  font-size: 1.2rem;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: sans-serif;
  height: 1rem;
  width: 1rem;
  transition: all 0.3s ease;
}
.cart {
  /* position: absolute; */
  position: fixed;
  top: 2%;
  right: 1%;
  background-color: var(--color-white);
  width: 30%;
  z-index: 98;
  height: 95dvh;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  border-radius: 1rem;
  transform: translateX(120%);
  transition: transform 0.5s ease;
  z-index: 99;
  /* display: none; */
}

.cart-overlay.slide-out {
  transform: translateX(500px);
}

/* ===================== Header ===================== */
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.4rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.cart-title {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
  flex: 1;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 0.4rem;
}

.close-btn {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid #ccc;
  border-radius: 50%;
}

.back-btn {
  margin-right: 1.2rem;
}

/* ===================== Body ===================== */
.cart-body {
  flex: 1;
  padding: 2.4rem;
  overflow-y: auto;
}

/* ---- Cart item ---- */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
  /* display: none; */
}
.empty-cart-text {
  display: flex;
  /* display: none; */
  justify-content: center;
  margin-top: 10%;
  /* flex: 1; */
}

.cart-item-image {
  width: 10rem;
  height: 10rem;
  border-radius: 0.8rem;
  /* overflow: hidden; */
  background: #f2f2f2;
  flex-shrink: 0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  /* object-fit: cover; */
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  margin-bottom: 1rem;
}

.cart-item-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.4rem;
}

.cart-item-price {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 1.2rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.qty-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
}

.qty-btn-minus {
  background: #f4a97f;
}

.qty-btn-plus {
  background: #f5701f;
}

.qty-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111;
  min-width: 1.2rem;
  text-align: center;
}

.delete-btn {
  color: #e53935;
  flex-shrink: 0;
}
.delete-btn i {
  font-size: 1.8rem;
}
/* ===================== Footer ===================== */
.cart-footer {
  padding: 2rem 2.4rem;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.total-label {
  font-size: 1.5rem;
  color: #333;
}

.total-value {
  font-size: 1.5rem;
  color: #999;
}

.primary-btn {
  width: 100%;
  background: #f4a97f;
  color: #fff;
  border: none;
  border-radius: 10rem;
  padding: 1.6rem;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.primary-btn:hover {
  background: #dd6117;
}

/* ===================== Checkout Form ===================== */
.checkout-body {
  padding-top: 2rem;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 2rem;
}

.form-row {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 1.8rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.8rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group.full-width {
  width: 100%;
}

.form-group label {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.8rem;
  display: block;
}

.form-group input,
.form-group textarea {
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  padding: 1.2rem 1.4rem;
  font-size: 1.4rem;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #f5701f;
}

.form-group2 {
  display: flex;
  /* flex-direction: column; */
  margin-bottom: 1.8rem;
  width: 100%;
  gap: 1rem;
}

.form-group2 input {
  width: 100%;
}
.form-row .form-group2 {
  margin-bottom: 0;
}

.form-group2 label {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 0.8rem;
  display: block;
}

.form-group2 input,
.form-group2 textarea {
  border: 1px solid #ddd;
  border-radius: 0.8rem;
  padding: 1.2rem 1.4rem;
  font-size: 1.4rem;
  font-family: inherit;
  color: #111;
  outline: none;
  transition: border-color 0.2s ease;
  resize: none;
}

.form-group2 input:focus,
.form-group2 textarea:focus {
  border-color: #f5701f;
}
.section--2 {
  position: relative;
}
.slider {
  padding: 6rem 0;
  max-width: 100rem;
  height: 30rem;
  margin: 0 auto;
  position: relative;
  width: 70%;

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

  /* IN THE END */
  overflow: hidden;
}

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 10;
  /* right: 0; */
  border: none;
  background: rgb(128, 128, 128, 0.2);
  font-family: inherit;
  color: #333;
  border-radius: 50%;
  height: 5rem;
  width: 5rem;
  font-size: 3rem;
  cursor: pointer;

}
.slider--left {

  left: 14%;
  transform: translate(-50%, -50%);
}

.slider--right {

  right: 14%;
  transform: translate(50%, -50%);
}
.banner {
  position: absolute;
  top: 0;
  width: 100%;
  height: 30rem;

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

  padding-inline: 4rem;
  border-radius: 2rem;
  z-index: -2;
  transition: transform 1s;
  /* display: none; */
}
.banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: fit-content;
  z-index: -1;
  border-top-right-radius: inherit;
}
.banner-content {
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */
  /* gap: 8px; */
  z-index: 2;
  height: 80%;
}

.banner-badge {
  display: inline-block;
  width: fit-content;
  flex-grow: 1;
}
.banner-badge p {
  font-size: 3rem;
  font-weight: 500;
  padding: 1.4rem 2.4rem;
  letter-spacing: 0.5px;
  border-radius: 1rem;
}

/* .banner-logo {
  display: flex;
  align-items: center;
} */
.banner-logo i {
  font-size: 6rem;
  color: black;
  padding: 0.5rem 1rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}
.banner-brand-name {
  font-size: 14px;
  font-weight: 600;
}

.banner-offer {
  font-size: 4rem;
  font-weight: 700;
}

/* Reserved empty space where the product photo will be dropped in */
.banner-image-space {
  height: 90%;
}

.banner-image-space img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.banner--iphone {
  background: #2b2b2b;
  /* display: none; */
}
.banner--realme {
  background: #fdeeb3;
  /* display: none; */
}
.banner--xiaomi {
  background: linear-gradient(135deg, #fbdccb, #f8c8b0);
  /* display: none; */
}

.banner--iphone .banner-badge p {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.banner--iphone .banner-brand-name {
  color: #ffffff;
}

.banner--iphone .banner-offer {
  color: #ffffff;
}

.banner--realme .banner-badge p {
  background: rgba(0, 0, 0, 0.08);
  color: #333;
}

.realme-logo-text p {
  font-size: 5rem;
  color: black;
  background: #ffcf00;
  width: fit-content;
  margin-bottom: 1rem;
  padding-inline: 3rem;
}

.banner--realme .banner-offer {
  color: #222;
}

.banner--xiaomi .banner-badge p {
  background: rgba(255, 255, 255, 0.5);
  color: #333;
}

.xiaomi-logo-box p {
  /* display: flex;
  align-items: center;
  justify-content: center; */
  width: fit-content;
  background: #ff6700;
  color: #ffffff;
  font-size: 6rem;
  font-weight: 800;
  border-radius: 4rem;
  padding-inline: 2rem;
  margin-bottom: 1rem;
}

.banner--xiaomi .banner-offer {
  color: #222;
}

.dots {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  /* z-index: -3; */
  /* margin-top: 30rem; */
}
.dots__dot {
  border: none;
  background-color: #b9b9b9;
  /* background-color: red; */
  opacity: 0.7;
  height: 1rem;
  width: 1rem;

  border-radius: 50%;
  margin-right: 1.75rem;
  cursor: pointer;
  transition: all 0.5s;

  /* Only necessary when overlying images */
  /* box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.7); */
}

.dots__dot:last-child {
  margin: 0;
}

.dots__dot--active {
  /* background-color: #fff; */
  /* background-color: red; */

  background-color: #888;
  opacity: 1;
}

/* ===================== Responsive ===================== */
@media (max-width: 768px) {
  .container {
    padding: 4rem 3rem;
  }
  .custom-grid-3 {
    grid-template-columns: repeat(3, 30%);
    justify-content: space-between;
  }
  .nav-cell {
    padding-block: 1.4rem;
    justify-content: space-between;
  }
  .nav-cell h1 {
    flex-grow: 0;
    font-size: 2.4rem;
  }
  .cart {
    width: 50vw;
  }
  .hero-section {
    height: 50rem;
  }
  .hero-desc {
    font-size: 1.3rem;
  }
  .hero-section h1 {
    font-size: 4rem;
  }
  .search-bar {
    width: 100%;
  }
  .price-box {
    flex-direction: column;
    row-gap: 1rem;
  }
  #order-btn {
    width: 100%;
  }
  .product-img {
    padding: 0.5rem 2rem;
  }
  .slider {
    width: 100%;
  }
  .slider__btn {
    display: none;
  }
  .banner {
    padding-inline: 2rem;
  }
  /* .banners-wrapper {
    flex-direction: column;
  } */

  .banner {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 2rem;
  }
  .nav-cell {
    justify-content: space-between;
    align-items: center;
  }
  .nav-menu {
    display: none;
  }
  .custom-grid-3 {
    grid-template-columns: repeat(2, 45%);
  }
  .custom-alert {
    top: 12%;
  }
  .hero-section h1 {
    font-size: 3.8rem;
    margin-bottom: 2rem;
  }
  .hero-desc {
    font-size: 1.4rem;
  }
  .slider {
    height: 20rem;
  }
  .banner {
    height: 20rem;
  }
  .banner-badge p {
    font-size: 1.4rem;
    padding: 1rem 2.4rem;
  }
  .banner-logo i {
    font-size: 3rem;
  }
  .banner-offer {
    font-size: 1.8rem;
  }
  .realme-logo-text p {
    font-size: 2rem;
  }
  .xiaomi-logo-box p {
    font-size: 2rem;
  }
  .cart {
    width: 100dvw;
    height: 80dvh;
  }
}
