/* ==================================================
   SKYFIT STORE - Professional & Clean Design
   Black & White Theme with Professional Styling
   ================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties - Professional Theme */
:root {
  --primary-black: #000000;
  --primary-white: #ffffff;
  --text-primary: #000000;
  --text-secondary: #666666;
  --text-light: #ffffff;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-dark: #000000;
  --border-color: #e0e0e0;

  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --font-primary: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Fredoka', 'Segoe UI', system-ui, sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Smooth transitions for interactive elements */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Global Reset & Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: max(0px, env(safe-area-inset-top));
  padding-bottom: max(0px, env(safe-area-inset-bottom));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 var(--space-md) 0;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }

p {
  margin: 0 0 var(--space-md) 0;
  color: var(--text-secondary);
}

/* Header */
header {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-lg) var(--space-lg) var(--space-lg) max(var(--space-lg), env(safe-area-inset-left));
  position: relative;
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid var(--gray-800);
  text-align: center;
  padding-right: max(var(--space-lg), env(safe-area-inset-right));
}

header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: var(--space-sm) 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--text-light);
}

header h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin: var(--space-md) 0 var(--space-xs) 0;
  font-weight: 600;
  color: var(--text-light);
}

header p {
  font-size: 0.9rem;
  margin: var(--space-xs) 0 0 0;
  opacity: 0.85;
  text-align: center;
  color: var(--gray-400);
}

header img {
  height: clamp(60px, 15vw, 100px);
  display: block;
  margin: 0 auto var(--space-md) auto;
  transition: opacity var(--transition-fast);
}

#logo {
  position: static;
  height: 100px;
  opacity: 0.95;
  transition: opacity var(--transition-fast);
  margin: 0 auto var(--space-md) auto;
}

#logo:hover {
  opacity: 1;
}

#accountSection, #userSection {
  position: absolute;
  top: var(--space-md);
  right: max(var(--space-md), env(safe-area-inset-right));
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  min-height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-btn:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.account-btn:active {
  transform: translateY(0);
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  background: #1a1a1a;
  color: var(--text-light);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-title, .hero-subtitle {
  font-weight: 800;
  text-align: center;
  margin: var(--space-lg) 0;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.5rem);
  line-height: 1.3;
  font-weight: 600;
  opacity: 0.9;
  color: #cccccc;
}

/* Products Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  padding: var(--space-3xl) var(--space-lg);
  max-width: 1400px;
  margin: 0 auto;
  background: var(--bg-primary);
}

.product-card {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--text-primary);
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-normal);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 1.25rem;
  margin: var(--space-md) 0;
  color: var(--text-primary);
  font-weight: 600;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  margin: var(--space-md) 0;
  color: var(--text-primary);
}

.badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

/* Trust Signals */
.trust-signals {
  background: var(--bg-secondary);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: var(--space-3xl) 0;
}

.trust-signals h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
  font-weight: 700;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-lg);
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.trust-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.trust-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.trust-item h4 {
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* Selectors Layout */
.selectors {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.selectors label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

#sizeSelect {
  padding: var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-primary);
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

#sizeSelect:focus {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* Modal System */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  animation: fadeIn var(--transition-normal);
}

.modal-content {
  margin: var(--space-2xl) auto;
  background: var(--bg-primary);
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 600px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  position: relative;
  animation: slideUp var(--transition-normal);
}

.close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
}

.close:hover {
  color: var(--bg-primary);
  background: var(--text-primary);
  transform: scale(1.2);
}

.modal-content img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

.modal-content h2 {
  font-size: 1.75rem;
  margin: var(--space-lg) 0 var(--space-md) 0;
  color: var(--text-primary);
}

.modal-content p {
  font-size: 1rem;
  margin: var(--space-sm) 0;
  color: var(--text-secondary);
}

.modal-content h3 {
  font-size: 1.25rem;
  margin: var(--space-lg) 0 var(--space-md) 0;
  color: var(--text-primary);
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  color: var(--text-primary);
  box-sizing: border-box;
}

input::placeholder, textarea::placeholder {
  color: var(--text-secondary);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
  background: var(--bg-secondary);
}

button {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
}

button:active {
  transform: translateY(0);
}

/* Size Selection */
.size-box {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.size-box span {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  min-width: 40px;
  text-align: center;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.size-available {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.size-available:hover {
  transform: scale(1.1);
}

.size-out {
  background: var(--gray-200);
  color: var(--gray-500);
  border-color: var(--gray-400);
  cursor: not-allowed;
  opacity: 0.6;
}


/* Quantity Control */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}

.qty-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.qty-btn:hover {
  transform: scale(1.15);
  box-shadow: var(--shadow-lg);
}

#qtyInput {
  width: 60px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  padding: var(--space-sm);
}

/* Selectors Layout */
.selectors {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.selectors label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

#sizeSelect {
  padding: var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--bg-primary);
  cursor: pointer;
  color: var(--text-primary);
}

#sizeSelect:focus {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
  outline: none;
}

/* Buy Button */
.buy-now-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.buy-now-btn:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.buy-now-btn:active {
  transform: translateY(-2px);
}

/* Track Button */
.track-btn {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
  min-height: 48px;
  min-width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.track-btn:hover { 
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.track-btn:active { 
  transform: translateY(0);
}

/* Admin Login Button */
.admin-login-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.admin-login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
}

.admin-login-btn:active {
  transform: translateY(0);
}

/* Checkout Page Layout */
main {
  max-width: 900px;
  margin: 20px auto;
  padding: 20px;
  background: var(--bg-primary);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

main h2 {
  text-align: center;
  color: var(--text-primary);
  font-size: 28px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

#checkoutDetails {
  background: var(--bg-secondary);
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--text-primary);
}

#checkoutDetails h3 {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 15px;
}

#checkoutDetails p {
  margin: 8px 0;
  font-size: 16px;
  color: var(--text-secondary);
}

#checkoutForm {
  background: var(--bg-secondary);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

#checkoutForm h3 {
  color: var(--text-primary);
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

#checkoutForm label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-primary);
  font-size: 14px;
}

#checkoutForm input,
#checkoutForm textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  background: var(--bg-primary);
  color: var(--text-primary);
}

#checkoutForm textarea {
  height: 80px;
  resize: vertical;
}

#checkoutForm button {
  width: 100%;
  padding: 15px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  border-radius: 6px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

#checkoutForm button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Sign Up and Sign In Modal Styles */
#signUpModal .modal-content,
#signInModal .modal-content {
  background: var(--bg-primary);
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: slideUp var(--transition-normal);
  position: relative;
  overflow: hidden;
}

#signUpForm, #signInForm {
  text-align: center;
  position: relative;
  z-index: 1;
}

#signUpForm h2, #signInForm h2 {
  color: var(--text-primary);
  font-size: 28px;
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: 2px;
}

#signUpForm label, #signInForm label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
}

#signUpForm input, #signInForm input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  background: var(--bg-secondary);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

#signUpForm input::placeholder, #signInForm input::placeholder {
  color: var(--text-secondary);
  font-style: italic;
  opacity: 0.7;
}

#signUpForm input:focus, #signInForm input:focus {
  border-color: var(--text-primary);
  box-shadow: var(--shadow-md);
  outline: none;
  background: var(--bg-primary);
  transform: scale(1.02);
}

#signUpForm input:hover, #signInForm input:hover {
  border-color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

#signUpForm button, #signInForm button {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 2px solid var(--text-primary);
  padding: 16px 40px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  margin-top: 15px;
  text-transform: uppercase;
}

#signUpForm button:hover, #signInForm button:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
}

#signUpForm button:active, #signInForm button:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Mobile-First Responsive Design - Enhanced for better mobile experience */
@media (max-width: 768px) {
  /* Global mobile adjustments */
  body {
    font-size: 14px; /* Smaller base font for mobile */
  }

  /* Header adjustments */
  header {
    padding: var(--space-lg) var(--space-md);
    text-align: center;
  }

  header h1 {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
  }

  header h2 {
    font-size: 1.3rem;
    margin: var(--space-sm) 0 var(--space-xs) 0;
  }

  header img {
    height: 70px;
    margin-bottom: var(--space-sm);
  }

  #logo {
    position: static;
    height: 80px;
    margin: 0 auto var(--space-sm) auto;
  }

  header p {
    font-size: 0.85rem;
    margin: var(--space-xs) 0 0 0;
  }

  #accountSection, #userSection {
    position: static;
    margin-top: var(--space-md);
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }

  .account-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: 13px;
  }

  /* Hero section mobile */
  .hero {
    padding: var(--space-2xl) var(--space-lg);
    min-height: 50vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* Products grid */
  .products {
    padding: var(--space-2xl) var(--space-md);
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: var(--space-lg);
  }

  .product-card {
    padding: var(--space-lg);
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .price {
    font-size: 1.2rem;
  }

  /* Trust signals mobile */
  .trust-signals {
    padding: var(--space-2xl) var(--space-md);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .trust-item {
    padding: var(--space-md);
  }

  .trust-icon {
    font-size: 2rem;
  }

  /* Modal adjustments */
  .modal-content {
    width: 95%;
    padding: var(--space-xl);
    margin: var(--space-lg) auto;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .modal-content img {
    max-height: 250px;
  }

  .selectors {
    flex-direction: column;
    align-items: stretch;
  }

  .selectors label {
    margin-bottom: var(--space-sm);
  }

  #sizeSelect, #qtyInput {
    margin-bottom: var(--space-md);
  }

  .qty-control {
    justify-content: center;
  }

  .buy-now-btn {
    padding: var(--space-md) var(--space-lg);
    font-size: 1rem;
  }

  /* Sign up/sign in modals */
  #signUpForm h2, #signInForm h2 {
    font-size: 1.5rem;
  }

  #signUpForm input, #signInForm input {
    padding: var(--space-md);
    font-size: 16px; /* Prevent zoom on iOS */
  }

  #signUpForm button, #signInForm button {
    padding: var(--space-lg) var(--space-xl);
    font-size: 16px;
  }
}

  .qty-control {
    justify-content: center;
  }

  .qty-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .buy-now-btn {
    padding: 14px 25px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
  }

  /* Sign up/sign in modals */
  #signUpForm h2, #signInForm h2 {
    font-size: 24px;
  }

  #signUpForm input, #signInForm input {
    padding: 16px 18px;
    font-size: 16px;
  }

  #signUpForm button, #signInForm button {
    padding: 16px 30px;
    font-size: 16px;
    width: 100%;
    max-width: 280px;
  }


@media (max-width: 480px) {
  /* Extra small screens */
  header h1 {
    font-size: 20px;
  }

  header img {
    height: 80px;
  }

  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .products {
    grid-template-columns: 1fr;
    padding: 15px 5px;
  }

  .product-card {
    padding: 10px;
  }

  .modal-content {
    padding: 30px 15px 30px 15px;
    width: 300px;
    margin: 20px auto 20px auto;
  }

  .modal-content img {
    max-height: 200px;
  }

  #modalTitle {
    font-size: 18px;
  }

  .modal-content p {
    font-size: 13px;
  }

  .modal-content h3 {
    font-size: 15px;
  }

  .size-box span {
    padding: 6px 10px;
    font-size: 12px;
  }

  .buy-now-btn {
    padding: 12px 20px;
    font-size: 15px;
  }

  /* Checkout page mobile */
  main {
    margin: 10px;
    padding: 15px;
  }

  main h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  #checkoutDetails, #checkoutForm {
    padding: 15px;
  }

  #checkoutForm input, #checkoutForm textarea {
    padding: 12px;
    font-size: 16px;
  }

  #checkoutForm button {
    padding: 15px;
    font-size: 16px;
  }

  /* Sign up/sign in */
  #signUpForm h2, #signInForm h2 {
    font-size: 20px;
  }

  #signUpForm label, #signInForm label {
    font-size: 14px;
  }

  #signUpForm input, #signInForm input {
    padding: 14px 16px;
    font-size: 16px;
  }

  #signUpForm button, #signInForm button {
    padding: 14px 25px;
    font-size: 16px;
  }
}

/* Android Ultra-Small Screen Optimization */
@media (max-width: 360px) {
  html, body, input, select, textarea {
    font-size: 16px !important;
  }
  header {
    padding: 12px;
  }
  header h1 {
    font-size: 1.1rem;
  }
  header h2 {
    font-size: 0.9rem;
  }
  #logo {
    height: 60px;
  }
  .account-btn {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .hero {
    min-height: 35vh;
    padding: 20px 12px;
  }
  .hero-title {
    font-size: 1.2rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .products {
    padding: 12px 8px;
  }
  .product-card img {
    height: 150px;
  }
  .modal-content {
    width: 90%;
    padding: 16px 12px;
  }
  button {
    min-height: 42px;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  /* Touch devices */
  .product-card {
    min-height: 120px;
  }

  .account-btn, .qty-btn, .buy-now-btn, #signUpForm button, #signInForm button {
    min-height: 44px; /* iOS touch target minimum */
    min-width: 44px;
  }

  .size-available, .size-out {
    min-height: 40px;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Reduce hover effects on touch */
  .product-card:hover { transform: none; }
  nav a:hover { transform: none; background: none; }
  nav a:hover::after { width: 0; }
  .buy-now-btn:hover { transform: none; }
  #signUpForm button:hover, #signInForm button:hover { transform: none; }
}

/* Accessibility and trust improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .modal-content {
    border: 2px solid #000;
  }

  input, textarea, select {
    border: 2px solid #000;
  }

  .buy-now-btn, #signUpForm button, #signInForm button {
    border: 2px solid #fff;
  }
}

/* Enhanced Product Modal Styles */
#productModal .modal-content {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.3);
  border: 1px solid #e8e8e8;
  animation: modalSlideIn 0.4s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#productModal .modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #000 0%, #666 50%, #000 100%);
}

#modalTitle {
  color: #000;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  position: relative;
}

#modalImage {
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 15px;
}

#productModal p {
  margin: 8px 0;
  font-size: 15px;
  color: #444;
  text-align: center;
}

#productModal h3 {
  color: #000;
  font-size: 18px;
  margin: 15px 0 10px 0;
  text-align: center;
}

.size-box {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.size-available, .size-out {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid #000;
  text-align: center;
}

.size-available {
  background: #000;
  color: #fff;
}

.size-available:hover {
  background: #333;
}

.size-out {
  background: #f0f0f0;
  color: #999;
  border-style: dashed;
}

/* Additional mobile polish - overrides to make layout cleaner on phones */
@media (max-width: 768px) {
  .product-card img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
  }

  .product-card {
    padding: 1rem;
    border-radius: 12px;
    min-height: 160px;
  }

  .products {
    gap: 1rem;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Make top actions easy to tap and visually separated */
  .account-btn, .track-btn, .admin-login-btn {
    width: 100%;
    max-width: 260px;
    display: block;
    margin: 8px auto;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
  }

  /* Reduce heavy hero effects on small screens for clarity */
  .hero-title {
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    color: var(--primary-white);
    animation: none !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  }

  .hero-subtitle { color: rgba(255,255,255,0.95); }

  .badge { top: 12px; right: 12px; font-size: 11px; padding: 6px 8px; }

  header { padding-top: 12px; padding-bottom: 12px; }

  #logo { height: 64px; position: static; margin: 0 auto 8px auto; }
}

@media (max-width: 480px) {
  /* Modals should be edge-to-edge on very small devices */
  .modal-content {
    width: 100%;
    margin: 0;
    border-radius: 12px;
    padding: 18px;
    max-width: none;
  }

  .modal { align-items: flex-end; }

  .buy-now-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border-radius: 10px;
  }

  .product-card h3 { font-size: 1rem; }
  .price { font-size: 1.1rem; }
}

/* Small touch-specific improvements for all touch devices */
@media (hover: none) and (pointer: coarse) {
  .product-card { min-height: 180px; }
  .account-btn, .qty-btn, .buy-now-btn { min-height: 48px; }
  .size-available, .size-out { min-width: 44px; min-height: 44px; }
}

.size-out:hover {
  background: #e0e0e0;
}

.selectors {
  margin: 15px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  align-items: center;
}

.selectors label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

#sizeSelect {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  cursor: pointer;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: #000;
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s;
}

.qty-btn:hover {
  background: #333;
  transform: scale(1.1);
}

#qtyInput {
  width: 50px;
  padding: 8px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
}

.buy-now-btn {
  background: linear-gradient(135deg, #000 0%, #444 100%);
  color: #fff;
  border: none;
  padding: 14px 35px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  margin-top: 20px;
}

.buy-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #333 0%, #666 100%);
}

.buy-now-btn:active {
  transform: translateY(-1px);
}

/* Contact Section Styles */
.contact-section {
  background: var(--color-primary);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  border-top: 2px solid var(--color-accent);
  margin-top: var(--space-2xl);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  color: var(--color-text-light);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-section p {
  color: var(--color-text-light);
  font-size: 1.2rem;
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-btn {
  background: var(--color-accent);
  color: var(--color-text-light);
  border: 2px solid var(--color-accent);
  padding: var(--space-lg) var(--space-3xl);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-lg);
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 200px;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

/* Contact Page Styles */
.contact-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #2a2a2a 100%);
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--color-text-light);
}

.contact-hero h1 {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.contact-hero p {
  font-size: 1.3rem;
  opacity: 0.9;
}

.contact-info {
  padding: var(--space-3xl) var(--space-lg);
  background: var(--color-background);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.contact-item {
  background: var(--color-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.contact-item h3 {
  color: var(--color-text);
  font-size: 1.3rem;
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.contact-item p {
  color: var(--color-text-secondary);
  margin: var(--space-sm) 0;
  font-size: 1rem;
}

.contact-form {
  background: var(--color-surface);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form h3 {
  color: var(--color-text);
  font-size: 1.8rem;
  margin-bottom: var(--space-xl);
  text-align: center;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: var(--color-background);
  color: var(--color-text);
  box-sizing: border-box;
  transition: border-color var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.contact-submit-btn {
  background: var(--color-accent);
  color: var(--color-text-light);
  border: none;
  padding: var(--space-lg) var(--space-2xl);
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  box-shadow: var(--shadow-md);
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--color-accent-hover);
}

/* Mobile Contact Styles */
@media (max-width: 768px) {
  .contact-hero {
    padding: var(--space-2xl) var(--space-lg);
  }

  .contact-hero h1 {
    font-size: 2.2rem;
  }

  .contact-hero p {
    font-size: 1.1rem;
  }

  .contact-info {
    padding: var(--space-2xl) var(--space-md);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-item {
    padding: var(--space-lg);
  }

  .contact-form {
    padding: var(--space-xl);
    margin: 0 var(--space-md);
  }

  .contact-section {
    padding: var(--space-2xl) var(--space-md);
    margin-top: var(--space-xl);
  }

  .contact-section h2 {
    font-size: 2rem;
  }

  .contact-section p {
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
  }

  .contact-btn {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
    min-width: 180px;
  }
}