@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;

  background: linear-gradient(135deg,
      #c9cfcf,
      #eac2a8);

  font-family: "Poppins", sans-serif;

  padding:
    18px 18px calc(120px + env(safe-area-inset-bottom));

  overflow-x: hidden;
}

.page-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* HEADER */

.top-header {
  width: 100%;
  max-width: 420px;

  display: flex;
  align-items: center;

  margin-bottom: 18px;

  animation: fadeTop 0.8s ease;
}

/* =========================
   HEADER ANIMATIONS
========================== */

@keyframes fadeTop {

  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes textGlow {

  from {
    opacity: 0.85;
  }

  to {
    opacity: 1;
  }
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.brand-section h1 {
  font-family: "Montserrat", serif;

  font-size: 1.6rem;
  font-weight: 700;

  color: #000000;

  letter-spacing: 1px;

  line-height: 1;

  text-transform: uppercase;

  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.10);
}

/* EMPTY */

.empty-cart {
  display: none;

  background: #ffffff;

  border-radius: 30px;

  padding: 50px 20px;

  text-align: center;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.06);
}

.empty-cart.show {
  display: block;
}

.empty-icon {
  width: 90px;
  height: 90px;

  margin: 0 auto 20px;

  border-radius: 50%;

  background: #9c5015;

  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.empty-cart h2 {
  margin-bottom: 8px;
}

.empty-cart p {
  color: #777777;
}

/* CART SECTION */

.cart-section {
  display: none;
}

.cart-section.show {
  display: block;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* CART ITEM */

.cart-item {
  background: #f1f1f1;

  border-radius: 28px;

  padding: 14px;

  display: flex;
  align-items: center;
  gap: 14px;

  position: relative;
}

.cart-item img {
  width: 90px;
  height: 90px;

  border-radius: 20px;

  object-fit: contain;

  background: #ffffff;

  padding: 6px;

  flex-shrink: 0;
}

.cart-details {
  flex: 1;
}

.cart-details h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.cart-size {
  color: #777777;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.cart-price {
  font-size: 1rem;
  font-weight: 700;
}

/* REMOVE */

.remove-btn {
  position: absolute;

  top: 12px;
  right: 12px;

  width: 30px;
  height: 30px;

  border: none;

  border-radius: 50%;

  background: #ffffff;

  cursor: pointer;
}

/* SUMMARY */

.cart-summary {
  margin-top: 24px;

  background: #f1f1f1;

  border-radius: 28px;

  padding: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;

  margin-bottom: 18px;

  color: #555555;
}

.summary-row.total {
  color: #111111;
  font-weight: 700;
  font-size: 1.1rem;
}

/* CHECKOUT */

.checkout-btn {
  width: 100%;
  height: 58px;

  border: none;

  border-radius: 40px;

  background: #db7b31;

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;

  margin-top: 10px;
}

/* NAVIGATION */

.bottom-nav {
  position: fixed;

  bottom: calc(15px + env(safe-area-inset-bottom));

  left: 50%;
  transform: translateX(-50%);

  width: min(92vw, 420px);
  height: 78px;

  background: rgba(182, 181, 181, 0.92);

  border-radius: 28px;

  display: flex;
  justify-content: space-around;
  align-items: center;

  padding: 0 10px;

  backdrop-filter: blur(12px);

  z-index: 9999;
}

.nav-item {
  width: 68px;
  height: 68px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-link {
  text-decoration: none;

  color: #ffffff;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-link i {
  font-size: 1.2rem;
}

.nav-text {
  font-size: 0.7rem;
  margin-top: 5px;
}

/* =========================
   ACTIVE NAVIGATION
========================== */

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;

  gap: 5px;

  transition: 0.35s ease;
}

.nav-link i {
  transition: 0.35s ease;
}

.nav-text {
  position: absolute;

  bottom: -10px;

  opacity: 0;

  transform: translateY(10px);

  transition: 0.35s ease;

  color: #000000;
}

.nav-item.active .nav-link i {
  transform: translateY(-10px);

  color: #9c5015;

  text-shadow:
    0 0 10px rgb(253, 210, 196),
    0 0 25px rgba(255, 187, 164, 1);
}

.nav-item.active .nav-text {
  opacity: 1;

  transform: translateY(0);

  font-weight: 600;
}

/* MOBILE */

@media (max-width:480px) {

  .cart-item {
    padding: 12px;
  }

  .cart-item img {
    width: 82px;
    height: 82px;
  }

}