/* ============================================================
   Zorvani Wear (DEMO) - Main Stylesheet
   Mobile-first, responsive design.
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────────── */
:root {
  --navy: #1B2A4A;
  --coral: #FF6B6B;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --text: #333333;
  --text-light: #666666;
  --border: #E0E0E0;
  --success: #28A745;
  --danger: #DC3545;
  --warning: #FFC107;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-heading: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
  --transition: 0.2s ease;

  --container-max: 1200px;
  --header-height: 64px;
}

/* ─── Reset / Normalize ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

a:hover {
  color: var(--coral);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Accessibility ─────────────────────────────────────────── */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 10000;
  font-weight: 600;
  transition: top var(--transition);
}

.skip-to-content:focus {
  top: 0;
}

*:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─── Demo Banner ───────────────────────────────────────────── */
.demo-banner {
  background: var(--coral);
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─── Header ────────────────────────────────────────────────── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-text {
  color: var(--navy);
}

.logo-accent {
  color: var(--coral);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.hamburger {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: background var(--transition);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--navy);
  transition: transform var(--transition);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.nav-toggle[aria-expanded='true'] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Nav list */
.nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 999;
}

.nav.nav-open {
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  gap: 0;
}

.nav-list li a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-list li a:hover,
.nav-list li a.active {
  background: var(--light-gray);
  color: var(--coral);
}

/* Cart link */
.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: var(--navy);
}

.cart-link:hover {
  color: var(--coral);
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -4px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 9px;
  text-align: center;
  padding: 0 4px;
}

/* ─── Hero Section ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #2d4470 100%);
  color: var(--white);
  padding: 3rem 1rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-primary {
  font-size: 1.1rem;
  padding: 0.875rem 2rem;
}

/* ─── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--coral);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: #E55A5A;
  transform: translateY(-1px);
  color: var(--white);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-secondary:hover {
  background: #142038;
  transform: translateY(-1px);
  color: var(--white);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ─── Product Grid ──────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem 0;
}

/* ─── Product Card ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.product-card-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--light-gray);
  overflow: hidden;
}

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

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

.product-card-info {
  padding: 0.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.product-card-name {
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--navy);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}

.price-current {
  font-weight: 800;
  font-size: 1rem;
  color: var(--navy);
}

.price-mrp {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.75rem;
  color: var(--coral);
  font-weight: 600;
}

.product-card-out-of-stock {
  font-size: 0.75rem;
  color: var(--danger);
  font-weight: 600;
}

/* ─── Product Detail Page ───────────────────────────────────── */
.product-detail {
  padding: 1rem 0 3rem;
}

.product-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Image Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--light-gray);
  border-radius: var(--radius);
  overflow: hidden;
}

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

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.product-thumbnail {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--light-gray);
}

.product-thumbnail:hover,
.product-thumbnail.active {
  border-color: var(--coral);
}

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

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}

.product-info .product-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.product-info .product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-info .price-current {
  font-size: 1.75rem;
  font-weight: 800;
}

.product-info .price-mrp {
  font-size: 1rem;
}

.product-info .price-discount {
  font-size: 0.9rem;
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

.product-meta {
  font-size: 0.9rem;
  color: var(--text-light);
}

.product-meta dt {
  font-weight: 600;
  color: var(--text);
}

.product-meta dd {
  margin-bottom: 0.5rem;
}

/* ─── Size & Color Selector Pills ───────────────────────────── */
.selector-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.selector-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.selector-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size-pill,
.color-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text);
  min-width: 44px;
}

.size-pill:hover,
.color-pill:hover {
  border-color: var(--navy);
}

.size-pill.selected,
.color-pill.selected {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--white);
}

.size-pill.out-of-stock {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition);
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.selected {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy);
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--light-gray);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

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

.quantity-value {
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  background: var(--white);
  color: var(--text);
}

/* ─── Cart Page ─────────────────────────────────────────────── */
.cart-page {
  padding: 1.5rem 0 3rem;
}

.cart-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  align-items: start;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  background: var(--light-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-item-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--text-light);
}

.cart-item-price {
  font-weight: 700;
  color: var(--text);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.cart-item-remove {
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

/* Cart summary */
.cart-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

/* ─── Checkout Form ─────────────────────────────────────────── */
.checkout-page {
  padding: 1.5rem 0 3rem;
}

.checkout-page h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 500px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15);
  outline: none;
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--danger);
}

.form-error {
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 500;
}

/* ─── Filter Sidebar ────────────────────────────────────────── */
.shop-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem 0;
}

.filter-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.filter-sidebar h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.filter-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text);
}

.filter-pill:hover {
  border-color: var(--navy);
}

.filter-pill.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.price-range {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.price-range input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  background: var(--white);
  color: var(--text);
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.sort-bar .result-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.sort-bar select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: var(--white);
}

/* Search bar */
.search-bar {
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.search-bar input:focus {
  border-color: var(--coral);
  outline: none;
}

.search-bar .search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

/* ─── Pagination ────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--white);
  color: var(--text);
}

.pagination-btn:hover {
  border-color: var(--navy);
  background: var(--light-gray);
}

.pagination-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─── Empty States ──────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.empty-state p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* ─── Modal / Messages ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 1rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.alert {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.75rem 1.25rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 0;
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.85rem;
  opacity: 0.75;
  line-height: 1.6;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-bottom {
  margin-top: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

/* ─── Utility ───────────────────────────────────────────────── */
.text-center {
  text-align: center;
}

.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; }

/* ─── Responsive: Tablet (≥ 480px) ─────────────────────────── */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .product-thumbnail {
    width: 72px;
    height: 72px;
  }

  .cart-item {
    grid-template-columns: 100px 1fr;
  }

  .cart-item-image {
    width: 100px;
    height: 100px;
  }
}

/* ─── Responsive: Tablet (≥ 768px) ─────────────────────────── */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 4rem 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  /* Desktop nav */
  .nav-toggle {
    display: none;
  }

  .nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    padding: 0;
    gap: 0;
  }

  .nav-list li a {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  /* Product grid: 3 columns */
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  /* Product detail: side-by-side */
  .product-detail-grid {
    flex-direction: row;
    align-items: flex-start;
  }

  .product-gallery {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .product-info {
    flex: 1;
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }

  /* Shop layout: sidebar + content */
  .shop-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .filter-sidebar {
    flex: 0 0 240px;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
  }

  .shop-content {
    flex: 1;
    min-width: 0;
  }

  .filter-toggle-btn {
    display: none;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  /* Cart item inline */
  .cart-item {
    grid-template-columns: 100px 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
  }
}

/* ─── Responsive: Desktop (≥ 1024px) ───────────────────────── */
@media (min-width: 1024px) {
  /* Product grid: 4 columns */
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }

  .product-info h1 {
    font-size: 2rem;
  }

  .filter-sidebar {
    flex: 0 0 280px;
  }
}

/* ─── Responsive: Large Desktop (≥ 1200px) ──────────────────── */
@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }

  .product-card-info {
    padding: 1rem;
  }

  .product-card-name {
    font-size: 0.95rem;
  }
}

/* ─── Mobile filter overlay ─────────────────────────────────── */
@media (max-width: 767px) {
  .filter-sidebar {
    display: none;
  }

  .filter-sidebar.filter-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1500;
    overflow-y: auto;
    border-radius: 0;
    border: none;
    padding: 1.5rem;
    padding-top: 4rem;
  }

  .filter-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text);
  }
}

@media (min-width: 768px) {
  .filter-toggle-btn,
  .filter-close-btn {
    display: none;
  }
}

/* ─── Category Tiles (Home) ─────────────────────────────────── */
.category-section {
  padding: 3rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .category-tiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-tile {
  background: var(--light-gray);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: var(--coral);
  box-shadow: var(--shadow-lg);
  color: var(--navy);
}

.category-tile-icon {
  width: 64px;
  height: 64px;
  color: var(--coral);
}

.category-tile-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.category-tile-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ─── How Demo Ordering Works (Home) ────────────────────────── */
.how-it-works-section {
  background: #F8F9FA;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}
