/* KENVA TEMPLATE SHOP */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #f8f7f3;
  color: #172033;
  line-height: 1.6;
}

/* HEADER */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 7%;
  background: #ffffff;
  border-bottom: 1px solid #eeeae2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 27px;
  font-weight: 800;
  color: #172033;
  text-decoration: none;
}

.logo span {
  color: #c49b50;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: #555b66;
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: #c49b50;
}

.header-actions {
  display: flex;
  gap: 10px;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.login-btn {
  background: transparent;
  border: 1px solid #d7d2c8;
  padding: 9px 17px;
  border-radius: 7px;
  color: #172033;
}

.cart-btn {
  background: #172033;
  color: white;
  border: none;
  padding: 10px 17px;
  border-radius: 7px;
}

/* HERO */

.hero {
  text-align: center;
  padding: 110px 20px;
  background: linear-gradient(
    135deg,
    #f4efe4,
    #ffffff,
    #eee8da
  );
}

.eyebrow {
  color: #b18a43;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 15px;
}

.hero h1 {
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.12;
  font-weight: 800;
}

.hero h1 span {
  color: #b18a43;
}

.hero-description {
  max-width: 500px;
  margin: 22px auto;
  color: #697080;
  font-size: 16px;
}

.shop-btn {
  display: inline-block;
  margin-top: 15px;
  background: #172033;
  color: white;
  padding: 14px 28px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: bold;
}

.shop-btn:hover {
  background: #b18a43;
}

/* SHOP */

.shop-section {
  padding: 80px 7%;
  text-align: center;
}

.shop-section h2,
.about-section h2 {
  font-size: 32px;
  margin-bottom: 35px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.empty-message {
  grid-column: 1 / -1;
  color: #858585;
  padding: 40px;
}

/* ABOUT */

.about-section {
  text-align: center;
  padding: 70px 20px;
  background: #ffffff;
}

.about-section p {
  color: #697080;
}

/* FOOTER */

.footer {
  background: #172033;
  
/* PRODUCT CARDS */

.product-card {
  background: #ffffff;
  border: 1px solid #eeeae2;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-preview {
  min-height: 170px;
  background: linear-gradient(
    135deg,
    #eee5d5,
    #f9f6ef
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-preview span {
  font-size: 65px;
}

.product-info {
  padding: 17px;
}

.product-category {
  color: #b18a43;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-info h3 {
  font-size: 17px;
  margin: 7px 0 15px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-bottom strong {
  color: #172033;
  font-size: 15px;
}

.add-cart-btn {
  background: #172033;
  color: white;
  border: none;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 11px;
}

.add-cart-btn:hover {
  background: #b18a43;
}
color: #ffffff;
  text-align: center;
  padding: 35px 20px;
}

.footer > p {
  font-size: 13px;
  color: #c5c8cf;
}

.bible-section {
  margin: 28px auto 0;
  max-width: 480px;
  padding: 20px;
  border-top: 1px solid #414958;
}

.bible-btn {
  border: none;
  background: transparent;
  font-size: 25px;
  margin-bottom: 12px;
}

.bible-section p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  line-height: 1.8;
}

.bible-section span {
  display: block;
  margin-top: 10px;
  color: #d7b36c;
  font-size: 13px;
}

/* MOBILE */

@media (max-width: 700px) {
  .header {
    padding: 15px 4%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .logo {
    font-size: 23px;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 22px;
  }

  .header-actions {
    gap: 6px;
  }

  .login-btn,
  .cart-btn {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero {
    padding: 85px 18px;
  }

  .hero-description {
    font-size: 14px;
  }

  .shop-section {
    padding: 65px 5%;
  }

  .template-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .shop-section h2,
  .about-section h2 {
    font-size: 26px;
  }
}

@media (max-width: 380px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
}

/* SIGN UP BUTTON */
.signup-btn {
  background: #b18a43;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
}

/* AUTHENTICATION MODAL */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-modal[hidden],
#loginForm[hidden],
#signupForm[hidden] {
  display: none !important;
}

.auth-box {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 30px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 15px 45px rgba(0,0,0,0.2);
}

.auth-box h2 {
  color: #172033;
  margin-bottom: 8px;
}

.auth-box > p {
  color: #777;
  margin-bottom: 20px;
}

.auth-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 28px;
  cursor: pointer;
  color: #172033;
}

.auth-box label {
  display: block;
  margin: 15px 0 7px;
  font-size: 14px;
  color: #172033;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 7px;
  font-size: 15px;
  box-sizing: border-box;
}

.auth-submit {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  background: #172033;
  color: white;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  font-size: 15px;
}

.auth-submit:hover {
  background: #b18a43;
}

.auth-box form p {
  text-align: center;
  font-size: 13px;
  margin-top: 18px;
  color: #555;
}

.auth-box form p button {
  border: none;
  background: none;
  color: #b18a43;
  font-weight: bold;
  cursor: pointer;
}

#authMessage {
  font-size: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .auth-box {
    padding: 25px 20px;
  }

  .header-actions {
    gap: 5px;
  }
    }

