/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* Header */
.header {
    background: #f9d0eb;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;   /* center logo + text */
  justify-content: center;
  margin-right: 20px;    /* spacing from nav */
}

.logo img {
  max-width: 80px;   /* control logo size */
  height: auto;
  display: block;
  margin-bottom: 5px; /* space between logo and text */
}

.brand-name {
    font-family: 'Dancing Script', cursive;
    font-size: 28px;
    font-weight: bold;
    color: purple;
    margin-left: 0px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

header nav h1 {
    font-family:'DM Serif Diaplay';
    font-size: 50px;
    text-align: center;
    color: #6c8df0;
    font-weight: bold;
    margin: 0 auto;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

nav ul li a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    font-size: 25px;
    transition: font-size 0.3s ease;
    font-family: 'DM Serif Display', serif;
}

/* Title Section */
.title-section {
    background-color: #fce3f0;
    text-align: center;
    padding: 40px 20px;
}

.title-section h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 30px;
    color: #333;
    margin-bottom: 20px;
}

/* Search */
#searchForm {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: center;
    margin: 20px auto;
    width: fit-content;
}

input[type=search] {
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
    background: white;
    border: 2px solid #f95682;
    outline: none;
    width: 250px;
    height: 50px;
    border-radius: 15px 0 0 15px;
    font-size: 1.2em;
    font-weight: 300;
    padding: 0px 10px;
    font-family: 'DM Serif Display', serif;
    letter-spacing: 1px;
}

::placeholder {
    font-size: .8em;
}

.search-btn {
    box-shadow: 4px 4px 8px rgba(0,0,0,0.2);
    height: 50px;
    width: 55px;
    border-radius: 0 15px 15px 0;
    background: lightcoral;
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.search-btn i {
    font-size: 1.5em;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 40px;
    background: #fff;
}

.product-card {
    background: #fff0f6;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 1.1em;
    color: #5a2ea6;
    font-family: 'DM Serif Display', serif;
}

.product-card p {
    font-size: 1em;
    color: #333;
    margin-top: 5px;
    font-family: 'DM Serif Display', serif;
}

.product-card:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    font-family: 'DM Serif Display', serif;
}

/* -----------------------------------
   Tablet (medium screens: 769px–1024px)
----------------------------------- */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
  nav ul li a {
    font-size: 20px;
  }
  header nav h1 {
    font-size: 36px;
  }
}

/* -----------------------------------
   Mobile (small screens: ≤768px)
----------------------------------- */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    padding: 15px;
    text-align: center;
    position: relative;
  }

  .logo img {
    width: 100px;
    margin: 0 auto;
  }

  .brand-name {
    font-size: 22px;
    margin-top: 8px;
  }

  nav ul {
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
  }

  nav ul li a {
    font-size: 18px;
  }

  header nav h1 {
    position: static;
    transform: none;
    font-size: 24px;
    margin: 15px 0;
  }

  #searchForm {
    flex-direction: column;
    width: 100%;
    padding: 0 10px;
  }

  input[type=search] {
    width: 100%;
    margin-bottom: 10px;
    font-size: 1em;
    border-radius: 15px;
  }

  .search-btn {
    width: 100%;
    border-radius: 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
  }

  .product-card {
    padding: 15px;
  }

  .product-card h3 {
    font-size: 1em;
  }

  .product-card p {
    font-size: 0.9em;
  }

  footer {
    font-size: 0.9em;
    padding: 1.5rem;
  }
}

/* Hamburger Styles */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #d63384;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: 1px;
}

/* Active state - animated X */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* Show hamburger on mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 10px;
    background-color: #f9d0eb;
    padding: 15px;
    position: absolute;
    top: 70px;
    right: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  nav ul.active {
    display: flex;
  }
}






