/* === Root Variables === */
:root {
  --brand: #0d6efd;
  --dark: #0b1220;
}

/* === Base Reset === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Navbar === */
.navbar-brand img {
  height: 48px;
  max-width: 100%;
}

/* === Hero Section === */
.hero {
  min-height: 68vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 18, 32, 0.55), rgba(13, 110, 253, 0.22));
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

/* === Badge === */
.badge-brand {
  background: rgba(255, 255, 255, 0.12);
  color: var(--brand);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}

/* === Section Title === */
.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

/* === Product Grid === */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.card-product {
  flex: 1 1 calc(25% - 20px);
  max-width: calc(25% - 20px);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(13, 110, 253, 0.15);
}

.card-product img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-bottom: 1px solid #ddd;
  background: #f8f9fa;
}

.card-product .card-body {
  padding: 15px;
  text-align: center;
  flex-grow: 1;
}

.card-product .card-body p,
.card-product .card-body h5 {
  margin-bottom: 0.5rem;
  text-align: justify;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Buttons === */
button, .btn {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

button:hover, .btn:hover {
  background: #0b5ed7;
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.5);
  transform: translateY(-3px);
}

button:active, .btn:active {
  transform: scale(0.98);
}

/* === Footer === */
.footer {
  background: var(--dark);
  color: #d1d5db;
  padding: 40px 0;
  text-align: center;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
}

.footer a:hover {
  color: var(--brand);
}

/* === Responsive Adjustments === */
@media (max-width: 992px) {
  html { font-size: 95%; }
  .card-product {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  html { font-size: 90%; }
  .card-product {
    flex: 1 1 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
  .card-product img {
    height: 240px;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .hero {
    padding: 40px 10px;
    background-position: top center;
  }
}

/* === Zoom Adaptivity === */
body {
  transform-origin: top left;
}


.card-img-top[alt="Iron Air Cooler"] { padding: 5000; }
