@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Playfair+Display:wght@400;600&display=swap');

*{box-sizing:border-box;margin:0;padding:0}

/*PAGE GRID*/
body{
  display:grid;
  grid-template-areas:
    "header header"
    "nav main"
    "footer footer";
  grid-template-columns:200px 1fr;
  grid-template-rows:auto 1fr auto;
  min-height:100vh;
  font-family:'Inter', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color:#111;
}

header{grid-area:header}
nav{grid-area:nav}
main{grid-area:main}
footer{grid-area:footer}

/* HEADER */
header{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  background:#222;
  color:#fff;
  z-index:2;
}
header img{width:60px;height:60px;object-fit:contain}
header h1{
  font-family:'Playfair Display', serif;
  letter-spacing:.5px;
  font-weight:600;
  font-size:1.5rem;
}

/* NAV */
nav{
  display:grid;
  grid-auto-rows:min-content;
  gap:10px;
  padding:18px 12px;
  background:rgba(18,18,18,.72);
  color:#fff;
  z-index:2;
}
nav a{
  color:#fff;
  text-decoration:none;
  padding:6px 8px;
  border-radius:6px;
  font-size:.95rem;
}
nav a:hover{background:rgba(255,255,255,.08)}

/* MAIN */
main{
  display:grid;
  gap:24px;
  background:rgba(255,255,255,.88);
  padding:28px;
  border-radius:10px;
  box-shadow:0 12px 34px rgba(0,0,0,.18);
  z-index:2;
}

main > section{
  width:100%;
}

/* BANNER */
.banner {
  width: 100%;           
  height: 320px;
  overflow: hidden;
  border-radius: 10px;   
  margin-bottom: 24px;   
}

.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER */
footer{
  padding:10px;
  background:rgba(30,30,30,.92);
  color:#fff;
  text-align:center;
  font-size:.9rem;
}

/* BACKGROUND */
.bg-img{
  position:fixed;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:-2;
  filter:saturate(.98) contrast(1.02) brightness(.92);
}

/* PRODUCTS */
.products{
  width:100%;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:28px;
  margin-top:12px;
}

.product-card{
  background:#fff;
  border-radius:6px;
  overflow:hidden;
  border:1px solid rgba(15,15,15,.06);
  box-shadow:0 10px 28px rgba(0,0,0,.08);
  display:grid;
  grid-template-rows:auto 1fr;
  transition:transform .18s ease, box-shadow .18s ease;
}

.product-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}

.img-wrap{
  width:100%;
  height:260px;
  overflow:hidden;
}

.product-card img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-info{
  padding:14px;
  border-top:1px solid rgba(0,0,0,.05);
}

.product-name{font-weight:600;margin-bottom:6px}
.product-price{color:#444}

/* FORMS */
form{
  display:grid;
  gap:14px;
}

form label{
  display:grid;
  gap:4px;
  font-size:.9rem;
}

input,textarea,button{
  padding:8px 10px;
  border-radius:5px;
  border:1px solid #ccc;
  font-family:inherit;
}

button{
  background:#222;
  color:#fff;
  border:none;
  cursor:pointer;
}

.btn-ghost{
  border:1px solid #aaa;
  color:#222;
  padding:8px 10px;
  border-radius:5px;
  text-decoration:none;
}

/* Signup grid */
#signupForm{
  grid-template-columns:1fr 1fr;
}

#signupForm p,
#signupForm div:last-child{
  grid-column:1 / -1;
}

/* Login */
#loginForm{
  max-width:420px;
  margin:0 auto;
}

/* PROFILE */
.profile-grid{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:24px;
  background:#fff;
  padding:22px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.06);
}

.profile-avatar img{
  width:160px;
  height:160px;
  border-radius:50%;
  object-fit:cover;
}

/* RESPONSIVE */
@media (max-width:900px){
  .product-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .profile-grid{
    grid-template-columns:1fr;
    text-align:center;
  }

  .profile-avatar img{
    margin:0 auto;
  }
}

@media (max-width:600px){
  body{
    grid-template-areas:
      "header"
      "nav"
      "main"
      "footer";
    grid-template-columns:1fr;
  }

  nav{
    grid-auto-flow:column;
    overflow-x:auto;
  }

  .product-grid{
    grid-template-columns:1fr;
  }

  #signupForm{
    grid-template-columns:1fr;
  }

  main{
    padding:18px;
    border-radius:0;
    box-shadow:none;
  }
}

/* About page layout */
.about-hero{
  background:#fff;
  padding:24px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.04);
  text-align:center;
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:28px;
  margin-top:18px;
}

/* Card styles */
.about-card{
  background:#fff;
  padding:20px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.06);
  box-shadow:0 10px 28px rgba(0,0,0,.08);
}

/* Owner section: image + text side by side */
.owner-wrapper{
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.owner-pic{
  width:140px;
  height:140px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.06);
  flex-shrink:0;
}

.owner-text h3{
  margin-top:0;
  margin-bottom:6px;
}
.owner-text p{
  margin:2px 0;
  line-height:1.4;
  color:#333;
}

/* Responsive adjustments */
@media (max-width:900px){
  .about-grid{
    grid-template-columns:1fr;
    text-align:center;
  }
  .owner-wrapper{
    flex-direction:column;
    align-items:center;
  }
  .owner-text p{ text-align:center; }
}

