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

/* CSS Variables for Premium Design System */
:root {
  --primary: #d97706;
  /* Rich Bronze/Amber */
  --primary-hover: #b55c00;
  --primary-light: #fef3c7;
  --secondary: #334155;
  /* Cool Slate Steel */
  --secondary-hover: #1e293b;
  --steel-blue: #0284c7;

  /* Gradients */
  --gradient-metallic: linear-gradient(135deg, #f1f5f9 0%, #cbd5e1 100%);
  --gradient-dark-metallic: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --gradient-premium: linear-gradient(135deg, #1e293b 0%, #d97706 100%);
  --gradient-glow: linear-gradient(135deg, #ffedd5 0%, #fee2e2 100%);

  /* Base Colors */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Text */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #ffffff;

  /* Statuses */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;

  /* Borders and Shadows */
  --border: #e2e8f0;
  --border-focus: #cbd5e1;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Animation Speeds */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Dark Mode Variables (if activated, though we focus on premium light/slate themes) */
[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-card: #151c2c;
  --bg-glass: rgba(21, 28, 44, 0.85);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #223049;
  --border-focus: #3b537d;
  --gradient-metallic: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.4);
}

/* Match browser theme settings by default */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-main: #0b0f19;
    --bg-card: #151c2c;
    --bg-glass: rgba(21, 28, 44, 0.85);
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #223049;
    --border-focus: #3b537d;
    --gradient-metallic: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.4);
  }
}

/* CSS Reset & General Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

button,
input,
select,
textarea {
  border: none;
  outline: none;
  font-size: inherit;
  font-family: inherit;
}

button {
  cursor: pointer;
  background: none;
  transition: var(--transition-smooth);
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulseBadge {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes shiver {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg);
  }

  75% {
    transform: rotate(3deg);
  }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Layout & Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Sticky Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient-premium);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 22px;
  box-shadow: var(--shadow-md);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.logo-subtitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
}

/* Header Navigation & Search */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar-container {
  position: relative;
  display: none;
  /* Shown dynamically or on larger screens */
}

@media(min-width: 768px) {
  .search-bar-container {
    display: block;
    flex: 1;
    max-width: 450px;
    margin: 0 40px;
  }
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 14px;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  /* centering */
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
}

/* Quick Navigation Links */
.desktop-nav {
  display: none;
}

@media(min-width: 1024px) {
  .desktop-nav {
    display: block;
  }
}

nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
  font-weight: 600;
  font-size: 15px;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary);
}

/* Badge Buttons (Cart & Admin) */
.icon-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary);
  color: var(--text-white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-card);
  line-height: 1;
  min-width: 18px;
  text-align: center;
}

.badge.pulse {
  animation: pulseBadge 0.3s ease-out;
}

.admin-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: var(--secondary);
  color: var(--text-white);
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.admin-nav-btn:hover {
  background: var(--secondary-hover);
  transform: translateY(-2px);
}

.admin-nav-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile Menu Trigger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

@media(min-width: 768px) {
  .menu-toggle {
    display: none !important;
  }
}

@media(max-width: 767px) {
  .header-container {
    position: relative;
    padding-left: 50px !important;
  }

  .menu-toggle {
    position: absolute !important;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;
    display: flex !important;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--gradient-dark-metallic);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
  min-height: 240px;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: brightness(0.7) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 30px;
  color: var(--text-white);
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(217, 119, 6, 0.2);
  border: 1px solid var(--primary);
  border-radius: var(--radius-full);
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-desc {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media(min-width: 768px) {
  .hero {
    min-height: 380px;
  }

  .hero-content {
    padding: 60px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-desc {
    font-size: 16px;
  }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--text-white);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-main);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Category Filter Tabs */
.categories-container {
  margin: 30px 0 15px;
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding-bottom: 10px;
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.categories-container::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.category-tab {
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.category-tab.active {
  background: var(--text-main);
  color: var(--text-white);
  border-color: var(--text-main);
}

/* Shop Controls (Sort, Filters, Search) */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
  flex-wrap: wrap;
}

.search-mobile {
  width: 100%;
}

@media(min-width: 768px) {
  .search-mobile {
    display: none;
  }
}

.results-count {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.sort-select-wrapper {
  position: relative;
}

.sort-select {
  padding: 10px 36px 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: var(--transition-smooth);
}

.sort-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.sort-select-wrapper::after {
  content: '▼';
  font-size: 9px;
  color: var(--text-muted);
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Products Grid & Premium Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  transition: var(--transition-bounce);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.product-image-container {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gradient-metallic);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.product-card:hover .product-image-container img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-instock {
  background: var(--success-light);
  color: var(--success);
}

.badge-lowstock {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-outofstock {
  background: var(--danger-light);
  color: var(--danger);
}

.product-details {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
  line-height: 1.3;
  cursor: pointer;
}

.product-title:hover {
  color: var(--primary);
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 40px;
  /* limits size consistently */
}

.product-meta-row {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.product-price-section {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.add-to-cart-btn {
  background: var(--primary);
  color: var(--text-white);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.add-to-cart-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.03);
}

.add-to-cart-btn:active {
  transform: scale(0.97);
}

.add-to-cart-btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
}

/* Product Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--border);
  transform: scale(0.95);
  transition: var(--transition-bounce);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-main);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  z-index: 10;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-light);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: 40px;
}

@media(min-width: 768px) {
  .product-detail-layout {
    grid-template-columns: 1.1fr 1.3fr;
  }
}

.detail-img-box {
  background: var(--gradient-metallic);
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.detail-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-category {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.detail-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.detail-price-stock {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.detail-stock-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.features-list {
  margin-bottom: 25px;
}

.features-list h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: var(--secondary);
}

.features-list ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media(min-width: 480px) {
  .features-list ul {
    grid-template-columns: 1fr 1fr;
  }
}

.features-list li {
  font-size: 13px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.features-list li::before {
  content: '✓';
  color: var(--success);
  font-weight: 900;
}

.detail-purchase-row {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: auto;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-main);
  overflow: hidden;
  height: 48px;
}

.qty-btn {
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--text-main);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-val {
  width: 40px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}

.modal-action-btn {
  flex-grow: 1;
  height: 48px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.modal-action-btn:hover {
  background: var(--primary-hover);
}

.modal-action-btn:disabled {
  background: var(--border);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Sliding Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.cart-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-card);
  box-shadow: var(--shadow-premium);
  border-left: 1px solid var(--border);
  z-index: 610;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.open .cart-drawer {
  transform: translateX(0);
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-title {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.cart-close-btn:hover {
  background: var(--bg-main);
  color: var(--text-main);
}

.cart-items-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}

.cart-empty-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-main);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  background: var(--gradient-metallic);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 8px;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  overflow: hidden;
  height: 32px;
}

.cart-qty-btn {
  width: 28px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.cart-qty-btn:hover {
  background: var(--border);
}

.cart-qty-val {
  width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.cart-item-remove-btn {
  font-size: 12px;
  color: var(--danger);
  font-weight: 600;
}

.cart-item-remove-btn:hover {
  text-decoration: underline;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-main);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.cart-total-label {
  font-size: 15px;
  color: var(--text-muted);
}

.cart-total-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
}

.checkout-btn {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: var(--text-white);
  border-radius: var(--radius-md);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.checkout-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.3);
}

/* Elegant Checkout Form */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-input {
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--bg-main);
  transition: var(--transition-smooth);
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

/* Notification Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
  width: 100%;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--secondary);
  color: var(--text-white);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--primary);
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-success {
  border-left-color: var(--success);
}

.toast-danger {
  border-left-color: var(--danger);
}

/* Admin Dashboard Section */
.admin-view {
  display: none;
  /* Managed by JS */
  margin-bottom: 50px;
}

.admin-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 30px;
}

@media(min-width: 768px) {
  .admin-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.admin-title-desc h2 {
  font-size: 28px;
  font-weight: 800;
}

.admin-title-desc p {
  color: var(--text-muted);
  font-size: 14px;
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  margin-bottom: 30px;
}

.admin-tab-btn {
  padding: 12px 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 15px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Admin Grid Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  margin-top: 5px;
  font-family: 'Outfit', sans-serif;
}

/* Inventory List and quick update controls */
.inventory-list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.inventory-header {
  padding: 16px 24px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
}

.inventory-row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  font-size: 14px;
}

.inventory-row:last-child {
  border-bottom: none;
}

.inventory-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-product-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gradient-metallic);
  border: 1px solid var(--border);
}

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

.inventory-product-info {
  display: flex;
  flex-direction: column;
}

.inventory-product-name {
  font-weight: 700;
  color: var(--text-main);
}

.inventory-product-cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
}

/* Quick price and stock editor inputs */
.quick-edit-input {
  width: 80px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
}

.quick-edit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.1);
}

.action-cell {
  display: flex;
  gap: 10px;
}

.btn-icon-sm {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-icon-sm:hover {
  background: var(--bg-main);
}

.btn-icon-danger:hover {
  background: var(--danger-light);
  color: var(--danger);
  border-color: var(--danger-light);
}

/* Mobile responsive adjustments for inventory table */
@media(max-width: 640px) {
  .inventory-header {
    display: none;
  }

  .inventory-row {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
  }

  .inventory-product-cell {
    width: 100%;
  }

  .inventory-row>div:nth-child(2),
  .inventory-row>div:nth-child(3) {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .inventory-row>div:nth-child(2)::before {
    content: 'Price:';
    font-weight: 600;
    color: var(--text-muted);
  }

  .inventory-row>div:nth-child(3)::before {
    content: 'Stock:';
    font-weight: 600;
    color: var(--text-muted);
  }

  .action-cell {
    justify-content: flex-end;
    border-top: 1px dashed var(--border);
    padding-top: 15px;
  }
}

/* Admin Add/Edit Form Card */
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 25px;
}

.admin-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

/* Orders Dashboard List */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
}

.order-card-header {
  padding: 16px 20px;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.order-id-date {
  display: flex;
  flex-direction: column;
}

.order-id {
  font-weight: 700;
  color: var(--text-main);
}

.order-date {
  font-size: 12px;
  color: var(--text-muted);
}

.order-status-selector {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 12px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
}

.status-pending {
  background: var(--warning-light);
  color: var(--warning);
  border-color: var(--warning-light);
}

.status-shipped {
  background: var(--steel-blue);
  color: var(--text-white);
  border-color: var(--steel-blue);
}

.status-completed {
  background: var(--success-light);
  color: var(--success);
  border-color: var(--success-light);
}

.order-card-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 768px) {
  .order-card-body {
    grid-template-columns: 1.5fr 1fr;
  }
}

.order-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.order-item-name {
  font-weight: 600;
}

.order-item-qty-price {
  color: var(--text-muted);
}

.order-customer-details {
  border-top: 1px solid var(--border);
  padding-top: 15px;
}

@media(min-width: 768px) {
  .order-customer-details {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid var(--border);
    padding-left: 20px;
  }
}

.order-customer-details h5 {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.order-customer-info-line {
  font-size: 14px;
  margin-bottom: 4px;
}

.order-customer-info-line span {
  font-weight: 600;
}

.order-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-total-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.order-total-val {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
}

/* Footer Section */
footer.site-footer {
  background: var(--gradient-dark-metallic);
  color: var(--text-white);
  padding: 60px 0 30px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-light);
}

.footer-col p {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  font-size: 14px;
  opacity: 0.8;
}

.footer-links li a:hover {
  opacity: 1;
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  opacity: 0.7;
}

@media(min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Utility buttons */
.btn-block {
  width: 100%;
}

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

.mt-3 {
  margin-top: 15px;
}

.gap-10 {
  display: flex;
  gap: 10px;
}

.category-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}
}

/* Razorpay simulated payment gateway styling */
.razorpay-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.razorpay-overlay.open {
  display: flex;
  opacity: 1;
}

.razorpay-modal {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.razorpay-overlay.open .razorpay-modal {
  transform: translateY(0);
}

.razorpay-header {
  background: #17253a;
  /* Deep blue/grey */
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 4px solid #3399cc;
  /* Razorpay blue */
}

.razorpay-logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.razorpay-logo-box {
  width: 32px;
  height: 32px;
  background: #3399cc;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
}

.razorpay-details {
  text-align: right;
}

.razorpay-merchant-name {
  font-weight: 700;
  font-size: 14px;
  display: block;
}

.razorpay-amount {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.razorpay-body {
  padding: 24px;
}

.razorpay-section-title {
  font-size: 11px;
  text-transform: uppercase;
  color: #7d8f9e;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.razorpay-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.razorpay-method-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 16px;
  background: #f4f6f8;
  border: 1px solid #e1e6eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #2b3a4a;
  text-align: left;
  transition: all 0.2s ease;
}

.razorpay-method-btn:hover {
  background: #eef2f5;
  border-color: #3399cc;
}

.razorpay-method-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3399cc;
}

.razorpay-method-desc {
  font-size: 11px;
  color: #7d8f9e;
  font-weight: 400;
  display: block;
  margin-top: 2px;
}

.razorpay-footer {
  background: #f4f6f8;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e1e6eb;
}

.razorpay-secure-text {
  font-size: 11px;
  color: #7d8f9e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.razorpay-close-btn {
  background: none;
  border: none;
  color: #7d8f9e;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.razorpay-close-btn:hover {
  color: #ffffff;
}

/* Simulated Email Client Widget Styling */
.mock-email-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.mock-email-notification.show {
  display: block;
  transform: translateY(0);
}

.mock-email-header {
  background: #0284c7;
  /* Microsoft Outlook blue */
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-email-title {
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-email-body {
  padding: 16px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.mock-email-sender {
  font-weight: 700;
  font-size: 12px;
  color: #0f172a;
  margin-bottom: 4px;
}

.mock-email-subj {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: #0369a1;
}

.mock-email-preview {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

/* Mock Webmail Overlay Drawer */
.mock-webmail-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1010;
  display: none;
  align-items: center;
  justify-content: center;
}

.mock-webmail-overlay.open {
  display: flex;
}

.mock-webmail-window {
  width: 100%;
  max-width: 600px;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
}

.mock-webmail-header {
  background: #0284c7;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mock-webmail-body {
  padding: 30px;
}

.mock-webmail-meta {
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.mock-webmail-meta-line {
  margin-bottom: 6px;
  font-size: 13px;
}

.mock-webmail-meta-line span {
  font-weight: 700;
  color: #64748b;
  display: inline-block;
  width: 60px;
}

.mock-webmail-subject {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.mock-webmail-content {
  line-height: 1.6;
  font-size: 14px;
}

.mock-webmail-otp-box {
  background: #f0f9ff;
  border: 2px dashed #0284c7;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #0284c7;
  margin: 20px 0;
  font-family: monospace;
}

/* Step Checkout Styles */
.checkout-steps-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 15px;
}

.checkout-step-tab {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-step-tab.active {
  color: var(--primary);
}

.checkout-step-number {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.checkout-step-tab.active .checkout-step-number {
  background: var(--primary);
  color: #fff;
}

.checkout-step-pane {
  display: none;
}

.checkout-step-pane.active {
  display: block;
}

/* UPI Payment Specifics */
.upi-payment-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
  text-align: center;
}

.upi-qr-image-wrapper {
  max-width: 180px;
  margin: 0 auto 15px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.upi-address-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e2e8f0;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #0f172a;
}

.btn-copy-upi {
  padding: 4px 8px;
  background: var(--secondary);
  color: #fff;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.btn-copy-upi:hover {
  background: var(--secondary-hover);
}

/* OTP Container in Admin Login Modal */
.otp-inputs-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.otp-digit-input {
  width: 42px;
  height: 48px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text-main);
  transition: var(--transition-smooth);
}

.otp-digit-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
  background: var(--bg-card);
}

/* Google Sign-In & Profile Options */
.google-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, box-shadow 0.2s;
  height: 40px;
}

.google-signin-btn:hover {
  background: #f9fafb;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.google-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--border);
  padding: 0;
  overflow: hidden;
  background: #2563eb;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
}

.google-avatar-btn:hover {
  transform: scale(1.05);
  border-color: var(--primary);
}

.google-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-avatar-fallback {
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Google Account Dropdown */
.google-dropdown {
  position: absolute;
  top: 48px;
  right: 0;
  width: 300px;
  background: #151c2c;
  border: 1px solid #223049;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 16px 0;
  animation: slideDown 0.2s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.google-dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 16px 24px;
  text-align: center;
}

.dropdown-avatar-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #223049;
  margin-bottom: 12px;
}

.dropdown-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dropdown-avatar-fallback {
  color: #ffffff;
  font-weight: 700;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.google-account-name {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  margin-bottom: 2px;
}

.google-account-email {
  color: #94a3b8;
  font-size: 13px;
}

.google-dropdown-divider {
  height: 1px;
  background: #223049;
  margin: 8px 0;
}

.google-dropdown-body {
  padding: 4px 8px;
}

.google-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.google-dropdown-item:hover {
  background: #1e293b;
  color: #ffffff;
}

.google-dropdown-item svg {
  color: #94a3b8;
  transition: color 0.2s;
}

.google-dropdown-item:hover svg {
  color: var(--primary);
}

.google-dropdown-footer {
  display: flex;
  justify-content: center;
  padding: 12px 24px 4px 24px;
}

.google-signout-btn {
  background: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  border-radius: var(--radius-full);
  padding: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  width: 100%;
}

.google-signout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Mobile responsive adjustments */
@media(max-width: 767px) {
  .logo-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }

  .logo-title {
    font-size: 16px !important;
  }

  .logo-subtitle {
    font-size: 9px !important;
  }

  .logo-section {
    gap: 8px !important;
  }

  .nav-actions {
    gap: 10px !important;
  }

  .google-dropdown {
    width: 280px !important;
    right: -10px !important;
  }

  .admin-nav-btn {
    font-size: 0 !important;
    padding: 8px 10px !important;
    gap: 0 !important;
  }

  .admin-nav-btn svg {
    margin-right: 0 !important;
  }
}

/* Force mobile menu open transform override */
#mobile-menu-overlay.open #mobile-menu-drawer {
  transform: translateX(0) !important;
}

/* Products grid fix on small mobile viewports */
@media(max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
}

/* Responsive grid classes replacing inline grids */
.checkout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

@media(max-width: 600px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.checkout-footer-row {
  margin-top: 24px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

@media(max-width: 480px) {
  .checkout-footer-row {
    flex-direction: column;
    align-items: stretch;
  }

  .checkout-footer-row .btn-primary {
    width: 100%;
  }
}

.founder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  align-items: center;
}

@media(max-width: 600px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Also reduce padding on mobile */
  .admin-card {
    padding: 20px !important;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  align-items: start;
}

@media(max-width: 680px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.legal-section {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-premium);
  margin-bottom: 40px;
}

@media(max-width: 767px) {
  .legal-section {
    padding: 20px;
    margin-bottom: 20px;
  }

  .legal-section h1 {
    font-size: 26px !important;
  }
}

/* Article responsive optimizations */
@media(max-width: 767px) {
  .article-header {
    padding: 40px 15px !important;
    margin: 10px auto !important;
  }

  .article-header h1 {
    font-size: 26px !important;
  }

  .article-container {
    margin: 20px auto !important;
    font-size: 16px !important;
  }
}

/* Mobile Menu Drawer Fix */
#mobile-menu-drawer {
  max-width: 280px;
  transform: translateX(-100%);
  left: 0;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--border);
}

#mobile-menu-overlay.open #mobile-menu-drawer {
  transform: translateX(0);
}

/* Theme Toggle Button Sizing & Responsiveness */
.theme-toggle-btn {
  width: 40px !important;
  height: 40px !important;
}

@media (max-width: 767px) {
  .theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

/* Amazon style order tracker */
.amazon-tracker {
  margin: 25px 0 15px;
  position: relative;
  padding: 10px 0 25px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.tracker-line-bg {
  position: absolute;
  top: 24px;
  left: 15%;
  right: 15%;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  z-index: 1;
}

.tracker-line-fill {
  height: 100%;
  background: #2e7d32; /* Amazon green */
  border-radius: 3px;
  transition: width 0.5s ease-in-out;
}

.tracker-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 5%;
  box-sizing: border-box;
}

.tracker-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  text-align: center;
}

.node-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.tracker-node.completed .node-circle {
  background: #2e7d32;
  border-color: #2e7d32;
  color: white;
  box-shadow: 0 0 10px rgba(46, 125, 50, 0.4);
}

.tracker-node.active .node-circle {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
}

.node-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.tracker-node.completed .node-label {
  color: #2e7d32;
}

.tracker-node.active .node-label {
  color: var(--primary);
}