:root {
  --primary: #c98a3c;
  --secondary: #8b5a2b;
  --dark: #0f0f0f;
  --card: #171717;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;

  background: radial-gradient(
    circle at top center,
    rgba(255, 196, 87, 0.3) 0%,
    rgba(196, 118, 25, 0.25) 20%,
    rgba(92, 52, 15, 0.5) 45%,
    rgba(15, 10, 8, 0.95) 80%
  );

  min-height: 100vh;
}

/* ================= NAVBAR ================= */

nav {
  background: #000;
  padding: 15px 25px;
  border-bottom: 1px solid rgba(201, 138, 60, 0.2);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.brand {
  display: flex;
  flex-direction: column;
}

.title {
  color: #b67315;
  font-weight: 700;
}

.tag {
  color: #ddd;
  font-size: 12px;
}

/* ================= TITLE ================= */

.title-section {
  text-align: center;
  padding: 40px 20px 20px;
}

.title-section h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 4rem;
  letter-spacing: 3px;
  color: white;
}

.title-section span {
  color: var(--primary);
}

/* ================= CONTAINER ================= */

.cart-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding-bottom: 50px;
}

/* ================= TABLE ================= */

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;

  background: rgba(20, 20, 20, 0.95);

  border-radius: 20px;
  overflow: hidden;

  backdrop-filter: blur(10px);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

thead {
  background: rgba(201, 138, 60, 0.15);
}

th {
  padding: 18px;
  color: var(--primary);
}

td {
  padding: 15px;
  text-align: center;
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

td img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 15px;
}

/* ================= MOBILE CARD ================= */

.cart-card {
  display: none;
}

.card-item {
  background: rgba(20, 20, 20, 0.95);

  border: 1px solid rgba(201, 138, 60, 0.2);

  border-radius: 20px;

  padding: 15px;
  margin-bottom: 15px;

  display: flex;
  gap: 15px;
}

.card-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 15px;
}

.card-info {
  color: white;
  line-height: 1.8;
}

.card-info b {
  color: var(--primary);
}

/* ================= TOTAL ================= */

h3 {
  margin-top: 25px;
  text-align: right;

  font-size: 2rem;

  color: var(--primary);

  background: rgba(20, 20, 20, 0.9);

  padding: 20px;

  border-radius: 20px;
}

/* ================= BUTTON ================= */

.btn {
  display: inline-block;

  margin-top: 20px;
  margin-right: 10px;

  padding: 12px 25px;

  text-decoration: none;

  border-radius: 12px;

  font-weight: 600;

  transition: 0.3s;
}

.btn:first-of-type {
  background: linear-gradient(90deg, var(--primary), var(--secondary));

  color: white;
}

.btn:first-of-type:hover {
  transform: translateY(-3px);
}

.btn:last-of-type {
  background: var(--primary);
  color: white;
}

.btn:last-of-type:hover {
  background: #333;
}

/* ================= EMPTY CART ================= */

.empty-cart {
  text-align: center;

  background: rgba(20, 20, 20, 0.95);

  border-radius: 25px;

  padding: 50px;

  margin-top: 30px;
}

.empty-cart p {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
  .title-section h1 {
    font-size: 2.8rem;
  }

  .table-wrapper {
    display: none;
  }

  .cart-card {
    display: block;
  }

  h3 {
    text-align: center;
    font-size: 1.5rem;
  }

  .btn {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

  .card-item {
    flex-direction: column;
    text-align: center;
  }

  .card-item img {
    width: 100%;
    height: 220px;
  }
}
