/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

/* Product Card Wrapper */
.border.rounded-lg.shadow-md.p-4 {
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  height: 100%;
}

.border.rounded-lg.shadow-md.p-4:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* Product Image */
.product-image {
  max-height: 200px;
  object-fit: contain;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
}

/* Product Title */
h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #212529;
}

/* Variant Dropdown */
.variant-select {
  border-radius: 0.375rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  border: 1px solid #ced4da;
  background-color: #ffffff;
  transition: border 0.2s ease-in-out;
}

.variant-select:focus {
  border-color: #0d6efd;
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

/* Variant Price & Stock */
.variant-price,
.variant-stock {
  font-weight: 600;
  font-size: 0.95rem;
  color: #28a745;
}

/* Brand & Category Text */
.text-gray-600 {
  color: #6c757d;
}

/* Rating Stars */
.text-yellow-500 {
  color: #f59e0b;
}

/* Buttons */
.btn {
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  padding: 0.4rem 0.75rem;
}

.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: #fff;
}

.btn-success {
  background-color: #198754;
  border-color: #198754;
}

.btn-success:hover {
  background-color: #157347;
  border-color: #146c43;
}

.btn[disabled],
.btn:disabled {
  opacity: 0.6;
  pointer-events: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .product-card {
    max-width: 100%;
  }

  h4 {
    font-size: 1rem;
  }

  .variant-price,
  .variant-stock {
    font-size: 0.9rem;
  }

  .btn {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
}
/* HERO SECTION */
.hero-section {
  background: linear-gradient(to right, #e9f5ff, #ffffff);
  border-bottom: 1px solid #dee2e6;
}

.hero-section h1 {
  font-size: 2rem;
}

.hero-image {
  max-height: 180px;
  width: 100%;
  max-width: 250px;
}

/* SCROLLING CATEGORY NAV */
.scrolling-wrapper {
  -webkit-overflow-scrolling: touch;
  white-space: nowrap;
  scroll-snap-type: x mandatory;
}

.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}

/* CATEGORY CARD */
.category-card {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  background-color: #ffffff;
}

.category-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.hover-shadow:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE TWEAKS */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.5rem;
  }

  .hero-section .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .scrolling-wrapper {
    padding-left: 10px;
  }

  .category-card h6 {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .hero-image {
    max-height: 140px;
  }

  .category-card {
    padding: 1rem 0.5rem;
  }
}
/* Header spacing & responsiveness */
header nav a.btn-link {
  color: #333;
  text-decoration: none;
}
header nav a.btn-link:hover {
  text-decoration: underline;
}

/* Footer */
footer a {
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  header nav {
    justify-content: center;
    flex-direction: column;
  }
}
