/* ======================
   Reset + Base
====================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fdfbf7;
  /* soft cream for site */
  color: #3e2f1c;
  /* deep mocha main text */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======================
   Navbar
====================== */
.navbar {
  background: linear-gradient(135deg, #3e2f1c, #b68d40);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff !important;
  letter-spacing: 0.6px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-link {
  color: #fff !important;
  font-weight: 500;
  transition: color .25s ease;
}

.nav-link:hover {
  color: #ffd700 !important;
}

/* gold highlight */

/* Profile dropdown */
.dropdown-menu {
  border-radius: 0.5rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.dropdown-item:hover {
  background: #fff8e6;
  color: #b68d40;
}

/* ======================
   Hero / Index
====================== */
.hero {
  background: linear-gradient(135deg, #f4e1c1, #d9a441, #6e4b1f);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff9f0;
  padding: 2rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(40, 26, 13, 0.45), rgba(40, 26, 13, 0.7));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #f5e6c4;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
}

/* ======================
   Buttons (single source of truth)
====================== */
.btn-gradient {
  display: inline-block;
  background: linear-gradient(135deg, #c1975a, #8c6239);
  border: none;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.btn-gradient:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(138, 101, 58, 0.18);
}

/* ======================
   Products / Cards / Filters
====================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.product-card {
  background: #fff8f0;
  border: 1px solid #e6d4b6;
  border-radius: 15px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(110, 75, 31, 0.12);
  transition: transform .28s ease, box-shadow .28s ease;
}

.product-card img {
  height: 220px;
  object-fit: cover;
  width: 100%;
  border-bottom: 1px solid #eee;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(110, 75, 31, 0.18);
}

.product-card h5 {
  font-size: 1.12rem;
  font-weight: 600;
  color: #6e4b1f;
  margin-top: 10px;
}

.product-card p {
  color: #5a4630;
}

/* Filter sidebar */
.filter-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.filter-card h5 {
  color: #b68d40;
  font-weight: 700;
  margin-bottom: .75rem;
}

/* pill links */
.filter-link {
  display: inline-block;
  margin: .25rem .35rem .25rem 0;
  padding: .35rem .9rem;
  border-radius: 22px;
  background: #fff8e6;
  color: #b68d40;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
}

.filter-link:hover,
.filter-link.active {
  background: linear-gradient(135deg, #b68d40, #ffd700);
  color: #fff;
  box-shadow: 0 6px 18px rgba(182, 141, 64, 0.18);
}

/* price slider styling left as-is (webkit only) */
.filter-price {
  color: #b68d40;
  font-weight: 600;
  margin-top: .5rem;
}

/* ======================
   Footer
====================== */
footer {
  background: linear-gradient(135deg, #3e2f1c, #b68d40);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

footer a {
  color: #fff;
  text-decoration: none;
}

footer .socials a {
  margin: 0 10px;
  font-size: 1.2rem;
}

/* ======================
   Products page small hero (scoped)
====================== */
.hero-small {
  position: relative;
  background: url('https://images.unsplash.com/photo-1616627459938-98a438d6e0c0?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-small::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(62, 47, 28, 0.55);
  z-index: 1;
}

.hero-small .container {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

/* ======================
   Login styles (SCOPED — will NOT change site global background)
   Use .hero-login (full-screen gradient hero + overlay) and .login-box for the card
====================== */
.hero-login {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #4e342e, #8d6e63, #d7ccc8);
  /* brown → golden → light */
}

.hero-login .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 19, 11, 0.55);
  z-index: 1;
}

/* header at top (brand + home/back) */
.login-header {
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.login-header .brand {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.login-header .btn-home {
  background: rgba(255, 255, 255, 0.06);
  color: #f5e6c4;
  padding: .4rem .85rem;
  border-radius: .55rem;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
}

.login-header .btn-home:hover {
  background: rgba(255, 215, 0, 0.12);
  color: #fff;
}

/* centered glass login card */
.login-box {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  color: #fff;
  text-align: center;
}

.login-box h2 {
  font-size: 1.9rem;
  margin-bottom: .25rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.login-box p {
  color: #f5e6c4;
  margin-bottom: 1rem;
}

/* login inputs */
.login-box .form-group {
  margin-bottom: 1rem;
}

.login-box input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
}

.login-box input::placeholder {
  color: #ddd;
}

/* signup link */
.login-box .signup-link {
  margin-top: 10px;
  color: #e9dcc5;
}

.login-box .signup-link a {
  color: #ffd700;
  font-weight: 600;
  text-decoration: none;
}

/* ======================
   Utility / responsiveness
====================== */
@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .product-card img {
    height: 180px;
  }

  .login-box {
    max-width: 92%;
    padding: 20px;
  }
}

/* ===== LOGIN PAGE ===== */
.hero-login {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f4e1c1, #d9a441, #6e4b1f);
  /* Same gradient as index/products */
}

.hero-login .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(40, 26, 13, 0.6);
  /* subtle mocha overlay */
  z-index: 1;
}

/* Header */
.login-header {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.login-header .brand {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.login-header .btn-home {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s ease;
}

.login-header .btn-home:hover {
  color: #ffd700;
}

/* Login Box */
.login-box {
  position: relative;
  z-index: 2;
  width: 350px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.login-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}

.login-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #eee2cf;
}

.form-group {
  margin-bottom: 15px;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}

/* Button */
/* Login/Register form button */
.btn-login {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #d9a441, #6e4b1f);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-login:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #6e4b1f, #d9a441);
}


/* Register link */
.signup-link {
  margin-top: 15px;
  font-size: 14px;
  color: #eee2cf;
}

.signup-link a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* ======================
   Register Page Styles
====================== */
.hero-register {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f4e1c1, #d9a441, #6e4b1f);
  /* same as login/index */
}

.hero-register .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40, 26, 13, 0.6);
  z-index: 1;
}

/* Register box */
.register-box {
  position: relative;
  z-index: 2;
  width: 380px;
  padding: 35px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  color: #fff;
}

.register-box h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.register-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #eee2cf;
}

.register-box .form-group {
  margin-bottom: 15px;
}

.register-box input {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.register-box input::placeholder {
  color: #ddd;
}

/* Register button (uses same .btn-gradient as global buttons) */
.register-box .btn-gradient {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 30px;
  /* consistent rounded look */
}

/* Link to login */
.login-link {
  margin-top: 15px;
  font-size: 14px;
  color: #eee2cf;
}

.login-link a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Filter Navbar */
.filter-bar {
  border-bottom: 1px solid #ddd;
}

.filter-bar .nav-link {
  color: #5a4630 !important;
  /* darker brown for visibility */
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid #a67c52;
  padding: 6px 18px;
  margin-right: 10px;
  background-color: #fff;
  transition: all 0.3s ease;
}

.filter-bar .nav-link.active,
.filter-bar .nav-link:hover {
  background: linear-gradient(135deg, #a67c52, #d4af37);
  color: #ffffff !important;
  /* white text for contrast */
  border-color: #d4af37;
}

/* Search bar luxury styling */
.filter-bar .form-control {
  border-radius: 30px;
  border: 2px solid #a67c52;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 4px 10px rgba(166, 124, 82, 0.15);
  transition: all 0.3s ease;
}

.filter-bar .form-control:focus {
  border-color: #d4af37;
  /* gold highlight */
  box-shadow: 0 6px 14px rgba(212, 175, 55, 0.25);
  outline: none;
}

/* Search button luxury style */
.filter-bar .btn-gradient {
  border-radius: 30px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #c1975a, #8c6239);
  border: none;
  color: #fff;
  transition: all 0.3s ease;
}

.filter-bar .btn-gradient:hover {
  background: linear-gradient(135deg, #8c6239, #c1975a);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(138, 101, 58, 0.25);
}

/* ===== Checkout styling ===== */
.checkout-steps .step {
  font-weight: 600;
  color: #6e4b1f;
}

.checkout-steps .step.active {
  color: #3e2f1c;
}

.checkout-steps .sep {
  width: 32px;
  height: 2px;
  background: #e6d4b6;
  display: inline-block;
  border-radius: 2px;
  opacity: 0.8;
}

.checkout-card {
  border: none;
  border-radius: 14px;
}

.checkout-card .card-body {
  padding: 1.25rem 1.25rem;
}

.checkout-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e6d4b6;
}

.qty-input {
  width: 56px;
  text-align: center;
}

.btn-outline-dark {
  border-color: #b68d40;
  color: #3e2f1c;
}

.btn-outline-dark:hover {
  background: linear-gradient(135deg, #b68d40, #6e4b1f);
  border-color: transparent;
  color: #fff;
}

#userMenu a.nav-link {
  display: inline-block;
  margin-left: 10px;
}

/* ===== Forgot Password Link ===== */
.forgot-link {
  font-size: 0.9rem;
  color: #c1975a;
  /* Goldish accent to match your gradient */
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
  font-weight: 500;
}

.forgot-link:hover {
  color: #8c6239;
  /* Darker gold on hover */
  text-decoration: underline;
}

.forgot-link:active {
  color: #6d4c2f;
  /* Even darker shade when clicked */
}

/* ======================
   Alerts (Login/Register/Cart)
====================== */
.alert {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  animation: fadeInUp 0.3s ease;
}

/* Success (matches golden gradient theme) */
.alert-success {
  background: linear-gradient(135deg, #c1975a, #8c6239);
  color: #fff;
}

/* Error / Danger */
.alert-danger {
  background: linear-gradient(135deg, #b33939, #8e1e1e);
  color: #fff;
}

/* Info / Neutral */
.alert-info {
  background: linear-gradient(135deg, #3e2f1c, #6e4b1f);
  color: #fff;
}

/* Warning */
.alert-warning {
  background: linear-gradient(135deg, #ffd700, #b68d40);
  color: #3e2f1c;
}

/* Small bubble (inform) used across site */
#cart-info-bubble {
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.4s ease;
}

/* Smooth fade animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
