/* Basic page setup */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: #7490ca;
  color: rgb(245, 247, 243);
  line-height: 1.6;
}

/* Navigation */

nav {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: rgb(70, 68, 201);
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Main hero section */

header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
}

header h1 {
  font-size: 5;
  margin-bottom: 20px;
}

header p {
  font-size: 1.4rem;
  max-width: 700px;
  line-height: 1.6;
}

/* Main sections */

section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  text-align: center;
}

section > p {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.1rem;
}

/* Card layouts */

.learn-cards,
.resource-cards,
.guide-cards,
.shop-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

/* Individual cards */

.card {
  background: rgba(78, 45, 201, 0.356);
  border: 1px solid rgba(238, 144, 144, 0.25);
  border-radius: 16px;
  padding: 30px;
  min-height: 190px;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  background: rgba(8, 68, 148, 0.22);
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Shop section */

#shop {
  padding-top: 100px;
  padding-bottom: 100px;
}

#shop .card {
  min-height: 220px;
}

/* About section */

#about {
  text-align: center;
  padding-bottom: 120px;
}

#about p {
  max-width: 850px;
  margin: 0 auto 20px;
}

/* Mobile layout */

@media (max-width: 768px) {
  nav {
    padding: 20px;
    flex-direction: column;
    gap: 15px;
  }

  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  header h1 {
    font-size: 2.8rem;
  }

  header p {
    font-size: 1.1rem;
  }

  section {
    padding: 60px 20px;
  }

  section h2 {
    font-size: 2rem;
  }
}/* PRODUCT GRID LAYOUT */

.product-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 70px 40px;
}

.section-heading {
  margin-bottom: 25px;
}

.section-heading h2 {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-heading p {
  text-align: left;
  margin: 0;
}

/* Put product cards side by side */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Individual product card */

.product-card {
  background: rgba(59, 35, 35, 0.801);
  border: 1px solid rgba(223, 14, 14, 0.25);
  border-radius: 18px;
  padding: 14px;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.22);
}

/* Product picture area */

.product-image {
  width: 100%;
  height: 300px;
  background: rgba(91, 87, 126, 0.22);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.product-image span {
  opacity: 0.75;
}

/* Product information */

.product-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 4px;
}

.product-store {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 14px;
}

/* View Product button */

.product-button {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgb(212, 41, 41);
  color: #4042be;
  text-decoration: none;
  font-weight: bold;
}

.product-button:hover {
  opacity: 0.85;
}

/* Tablet */

@media (max-width: 1000px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Phone */

@media (max-width: 600px) {
  .product-section {
    padding: 50px 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 350px;
  }
}
.product-description {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
  opacity: 0.9;
}
.product-card {
  display: flex;
  flex-direction: column;
}

.product-button {
  margin-top: auto;
  align-self: flex-start;
}
.shop-hero {
  min-height: 0;
  padding: 35px 20px 25px;
}

.shop-hero h1 {
  font-size: 3rem;
  margin: 0 0 10px;
}

.shop-hero p {
  margin: 0;
  font-size: 1.1rem;
}
/* BIGGER SHOP HEADING */

.shop-hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: rgb(226, 33, 33);
  margin-bottom: 12px;
}

/* WRITING UNDER DESIGN THE SHOP */

.shop-hero p {
  font-size: 1.4rem;
  font-weight: 500;
}

/* DESIGN THE SHOP - TOP LEFT */

.logo {
  font-size: 3rem;
  font-weight: 800;
}

/* HOME / MEN / WOMEN / KIDS / FEATURED */

.nav-links a {
  font-size: 2.35rem;
  font-weight: 700;
}

/* MORE SPACE BETWEEN MENU ITEMS */

.nav-links {
  gap: 32px;
}
.shop-hero h1,
.shop-hero p {
  position: relative;
  top: 110px;
}
/* PHONE - TOP NAVIGATION ONLY */
@media (max-width: 600px) {

  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  .logo {
    font-size: 1.4rem;
  }

  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    justify-content: flex-start;
  }

  .nav-links a {
    font-size: 1rem;
  }
}
/* PHONE - FIX HERO OVERLAP */
@media (max-width: 600px) {

  .shop-hero {
    padding: 45px 20px 55px;
  }

  .shop-hero h1,
  .shop-hero p {
    position: static;
  }

  .shop-hero h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 22px;
  }

  .shop-hero p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0;
  }
}
/* PHONE - MOVE HERO TEXT DOWN */
@media (max-width: 600px) {

  .shop-hero h1,
  .shop-hero p {
    position: relative;
    top: 70px;
  }

}
/* PHONE - VIEW PRODUCT BUTTON */
@media (max-width: 600px) {

  .product-button {
    font-size: 1rem;
    font-weight: 700;

    padding: 10px 16px;

    background-color: #c0cee0;
    color: #7369c0;

    border-radius: 8px;

    transform: translate(10px, -4px);
  }

}
#edit-message {
  display: none;
}