:root {
  --primary: #6f42c1;
  --secondary: #d63384;
  --text-dark: #222;
  --text-light: #6c757d;
  --gradient: linear-gradient(90deg, #6f42c1, #d63384);
}

/* Base */
body {
  font-family: 'Poppins', sans-serif;
  background-color: #fff;
  overflow-x: hidden;
}

/* Navbar Logo Fix */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between logo and text if any */
}

.logo {
  /* CHANGE THIS: 1000px is too wide */
  width: 150px; /* Set a professional, smaller size */
  height: auto;
  max-height: 70px; /* Keeps the logo from becoming too tall */
  object-fit: contain;
}

@media (max-width: 768px) {
  .logo {
    width: 100px; /* Retain smaller size on mobile for good measure */
  }
}


.nav-link {
  color: var(--text-dark);
  font-weight: 500;
  transition: 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary);
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  border-radius: 10px;
  transition: 0.3s;
}

.btn-gradient:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Hero Section */
.hero {
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
  min-height: 90vh;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background-attachment: fixed;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: #fff;
}

.hero p {
  font-size: 1.1rem;
  color: #f8f9fa;
}

/* Categories */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.category-card img {
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(111, 66, 193, 0.8);
  text-align: center;
  padding: 15px;
  color: #fff;
  transform: translateY(100%);
  transition: all 0.4s ease;
}

.category-card:hover .overlay {
  transform: translateY(0);
}

/* Product Cards */
.product-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(111, 66, 193, 0.15);
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(214, 51, 132, 0.25);
}

/* Footer */
.footer {
  background: #f8f9fa;
  font-size: 0.9rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.social-links a {
  color: var(--primary);
  margin: 0 10px;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--secondary);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* =====================================
   AUTH PAGES (Login & Register)
===================================== */
.auth-section {
  min-height: 100vh;
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.1), rgba(214, 51, 132, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
}

.auth-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(111, 66, 193, 0.15);
  transition: all 0.4s ease-in-out;
}

.auth-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(214, 51, 132, 0.25);
}

.auth-image {
  max-width: 90%;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.input-group-text {
  background-color: #f8f9fa;
  border-right: none;
}

.form-control {
  border-left: none;
  border-color: #dee2e6;
  transition: all 0.3s;
}

.form-control:focus {
  box-shadow: none;
  border-color: var(--secondary);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Mobile */
@media (max-width: 768px) {
  .auth-section {
    padding: 40px 0;
  }
  .auth-card {
    padding: 30px 20px;
  }
  .auth-image {
    display: none;
  }
}
.alert {
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
.alert-success {
  background-color: #e6ffed;
  color: #198754;
  border: 1px solid #b4f5c1;
}
.alert-danger {
  background-color: #ffe6e6;
  color: #dc3545;
  border: 1px solid #f5b4b4;
}
/* ===============================
   GOOGLE LOGIN BUTTON
=============================== */
.btn-google {
  background-color: #fff;
  border: 2px solid #ddd;
  color: #444;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(111, 66, 193, 0.1);
  text-decoration: none;
  padding: 10px 15px;
}

.btn-google img {
  transition: transform 0.3s ease;
}

.btn-google:hover {
  background-color: #f8f9fa;
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.2);
}

.btn-google:hover img {
  transform: rotate(-10deg) scale(1.1);
}

.btn-google:active {
  transform: scale(0.98);
  box-shadow: none;
}

.navbar .dropdown-toggle img {
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.navbar .dropdown-toggle:hover img {
  border-color: var(--secondary);
  transform: scale(1.05);
}

.dropdown-menu {
  border-radius: 12px;
  border: none;
  padding: 10px 0;
}

.dropdown-item {
  transition: 0.3s;
}

.dropdown-item:hover {
  background: rgba(111, 66, 193, 0.1);
  color: var(--secondary);
}

/* ===============================
   PROFILE PAGE
=============================== */
.profile-section {
  background: linear-gradient(135deg, rgba(111, 66, 193, 0.08), rgba(214, 51, 132, 0.05));
  padding-top: 120px; /* Adds space below navbar */
  padding-bottom: 80px;
}

.profile-card {
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(111, 66, 193, 0.15);
  transition: all 0.4s ease-in-out;
  border: 1px solid rgba(214, 51, 132, 0.1);
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(214, 51, 132, 0.25);
}

/* Profile Picture */
.profile-pic-container {
  position: relative;
  display: inline-block;
}

.profile-pic {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid var(--secondary);
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(214, 51, 132, 0.25);
  transition: transform 0.3s ease;
}

.profile-pic:hover {
  transform: scale(1.05);
}

.profile-edit-icon {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--gradient);
  color: #fff;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-edit-icon:hover {
  transform: rotate(15deg) scale(1.1);
  box-shadow: 0 4px 10px rgba(214, 51, 132, 0.3);
}

/* Info */
.profile-info .info-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  transition: 0.3s;
}

.profile-info .info-item:hover {
  background: rgba(214, 51, 132, 0.08);
  transform: translateX(5px);
}

.profile-info .icon {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-right: 10px;
  width: 25px;
  text-align: center;
}

/* Buttons */
.btn-outline-danger {
  border: 2px solid #dc3545;
  color: #dc3545;
  border-radius: 10px;
  transition: all 0.3s;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: #fff;
}

/* Animation */
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.profile-card {
  animation: fadeInScale 0.6s ease-in-out;
}

/* ======== Fix submenu alignment on desktop ======== */
@media (min-width: 992px) {
  /* Default submenu opens to the right */
  .dropdown-submenu .submenu {
    left: 100%;
    right: auto;
  }

  /* If parent dropdown is aligned to the right, open submenu to the left */
  .dropdown-menu-end .dropdown-submenu .submenu {
    left: auto;
    right: 100%;
  }

  /* Prevent submenu from showing off-screen */
  .dropdown-submenu:hover > .submenu {
    display: block;
  }

  /* Small visual polish */
  .dropdown-menu.submenu {
    margin-top: 0;
    margin-left: 0.5rem;
  }
}
/* ===============================
   Uniform Product Images
=============================== */
.product-card img {
    width: 100%;         /* full width of card */
    height: 450px;       /* fixed height for uniformity */
    object-fit: cover;   /* crop to fill without stretching */
    border-top-left-radius: .5rem;  /* match card rounded corners */
    border-top-right-radius: .5rem;
}

@media (max-width: 768px) {
  .product-card img {
    height: 450px; /* slightly smaller height on mobile */
  }
}

@media (max-width: 768px) {
  .table-responsive table thead { display: none; }
  .table-responsive table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  }
  .table-responsive table tbody tr td {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
  }
  .table-responsive table tbody tr td:first-child { flex: 2; }
  .table-responsive table tbody tr td:last-child { flex: 1; text-align: right; }
}









