/* ===== CART PAGE ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&display=swap');

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

:root {
  --pink:       #f4a7b9;
  --pink-light: #ffffff;
  --pink-dark:  #e7688b;
  --cream:      #fdf5f7;
  --brown:      #5e3c3c;
  --text:       #5e3c3c;
  --muted:      #888888;
  --white:      #ffffff;
  --shadow:     0 4px 18px rgba(0,0,0,0.10);
  --radius:     14px;
  --nav-h:      80px;
  --font:       'Fredoka', sans-serif;
}

body { font-family: var(--font); background: var(--cream); color: var(--text); }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #ffeef1;
  padding: 0 24px;
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.logo-image { height: 64px; width: auto; flex-shrink: 0; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links li a {
  font-size: 15px; font-weight: 600; color: var(--brown);
  padding: 6px 12px; border-radius: 20px;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.nav-links li a:hover { background: var(--pink-light); color: var(--pink-dark); }

.search-bar { position: relative; flex: 1; max-width: 260px; }
.input-wrapper {
  display: flex; align-items: center;
  background: var(--cream); border: 1.5px solid var(--pink);
  border-radius: 24px; padding: 6px 14px; gap: 8px;
}
.search-input { border: none; background: transparent; font-family: var(--font); font-size: 14px; color: var(--text); outline: none; width: 100%; }
.input-wrapper .fa-magnifying-glass { color: var(--pink-dark); font-size: 14px; }

.nav-icons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cart-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: var(--pink-light);
  border-radius: 50%; color: var(--pink-dark); font-size: 18px;
  transition: background 0.2s, transform 0.2s;
}
.cart-btn:hover { background: var(--pink); transform: scale(1.08); }
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--pink-dark); color: #ffffff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 11px; font-weight: 600;
  display: none; align-items: center; justify-content: center;
  pointer-events: none; line-height: 1;
}

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: transparent; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--brown); border-radius: 2px; }

/* CART CONTENT */
.cart-page { max-width: 720px; margin: 40px auto; padding: 0 20px 60px; }

.cart-page h2 {
  font-size: 2rem; font-weight: 600; color: var(--brown);
  text-align: center; margin-bottom: 28px;
}

.cart-item {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
  display: grid; grid-template-columns: 72px 1fr; gap: 14px;
  align-items: center; margin-bottom: 16px;
}

.cart-item img {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 10px; grid-row: span 3;
}

.cart-item-name { font-weight: 600; font-size: 1rem; color: var(--brown); }
.cart-item-price { font-size: 0.9rem; color: var(--muted); }
.cart-item-total { font-size: 0.95rem; color: var(--pink-dark); font-weight: 600; }

.cart-item-controls {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  grid-column: 2;
}

.qty-row {
  display: flex; align-items: center; gap: 8px;
}

.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--pink); background: var(--pink-light);
  color: var(--pink-dark); font-size: 16px; font-weight: 600;
  cursor: pointer; line-height: 1; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.qty-btn:hover { background: var(--pink); color: var(--white); }
.qty-num { font-size: 1rem; font-weight: 600; min-width: 20px; text-align: center; }

.remove-btn {
  font-size: 0.82rem; color: var(--muted); background: none; border: none;
  cursor: pointer; font-family: var(--font); text-decoration: underline;
  transition: color 0.2s;
}
.remove-btn:hover { color: var(--pink-dark); }

/* Empty cart */
.empty-cart { text-align: center; color: var(--muted); padding: 48px 0; font-size: 1.1rem; }

/* Total */
.cart-total-box {
  background: var(--pink-light); border-radius: var(--radius);
  padding: 16px 20px; display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 24px;
  font-size: 1.2rem; font-weight: 600; color: var(--brown);
}
.cart-total-box span { color: var(--pink-dark); font-size: 1.4rem; }

/* Checkout notice */
.checkout-notice {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px;
  margin-bottom: 24px; border-left: 4px solid var(--pink);
}
.checkout-notice h3 { font-size: 1.1rem; color: var(--brown); margin-bottom: 10px; }
.checkout-notice p { font-size: 0.9rem; color: var(--muted); margin-bottom: 6px; line-height: 1.6; }

/* Checkout form */
.checkout-form {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px;
}
.checkout-form h3 { font-size: 1.2rem; color: var(--brown); margin-bottom: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-row.full { grid-template-columns: 1fr; }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.form-group input {
  border: 1.5px solid #f4c4d0; border-radius: 10px;
  padding: 10px 14px; font-family: var(--font); font-size: 0.95rem;
  color: var(--text); background: var(--cream); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--pink); }

.checkout-btn {
  width: 100%; padding: 16px;
  background: var(--pink-dark); color: var(--white);
  border: none; border-radius: 30px;
  font-family: var(--font); font-size: 1.1rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(231,104,139,0.3);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.checkout-btn:hover { background: #c44a6e; transform: translateY(-2px); }
.checkout-btn:disabled { background: var(--muted); cursor: not-allowed; transform: none; }

/* Success / error toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--white); color: var(--pink-dark); padding: 14px 28px;
  border-radius: 30px; font-size: 1rem; font-weight: 600;
  box-shadow: var(--shadow); z-index: 999; opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }
.toast.success { background: var(--white); color: var(--pink-dark); }
.toast.error { background: var(--white); color: var(--pink-dark); }

/* Contact */
.cart-contact { text-align: center; color: var(--muted); font-size: 0.9rem; padding-top: 16px; }
.cart-contact a { color: var(--pink-dark); }
.cart-contact h4 { margin-bottom: 8px; color: var(--brown); }

/* Footer */
.site-footer { background: #ffeef1; color: var(--text); text-align: center; padding: 36px 24px; margin-top: 40px; }
.footer-content { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-col { min-width: 140px; text-align: left; }
.site-footer h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--brown); text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer a { color: var(--pink-dark); transition: color 0.2s; }
.site-footer a:hover { color: var(--brown); }
.site-footer p { margin-bottom: 6px; font-size: 0.9rem; }
.footer-note { margin-top: 4px; font-size: 0.82rem; opacity: 0.7; }

/* MOBILE */
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px; }
  .logo-image { height: 50px; }
  .hamburger { display: flex; order: 3; }
  .nav-links { display: none; flex-direction: column; width: 100%; order: 5; padding-bottom: 10px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 14px; border-radius: 10px; }
  .search-bar { order: 4; max-width: 100%; flex: 1 1 100%; }
  .nav-icons { order: 2; margin-left: auto; }

  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item img { width: 60px; height: 60px; }
}
