/* ===== WEBSHOP UI STYLES - QoQa-Inspired Design ===== */

/* ===== CSS VARIABLES - QoQa Design System ===== */
:root {
  /* Color Palette - QoQa Design Tokens */
  --background: #FFFFFF;
  --text: #000000;
  --accent-pink: #FF89C9;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-medium: #E0E0E0;
  --gray-dark: #333333;
  --success-green: #4CAF50;
  --warning-orange: #FF9800;
  --danger-red: #F44336;
  
  /* Typography - QoQa Design Tokens */
  --font-primary: 'Poppins', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-logo: 'Poppins', sans-serif;
  --font-size-small: 14px;
  --font-size-base: 16px;
  --font-size-large: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  
  /* Border Radius - QoQa Design Tokens */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== ADMIN-ONLY ELEMENTS ===== */
.admin-only {
  display: none; /* Hidden by default */
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-dark);
  background-color: var(--gray-light);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-large); }

.brand-logo {
  font-family: var(--font-logo);
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-pink);
}

/* ===== BUTTONS - QoQa Design ===== */
.btn-primary {
  background: var(--accent-pink);
  color: var(--text);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--font-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--accent-pink);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--font-primary);
}

.btn-secondary:hover {
  background: var(--accent-pink);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-pink);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--font-primary);
}

.btn-outline:hover {
  background: var(--accent-pink);
  color: var(--text);
}

/* ===== HEADER ===== */
.main-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: var(--spacing-md) var(--spacing-xl);
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.logo {
  font-family: var(--font-logo);
  font-size: 24px;
  font-weight: bold;
  color: var(--accent-pink);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--gray-dark);
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background: var(--gray-light);
  color: var(--primary-pink);
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: var(--spacing-md);
  text-decoration: none;
  color: var(--gray-dark);
  transition: background var(--transition-fast);
}

.dropdown-menu a:hover {
  background: var(--gray-light);
  color: var(--primary-pink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.user-account {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.user-account:hover {
  background: var(--gray-light);
}

.user-account {
  position: relative;
}

.user-account .username {
  font-weight: 500;
  user-select: none;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  border: 1px solid var(--gray-light);
  margin-top: var(--spacing-xs);
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--text-dark);
  text-decoration: none;
  transition: background var(--transition-fast);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-size: var(--font-size-small);
}

.dropdown-item:hover {
  background: var(--gray-light);
  color: var(--primary-pink);
}

.dropdown-item i {
  width: 16px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--gray-light);
  margin: var(--spacing-xs) 0;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-link .cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-pink);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid white;
  z-index: 10;
  min-width: 20px;
  min-height: 20px;
}

.cart-link .cart-count.show {
  display: flex;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: black;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  transition: all var(--transition-fast);
}

/* ===== FEATURED PROMOTIONS ===== */
.featured-promotions {
  padding: var(--spacing-2xl) var(--spacing-xl);
  background: var(--white);
}

.promotions-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

.promotions-container {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: var(--spacing-md) 0;
  justify-content: center;
  align-items: center;
}

.promotion-card {
  background: var(--white);
  border: 2px solid var(--accent-pink);
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  min-width: 300px;
  max-width: 350px;
  text-align: center;
  color: var(--text);
  flex-shrink: 0;
  transition: all var(--transition-normal);
  margin: 0 var(--spacing-sm);
}

.promotion-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promotion-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--accent-pink);
}

.promotion-card h3 {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  color: var(--text);
}

.promotion-card p {
  margin-bottom: var(--spacing-lg);
  color: var(--gray-dark);
  font-size: var(--font-size-small);
}

.explore-btn {
  background: var(--accent-pink);
  color: var(--text);
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-weight: 600;
  font-size: var(--font-size-base);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  font-family: var(--font-primary);
}

.explore-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}





.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
}

.carousel-arrow:hover {
  background: var(--accent-pink);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

/* ===== HERO DEAL OF THE DAY ===== */
.hero-deal {
  padding: var(--spacing-xl);
  background: var(--white);
  margin-bottom: var(--spacing-xl);
}

.hero-deal-container {
  max-width: 1200px;
  margin: 0 auto;
  border: 4px solid var(--text);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  background: var(--white);
}

.hero-deal-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hero-deal-image:hover {
  transform: scale(1.02);
}

.hero-deal-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 600;
  font-size: 1.1rem;
}

.hero-deal-image:hover .hero-deal-image-overlay {
  opacity: 1;
}

.hero-deal-image-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero-deal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-deal-content {
  flex: 1;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-deal-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.hero-deal-title:hover {
  color: var(--accent-pink);
}

.hero-deal-price {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-pink);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-primary);
}

.hero-deal-stock {
  margin-bottom: var(--spacing-lg);
}

.stock-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.stock-level {
  height: 100%;
  background: var(--accent-pink);
  border-radius: var(--radius-pill);
  transition: width 0.3s ease;
}

.stock-text {
  font-size: var(--font-size-small);
  color: var(--gray-dark);
  font-family: var(--font-primary);
}

.hero-deal-timer {
  font-size: 0.875rem;
  color: var(--gray-dark);
  opacity: 0.7;
  font-family: var(--font-primary);
}

/* ===== CATEGORY FILTER ===== */
.category-filter {
  padding: var(--spacing-xl);
  background: var(--white);
  border-bottom: 1px solid var(--gray-medium);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-xl);
}

.category-scroll {
  overflow-x: auto;
  padding: var(--spacing-sm) 0;
}

.category-buttons {
  display: flex;
  gap: var(--spacing-md);
  min-width: max-content;
}

.category-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  height: 32px;
  padding: 0 16px;
  background: var(--white);
  border: 2px solid var(--accent-pink);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-primary);
  position: relative;
}

.category-btn.active,
.category-btn:hover {
  background: var(--accent-pink);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-btn.active::before {
  content: "★";
  color: var(--text);
  margin-right: var(--spacing-sm);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  padding: var(--spacing-2xl) var(--spacing-xl);
  background: var(--gray-light);
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border: 4px solid var(--text);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-image {
  position: relative;
  height: 200px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

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

.product-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--accent-pink);
  color: var(--text);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-pill);
  font-size: var(--font-size-small);
  font-weight: 600;
}

.product-details {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.product-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text);
  font-family: var(--font-primary);
}

.product-description {
  color: var(--gray-dark);
  margin-bottom: var(--spacing-lg);
  font-family: var(--font-primary);
}

.product-price {
  margin-bottom: var(--spacing-lg);
}

.price-range {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--accent-pink);
  font-family: var(--font-primary);
}

.product-stock {
  margin-bottom: var(--spacing-md);
}

.stock-bar {
  width: 100%;
  height: 8px;
  background: var(--gray-light);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.stock-fill {
  height: 100%;
  background: var(--accent-pink);
  border-radius: var(--radius-pill);
  transition: width var(--transition-normal);
}

.stock-text {
  font-size: var(--font-size-small);
  color: var(--gray-dark);
  font-family: var(--font-primary);
}

.product-timer {
  margin-bottom: var(--spacing-lg);
}

.time-remaining {
  font-size: 0.875rem;
  color: var(--gray-dark);
  opacity: 0.7;
  font-family: var(--font-primary);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--gray-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--gray-medium);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color var(--transition-normal);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

/* ===== AUTHENTICATION ===== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: var(--spacing-xl);
}

.auth-card {
  background: var(--white);
  border: 4px solid var(--text);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  box-shadow: var(--shadow-lg);
  max-width: 400px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Add black decorative shapes to auth card */
.auth-card::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.auth-card::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  background: var(--text);
  border-radius: 8px;
  opacity: 0.1;
  z-index: 0;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.logo-section {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.auth-links {
  margin-top: var(--spacing-lg);
  text-align: center;
}

.auth-links a {
  color: var(--primary-pink);
  text-decoration: none;
  margin: 0 var(--spacing-sm);
}

.auth-links a:hover {
  text-decoration: underline;
}

.auth-subtitle {
  text-align: center;
  color: var(--gray-dark);
  opacity: 0.8;
  margin-bottom: var(--spacing-lg);
}

.auth-description {
  text-align: center;
  color: var(--gray-dark);
  opacity: 0.7;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-small);
}

/* ===== CART ===== */
.cart-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-xl);
}

.cart-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
  border: 4px solid var(--text);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Add black decorative shapes to cart container */
.cart-container::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 50px;
  height: 50px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.cart-container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  background: var(--text);
  border-radius: 6px;
  opacity: 0.1;
  z-index: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: var(--spacing-lg);
  align-items: center;
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

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

.item-details h3 {
  margin-bottom: var(--spacing-xs);
}

.item-sku {
  color: var(--gray-dark);
  opacity: 0.7;
  font-size: var(--font-size-small);
}

.item-price {
  font-weight: 600;
  color: var(--black);
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-medium);
  background: var(--white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-controls input {
  width: 50px;
  text-align: center;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  padding: var(--spacing-xs);
}

.cart-summary {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
}

.summary-row.total {
  border-top: 1px solid var(--gray-medium);
  padding-top: var(--spacing-md);
  font-weight: 700;
  font-size: var(--font-size-large);
}

/* ===== ADMIN PAGES ===== */
.admin-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-xl);
  border: 4px solid var(--text);
  border-radius: var(--radius-xl);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

/* Add black decorative shapes to admin page */
.admin-page::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 70px;
  height: 70px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.admin-page::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 45px;
  height: 45px;
  background: var(--text);
  border-radius: 10px;
  opacity: 0.1;
  z-index: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-xl);
}

.admin-filters {
  display: flex;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.search-input {
  flex: 1;
  max-width: 300px;
}

.products-table,
.orders-table,
.users-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: var(--spacing-md);
  text-align: left;
  border-bottom: 1px solid var(--gray-medium);
}

th {
  background: var(--gray-light);
  font-weight: 600;
}

.user-tabs {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.tab-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--gray-light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: var(--primary-pink);
  color: var(--white);
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scrolling when modal is active */
body.modal-open {
  overflow: hidden;
}

.modal-content {
  background: var(--white);
  border: 4px solid var(--text);
  border-radius: var(--radius-lg);
  padding: var(--spacing-2xl);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
  position: relative;
}

/* Add black decorative shapes to modal content */
.modal-content::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  background: var(--text);
  border-radius: 50%;
  opacity: 0.1;
  z-index: 0;
}

.modal-content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 25px;
  height: 25px;
  background: var(--text);
  border-radius: 5px;
  opacity: 0.1;
  z-index: 0;
}

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

/* Product Form Styles */
.product-form {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: var(--spacing-md);
}

.product-form::-webkit-scrollbar {
  width: 6px;
}

.product-form::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 3px;
}

.product-form::-webkit-scrollbar-thumb {
  background: var(--text);
  border-radius: 3px;
}

.product-form::-webkit-scrollbar-thumb:hover {
  background: var(--text-dark);
}

/* Ensure modal content is scrollable on all devices */
@media (max-height: 600px) {
  .modal-content {
    max-height: 95vh;
    margin: 10px;
  }
  
  .product-form {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 90vh;
    padding: var(--spacing-lg);
  }
  
  .product-form {
    max-height: 65vh;
  }
}

.form-actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: flex-end;
  margin-top: var(--spacing-xl);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .products-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .cart-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: var(--spacing-md);
  }
  
  .header-left {
    gap: var(--spacing-md);
  }
  
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  
  .promotion-card {
    min-width: 280px;
    max-width: 320px;
  }

  .promotions-container {
    justify-content: flex-start;
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .carousel-arrow.left {
    left: 5px;
  }

  .carousel-arrow.right {
    right: 5px;
  }
  
  .products-container {
    grid-template-columns: 1fr;
  }
  
  .admin-filters {
    flex-direction: column;
  }
  
  .search-input {
    max-width: none;
  }

  .hero-deal-container {
    flex-direction: column;
  }

  .hero-deal-image {
    height: 200px;
  }

  .hero-deal-content {
    padding: var(--spacing-lg);
  }

  .hero-deal-title {
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .auth-card {
    padding: var(--spacing-lg);
  }
  
  .promotion-card {
    min-width: 200px;
    padding: var(--spacing-lg);
  }
  
  .category-btn {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: var(--font-size-small);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.hidden { display: none; }
.visible { display: block; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--gray-medium);
  border-top: 2px solid var(--primary-pink);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== NOTIFICATIONS ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  color: var(--white);
  font-weight: 500;
  z-index: 10000;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  max-width: 300px;
}

.notification.show {
  transform: translateX(0);
}

.notification-success {
  background: var(--success-green);
}

.notification-error {
  background: var(--danger-red);
}

.notification-info {
  background: var(--primary-pink);
}

.notification-warning {
  background: var(--warning-orange);
}

/* ===== NO PRODUCTS MESSAGE ===== */
.no-products {
  text-align: center;
  padding: var(--spacing-2xl);
  color: var(--gray-dark);
  font-size: var(--font-size-large);
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin: var(--spacing-xl) auto;
  max-width: 500px;
}

.no-products-icon {
  font-size: 64px;
  color: var(--gray-medium);
  margin-bottom: var(--spacing-lg);
}

.no-products h3 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--gray-dark);
  font-size: var(--font-size-xl);
}

.no-products p {
  margin: 0;
  color: var(--gray-dark);
  font-size: var(--font-size-large);
  opacity: 0.7;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-medium);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-dark);
} 