*{
  margin: 0;
  padding: 0;
}
body {
  font-family: "Poppins", sans-serif;
  font-weight: 200;
  font-style: normal;
  min-height: 100vh;
}
nav{
  background-color: #8F308B;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
  padding-top: 15px;
}
nav ul{
  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  color: white;
}
nav a:hover{
  color: plum;
}

nav li:first-child{
  margin-right: auto;
}
.sidenav{
  position: fixed;
  top: 0;
  right: 0;
  width: 250px;
  height: 100vh;
  z-index: 999;
  background-color: rgb(143, 48, 139, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: -10px 0 10px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 20px;
}
.sidenav li{
  width: 100%;
  font-weight: 700;
  font-style: bold;
} 
.sidenav a{
  width: 100%;
}
.home-cover {
    width: 100%;
    height: 400px;
    border-radius: 5px;
    object-fit: cover;

}
.container {
    width: 100%;
    position: relative;
}
.container h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
}
.container h1:hover {
    color: plum;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.product-card {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.product-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.product-card img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
/* HERO */
.hero {
    background: #8F308B;
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

/* PRODUCT GRID */
.popular-products {
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.popular-products h2 {
    text-align: center;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

/* SEO SECTIONS */
.seo-section {
    background: white;
    padding: 40px 20px;
    margin-top: 20px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.seo-section h2 {
    margin-bottom: 15px;
    color: #333;
}

.seo-section ul {
    padding-left: 20px;
}

.seo-section li {
    margin-bottom: 10px;
}
/*
.add-to-cart {
  margin-top: 10px;
  padding: 8px 12px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.add-to-cart:hover {
  background: #16a34a;
}

.cart-box {
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  margin-top: 10px;
}

/* Cart Icon Styles 
.cart-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
*/

/*.cart-icon {
  background: #0f172a;
  color: white;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
*/
/*
#cartCount {
  background: #22c55e;
  color: #022c22;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: bold;
}
*/
.menu-button{
  display: none;
}

/*.checkout-btn {
  margin-top: 10px;
  padding: 8px 12px;
  margin-bottom: 10px;
  margin-left: 10px;
  background: #22c55e;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.checkout-btn:hover {
  background: #16a34a;
}
  */

@media(max-width: 800px){
  .menu-button{
    display: block;
  }
  .hideOnMobile{
    display: none;
  }
  .container h1 {
    font-size: 2rem;
  }
}
@media(max-width: 400px){
  .sidenav{
    width: 100%;
  }
 
}
@media (min-width: 900px) {
  .grid {
    max-width: 1100px;     /* keeps grid from stretching too wide */
    margin: 0 auto;        /* centers the grid */
    justify-content: center;
  }

  .product-card {
    max-width: 260px;      /* prevents giant cards */
  }

  .product-card img {
    height: 220px;         /* keeps image size consistent */
    object-fit: cover;
  }
}
/* Product controls for product search and filtering */
 .products-controls {
  margin-bottom: 25px;   /* space under search + sort */
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;

}
@media (min-width: 900px) {
  .products-controls {
    margin-bottom: 35px;   /* more breathing room on desktop */
  }
}
/*side cart for add to cart functionality

.side-cart {
  position: fixed;
  top: 0;
  right: -350px; 
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 15px; 
}

.side-cart.open {
  right: 0;
}

.side-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

*/
/*
.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.checkout-btn-side {
  margin-top: auto;
  background: green;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 20px;
}
.checkout-btn-side:hover {
    background: #16a34a;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

#sideCartItems {
  overflow-y: auto;     scrolls if items overflow */


/* About page styles */
.aboutTitle {
  text-align: center;
  margin: 40px 0;
}
  .break {
        width: 100px;
        height: .45em;
        bottom: 0;
        margin-top: 3px;
        background-image: initial;
        background-position-x: initial;
        background-position-y: initial;
        background-size: initial;
        background-repeat: initial;
        background-attachment: initial;
        background-origin: initial;
        background-clip: initial;
        background-color: rgb(219, 12, 212);
        margin: 3px auto 0 auto; /* centers it horizontally */

       }

       /* Main About Section */
.about-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

/* Centered Text Block */
.about-text {
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
}

/* Two Side-by-Side Images */
.about-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.about-images img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-images img:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}
