@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --text-color: #1f2937;
  --bg-color: #f9fafb;
  --header-bg: rgba(255, 255, 255, 0.9);
  --border-color: #e5e7eb;
  --footer-bg: #111827;
  --footer-text: #9ca3af;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header Section */
.header {
  margin-top: 10px;
  margin-bottom: 10px;
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
}

.inner-logo img {
  max-height: 45px;
  transition: transform 0.3s ease;
}

.inner-logo img:hover {
  transform: scale(1.05);
}

.inner-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
}

.inner-menu ul li a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.inner-menu ul li a:hover {
  color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.08);
}

/* Main Content Area */
h1 {
  font-weight: 700;
  font-size: 2.25rem;
  color: #111827;
  margin-top: 40px;
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #818cf8);
  border-radius: 2px;
  margin-top: 8px;
}

/* Wrap main content nicely in container if not wrapped */
body > h1,
body > div:not(.header):not(.container):not(.footer) {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--bs-gutter-x, .75rem);
  padding-right: var(--bs-gutter-x, .75rem);
  width: 100%;
}

/* Footer Section */
footer.footer {
  margin-top: auto;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer.footer p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* Box Head Section */
.box-head {
  margin-bottom: 30px;
}

.box-head .inner-title {
  font-weight: 700;
  font-size: 1.75rem;
  color: #111827;
  position: relative;
  display: inline-block;
  margin: 0;
}

.box-head .inner-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #818cf8);
  border-radius: 2px;
  margin-top: 8px;
}

/* Product Cards Section */
.product-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.product-item:hover {
  transform: translateY(-6px);
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.product-item .inner-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #f9fafb;
  position: relative;
}

.product-item .inner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-item:hover .inner-image img {
  transform: scale(1.06);
}

.product-item .inner-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-item .inner-title-content {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-item .inner-title-content:hover {
  color: var(--primary-color);
}

.product-item .inner-price-new {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
  margin-bottom: 6px;
}

.product-item .inner-price-old {
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-right: 8px;
  display: inline-block;
}

.product-item .inner-discount {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ef4444;
  background-color: #fee2e2;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

