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

:root {
  --black: #000000;
  --white: #FFFFFF;
  --light-grey: #E6E6E6;
  --text-dark: #333333;
  --text-light: #666666;
  --success: #4CAF50;
  --danger: #E53935;
  --radius: 16px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Poppins', 'Inter', sans-serif;
  background: #1a1a1a;
  color: #FFFFFF;
  min-height: 100vh;
  position: relative;
}

/* Light gray shade overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(230, 230, 230, 0.15);
  z-index: -2;
  pointer-events: none;
}

/* Edith Logo as Background Pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/logo.jpg');
  background-position: center center;
  background-size: 600px auto;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: -1;
  pointer-events: none;
}

/* Fallback if logo doesn't load */
@supports not (background-image: url('../images/logo.jpg')) {
  body::after {
    display: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding: 6rem 1rem 3rem;
  min-height: calc(100vh - 200px);
}

.login-section {
  max-width: 500px;
  margin: 2rem auto;
  width: 100%;
  padding: 1rem;
}

.login-title {
  font-size: 1.8rem;
  color: #FFFFFF;
  margin: 1rem 0 2rem 0;
  text-align: center;
}

.nav {
  position: sticky;
  top: 0;
  width: 100%;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border-bottom: 1px solid var(--light-grey);
  box-shadow: var(--shadow);
  z-index: 50;
  min-height: 70px;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: #FFFFFF;
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #FFFFFF;
  font-weight: 700;
}

.logo img,
.navbar-logo {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  object-fit: contain;
  background: transparent;
  display: block !important;
  flex-shrink: 0;
  opacity: 1 !important;
  visibility: visible !important;
  filter: brightness(0) invert(1);
}

.logo img:not([src]),
.logo img[src=""],
.logo img[src="undefined"],
.navbar-logo:not([src]),
.navbar-logo[src=""],
.navbar-logo[src="undefined"] {
  display: none;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  transition: var(--transition);
}

/* Mobile menu styles */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    padding: 0;
    gap: 0;
    min-height: auto;
    background: #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .nav-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    background: #000000;
    border-bottom: 1px solid rgba(230, 230, 230, 0.15);
  }
  
  .nav-brand .logo {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    flex: 1;
    font-weight: 700;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 2;
    margin-left: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
  }
  
  .mobile-menu-toggle span {
    background: #FFFFFF;
    width: 24px;
    height: 2.5px;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.95);
    order: 3;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .nav-links.mobile-open {
    display: flex;
    max-height: 500px;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(230, 230, 230, 0.1);
  }
  
  .nav-links a {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.25rem;
    border-radius: 0;
    font-size: 0.8rem;
    border: none;
    border-bottom: 1px solid rgba(230, 230, 230, 0.05);
    transition: all 0.2s ease;
    color: #FFFFFF;
    font-weight: 500;
    letter-spacing: 0.05em;
  }
  
  .nav-links a:last-child {
    border-bottom: none;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    padding-left: 1.5rem;
  }
  
  .nav-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(230, 230, 230, 0.15);
    order: 4;
  }
  
  .nav-actions .btn {
    flex: 1;
    font-size: 0.75rem;
    padding: 0.7rem 0.85rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--radius);
  }
  
  .nav-actions .icon-link {
    font-size: 1.4rem;
    padding: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
  }
  
  .nav-actions .icon-link:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .nav-brand {
    padding: 0.75rem 0.85rem;
  }
  
  .nav-brand .logo {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }
  
  .mobile-menu-toggle {
    padding: 0.4rem;
  }
  
  .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
  }
  
  .nav-links.mobile-open {
    padding: 0.4rem 0;
  }
  
  .nav-links a {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    padding-left: 1.25rem;
  }
  
  .nav-actions {
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
  }
  
  .nav-actions .btn {
    font-size: 0.7rem;
    padding: 0.65rem 0.75rem;
  }
  
  .nav-actions .icon-link {
    font-size: 1.3rem;
    min-width: 44px;
    padding: 0.55rem;
  }
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #FFFFFF;
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-links a.active,
.nav-links a:hover {
  color: #FFFFFF;
  border-color: var(--light-grey);
  background: rgba(255, 255, 255, 0.1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  color: #FFFFFF;
  font-size: 1.4rem;
  transition: var(--transition);
}

.icon-link:hover {
  transform: scale(1.1);
  opacity: 0.7;
}

.btn {
  padding: 0.65rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  font-weight: 600;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  transition: var(--transition);
}

.btn:hover {
  background: var(--text-dark);
  border-color: var(--text-dark);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn.ghost {
  background: transparent;
  color: #FFFFFF;
  border-color: #FFFFFF;
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn.small {
  font-size: 0.7rem;
  padding: 0.4rem 0.9rem;
}

.hero {
  position: relative;
  margin: 2rem auto;
  width: min(1200px, 100%);
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--light-grey);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  padding: 2rem;
  border-radius: var(--radius);
  width: 100%;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  color: var(--white);
  font-weight: 700;
}

.hero p {
  max-width: 460px;
  color: var(--white);
}

.section {
  width: min(1200px, 100%);
  margin: 0 auto 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #FFFFFF;
  font-weight: 700;
}

.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
}

.product-card {
  min-width: 260px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: #FFFFFF;
}

.product-media {
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  padding: 1.2rem;
}

.product-meta h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.product-meta p {
  color: var(--text-dark);
  font-weight: 700;
}

.badge {
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  background: var(--light-grey);
  border: 1px solid var(--light-grey);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  display: inline-flex;
  color: var(--text-dark);
  font-weight: 600;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 2rem 1rem;
}

.form-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #FFFFFF;
  font-weight: 600;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: #FFFFFF;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

/* Style select dropdown options */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FFFFFF' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option {
  background: #000000;
  color: #FFFFFF;
  padding: 0.75rem 1rem;
}

/* For better dropdown visibility in admin pages */
[data-admin] select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--light-grey) !important;
}

[data-admin] select:focus,
[data-admin] select:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: #FFFFFF !important;
}

[data-admin] select option {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  padding: 0.75rem 1rem !important;
}

[data-admin] select option:hover,
[data-admin] select option:checked,
[data-admin] select option:focus {
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-light);
}

.cart-grid,
.orders-grid {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--light-grey);
  box-shadow: var(--shadow);
  align-items: start;
}

.cart-item img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  grid-row: 1;
  align-self: start;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 1rem;
  margin: 0;
  word-wrap: break-word;
}

.cart-item-info p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin: 0;
}

.cart-item-info strong {
  font-size: 1rem;
  color: #FFFFFF;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
}

.cart-item-quantity input {
  width: 60px;
  text-align: center;
  padding: 0.5rem;
}

.cart-item .btn {
  white-space: nowrap;
}

.order-tracker {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tracker-node {
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  border: 1px dashed var(--light-grey);
  color: #FFFFFF;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.05);
}

.tracker-node.active {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  border-style: solid;
  font-weight: 600;
}

.payment-card {
  text-align: center;
}

.upi-id {
  font-size: 1.4rem;
  margin: 1.2rem 0;
  color: #FFFFFF;
  font-weight: 700;
}

.qr-box {
  width: 300px;
  max-width: 100%;
  margin: 1.5rem auto 2rem;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.qr-box img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block !important;
  border-radius: var(--radius);
  object-fit: contain;
  visibility: visible !important;
  opacity: 1 !important;
}

.footer {
  padding: 3rem 1rem;
  margin-top: 4rem;
  border-top: 1px solid var(--light-grey);
  text-align: center;
  color: #FFFFFF;
}

.admin-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  position: relative;
}

.sidebar {
  min-height: 100vh;
  background: #000000;
  border-right: 1px solid var(--light-grey);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  color: #FFFFFF;
  transition: var(--transition);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.sidebar a:hover,
.sidebar a.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.admin-content {
  padding: 3rem;
  background: #1a1a1a;
  min-height: 100vh;
}

/* Admin Mobile Menu Toggle - Removed (Admin panel is desktop-only) */
/* Mobile Sidebar Overlay - Removed (Admin panel is desktop-only) */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.stat-card h3 {
  color: #FFFFFF;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.stat-value {
  color: #FFFFFF;
  font-size: 2rem;
  font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.table th,
.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--light-grey);
  text-align: left;
}

.table th {
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}

.table td {
  color: #FFFFFF;
}

.status {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}

.status.paid {
  background: var(--success);
  color: var(--white);
}

.status.pending {
  background: var(--light-grey);
  color: #000000;
}

h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF;
  font-weight: 700;
}

/* Success and Error Messages */
.success-message,
.error-message {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  display: none;
  animation: slideIn 0.3s ease;
}

.success-message {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid var(--success);
  color: #4CAF50;
}

.error-message {
  background: rgba(229, 57, 53, 0.2);
  border: 1px solid var(--danger);
  color: #FF5252;
}

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

/* Mobile Responsive Styles */

/* Tablet and below (960px) */
@media (max-width: 960px) {
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  
  .nav-links a {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
  
  .hero {
    aspect-ratio: 3 / 4;
    margin: 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
  
  .cart-grid,
  .orders-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Admin mobile responsive styles removed - Admin panel is desktop-only */
  
  .cart-item {
    grid-template-columns: 100px 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .cart-item img {
    width: 100px;
    height: 100px;
    grid-row: 1 / 3;
  }
  
  .cart-item-info {
    grid-column: 2;
    grid-row: 1;
  }
  
  .cart-item-quantity {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
  
  .cart-item .btn.ghost.small {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    margin-top: 0.5rem;
  }
  
  .table {
    font-size: 0.85rem;
  }
  
  .table th,
  .table td {
    padding: 0.75rem 0.5rem;
  }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
  body::after {
    background-size: 300px auto;
  }
  
  main {
    padding: 5rem 0.75rem 2rem;
  }
  
  /* Admin login mobile styles removed - Admin panel is desktop-only */
  /* User-facing login styles remain below */
  
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  input,
  select,
  textarea {
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    width: 100%;
  }
  
  .hero {
    margin: 0.75rem;
    border-radius: 12px;
  }
  
  .hero-overlay {
    padding: 1.5rem;
  }
  
  .product-card {
    min-width: 180px;
  }
  
  .product-meta {
    padding: 1rem;
  }
  
  .product-meta h4 {
    font-size: 0.95rem;
  }
  
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 0.75rem;
    padding: 0.875rem;
  }
  
  .cart-item img {
    width: 80px;
    height: 80px;
    grid-row: 1 / 3;
  }
  
  .cart-item-info {
    grid-column: 2;
  }
  
  .cart-item-info h3 {
    font-size: 0.9rem;
  }
  
  .cart-item-info p {
    font-size: 0.8rem;
  }
  
  .cart-item-info strong {
    font-size: 0.9rem;
  }
  
  .cart-item-quantity {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }
  
  .cart-item-quantity input {
    width: 50px;
    padding: 0.4rem;
    font-size: 0.85rem;
  }
  
  .cart-item .btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: start;
    margin-top: 0.5rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .qr-box {
    width: 100%;
    max-width: 280px;
    padding: 0.75rem;
  }
  
  .upi-id {
    font-size: 1.2rem;
    word-break: break-all;
  }
  
  .footer {
    padding: 2rem 1rem;
    font-size: 0.9rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.75rem;
  }
  
  .logo {
    font-size: 1rem;
  }
  
  .logo img,
  .navbar-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  
  .icon-link {
    font-size: 1.2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .contact-info {
    padding: 1.5rem;
  }
  
  .bulk-order-notice {
    padding: 1.25rem;
    margin: 1.5rem 0;
  }
  
  .bulk-order-notice p {
    font-size: 1rem;
  }
}

/* Small Mobile (600px and below) */
@media (max-width: 600px) {
  .product-card {
    min-width: 160px;
  }
  
  main {
    padding-top: 6rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .nav {
    padding: 0.75rem;
    min-height: 60px;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .nav-links a {
    font-size: 0.65rem;
    padding: 0.3rem 0.6rem;
  }
  
  .section-title {
    font-size: 1.3rem;
    letter-spacing: 0.2em;
  }
  
  .form-card {
    padding: 1rem;
  }
  
  .login-title {
    font-size: 1.3rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-card {
    padding: 1.5rem;
  }
  
  .stat-value {
    font-size: 1.75rem;
  }
  
  .table {
    font-size: 0.8rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table th,
  .table td {
    padding: 0.6rem 0.4rem;
    white-space: nowrap;
  }
  
  .cart-item {
    grid-template-columns: 70px 1fr;
    padding: 0.75rem;
    gap: 0.5rem;
  }
  
  .cart-item img {
    width: 70px;
    height: 70px;
  }
  
  .horizontal-scroll {
    gap: 1rem;
    padding-bottom: 0.75rem;
  }
  
  .hero {
    margin: 0.5rem;
    border-radius: 10px;
  }
  
  .hero-overlay {
    padding: 1rem;
  }
  
  .hero h1 {
    font-size: clamp(1.25rem, 6vw, 2rem);
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  .qr-box {
    max-width: 250px;
    padding: 0.5rem;
  }
  
  .upi-id {
    font-size: 1rem;
  }
  
  .contact-info h3 {
    font-size: 1.1rem;
  }
  
  .contact-info p {
    font-size: 0.9rem;
  }
  
  .bulk-order-notice p {
    font-size: 0.95rem;
  }
}

/* Extra Small Mobile (480px and below) */
@media (max-width: 480px) {
  body::after {
    background-size: 200px auto;
  }
  
  main {
    padding-top: 5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  .nav {
    padding: 0.5rem;
  }
  
  .logo {
    font-size: 0.9rem;
  }
  
  /* Admin mobile styles removed - Admin panel is desktop-only */
  
  .logo img,
  .navbar-logo {
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }
  
  .nav-links a {
    font-size: 0.6rem;
    padding: 0.25rem 0.5rem;
  }
  
  .btn {
    padding: 0.55rem 1rem;
    font-size: 0.7rem;
  }
  
  .btn.small {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }
  
  .form-card {
    padding: 0.75rem;
  }
  
  .login-title {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.1rem;
  }
  
  .product-card {
    min-width: 140px;
  }
  
  .product-meta {
    padding: 0.75rem;
  }
  
  .product-meta h4 {
    font-size: 0.85rem;
  }
  
  .product-meta p {
    font-size: 0.9rem;
  }
  
  .cart-item {
    grid-template-columns: 60px 1fr;
    padding: 0.5rem;
  }
  
  .cart-item img {
    width: 60px;
    height: 60px;
  }
  
  .qr-box {
    max-width: 220px;
  }
  
  .upi-id {
    font-size: 0.9rem;
  }
  
  .footer {
    padding: 1.5rem 0.75rem;
    font-size: 0.85rem;
  }
  
  .badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.6rem;
  }
  
  label {
    font-size: 0.8rem;
  }
  
  input,
  select,
  textarea {
    padding: 0.65rem 0.8rem;
    font-size: 0.9rem;
  }
  
  .icon-link {
    font-size: 1.1rem;
  }
  
  .contact-info {
    padding: 1rem;
  }
  
  .bulk-order-notice {
    padding: 1rem;
  }
  
  .bulk-order-notice p {
    font-size: 0.85rem;
  }
}

/* Landscape Mobile */
@media (max-width: 900px) and (orientation: landscape) {
  main {
    padding-top: 4rem;
  }
  
  .hero {
    aspect-ratio: 16 / 9;
  }
}
