/* ===== CART PAGE ===== */
/* IMPORT LUXURY FONTS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@300;400;500&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: radial-gradient(circle at top, #2a2a2a, #0f0f0f);
  font-family: 'Inter', sans-serif;
  color: #f5f5f5;
  padding-top: 90px; /* space for fixed navbar */
}

/* ===== NAVBAR (FIXED & POLISHED) ===== */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 22px;
  background: linear-gradient(180deg, #111 0%, #000 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);

  z-index: 1000;
}

/* ===== LOGO ===== */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: #d4af37;
  font-weight: 700;
  letter-spacing: 0.8px;
}

/* ===== NAV LINKS (DESKTOP) ===== */
nav {
  display: flex;
  gap: 24px;
}

nav a {
  font-size: 14px;
  color: #ddd;
  opacity: 0.85;
  text-decoration: none;
}

nav a:hover {
  opacity: 1;
}

/* ===== CART BUTTON ===== */
.cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: #d4af37;
  color: #000;
  padding: 10px 16px;
  border-radius: 30px;

  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== HAMBURGER (LUXURY TUNED) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #d4af37;
  border-radius: 4px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal.active {
  display: flex;
}
/* ===== PAYMENT SUCCESS PAGE ===== */

.success-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  padding: 120px 20px 80px;
  text-align: center;

  background:
    radial-gradient(circle at top, #2a2a2a, #0f0f0f);
}

/* Title */
.success-container h1 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: #d4af37;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

/* Subtitle text */
.success-text {
  color: #bdbdbd;
  font-size: 15px;
  max-width: 420px;
  margin-bottom: 35px;
  line-height: 1.6;
}

/* Order Summary Card */
.order-summary {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );
  padding: 26px 24px;
  border-radius: 22px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.65);
  margin-bottom: 35px;
  text-align: left;
}

/* Order summary title */
.order-summary h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #d4af37;
  margin-bottom: 14px;
}

/* Each item */
.order-summary p {
  font-size: 14px;
  color: #e0e0e0;
  margin-bottom: 8px;
}

/* Total */
.order-summary strong {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(212,175,55,0.25);
  font-size: 16px;
  color: #d4af37;
}

/* Action buttons container */
.success-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Primary button (Continue Shopping) */
.pay-btn {
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #1c1c1c;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(212,175,55,0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pay-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(212,175,55,0.6);
}

/* Secondary button (View Cart) */
.secondary-btn {
  padding: 14px 26px;
  border-radius: 50px;
  border: 1px solid rgba(212,175,55,0.6);
  color: #d4af37;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.secondary-btn:hover {
  background: #d4af37;
  color: #1c1c1c;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .success-container h1 {
    font-size: 32px;
  }

  .success-text {
    font-size: 14px;
  }

  .order-summary {
    padding: 22px 20px;
  }
}


/* ===== MOBILE STYLES ===== */
@media (max-width: 900px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Center logo nicely */
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Keep cart on the right */
  .cart {
    margin-left: auto;
  }

  /* Mobile menu */
  nav {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    background: #0c0c0c;

    flex-direction: column;
    align-items: center;
    gap: 18px;

    padding: 22px 0;
    display: none;
  }

  nav.active {
    display: flex;
  }
}

/* ===== PAGE OFFSET (VERY IMPORTANT) ===== */
body {
  padding-top: 90px; /* prevents content hiding under fixed navbar */
}

/* ===== CART HEADER ===== */
.cart-header {
  text-align: center;
  padding: 60px 20px 20px;
}

.cart-header h1 {
  font-family: 'Playfair Display', serif;
  color: #d4af37;
  font-size: 36px;
  margin-bottom: 6px;
}

.cart-header p {
  color: #aaa;
  font-size: 14px;
}

/* ===== CART LAYOUT ===== */
.cart-container {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* ===== CART ITEMS ===== */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55);
}

.cart-item img {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.3);
}

.cart-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.cart-info p {
  color: #d4af37;
  font-weight: 600;
}

/* REMOVE BUTTON */
.remove-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 13px;
  cursor: pointer;
}

/* ===== CART SUMMARY ===== */
.cart-summary {
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  margin-bottom: 26px;
  font-weight: 600;
}

/* PAY BUTTON */
.pay-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #d4af37, #b8962e);
  color: #1a1a1a;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(212,175,55,0.45);
}

/* ===== MODAL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #111;
  padding: 30px;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.modal-content input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: none;
  background: #1c1c1c;
  color: #fff;
}

/* ===== MOBILE CART ===== */
@media (max-width: 900px) {
  .cart-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item img {
    width: 100%;
    height: 180px;
  }
}

