/* style.css */
:root {
  --bronze: #B38B59;
  --forest: #113E21;
  --light: #F0F0F0;
  --white: #FEFEFE;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(0,0,0,.08);
  --glass-bg: rgba(255, 255, 255, 0.98);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: #222;
  line-height: 1.5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(179, 139, 89, 0.5);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 10001;
  padding: 0.75rem 1rem;
  background: var(--forest);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  left: 16px;
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  min-height: 60px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 100%;
  text-decoration: none;
  color: inherit;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  transition: opacity 0.3s ease;
}

#dynamic-logo {
  max-height: 50px;
  max-width: 200px;
  height: auto;
  width: auto;
  object-fit: contain;
}

#dynamic-logo[hidden] {
  display: none !important;
}

.nav-search {
  flex: 1;
}

.search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 500px;
  margin: 0 1rem;
  position: relative;
}

.search input {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-radius: 25px;
  width: 100%;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: var(--white);
}

.search input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  transform: scale(1.02);
}

.search input:focus + button {
  background-color: #0056b3;
  transform: scale(1.05);
}

.search button {
  padding: 0.5rem 1rem;
  border: 1px solid #ccc;
  border-left: none;
  background-color: #007bff;
  color: #fff;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: absolute;
  right: 0;
  height: 100%;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-icons a {
  color: #333;
  font-size: 1.2rem;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-icons a:hover {
  color: #007bff;
}

.cart-icon .cart-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #dc3545;
  color: #fff;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  min-width: 18px;
  text-align: center;
  display: none;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.hamburger:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #007bff;
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== Mobile Menu ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: right 0.3s ease;
  z-index: 9999;
  overflow-y: auto;
  font-family: 'Poppins', sans-serif;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--forest);
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mobile-menu-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--bronze);
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(17, 62, 33, 0.1);
  background: transparent;
}

.profile-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--glass-border);
}

.profile-name {
  font-weight: 700;
  color: var(--forest);
  font-size: 1.2rem;
}

.menu-list {
  list-style: none;
  padding: 1rem 0;
  margin: 0;
}

.menu-list li {
  border-bottom: 1px solid rgba(17, 62, 33, 0.1);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  color: var(--forest) !important;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  width: 100%;
  border: none;
  text-align: left;
  cursor: pointer;
}

.menu-item:hover {
  background: rgba(179, 139, 89, 0.15);
  color: var(--bronze) !important;
  padding-left: 2rem;
}

.menu-item i {
  margin-right: 1rem;
  width: 20px;
  text-align: center;
  font-size: 1.1rem;
}

.categories-menu {
  position: relative;
}

.categories-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.categories-toggle > span:first-child {
  display: inline-flex;
  align-items: center;
}

.categories-toggle i {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.categories-menu.active .categories-toggle i {
  transform: rotate(180deg);
}

.sub-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(240, 240, 240, 0.9);
  border-top: 1px solid rgba(17, 62, 33, 0.1);
}

.sub-menu.open {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-menu-item {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  color: var(--forest) !important;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  transition: all 0.3s ease;
  background: transparent;
}

.sub-menu-item:hover {
  background: rgba(255, 255, 255, 0.8);
  padding-left: 2.5rem;
  color: var(--bronze) !important;
}

.sub-menu-item i {
  margin-right: 0.8rem;
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

/* Ensure text visibility */
.mobile-menu * {
  color: var(--forest) !important;
  text-shadow: none !important;
}

.mobile-menu a,
.mobile-menu button,
.mobile-menu span {
  color: var(--forest) !important;
}

/* Make mobile menu available on all devices */
@media (min-width: 769px) {
  .hamburger {
    display: flex !important;
  }
  
  .mobile-menu {
    display: block;
  }
}

/* ===== Enhanced Categories ===== */
.categories { 
  padding: 3rem 1.5rem; 
  background: var(--light); 
}

.categories .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--forest);
  position: relative;
  padding-bottom: 1rem;
}

.categories .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--bronze);
  border-radius: 2px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--forest);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--forest);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.cat-card:hover::before {
  transform: scaleX(1);
}

.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cat-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--forest) 0%, var(--bronze) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  transition: all 0.3s ease;
}

.cat-card:hover .cat-icon {
  transform: scale(1.1) rotate(5deg);
}

.cat-card span {
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.cat-card:hover span {
  color: var(--bronze);
}

.cat-card small {
  color: rgba(17, 62, 33, 0.7);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== Product Grid Responsive Layout ===== */
.product-grid {
  display: grid;
  gap: 1.2rem;
}

.cart-items {
  display: grid;
  gap: 1.2rem;
}

/* Small phones (up to 480px) */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .cart-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .navbar {
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }
  
  .search {
    margin: 0 0.3rem;
    max-width: 180px;
  }
  
  .nav-icons {
    gap: 0.5rem;
  }
  
  .logo {
    font-size: 1.2rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  #dynamic-logo {
    max-height: 40px;
    max-width: 150px;
  }
  
  /* Responsive categories */
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .cat-card {
    padding: 0.8rem 0.5rem;
  }
  
  .cat-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .cat-card span {
    font-size: 1rem;
  }
}

/* Regular smartphones (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .cart-items {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .navbar {
    padding: 1rem 1.5rem;
    gap: 0.8rem;
  }
  
  .search {
    margin: 0 0.8rem;
    max-width: 250px;
  }
  
  /* Responsive categories */
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

/* Tablets (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
  
  .cart-items {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
  
  .navbar {
    padding: 1rem 2rem;
    gap: 1rem;
  }
  
  .search {
    margin: 0 1rem;
    max-width: 350px;
  }
}

/* Small laptops (1025px to 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }
  
  .cart-items {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }
  
  .navbar {
    padding: 1rem 2rem;
    gap: 1.5rem;
  }
  
  .search {
    margin: 0 1.5rem;
    max-width: 400px;
  }
}

/* Desktops (1281px to 1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  
  .cart-items {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
  
  .navbar {
    padding: 1rem 3rem;
    gap: 2rem;
  }
  
  .search {
    margin: 0 2rem;
    max-width: 450px;
  }
}

/* Large screens (1441px and above) */
@media (min-width: 1441px) {
  .product-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
  }
  
  .cart-items {
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
  }
  
  .navbar {
    padding: 1rem 4rem;
    gap: 2.5rem;
  }
  
  .search {
    margin: 0 2.5rem;
    max-width: 500px;
  }
}

/* ===== Search Results Grid - Same responsive behavior ===== */
.search-results-grid {
  display: grid;
  gap: 1.2rem;
}

@media (max-width: 480px) {
  .search-results-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .search-results-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .search-results-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.2rem;
  }
}

@media (min-width: 1281px) and (max-width: 1440px) {
  .search-results-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1441px) {
  .search-results-grid {
    grid-template-columns: repeat(8, 1fr);
    gap: 1.5rem;
  }
}

/* ===== Cart Summary Styles ===== */
.cart-summary {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
}

.summary-details {
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light);
}

.summary-row.total {
  border-bottom: none;
  border-top: 2px solid var(--forest);
  padding-top: 1rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.free-delivery {
  color: var(--bronze);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ===== Checkout Form Styles ===== */
.checkout-form {
  max-width: 800px;
  margin: 0 auto;
}

.form-section {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.form-section h4 {
  color: var(--forest);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(17, 62, 33, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===== Payment Methods ===== */
.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  border: 2px solid var(--light);
  border-radius: var(--radius);
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-option label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  cursor: pointer;
  margin: 0;
}

.payment-option input[type="radio"]:checked + label {
  background: rgba(17, 62, 33, 0.05);
}

.payment-option:has(input[type="radio"]:checked) {
  border-color: var(--forest);
  background: rgba(17, 62, 33, 0.02);
}

.payment-icon {
  width: 40px;
  height: 40px;
  background: var(--forest);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.payment-info {
  display: flex;
  flex-direction: column;
}

.payment-name {
  font-weight: 600;
  color: var(--forest);
}

.payment-desc {
  font-size: 0.8rem;
  color: #666;
}

/* ===== Payment Details ===== */
.payment-details {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}

.payment-note {
  background: rgba(179, 139, 89, 0.1);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.payment-note.warning {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

.payment-note p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Order Summary in Checkout ===== */
.order-summary {
  background: var(--light);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd;
}

.checkout-item:last-child {
  border-bottom: none;
}

.summary-totals {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--forest);
}

.back-to-cart {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  margin-top: 1rem;
}

.back-to-cart:hover {
  background: #5a6268;
}

/* ===== Cart Item Styles ===== */
.cart-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: transform 0.3s ease;
}

.cart-item:hover {
  transform: translateY(-2px);
}

.cart-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
}

.cart-item h4 { 
  font-size: 0.9rem; 
  margin: 0.5rem 0;
}

.cart-item .price { 
  color: var(--bronze); 
  font-weight: 600; 
  font-size: 0.85rem; 
}

.cart-item .item-total {
  color: var(--forest);
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item .quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.cart-item .quantity-control button {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}

.cart-item .quantity-control button:hover { 
  background: var(--bronze); 
}

.cart-item .quantity-control input {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  padding: 0.2rem;
  font-size: 0.8rem;
}

.cart-item button.remove-item {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.cart-item button.remove-item:hover { 
  background: var(--bronze); 
}

.empty-cart {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 2rem;
  grid-column: 1 / -1;
}

/* ===== Map and Location Styles ===== */
.location-search-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.location-search-container input {
  flex: 1;
}

.location-btn {
  background: var(--bronze);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.location-btn:hover {
  background: var(--forest);
}

.location-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.map-container {
  background: var(--light);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.map-instructions {
  background: rgba(179, 139, 89, 0.1);
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #666;
}

.map-instructions i {
  color: var(--bronze);
}

/* Leaflet Map Styles */
#address-map {
  width: 100%;
  border: 2px solid var(--forest);
  border-radius: var(--radius);
}

.leaflet-container {
  background: #f8f9fa;
  font-family: 'Poppins', sans-serif;
}

.leaflet-popup-content {
  font-family: 'Poppins', sans-serif;
}

.leaflet-control-zoom a {
  background: var(--forest) !important;
  color: white !important;
  border: none !important;
}

.leaflet-control-zoom a:hover {
  background: var(--bronze) !important;
}

/* ===== Buttons ===== */
.checkout-btn, .submit-checkout {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 1rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  font-size: 1.1rem;
}

.checkout-btn:hover, .submit-checkout:hover {
  background: var(--bronze);
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.btn-primary { background: var(--forest); color: white; }
.btn-success { background: #28a745; color: white; }
.btn-warning { background: #ffc107; color: #212529; }
.btn-danger { background: #dc3545; color: white; }
.btn-info { background: #17a2b8; color: white; }

.btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ===== Section Styles ===== */
.section-title {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--forest);
  text-align: center;
}

.cart {
  padding: 1.5rem 0.5rem;
  background: var(--light);
  min-height: 50vh;
}

/* ===== Search Results ===== */
.search-results {
  padding: 1.5rem 1rem;
  background: var(--light);
}
.search-results.active ~ .hero,
.search-results.active ~ .categories,
.search-results.active ~ .deals,
.search-results.active ~ .products {
  display: none;
}

.hero {
  position: relative;
  height: 300px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.slides {
  display: flex;
  width: 100%;
}

.slide {
  min-width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.btn {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #0056b3;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* ===== Deals Carousel ===== */
.deals { padding: 2.5rem 1rem; }
.deal-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: .5rem;
}
.deal-track.empty::before {
  content: 'No products available in this category.';
  padding: 1rem;
  font-size: 1rem;
  color: var(--forest);
}
.product-card {
  flex: 0 0 160px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}
.product-card:hover { transform: scale(1.03); }
.product-card img { width: 100%; height: 120px; object-fit: cover; border-radius: var(--radius); }
.prod-price, .price { color: var(--bronze); font-weight: 600; margin: .4rem 0; }
.quantity-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.quantity-control.hidden { display: none; }
.quantity-control button {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.quantity-control button:hover { background: var(--bronze); }
.quantity-control input {
  width: 40px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  padding: 0.2rem;
  font-size: 0.8rem;
}
.add-cart {
  background: var(--forest);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: .5rem 1rem;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.add-cart:hover { background: var(--bronze); }
.add-cart.added {
  background: var(--bronze);
  transform: scale(1.05);
}

/* ===== Product Listing Styles ===== */
.products {
  padding: 2.5rem 1rem;
  background: var(--light);
}
.product-grid.empty::before {
  content: 'No products available in this category.';
  padding: 1rem;
  font-size: 1rem;
  color: var(--forest);
}
.product-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); }
.prod-name { margin: .7rem 0 .4rem; font-size: 1rem; }
.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.pagination-status {
  margin: 0;
  color: var(--forest);
  font-weight: 600;
}
.pagination-btn {
  border: none;
  border-radius: 999px;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.pagination-btn:hover:not(:disabled) {
  background: var(--bronze);
  transform: translateY(-1px);
}
.pagination-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

/* ===== Profile Section ===== */
.profile {
  padding: 1.5rem 1rem;
  background: var(--light);
}
.profile-details {
  max-width: 500px;
  margin: 0 auto;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-img-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}
.profile-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}
.profile-form {
  max-width: 500px;
  margin: 1rem auto;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===== Orders Section ===== */
.orders {
  padding: 1.5rem 1rem;
  background: var(--light);
}
.orders-list {
  max-width: 600px;
  margin: 0 auto;
}
.order-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  margin-bottom: 1rem;
}
.order-item h4 {
  font-size: 1rem;
  color: var(--forest);
}
.order-item p {
  font-size: 0.9rem;
  margin: 0.5rem 0;
}
.order-item ul {
  list-style: none;
  padding: 0;
}
.order-item li {
  font-size: 0.85rem;
  margin: 0.3rem 0;
}

/* ===== Horizontal Footer ===== */
.site-footer {
  background: var(--forest);
  color: var(--white);
  padding: 2.5rem 2rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: flex-start;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-section {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  text-align: left;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 0.2rem 0;
}

.footer-links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--bronze);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  max-width: 1200px;
  margin: 0 auto;
}

.payment-methods {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 1.8rem;
}

.payment-methods i {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.payment-methods i:hover {
  opacity: 1;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
  .hamburger { display: block; }
  .mobile-menu { display: block; }
  
  .cart-summary {
    max-width: 100%;
    margin: 2rem auto 0;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .payment-option label {
    padding: 0.75rem;
  }
  
  .location-search-container {
    flex-direction: column;
  }
  
  .location-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Responsive categories */
  .categories {
    padding: 2rem 1rem;
  }
  
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .cat-card {
    padding: 1rem 0.5rem;
  }
  
  .cat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  
  /* Responsive footer */
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .footer-section {
    text-align: center;
    max-width: 100%;
  }
  
  .footer-links {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Loading Spinner */
.fa-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}


/* Tracking Page Styles */
.tracking-timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-step {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.timeline-step:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    z-index: 2;
}

.timeline-step.completed::before {
    background: #28a745;
}

.timeline-step.active::before {
    background: #007bff;
    animation: pulse 2s infinite;
}

.timeline-step.cancelled::before {
    background: #dc3545;
}

.timeline-step::after {
    content: '';
    position: absolute;
    left: -1.94rem;
    top: 12px;
    width: 2px;
    height: calc(100% + 1rem);
    background: #ddd;
    z-index: 1;
}

.timeline-step:last-child::after {
    display: none;
}

.timeline-step.completed::after {
    background: #28a745;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Print Styles */
@media print {
    .navbar, .mobile-menu, .site-footer, .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}


/* Enhanced Tracking Styles */
.merchant-progress {
    display: grid;
    gap: 0.5rem;
}

.progress-step {
    transition: all 0.3s ease;
}

.progress-step.completed {
    transform: translateX(5px);
}

.detailed-timeline-steps {
    max-height: 400px;
    overflow-y: auto;
}

.timeline-event {
    transition: all 0.3s ease;
}

.timeline-event.completed:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Email Log Styles (for dashboard) */
.email-log {
    background: white;
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.email-item {
    padding: 0.5rem;
    border-bottom: 1px solid var(--light);
    font-size: 0.9rem;
}

.email-item:last-child {
    border-bottom: none;
}

.email-subject {
    font-weight: 600;
    color: var(--forest);
}

.email-meta {
    color: #666;
    font-size: 0.8rem;
}

.payment-popup-overlay {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.6);
  display:flex; align-items:center; justify-content:center;
  z-index:2000;
}
.payment-popup {
  background: #fff; padding:22px; border-radius:10px; width:90%; max-width:420px;
  text-align:center;
}
.payment-popup .popup-brand { margin-bottom:6px; font-size:16px; color:var(--primary-color,#1b75d0); }
.confirm-btn { background: var(--primary-color,#1b75d0); color:#fff; padding:10px 14px; border:none; border-radius:6px; cursor:pointer; }
.cancel-btn { background:#eee; padding:10px 14px; border:none; border-radius:6px; cursor:pointer; margin-left:6px; }

/* ============================================
   RESPONSIVE MEDIA QUERIES FOR ALL SCREEN SIZES
   ============================================ */

/* Extra Small Devices (Phones, 320px - 480px) */
@media (max-width: 480px) {
  /* Common mobile adjustments for all components */
  .container, 
  .auth-container,
  .cart-main,
  .profile-main,
  .manage-main,
  .upload-main,
  .kafra-main,
  .product-details-main {
    padding: 10px;
    width: 100%;
  }
  
  h1 {
    font-size: 1.8rem !important;
  }
  
  h2 {
    font-size: 1.4rem !important;
  }
  
  .form-row,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
  
  .mobile-hide {
    display: none !important;
  }
  
  .mobile-full {
    width: 100% !important;
  }
}

/* Small Devices (Tablets, 481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Tablet adjustments */
  .container, 
  .auth-container,
  .cart-main,
  .profile-main,
  .manage-main,
  .upload-main,
  .kafra-main,
  .product-details-main {
    padding: 15px;
    max-width: 100%;
  }
  
  .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .tablet-hide {
    display: none !important;
  }
}

/* Medium Devices (Small Laptops, 769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Small laptop adjustments */
  .container {
    max-width: 95%;
  }
  
  .grid-4 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  
  .sidebar {
    width: 250px;
  }
  
  .main-content {
    margin-left: 250px;
  }
}

/* Large Devices (Desktops, 1025px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  /* Standard desktop */
  .container {
    max-width: 1200px;
  }
  
  .grid-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  
  .grid-6 {
    grid-template-columns: repeat(5, 1fr) !important;
  }
}

/* Extra Large Devices (Large Desktops, 1281px - 1440px) */
@media (min-width: 1281px) and (max-width: 1440px) {
  /* Large desktop optimizations */
  .container {
    max-width: 1320px;
  }
  
  .grid-6 {
    grid-template-columns: repeat(6, 1fr) !important;
  }
}

/* Ultra Large Devices (4K Screens, 1441px and above) */
@media (min-width: 1441px) {
  /* 4K/Ultra-wide optimizations */
  .container {
    max-width: 1400px;
  }
  
  body {
    font-size: 1.05rem;
  }
  
  .grid-8 {
    grid-template-columns: repeat(8, 1fr) !important;
  }
}

/* Add to your existing style.css file */

/* Admin Dashboard Specific Styles */
.admin-navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin-right: 15px;
}

.admin-name {
    font-weight: 500;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.admin-menu .profile-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.profile-role {
    font-size: 0.85rem;
    opacity: 0.9;
}

.menu-divider {
    padding: 10px 20px;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
}

.logout-item {
    color: #e74c3c !important;
}

/* Dashboard Main */
.dashboard-main {
    padding: 30px;
    background: #f7fafc;
    min-height: calc(100vh - 120px);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.header-content h1 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 2rem;
}

.header-content p {
    margin: 0;
    color: #718096;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-time {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    font-size: 0.95rem;
}

.quick-help-btn {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    color: #4a5568;
    transition: all 0.3s ease;
}

.quick-help-btn:hover {
    background: #edf2f7;
    color: #667eea;
}

/* Dashboard Stats */
.dashboard-stats {
    margin-bottom: 40px;
}

.section-title {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.total-products {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.active-products {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-icon.low-stock {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-icon.out-of-stock {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-icon.featured {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon.deals {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: #2d3748;
}

.stat-info p {
    margin: 0 0 5px 0;
    color: #4a5568;
    font-weight: 500;
}

.stat-info small {
    color: #a0aec0;
    font-size: 0.85rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 40px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.action-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.action-card.primary::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.action-card.secondary::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.action-card.tertiary::before { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.action-card.success::before { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.action-card.info::before { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.action-card.warning::before { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 20px;
}

.action-card.primary .action-icon { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.action-card.secondary .action-icon { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.action-card.tertiary .action-icon { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.action-card.success .action-icon { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.action-card.info .action-icon { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.action-card.warning .action-icon { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }

.action-card h3 {
    margin: 0 0 10px 0;
    color: #2d3748;
    font-size: 1.2rem;
}

.action-card p {
    margin: 0 0 15px 0;
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Dashboard Columns */
.dashboard-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Recent Section */
.recent-section,
.status-section,
.tips-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e2e8f0;
}

.recent-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recent-section .section-header h2 {
    margin: 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}

.view-all:hover {
    gap: 8px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.recent-item:hover {
    border-color: #667eea;
}

.recent-item img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.recent-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2d3748;
}

.recent-item-info p {
    margin: 0 0 5px 0;
    color: #718096;
    font-size: 0.85rem;
}

.recent-item-info small {
    color: #a0aec0;
    font-size: 0.8rem;
}

/* Status Section */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.status-item i {
    font-size: 24px;
    color: #667eea;
    width: 40px;
    text-align: center;
}

.status-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #2d3748;
}

.status-info p {
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

/* Tips Section */
.tips-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
}

.tip-item i {
    color: #667eea;
    font-size: 18px;
    margin-top: 2px;
}

.tip-item p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Admin Footer */
.admin-footer {
    background: #2d3748;
    color: white;
    padding: 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.footer-info p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #cbd5e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #4a5568;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    margin: 0;
    color: #a0aec0;
    font-size: 0.9rem;
}

.footer-stats {
    display: flex;
    gap: 20px;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Upload Page Specific */
.upload-header .header-actions {
    margin-top: 20px;
}

.back-to-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-to-dashboard:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-main {
        padding: 20px;
    }
    
    .stats-grid,
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .header-content h1 {
        font-size: 1.5rem;
    }
    
    .footer-content,
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .stat-card,
    .action-card,
    .management-card {
        flex-direction: column;
        text-align: center;
    }
    
    .card-icon {
        margin: 0 auto;
    }
}
