@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

:root {
  --primary: #ff6600;
  --secondary: #222831;
  --accent: #ffd700;
  --bg: #181c20;
  --bg-card: #23272d;
  --aqua: #00FFF0;
  --border-radius: 18px;
  --shadow: 0 2px 24px rgba(0,0,0,0.15);
  --text: #222;
  --muted: #b6bbc7;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Responsive containers */
.navbar, .navbar-container, .section, .footer, .user-dashboard, .admin-dashboard-main, .dashboard-cards, .dashboard-table, .shop-table, .order-table, table, .card, .dashboard-card {
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}


body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
} 

/* Navbar Styles */
.navbar-mobile-toggle {
  display: none;
  font-size: 2.2rem;
  color: #181c20;
  cursor: pointer;
  margin-left: 1rem;
  background: none;
  border: none;
  outline: none;
  z-index: 1101;
}
@media (max-width: 900px) {
  .navbar-mobile-toggle {
    display: block;
  }
  .navbar-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100vw;
    background: #ff6600;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 6px 28px #ff660033;
    padding: 0.5rem 0 1rem 0;
    z-index: 1100;
    border-radius: 0 0 18px 18px;
    animation: slideDown 0.23s;
  }
  .navbar-links.show {
    display: flex;
  }
  .navbar-links a {
    color: #fff !important;
    background: none;
    text-align: left;
    padding: 1.1rem 2rem;
    border-radius: 0;
    font-size: 1.6rem;
    border-bottom: 1px solid #ffa36633;
    margin: 0;
  }
  .navbar-links a:last-child {
    border-bottom: none;
  }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.navbar {
  width: 100%;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22) !important;
  padding: 0.7rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-radius: 0 0 18px 18px;
  transition: box-shadow 0.2s, background 0.2s;
  border-bottom: 2px solid #ff6600;
  background: #ff6600 !important;
}

/* Home page navbar: orange */

/* Profile Photo Upload Section */
.profile-photo-section, #profile-photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.profile-photo-section img, #profile-photo-upload img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 2px 12px #0001;
  margin-bottom: 0.5rem;
  background: #fff;
}

.profile-photo-label, #profile-photo-upload .profile-photo-label {
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #222;
  background: none;
  box-shadow: none;
}

#upload-photo-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

#upload-photo-form input[type="file"] {
  margin-bottom: 0.5rem;
}

#upload-photo-form .btn, .upload-btn {
  background: #ff6600;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 2.2rem;
  font-size: 1.15rem;
  margin-top: 0.5rem;
  box-shadow: 0 2px 10px #ff660022;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

#upload-photo-form .btn:hover, .upload-btn:hover {
  background: #ff8500;
  transform: scale(1.04);
}

#upload-photo-msg {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #e53935;
}

.home-navbar {
  background: var(--primary) !important;
  border-bottom: 2px solid #ff6600;
}

/* Other pages: orange */
.navbar:home-navbar {
  background: var(--primary) !important;
}



.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  min-height: 64px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .navbar-container {
    padding: 0 1rem;
  }
}
.navbar-logo, .navbar-logo span {
  display: flex;
  align-items: center;
  font-size: 2.1rem;
  font-weight: 900;
  color: #181c20 !important;
  text-decoration: none;
  letter-spacing: 1px;
  gap: 0.5rem;
  transition: color 0.2s, text-shadow 0.2s;
  text-shadow: 0 2px 8px #ff660044;
} 
.navbar-logo img {
  display: inline-block;
  height: 2.2rem;
  width: auto;
  margin-right: 0.5rem;
}
.navbar-logo span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1.5px;
}
.navbar-logo:hover,
.navbar-logo:focus {
  color: var(--primary);
}

.navbar-links {
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  transition: all 0.2s;
}
.navbar-links a {
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.07rem;
  padding: 0.3rem 1.1rem;
  border-radius: 7px;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
  letter-spacing: 0.7px;
  opacity: 1 !important;
  min-width: 36px;
  text-align: center;
  margin: 0 0.2rem;
  background: none;
}
.navbar-links a:hover, .navbar-links a:focus {
  background: #ffa366 !important;
  color: #fff !important;
}
.navbar-links a:hover {
  color: var(--primary) !important;
  background: #fff1 !important;
  box-shadow: 0 2px 12px #ff660066 !important;
  opacity: 1 !important;
}
.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.navbar-links a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  margin-top: 90px;
  background: linear-gradient(120deg, #181c20 60%, #23272d 100%);
  padding: 7rem 2rem 6rem 2rem;
  text-align: center;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.20);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: linear-gradient(120deg, #ff660022 0%, #ffd70022 100%);
  border-radius: 0 0 32px 32px;
  z-index: 0;
  opacity: 0.5;
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 24px #000a;
  letter-spacing: 1.5px;
}
.hero-desc {
  font-size: 1.25rem;
  color: #e2e6ec;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}
.hero-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
  color: #fff;
  padding: 1.25rem 3rem;
  border-radius: 28px;
  font-weight: 900;
  font-size: 1.25rem;
  text-decoration: none;
  box-shadow: 0 6px 36px #ff660066;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  z-index: 1;
  letter-spacing: 1.4px;
  border: none;
}
.hero-cta:hover {
  background: linear-gradient(90deg, var(--accent) 10%, var(--primary) 90%);
  color: #181c20;
  box-shadow: 0 12px 40px #ffd70066;
  transform: translateY(-2px) scale(1.07);
}

/* Admin Dashboard Topbar */
.admin-topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #fff;
  color: #1976d2;
  box-shadow: 0 2px 16px rgba(44,62,80,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem 0 180px;
  z-index: 3000;
  font-size: 1.15rem;
}

body {
  padding-top: 64px;
}

.admin-topbar-logo {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.admin-topbar-user {
  background: #f2f6fc;
  color: #1976d2;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 0.45em 0.59em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.06);
  font-weight: 700;
}

/* Admin Dashboard Sidebar */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 64px;
  width: 260px;
  height: calc(100vh - 64px);
  background: #ff6600 !important;
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  box-shadow: 2px 0 16px #ff660033;
  border-right: 1.5px solid #fff4;
  border-radius: 24px 0 0 24px;
  overflow-y: auto;
}
.sidebar-logo {
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
  display: inline-block;
}
.sidebar-title {
  font-size: 1.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-left: 0.6rem;
  color: #fff;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 1.5rem 0 1.1rem 1.2rem;
  position: relative;
  background: #ff6600 !important;
  color: #fff !important;
  border-bottom: 1px solid #fff4;
}
.sidebar-divider {
  height: 1px;
  background: #fff4 !important;
  opacity: 0.25;
  margin: 0 1.5rem 0.9rem 1.5rem;
  border-radius: 2px;
}

.sidebar-section-label {

  color: #fff !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 0.5rem 2.2rem;
  font-weight: 700;
  opacity: 0.92;
}

.sidebar-collapse-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: auto;
  transition: color 0.18s;
  opacity: 0.7;
}
.sidebar-collapse-btn:hover {
  color: #ffd700;
  opacity: 1;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 1.1rem 2.2rem;
  border-radius: 10px 0 0 10px;
  font-size: 1.19rem;
  margin-bottom: 0.25rem;
  transition: background 0.16s, color 0.16s, border-left 0.16s, transform 0.15s;
  border-left: 5px solid transparent;
  letter-spacing: 0.7px;
}
.admin-nav-link.active, .admin-nav-link:hover {
  background: #fff4;
  color: #ffd700;
  border-left: 4px solid #ffd700;
  transform: scale(1.04);
}
.admin-nav-link.active, .admin-nav-link:hover {
  background: #fff3;
  color: #ffd700;
  border-left: 4px solid #ffd700;
}

.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1.2rem;
}
.admin-sidebar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 2.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 8px 0 0 8px;
  transition: background 0.18s, color 0.18s;
  font-size: 1.09rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: #fff2;
  color: #ffd700;
}
.admin-sidebar .sidebar-icon {
  font-size: 1.3rem;
  width: 1.7rem;
  text-align: center;
}

/* Admin Dashboard Main Content */
.admin-dashboard-main {
  margin-left: 260px;
  padding: 2.8rem 2.5rem 2.5rem 2.5rem;
  background: #f7fafc;
  min-height: 100vh;
  box-sizing: border-box;
}
.dashboard-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #1976d2;
  margin-bottom: 2.5rem;
  text-align: left;
}
.dashboard-section-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ff6600;
  margin-top: 2.5rem;
  margin-bottom: 1.2rem;
  text-align: left;
}
.dashboard-table {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.09);
  margin-bottom: 2.5rem;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  overflow: hidden;
}
.dashboard-cards {
  margin-top: 0.5rem;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
  margin-bottom: 2.8rem;
}
@media (max-width: 900px) {
  .dashboard-cards {
    grid-template-columns: 1fr;
  }
}
.dashboard-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(44,62,80,0.10);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
  min-height: 130px;
}
.dashboard-card .card-icon {
  font-size: 2.2rem;
  color: #ff6600;
  margin-bottom: 0.3rem;
}
.dashboard-card .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #222831;
}
.dashboard-card .card-value {
  font-size: 2rem;
  font-weight: 900;
  color: #1976d2;
  margin-top: 0.1rem;
}

@media (max-width: 900px) {
  .admin-dashboard-main {
    margin-left: 0;
    padding: 2rem 0.5rem;
  }
  .admin-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: row;
    box-shadow: none;
    border-radius: 0;
  }
} 

/* Section/Card Styles */
.section {
  max-width: 1200px;
  margin: 3.5rem auto 2.5rem auto;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  color: #fff;
  color: #23272d !important;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.section h2 {
  text-align: center;
  margin-bottom: 2rem;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
  padding: 2rem 1.5rem 2.2rem 1.5rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.18s, transform 0.18s, border 0.18s;
  position: relative;
  border: 2px solid transparent;
  color: #23272d;
} 
.card:hover {
  box-shadow: 0 8px 32px #00c9b744;
  transform: translateY(-4px) scale(1.035);
  border: 2px solid var(--accent);
}
.card img {
  border-radius: 12px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px #2b72ff11;
}
.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #23272d;
  margin-bottom: 0.7rem;
}
.card-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-align: center;
    padding: 0 0.5rem;
    margin-bottom: auto; /* Push buttons to bottom */
}

/* Button Styles */

@media (max-width: 900px) {
  .search-form {
    max-width: 120px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin-right: 0.3rem !important;
  }
  .search-input {
    font-size: 0.95rem !important;
    padding: 0.5rem 0.5rem !important;
    min-width: 0 !important;
    width: 70px !important;
    border-radius: 7px !important;
  }
  .search-btn {
    padding: 0.5rem 0.5rem !important;
    font-size: 1.1rem !important;
  }
}

@media (max-width: 600px) {
  .search-form {
    max-width: 90px !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin-right: 0.2rem !important;
  }
  .search-input {
    font-size: 0.83rem !important;
    padding: 0.36rem 0.36rem !important;
    min-width: 0 !important;
    width: 48px !important;
    border-radius: 7px !important;
  }
  .search-btn {
    padding: 0.36rem 0.36rem !important;
    font-size: 1rem !important;
  }
}


@media (max-width: 900px) {
  .nav-icon.user-dropdown {
    display: block !important;
    position: relative !important;
    margin-left: 0.2rem;
    z-index: 1100;
  }
}


.navbar-login-btn {

  background: linear-gradient(90deg, var(--primary) 60%, var(--accent) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.7rem 1.6rem;
  font-weight: 900;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px #ff660044;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px #181c2040;
  margin-left: 1rem;
  display: inline-block;
}

.navbar-login-btn:hover {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 4px 24px #2b72ff44;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
  .navbar-login-btn {
    padding: 0.7rem 1.1rem;
    font-size: 1rem;
    margin-left: 0.5rem;
  }
}

@media (max-width: 600px) {
  .navbar-login-btn {
    width: 100%;
    margin: 0.5rem 0 0.5rem 0;
    font-size: 1.07rem;
    padding: 1rem 0;
    border-radius: 8px;
    text-align: center;
    display: block;
  }
}


/* Fluid images and videos */
img, video, .responsive-media {
  max-width: 100%;
  height: auto;
  display: block;
}

.btn-primary {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  color: #23272d;
  border: none;
  border-radius: 14px;
  padding: 0.9rem 2rem;
  font-weight: 900;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
  box-shadow: 0 2px 12px #00c9b744;
  letter-spacing: 0.3px;
  text-shadow: 0 2px 8px #181c2040;
}
.btn-primary:hover {
  background: linear-gradient(90deg, var(--accent) 0%, var(--primary) 100%);
  box-shadow: 0 4px 24px #2b72ff44;
  transform: translateY(-2px) scale(1.04);
}

/* Responsive */
@media (max-width: 900px) {
  .navbar-container {
    padding: 0 1rem;
  }
  .section {
    padding: 1rem;
  }
  .hero {
    padding: 2rem 0.5rem 2rem 0.5rem;
  }
  .navbar-links {
    display: none;
    flex-direction: column;
    background: #ff6600;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100vw;
    box-shadow: 0 8px 24px #0002;
    z-index: 999;
    gap: 0;
    padding: 1rem 0;
  }
  .navbar-links.show {
    display: flex;
  }
  .navbar-mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2rem;
  }
  .card {
    padding: 1.1rem 0.7rem 1.2rem 0.7rem;
  }
  .navbar-links a {
    padding: 1rem 2rem;
    font-size: 1.15rem;
    text-align: left;
    border-radius: 0;
    border-bottom: 1px solid #ff6600;
  }
}
@media (max-width: 600px) {
  .hero-title {
    font-size: 1.3rem;
  }
  .navbar-logo {
    font-size: 1.3rem;
  }
  .section, .card {
    padding: 0.7rem 0.3rem;
  }
}

/* Existing dashboard styles below remain unchanged */

/* User Dashboard Layout (Admin-like) */
.user-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(90deg, #ff6600 60%, #ffd2b3 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem 0 240px;
  z-index: 3000;
  font-size: 1.15rem;
  box-shadow: 0 2px 16px rgba(44,62,80,0.07);
}
.user-topbar-logo {
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.user-topbar-user {
  background: #f2f6fc;
  color: #ff6600;
  border-radius: 50%;
  font-size: 1.3rem;
  padding: 0.45em 0.59em;
  box-shadow: 0 1px 4px rgba(44,62,80,0.06);
  font-weight: 700;
}

.user-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: linear-gradient(160deg, #ff6600 0%, #ffd2b3 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  z-index: 2000;
  box-shadow: 2px 0 16px rgba(44,62,80,0.08);
  border-right: 1.5px solid #e0f7fa;
  border-radius: 17px 0 0 17px;
  overflow-y: auto;
}
.user-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.7rem;
  padding: 2.3rem 0 1.5rem 0;
}
.user-sidebar .sidebar-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px #ff660022;
  object-fit: cover;
}
.user-sidebar .sidebar-title {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
}
.user-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 1.2rem;
}
.user-nav-link {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 10px 0 0 10px;
  font-size: 1.13rem;
  margin-bottom: 0.18rem;
  transition: background 0.16s, color 0.16s, border-left 0.16s, transform 0.15s;
  border-left: 4px solid transparent;
  letter-spacing: 0.7px;
}
.user-nav-link.active, .user-nav-link:hover {
  background: #fff4;
  color: #ffd700;
  border-left: 4px solid #ffd700;
  transform: scale(1.04);
}
.user-sidebar .sidebar-icon {
  font-size: 1.3rem;
  width: 1.7rem;
  text-align: center;
}

.user-dashboard-main {
  margin-left: 240px;
  padding: 2.8rem 2.5rem 2.5rem 2.5rem;
  background: #f7fafc;
  min-height: 100vh;
  box-sizing: border-box;
  margin-top: 64px;
}

@media (max-width: 900px) {
  .user-sidebar {
    width: 60px;
    padding-top: 80px;
    flex-direction: column;
    height: 100vh;
  }
  .user-dashboard-main {
    margin-left: 60px;
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .sidebar-title, .sidebar-header img, .user-nav-link span:not(.sidebar-icon) {
    display: none !important;
  }
}

/* Improved forms and address management styles */
.input {
  padding: 0.9rem 1.2rem;
  border: 1.5px solid #b6bbc7;
  border-radius: 12px;
  font-size: 1.08rem;
  margin-bottom: 0.2rem;
  background: #f8fafc;
  color: #23272d;
  box-shadow: 0 1px 6px #e0f7fa22;
  transition: border 0.18s, box-shadow 0.18s;
}
.input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 2px 12px #ff660022;
}
#change-password-form, #add-address-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44,62,80,0.08);
  padding: 2.2rem 2rem 1.5rem 2rem;
  margin-bottom: 2.5rem;
}
#change-password-msg, #add-address-msg {
  font-size: 1.08rem;
  font-weight: 600;
  min-height: 1.1em;
  margin-top: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
}
#change-password-msg[style*="green"], #add-address-msg[style*="green"] {
  background: #e6f9f2;
  color: #157a6e;
}
#change-password-msg[style*="red"], #add-address-msg[style*="red"] {
  background: #ffeaea;
  color: #e76f51;
}
#addresses-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#addresses-list li {
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 12px #ff660011;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: box-shadow 0.18s, transform 0.18s;
}
#addresses-list li:hover {
  box-shadow: 0 6px 24px #ff660022;
  transform: scale(1.02);
}
#addresses-list b {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 900;
}
#addresses-list button.delete-address-btn {
  background: #e76f51;
  color: #fff;
  border-radius: 10px;
  padding: 0.7rem 1.3rem;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px #e76f5133;
  transition: background 0.17s, transform 0.15s;
  cursor: pointer;
}
#addresses-list button.delete-address-btn:hover {
  background: #d35400;
  transform: scale(1.07);
}
/* Existing user dashboard card/profile styles below remain unchanged */

/* === Robust Responsive Enhancements (Global) === */

/* === Admin Dashboard Responsive Enhancements === */
@media (max-width: 900px) {
  .admin-sidebar {
    position: relative !important;
    width: 100vw !important;
    min-width: 0 !important;
    max-width: 100vw !important;
    height: auto !important;
    flex-direction: row !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-right: none !important;
    overflow-x: auto !important;
    z-index: 1100;
    padding: 0.3rem 0 0.3rem 0.5rem;
    gap: 0.3rem;
  }
  .admin-sidebar nav {
    flex-direction: row !important;
    gap: 0.2rem !important;
    margin-top: 0 !important;
    width: 100vw !important;
    overflow-x: auto !important;
    justify-content: flex-start;
  }
  .admin-nav-link {
    font-size: 1rem !important;
    padding: 0.8rem 1.1rem !important;
    border-radius: 7px !important;
    margin-bottom: 0 !important;
    border-left: none !important;
    border-bottom: 3px solid transparent !important;
    min-width: 80px;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s, border-bottom 0.18s;
  }
  .admin-nav-link.active, .admin-nav-link:hover {
    background: #fff4 !important;
    color: #ffd700 !important;
    border-bottom: 3px solid #ffd700 !important;
    border-left: none !important;
    transform: scale(1.03);
  }
  .sidebar-header, .sidebar-divider, .sidebar-section-label {
    display: none !important;
  }
  .admin-topbar {
    position: sticky !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    padding: 0.7rem 1.1rem 0.7rem 1.1rem !important;
    font-size: 1.08rem !important;
    z-index: 1200 !important;
    border-radius: 0 0 14px 14px !important;
  }
  .admin-dashboard-main {
    margin-left: 0 !important;
    padding: 1.2rem 0.7rem 1.2rem 0.7rem !important;
  }
  .dashboard-cards {
    grid-template-columns: 1fr !important;
    gap: 1.1rem !important;
  }
  .dashboard-card {
    padding: 1.1rem 0.7rem 1.2rem 0.7rem !important;
    margin-bottom: 1rem !important;
  }
  .dashboard-title {
    font-size: 1.3rem !important;
    margin-bottom: 1.2rem !important;
  }
  table, .dashboard-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    font-size: 0.98rem !important;
    border-radius: 10px !important;
  }
  table tr, .dashboard-table tr {
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important;
    margin-bottom: 1.1rem !important;
    box-shadow: 0 1px 8px #0001 !important;
    background: #fff !important;
    padding: 0.7rem !important;
  }
  table td, .dashboard-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.4rem 0 !important;
    border: none !important;
    font-size: 0.98rem !important;
  }
}

@media (max-width: 600px) {
  .admin-topbar {
    font-size: 0.98rem !important;
    padding: 0.5rem 0.5rem !important;
  }
  .admin-nav-link {
    font-size: 0.93rem !important;
    padding: 0.7rem 0.5rem !important;
    min-width: 64px;
  }
  .dashboard-title {
    font-size: 1.1rem !important;
  }
}


@media (max-width: 900px) {
  .section, .user-dashboard, .admin-dashboard-main {
    padding: 1rem 0.5rem !important;
    margin: 1.5rem 0.5rem !important;
    max-width: 100vw !important;
  }
  .dashboard-cards, .product-grid, .card-list, .blog-list {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .card, .dashboard-card {
    padding: 1rem 0.5rem !important;
    margin-bottom: 1rem !important;
  }
  .dashboard-table, .shop-table, .order-table, table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 12px !important;
  }
  .dashboard-table thead, .shop-table thead, .order-table thead, table thead {
    display: none !important;
  }
  .dashboard-table tr, .shop-table tr, .order-table tr, table tr {
    display: block !important;
    margin-bottom: 1.2rem !important;
    border-radius: 10px !important;
    box-shadow: 0 1px 8px #0001 !important;
    background: #fff !important;
    padding: 1rem !important;
  }
  .dashboard-table td, .shop-table td, .order-table td, table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    font-size: 1rem !important;
  }
  .dashboard-table td:before, .shop-table td:before, .order-table td:before, table td:before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: #ff6600;
    flex-basis: 40%;
    text-align: left;
  }
  /* Footer social links vertical */
  .footer-social {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.6rem !important;
    margin-bottom: 1rem !important;
  }
  .footer-social a {
    font-size: 1.7rem !important;
    margin: 0.2rem 0 !important;
  }
}
@media (max-width: 600px) {
  .section, .user-dashboard, .admin-dashboard-main {
    padding: 0.5rem 0.1rem !important;
    margin: 0.5rem 0.1rem !important;
    max-width: 100vw !important;
  }
  .hero-title, .dashboard-title, .profile-section h2 {
    font-size: 1.1rem !important;
  }
  .navbar-logo {
    font-size: 1.1rem !important;
  }
  .card, .dashboard-card {
    padding: 0.5rem 0.2rem !important;
  }
  .footer-social a {
    font-size: 2rem !important;
  }
}

/* Fluid images and videos (ensure repeated at end) */
img, video, .responsive-media {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
}

.user-dashboard {
    max-width: 1150px;
    margin: 3.5rem auto;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem 3.5rem 3.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.7rem;
}
.profile-section {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 2.2rem;
}
.profile-section img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    background: #fff;
    box-shadow: 0 2px 12px #ff660033;
}
.profile-section h2 {
    margin: 0;
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #1976d2;
}
#edit-profile-btn {
    margin-left: auto;
    padding: 0.8rem 1.7rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 1.13rem;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px #ff660022;
}
#edit-profile-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}
.dashboard-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}
.dashboard-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 16px rgba(44,62,80,0.10);
    padding: 3.2rem 2.7rem 2.9rem 2.7rem;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    min-height: 200px;
}
.dashboard-card h3 {
    margin: 0 0 1.2rem 0;
    color: #1976d2;
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}
.dashboard-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dashboard-card ul li {
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.dashboard-card ul li img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #eaeaea;
}
.dashboard-card button {
    margin-top: 0.8rem;
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.dashboard-card button:hover {
    background: var(--secondary);
}
.logout-btn {
    margin-top: 2.2rem;
    padding: 1rem 2.8rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--secondary);
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    box-shadow: 0 2px 10px #e76f5133;
}
.logout-btn:hover {
    background: #d35400;
    transform: scale(1.04);
}


@media (max-width: 600px) {
    .user-dashboard {
        padding: 1rem 0.5rem;
    }
    .profile-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }
    .dashboard-sections {
        grid-template-columns: 1fr;
    }
}

body {

    font-family: 'Inter', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f7fa;
    color: #23272f;
    font-size: 16px;
    line-height: 1.6;
}

:root {
    --primary: #ff6600;
    --secondary: #e76f51;
    --bg-card: #fff;
    --border-radius: 14px;
    --shadow: 0 4px 24px rgba(44,62,80,0.08);
}

.welcome-header {
    background: var(--primary);
    color: #fff;
    padding: 2.5rem 0 1.5rem 0;
    text-align: center;
    margin-bottom: 2rem;
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.welcome-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    padding: 1.2rem 2.5rem;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
}
.navbar-left a {
    margin-right: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    border-radius: 8px;
    padding: 0.3rem 0.7rem;
}

.navbar-left a.nav-logo {
    font-size: 1.5rem;
    margin-right: 2.2rem;
    color: #23272f;
    font-weight: 700;
    letter-spacing: 2px;
}

.navbar-left a:hover, .navbar-right a:hover {
    color: #e76f51;
}
.navbar-center {
    flex: 1;
    justify-content: center;
}
.search-form {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 2px 10px;
}
.search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.7rem;
    outline: none;
    font-size: 1rem;
    width: 180px;
}
.search-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ff6600;
    padding: 0 8px;
}
.navbar-right a {
    margin-left: 1.2rem;
    font-size: 1.3rem;
    color: #ff6600;
    text-decoration: none;
    transition: color 0.2s;
}
.navbar-right a:hover {
    color: #e76f51;
}
.navbar-left a, .navbar-right a {
    margin-right: 1.5rem;
    text-decoration: none;
    color: #ff6600;
    font-weight: 500;
    transition: color 0.2s;
}
.navbar-left a:last-child, .navbar-right a:last-child {
    margin-right: 0;
}
.navbar-left a:hover, .navbar-right a:hover {
    color: #e76f51;
}
.nav-icon {
    font-size: 1.2rem;
}
html, body, main, .products-list {
    margin: 0 !important;
    padding: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
}
.products-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
    background: #f7f9fa;
}

.product-card {
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Set minimum height to prevent layout jumps */
}

.product-card img {
    flex-shrink: 0;
    margin-bottom: 1rem;
}

.product-card .card-title {
    font-size: 1.18rem;
    font-weight: 700;
    color: #23272d;
    margin-bottom: 0.7rem;
    text-align: left;
    line-height: 1.3;
}

.product-card .card-desc {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    min-height: 44px;
    text-align: left;
}

.product-card .price {
    font-weight: bold;
    color: #ff6600;
    font-size: 1.18rem;
    margin-bottom: 1rem;
}

.add-cart-btn {
width: 100%;
border-radius: 8px;
padding: 0.7rem 0;
margin-bottom: 0.5rem;
font-weight: 600;
background: #ff6600;
color: #fff;
border: none;
transition: background 0.2s;
}

.add-cart-btn:disabled {
background: #bdbdbd;
color: #fff;
cursor: not-allowed;
opacity: 0.7;
}

.add-wishlist-btn {
width: 100%;
border-radius: 8px;
padding: 0.7rem 0;
font-weight: 600;
background: #ff7043;
color: #fff;
border: none;
margin-bottom: 0.2rem;
transition: background 0.2s;
}

.add-wishlist-btn:disabled {
background: #ccc;
color: #888;
}

.product-card:hover {
box-shadow: 0 10px 32px rgba(44, 62, 80, 0.13);
transform: translateY(-6px) scale(1.04);
border: 1.5px solid var(--primary);
}

.product-card img {
width: 90%;
max-width: 260px;
height: 220px;
object-fit: contain;
margin: 0 auto 1.2rem auto;
display: block;
border-radius: 12px;
background: #f9fafb;
box-shadow: 0 1px 4px rgba(44,62,80,0.07);
}

.product-card .card-title {
font-size: 1.25rem;
font-weight: 700;
color: #23272d;
margin-bottom: 0.7rem;
text-align: left;
}

.product-card .card-desc {
color: #444;
font-size: 1.05rem;
margin-bottom: 1.2rem;
min-height: 44px;
text-align: left;
}

.product-card .price {
font-weight: bold;
color: #ff6600;
font-size: 1.18rem;
margin-bottom: 1rem;
}

.add-cart-btn {
width: 100%;
border-radius: 8px;
padding: 0.7rem 0;
margin-bottom: 0.5rem;
font-weight: 600;
background: #ff6600;
color: #fff;
border: none;
transition: background 0.2s;
}

.add-cart-btn:disabled {
background: #bdbdbd;
color: #fff;
cursor: not-allowed;
opacity: 0.7;
    background: #ccc;
    color: #888;
}


.product-card p {
    margin: 0.5rem 0 0 0;
    font-weight: 500;
    color: #333;
}
.add-cart-btn, .add-wishlist-btn, .btn {
    margin: 0.5rem 0.2rem 0 0.2rem;
    padding: 0.5rem 1.3rem;
    border: none;
    border-radius: 30px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    outline: none;
    display: inline-block;
}
.add-cart-btn:disabled {
    background: #bdbdbd;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}
.btn {
    margin: 0.7rem 0.3rem 0 0.3rem;
    padding: 0.6rem 2rem;
    font-size: 1.1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.msg {
    background: #e6f9f2;
    color: #157a6e;
    border-radius: 8px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1.3rem;
    font-weight: 500;
    box-shadow: 0 1px 6px rgba(44,62,80,0.08);
    font-size: 1.04rem;
}
.btn:hover, .add-cart-btn:hover {
    background: #21867a;
    color: #fff;
    box-shadow: 0 4px 16px rgba(44,62,80,0.11);
}
.add-wishlist-btn {
    background: #e76f51;
}
.add-wishlist-btn:hover {
    background: #d35400;
}
.remove-cart-btn, .remove-wishlist-btn {
    margin: 0.5rem 0.2rem 0 0.2rem;
    padding: 0.3rem 0.9rem;
    border: none;
    border-radius: 20px;
    background: #bdbdbd;
    color: #222;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.remove-cart-btn:hover, .remove-wishlist-btn:hover {
    background: #e76f51;
    color: #fff;
}
.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    padding: 1rem;
    text-align: center;
    width: 160px;
}
.product-card img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 0.5rem;
}
.brands-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    align-items: center;
    margin: 1rem 0;
    padding: 0 1rem;
}
.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    padding: 0.5rem;
    transition: box-shadow 0.2s, border 0.2s;
}
.brand-logo:hover {
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.09);
    border: 1px solid #ff6600;
}
.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #ddd;
    padding: 0.5rem;
}
.footer {
    background: #23272f;
    color: #fff;
    text-align: center;
    padding: 1.2rem 0;
    margin-top: 2.5rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

