* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Updated to dark theme with yellow, gray, and black colors */
:root {
  --primary: #f5c518;
  --primary-dark: #f5c518;
  --primary-light: #ffdf43;

  --accent: #ff5e5e;
  --accent-dark: #ff3f6e;

  --secondary: #888888;

  --success: #3cb650;
  --danger: #ff4444;
  --warning: #f5c518;

  --background: #333333;
  --surface: #2a2a2a;
  --text: #f5f5f5;
  --text-secondary: #c7c7c7;
  --border: #3a3a3a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.8);

  --gradient-primary: linear-gradient(135deg, #f5c518 0%, #d4a408 100%);
  --gradient-accent: linear-gradient(135deg, #ff5e5e 0%, #ff3f6e 100%);
  --gradient-success: linear-gradient(135deg, #3cb650 0%, #00ffb3 100%);
  --background-gradient: linear-gradient(180deg, #1f1f1f 0%, #242424 50%, #1e1e1e 100%);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Enhanced header with gradient background and better shadows */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  background: rgba(27, 27, 27, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

/* Logo area with icon and clickable home button */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: transform 0.2s, filter 0.2s;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.logo:hover .logo-icon {
  transform: rotate(-10deg) scale(1.1);
}

/* Enhanced search bar with gradient border on focus */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-bar input {
  width: 100%;
  padding: 0.875rem 3.5rem 0.875rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 9999px;
  font-size: 1rem;
  transition: all 0.3s;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

/* Added search button styles with magnifying glass icon */
.search-btn {
  position: absolute;
  right: 0.5rem;
  background: var(--gradient-primary);
  border: none;
  border-radius: 9999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: white;
  box-shadow: var(--shadow);
}

.search-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.search-btn:active {
  transform: scale(0.95);
}

.search-btn svg {
  width: 20px;
  height: 20px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

/* Enhanced cart badge with gradient and animation */
.cart-badge {
  position: relative;
}

.cart-badge .badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 9999px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Enhanced buttons with gradients and better hover effects */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--gradient-accent);
  color: white;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: var(--gradient-success);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Enhanced product cards with better shadows and hover effects */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(107, 114, 128, 0.05) 100%);
  transition: transform 0.3s;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-price {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* Enhanced like button with heart animation */
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  padding: 0.5rem;
  transition: all 0.2s;
  border-radius: 0.5rem;
}

.like-btn:hover {
  transform: scale(1.2);
  background: rgba(251, 191, 36, 0.1);
}

.like-btn.liked {
  color: var(--primary);
  animation: heartbeat 0.3s;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3);
  }
}

/* Enhanced form inputs with better focus states */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
  background: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
  transform: translateY(-1px);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Enhanced cart layout with proper mobile stacking */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.cart-items-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-summary-section {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.cart-summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* Enhanced cart items with better visual hierarchy */
.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.cart-item-info {
  flex: 1;
}

.cart-item-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quantity-input {
  width: 70px;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.5rem;
  font-weight: 600;
}

/* Added quantity control buttons for cart */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.25rem;
}

.quantity-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.quantity-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.quantity-btn:active {
  transform: scale(0.95);
}

.quantity-display {
  min-width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

/* Enhanced stat cards with gradients */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Enhanced table with better styling */
.table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

/* Enhanced status badges with gradients */
.status-badge {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.status-pending {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.status-paid {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
}

.status-canceled {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
}

/* Enhanced alerts with better styling */
.alert {
  padding: 1.25rem;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  color: #065f46;
  border: 2px solid #10b981;
}

.alert-error {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  color: #991b1b;
  border: 2px solid #ef4444;
}

.alert-info {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1e40af;
  border: 2px solid #2563eb;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  .search-bar {
    max-width: 100%;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  /* Mobile cart layout - stack vertically with summary at bottom */
  .cart-layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .cart-items-section {
    width: 100%;
    order: 1;
  }

  .cart-summary-section {
    width: 100%;
    order: 2;
    position: static;
  }

  .cart-summary-card {
    padding: 1.25rem;
  }

  .cart-item {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .cart-item-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .cart-item-info {
    width: 100%;
  }

  .cart-item-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .cart-item-actions {
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .quantity-input {
    width: 70px;
    padding: 0.625rem;
  }

  .cart-item-actions .btn {
    flex: 1;
    margin-left: 0.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile header adjustments */
  .logo {
    font-size: 1.25rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .nav-links a {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Mobile search */
  .search-bar input {
    padding: 0.75rem 3rem 0.75rem 1rem;
    font-size: 0.875rem;
  }

  .search-btn {
    width: 36px;
    height: 36px;
  }

  /* Mobile buttons */
  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Mobile product cards */
  .product-image {
    height: 180px;
  }

  .product-info {
    padding: 1rem;
  }

  .product-title {
    font-size: 1rem;
  }

  .product-price {
    font-size: 1.5rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions .btn {
    width: 100%;
  }

  /* Mobile forms */
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 0.75rem;
    font-size: 1rem;
  }

  /* Mobile checkout */
  .checkout-layout {
    display: flex;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .checkout-form,
  .checkout-summary {
    width: 100% !important;
  }

  /* Mobile tables */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Mobile stats */
  .stat-card {
    padding: 1.5rem;
  }

  .stat-value {
    font-size: 2rem;
  }

  /* Mobile admin */
  .admin-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .admin-actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-actions .btn {
    width: 100%;
  }

  /* Mobile payment page */
  .payment-container {
    padding: 1rem;
  }

  .qr-code-container {
    padding: 1.5rem;
  }

  .qr-code-container img {
    max-width: 250px;
  }

  /* Mobile orders */
  .order-card {
    padding: 1rem;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem;
  }

  .order-actions {
    width: 100%;
    flex-direction: column;
  }

  .order-actions .btn {
    width: 100%;
  }
}

/* Extra small devices */
@media (max-width: 480px) {
  .container {
    padding: 0 0.75rem;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  h3 {
    font-size: 1.125rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

/* Added loading screen styles with beautiful animations */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.loading-logo {
  margin-bottom: 2rem;
  animation: bounceIn 1s ease-out;
}

.loading-logo-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.loading-title {
  font-size: 3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 2rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: glow 2s ease-in-out infinite;
}

.loading-bar {
  width: 300px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8), #fff);
  border-radius: 9999px;
  animation: loading 1.5s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

/* Loading animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes glow {
  0%,
  100% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.3);
  }
  50% {
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 50px rgba(255, 255, 255, 0.6);
  }
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(400%);
  }
}

/* Mobile loading screen adjustments */
@media (max-width: 768px) {
  .loading-logo-icon {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }

  .loading-title {
    font-size: 2rem;
  }

  .loading-bar {
    width: 250px;
  }
}

@media (max-width: 480px) {
  .loading-logo-icon {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .loading-title {
    font-size: 1.75rem;
  }

  .loading-bar {
    width: 200px;
  }
}

/* Utility classes */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}

/* Added review and rating styles */
.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
}

.rating-stars {
  color: var(--primary);
  font-size: 1.25rem;
}

.rating-text {
  color: var(--text-secondary);
  font-weight: 600;
}

.product-rating-small {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 600;
}

.reviews-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.review-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-lg);
}

.star-rating {
  display: flex;
  gap: 0.5rem;
  font-size: 2rem;
  margin: 1rem 0;
}

.star-btn {
  cursor: pointer;
  color: #cbd5e1;
  transition: all 0.2s;
  user-select: none;
}

.star-btn:hover {
  transform: scale(1.2);
  color: var(--primary);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-rating {
  color: var(--primary);
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.review-date {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.review-comment {
  color: var(--text);
  line-height: 1.6;
  margin-top: 0.75rem;
}

/* Added image gallery styles with lightbox and navigation arrows */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.main-image-container:hover .main-image {
  transform: scale(1.05);
}

.image-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
  z-index: 10;
}

.image-nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.image-nav-btn.prev {
  left: 1rem;
}

.image-nav-btn.next {
  right: 1rem;
}

.thumbnail-images {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  min-width: 100px;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 3px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.thumbnail:hover {
  border-color: var(--primary);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

/* Lightbox modal for full-size image viewing */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--primary-dark);
}

.lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.lightbox-nav.prev {
  left: 2rem;
}

.lightbox-nav.next {
  right: 2rem;
}

/* Mobile product detail adjustments */
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .main-image-container {
    height: 350px;
  }

  .main-image {
    object-fit: contain;
  }

  .thumbnail {
    min-width: 80px;
    width: 80px;
    height: 80px;
  }

  .image-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .image-nav-btn.prev {
    left: 0.5rem;
  }

  .image-nav-btn.next {
    right: 0.5rem;
  }

  .lightbox-nav {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .lightbox-nav.prev {
    left: 1rem;
  }

  .lightbox-nav.next {
    right: 1rem;
  }

  .lightbox-close {
    top: -2.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .review-form-card {
    padding: 1.5rem;
  }

  .star-rating {
    font-size: 1.75rem;
  }

  .review-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .reviews-section {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

/* Added styles for separate main and secondary image upload areas */
.image-upload-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.image-upload-group {
  background: var(--background);
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s;
}

.image-upload-group:hover {
  border-color: var(--primary);
  background: rgba(245, 197, 24, 0.05);
}

.image-upload-group label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.125rem;
}

.image-upload-group input[type="file"] {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  transition: all 0.3s;
}

.image-upload-group input[type="file"]:hover {
  border-color: var(--primary);
}

.upload-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
}
