/* ============================================================================
MODULE      : Mobile Design Tokens & Base Reset
============================================================================ */

:root {
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  --radius-sm: 4px;
  --radius-md: 8px;

  --brand-primary: #0B6E60;
  --brand-secondary: #F29E4C;
  --brand-accent: #E85A4F;

  --surface: #FFFFFF;
  --bg: #FAFBFB;
  --text: #081018;
  --muted: #5A5A5A;

  --font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  padding: 0 var(--space-md);
  margin: 0 auto;
}

/* ============================================================================
MODULE      : Mobile Header & Navigation
============================================================================ */

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--brand-primary);
  color: var(--surface);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mobile-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--surface);
  text-decoration: none;
}

.menu-toggle {
  background: none;
  border: none;
  color: var(--surface);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ============================================================================
MODULE      : Sliding Menu Panel
============================================================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--surface);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 300ms ease;
  z-index: 200;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
}

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

.mobile-menu .menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  margin-bottom: var(--space-md);
}

.mobile-menu nav a {
  display: block;
  padding: var(--space-sm) 0;
  font-size: 1rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu nav a:hover {
  color: var(--brand-primary);
}

/* ============================================================================
MODULE      : Navigation Icons
============================================================================ */

.nav-icons {
  display: flex;
  gap: var(--space-md);
}

.nav-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--surface);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.nav-icon:hover {
  background-color: rgba(255, 255, 255, 0.25);
}
/* ============================================================================
MODULE      : Mobile Product Grid
============================================================================ */

.product-section {
  padding: var(--space-lg) var(--space-md);
  background: var(--surface);
}

.product-section-header h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--brand-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

/* ============================================================================
MODULE      : Mobile Product Card
============================================================================ */

.product-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.product-media {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 ratio for mobile */
  overflow: hidden;
}

.product-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================================
MODULE      : Mobile Product Details
============================================================================ */

.product-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.product-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.product-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-accent);
}

.price-old {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--muted);
  margin-right: var(--space-sm);
}
/* ============================================================================
MODULE      : Mobile Button System
============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 150ms ease;
  text-decoration: none;
  white-space: nowrap;
  width: 100%;
  text-align: center;
}

/* Primary Button */
.btn.primary {
  background-color: var(--brand-accent);
  color: var(--surface);
}

.btn.primary:hover {
  background-color: #d84f45;
}

/* Secondary Button */
.btn.secondary {
  background-color: transparent;
  color: var(--brand-primary);
  border: 1px solid var(--brand-primary);
}

.btn.secondary:hover {
  background-color: var(--brand-primary);
  color: var(--surface);
}

/* Special Button */
.btn.special {
  background-color: var(--brand-secondary);
  color: var(--surface);
}

.btn.special:hover {
  background-color: #d88a3f;
}

/* ============================================================================
MODULE      : Mobile Product Actions
============================================================================ */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.product-actions .btn {
  width: 100%;
}

