:root {
  --primary: #2563eb;
  --secondary: #2a160f;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Header */
header {
  background: var(--secondary);
  color: white;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 { margin: 0; font-size: 1.5rem; }

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover { color: var(--accent); }

/* Home Section */
.home {
  padding: 60px 5%;
  background: linear-gradient(135deg, #e0e7ff 0%, #f8fafc 100%);
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}

.home-text { flex: 1; }
.home-text h2 { font-size: 2.5rem; color: var(--secondary); margin-bottom: 10px; }

.home-img { flex: 1; text-align: right; }
.home-img img {
  width: 30%;
  max-width: 400px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

/* Owner Section */
.owner {
  display: flex;
  align-items: center;
  background: var(--white);
  max-width: 800px;
  margin: -30px auto 40px;
  padding: 20px;
  border-radius: 15px;
  box-shadow: var(--shadow);
  position: relative;
}

.owner img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin-right: 20px;
  object-fit: cover;
  border: 3px solid var(--primary);
}

/* Grid & Cards */
.title { text-align: center; margin-top: 50px; font-size: 2rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 40px 5%;
  max-width: 1200px;
  margin: auto;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* Keeps aspect ratio clean */
  border-radius: 8px;
}

.card a { text-decoration: none; color: var(--secondary); }
.card h3 { margin: 15px 0 5px; }
.card p { color: var(--primary); font-weight: bold; font-size: 1.2rem; }

/* Product Page */
.product-container {
  display: flex;
  gap: 40px;
  padding: 40px 5%;
  max-width: 1100px;
  margin: 30px auto;
  background: var(--white);
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.product-img img {
  width: 100%;
  max-width: 450px;
  border-radius: 10px;
}

.product-info { flex: 1; }

.price { color: var(--primary); font-size: 1.8rem; margin: 10px 0; }

.price-btn, .whatsapp-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.price-btn { background: var(--accent); color: var(--secondary); margin-right: 10px; }
.whatsapp-btn { background: #25d366; color: white; }

table { width: 100%; border-collapse: collapse; margin: 20px 0; }
td { border-bottom: 1px solid #eee; padding: 12px; }
td:first-child { font-weight: bold; color: var(--text); width: 40%; }

/* Mobile View */
@media (max-width: 768px) {
  .home-content, .product-container, .owner { flex-direction: column; text-align: center; }
  .home-img { order: -1; }
  .owner img { margin: 0 0 15px 0; }
}
.card {
  height: 320px; /* fixed height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card img {
  width: 100%;
  height: 180px; /* fixed height */
  object-fit: cover; /* 🔥 keeps image clean */
  border-radius: 8px;
}
.card h3 {
  font-size: 1rem;
  min-height: 40px; /* keeps title area same */
}

.card p {
  margin-top: auto;
}
.grid {
  justify-content: center;
}