/* ========================================
   GLOBAL STYLES & VARIABLES
   ======================================== */

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-color: #1f2937;
  --light-color: #f3f4f6;
  --white-color: #ffffff;
  --text-color: #374151;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-color);
  background-color: var(--light-color);
  line-height: 1.6;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  color: var(--dark-color);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/* ========================================
   LAYOUT
   ======================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.col-1 { flex: 0 0 8.333%; }
.col-2 { flex: 0 0 16.666%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333%; }
.col-5 { flex: 0 0 41.666%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333%; }
.col-8 { flex: 0 0 66.666%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333%; }
.col-11 { flex: 0 0 91.666%; }
.col-12 { flex: 0 0 100%; }

[class*="col-"] {
  padding: 15px;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 12px 28px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-width: 150px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--dark-color);
  color: var(--white-color);
}

.btn-secondary:hover {
  background-color: #111827;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background-color: var(--success-color);
  color: var(--white-color);
}

.btn-success:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  min-width: auto;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.btn-block {
  width: 100%;
  display: block;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background-color: var(--white-color);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover:after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--light-color);
}

.nav-icon:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--danger-color);
  color: var(--white-color);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  transition: var(--transition);
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger active (X) */
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================================
   FOOTER
   ======================================== */

footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white-color);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white-color);
}

.footer-bottom {
  border-top: 1px solid #4b5563;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white-color);
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero h1 {
  color: var(--white-color);
  margin-bottom: 1.5rem;
  animation: slideInLeft 0.8s ease;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: slideInUp 0.8s ease;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  animation: slideInUp 1s ease;
}

.hero-actions .btn {
  min-width: 180px;
  font-size: 1.1rem;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background-color: var(--white-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.card-text {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ========================================
   PRODUCT GRID
   ======================================== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.product-card {
  position: relative;
  overflow: hidden;
}

.product-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background-color: var(--light-color);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--danger-color);
  color: var(--white-color);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.product-info {
  padding: 1rem 0;
}

.product-name {
  font-size: 1.1rem;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.product-category {
  color: #9ca3af;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.stars {
  color: #fbbf24;
  font-size: 0.9rem;
}

.rating-count {
  color: #9ca3af;
  font-size: 0.85rem;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.original-price {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
}

.product-actions .btn {
  flex: 1;
  padding: 10px;
  font-size: 0.9rem;
}

/* ========================================
   FILTERS & SIDEBAR
   ======================================== */

.products-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.filters {
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  margin-right: 0.5rem;
  cursor: pointer;
}

.filter-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.filter-option label {
  cursor: pointer;
  flex: 1;
  font-size: 0.95rem;
}

.price-range {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.price-range input {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

/* ========================================
   FORMS
   ======================================== */

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-row .form-group {
  margin-bottom: 1rem;
}

/* ========================================
   ALERTS & MESSAGES
   ======================================== */

.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.alert-success {
  background-color: #d1fae5;
  color: #047857;
  border: 1px solid #6ee7b7;
}

.alert-error {
  background-color: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.alert-warning {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

/* ========================================
   RATINGS & REVIEWS
   ======================================== */

.review {
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-color);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.review-author {
  font-weight: 600;
  color: var(--dark-color);
}

.review-date {
  color: #9ca3af;
  font-size: 0.85rem;
}

.review-rating {
  color: #fbbf24;
  margin-bottom: 0.5rem;
}

.review-text {
  color: var(--text-color);
  line-height: 1.6;
}

/* ========================================
   TABLES
   ======================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table thead {
  background-color: var(--light-color);
  border-bottom: 2px solid var(--border-color);
}

.table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--dark-color);
}

.table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
  background-color: var(--light-color);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ========================================
   MODALS
   ======================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white-color);
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--dark-color);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #9ca3af;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--dark-color);
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #9ca3af;
  font-size: 0.95rem;
}

.breadcrumbs a {
  color: var(--primary-color);
}

.breadcrumbs span {
  color: #d1d5db;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.pagination a,
.pagination button {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--white-color);
  color: var(--primary-color);
}

.pagination a:hover,
.pagination button:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.pagination .active {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }
.pt-4 { padding-top: 2rem; }
.pt-5 { padding-top: 3rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }
.pb-4 { padding-bottom: 2rem; }
.pb-5 { padding-bottom: 3rem; }

.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }

.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-column { display: flex; flex-direction: column; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.5; }

.cursor-pointer { cursor: pointer; }

.d-none { display: none !important; }

/* Small utilities and helpers */
.badge.hidden { display: none !important; }
.badge.show { display: flex !important; align-items: center; justify-content: center; }

.card-action { cursor: pointer; transition: var(--transition); }
.card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.price-strong { color: var(--primary-color); font-size: 1.3rem; display: inline-block; margin: .5rem 0; }
.list-unstyled { list-style: none; font-size: 0.9rem; margin: 1rem 0; padding-left: 0; }
.form-center { max-width: 500px; margin: 0 auto; }
.label-flex { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0; }
.label-flex input { margin-top: 0.25rem; }
.breadcrumb-bar { background: #f3f4f6; padding:1rem 0; border-bottom:1px solid var(--border-color); }
.process-step { font-size: 2rem; background: var(--primary-color); color: #fff; width: 50px; height: 50px; border-radius: 50%; display:flex; align-items:center; justify-content:center; margin: 0 auto 1rem; }
.hero-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* Search results */
.search-result { padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); cursor: pointer; }
.search-result .search-title { font-weight: 500; }
.search-result .search-sub { font-size: .9rem; color: #9ca3af; }

/* Notification */
.notification { position: fixed; top: 80px; right: 20px; z-index:1001; min-width:300px; animation: slideInUp 0.3s ease; }
.notification .notification-message { flex: 1; }

/* Accessibility helper */
.fw-600 { font-weight: 600; }
.text-muted { color: #9ca3af; font-size: 0.9rem; }

/* Hero alternate */
.hero-alt { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; }
.badge-price { background: rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 20px; font-weight: 700; color: #fff; display: inline-block; }
.list-item { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.list-item:last-child { border-bottom: none; }

.text-primary { color: var(--primary-color); }

.feature-row { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-start; }
.feature-icon { flex-shrink: 0; width: 60px; height: 60px; background: var(--primary-color); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: bold; }
.feature-content { margin-left: 0; margin-top: 0.25rem; }
.feature-list { margin-left: 1rem; margin-top: 0.5rem; }

.grid-empty { grid-column: 1/-1; text-align: center; padding: 2rem; color: #9ca3af; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Fluid typography for better scaling across devices */
h1 { font-size: clamp(1.5rem, 2.5vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.25rem, 2vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1rem, 1.5vw + 0.5rem, 2rem); }

/* Responsive media */
img, video, picture { max-width: 100%; height: auto; display: block; }

/* Make grid columns stack on small screens */
@media (max-width: 768px) {
  [class*="col-"] { flex: 0 0 100%; }
}

/* Improved modal sizing */
.modal-content { max-width: clamp(320px, 90%, 600px); max-height: 90vh; overflow-y: auto; }
.modal-large { max-width: 600px; }

/* Touch targets and hamburger sizing */
.hamburger { width: 48px; height: 48px; align-items: center; justify-content: center; padding: 8px; border-radius: 8px; }
.hamburger span { width: 25px; height: 3px; }
.nav-icon { min-width: 44px; min-height: 44px; }

/* Product image containers scale on smaller viewports */
.product-image-container { height: clamp(160px, 20vw, 280px); }


@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }

  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .products-container {
    grid-template-columns: 200px 1fr;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--white-color);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-menu.active {
    max-height: 500px;
  }

  .nav-menu li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    min-width: auto;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .products-container {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1rem; }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
  }

  .nav-menu {
    gap: 0 !important;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
  }

  .product-card {
    margin-bottom: 0;
  }

  [class*="col-"] {
    padding: 10px;
  }
}

/* Hero utility classes for semantic markup */
.hero-inner { text-align: center; padding: clamp(2rem, 8vw, 5rem) 0; }
.section-centered { text-align: center; padding: clamp(2rem, 6vw, 5rem) 2rem; }
.section-lead { font-size: clamp(1rem, 2vw, 1.1rem); color: #666; margin: 1rem 0; }
.hero-title { font-size: clamp(1.5rem, 4vw, 3.5rem); line-height: 1.2; }
.hero-lead { font-size: clamp(1rem, 2vw, 1.3rem); color: #666; }/* Ensure hero lead text is readable on dark hero backgrounds */
.hero .hero-lead { color: var(--white-color); text-shadow: 0 1px 0 rgba(0,0,0,0.25); }