@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap');
/* Use it like this */

body {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

body {
  color: #111;
  background: #fff;
  margin: 0 auto;
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

main img {
  height: 300px;
  margin: 5px;
} 

.content {
    max-width: 900px;
}

h2, h3, label, input, select, p, small {
  letter-spacing: 0.2px;
}


/* Navbar Container */
.navbar-container {
  width: 100%;
  border-bottom: 0;
}

.navbar {
  max-width: 1200px;
  margin: 0px auto;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 14px;
}

/* Left and right sections positioned absolutely */
.nav-left,
.nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 30px;
}

.nav-left {
  left: 0;
}

.nav-right {
  right: 0;
}

.navbar a {
  text-decoration: none;
  color: #545454;
  transition: opacity 0.3s;
}

.navbar a:hover {
  opacity: 0.6;
}

/* Centered Logo */
.nav-logo span {
  font-family: 'Brittany Signature', cursive;
  font-size: 34px;
  letter-spacing: 1px;
  display: inline-block;
  text-align: center;
}


footer {
  height: 300px;
  background-color: #f6f6f6;
  display: flex;
  justify-content: center;
  margin-top: 100px;
}

.innerfooter {
  width: 1200px;
  display: flex;
  justify-content: space-between;
  padding: 20px;
  align-items: center;
}

.innerfooter .linkContainer {
  display: flex;
  flex-direction: column;
}

.linkContainer a {
  margin: 10px;
  text-decoration: none;
  color: #545454;
  font-size: 14px;
}

.linkContainer a:hover {
  text-decoration: underline;
}

.logoContainer span {
  font-family: 'Brittany Signature', cursive;
  font-size: 36px;
}

.copyright {
    width: 100%;
    background-color: #f6f6f6;
    margin-top: 20px;
    padding: 20px;
    display: flex;
    justify-content: center;
    font-size: 12px;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #ddd;
  box-shadow: -4px 0 10px rgba(0,0,0,0.1);
  transition: right 0.4s ease;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #ddd;
}

.cart-header h2 {
  font-size: 22px;
  font-weight: 600;
}

.close-cart {
  cursor: pointer;
  font-size: 20px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ddd;
  padding: 10px;
  margin-bottom: 10px;
  position: relative;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info p {
  margin: 0;
  font-size: 14px;
}

.cart-item-info .price {
  font-weight: bold;
  font-size: 15px;
  margin-top: 4px;
}

.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 5px;
}

.quantity button {
  background: none;
  border: 1px solid #ccc;
  width: 20px;
  height: 20px;
  line-height: 18px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
}

.remove-btn {
  position: absolute;
  top: 5px;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #555;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding: 20px;
}

.cart-total {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #333;
}

h1 {
  text-align: center;
}

.imagesContainer {
  display: flex;
  max-width: 1200px;
}

.imgContainer {
  height: 300px;
  width: 250px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
}

.imgContainer img {
  width: 100%;
  height: fit-content;
}

/* ========================= */
/* 📱 Mobile Navbar Styling  */
/* ========================= */

.mobile-nav {
  display: none;
  width: 100%;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.menu-icon, .cart-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-icon img, .cart-icon img {
  width: 22px;
  height: 22px;
}

.nav-logo-mobile span {
  font-family: 'Brittany Signature', cursive;
  font-size: 30px;
}

/* Mobile menu panel */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  padding: 80px 20px;
  gap: 20px;
  transition: left 0.3s ease;
  z-index: 999;
}

.mobile-menu.open {
  left: 0;
}

.mobile-menu a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: #666;
}

/* ========================= */
/* 🖥️ Responsive Visibility */
/* ========================= */

@media (max-width: 900px) {

  .products {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .product {
    width: 45%;
  }

  footer {
    height: auto;
    padding: 40px 20px;
    margin: 0;
  }

  .innerfooter {
    flex-direction: row;
    align-items:center;
  }

  .linkContainer {
    align-items: left;
  }

  .linkContainer a {
        font-size: 12px;
  }

  .seperater div {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 0px;
  }
}

/* --- Responsive Navbar Visibility --- */
@media (max-width: 768px) {
  /* Hide desktop navbar on mobile */
  .navbar {
    display: none;
  }

  /* Show mobile navbar */

  
.mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}


  .products {
    justify-content: space-between;
    gap: 0px;
  }

  .product {
    overflow: hidden;
    width: 49%;
    margin-top: 20px;
  }

  .product .photo {
    position: relative;
    height: 25%;
  }

header {
  position: fixed;
  top: 0;
  width: 100%;
  transition: background 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  background: #fff;
  transition: background 0.3s ease, transform 0.3s ease;
  border-bottom: #f6f6f6 solid 1px;
}
  
  .mobile-navbar {
    display: flex;
  }

  .seperater div {
    display: flex;
    flex-direction: row;
  }
  
  .hero {
    height: fit-content;
    z-index: -1;
  }

.nav-logo-mobile span {
  color: black;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.nav-hidden {
  transform: translateY(-100%);
}

.nav-scrolled {
  background: white !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


.nav-scrolled .nav-logo-mobile span {
  color: black;
}

.cart-sidebar {
  width: 80%;
  right: -80%;
}

.cart-items {
  font-size: 10px;
}

.cart-item-info p {
  margin: 0;
  font-size: 11px;
}

.cart-item-info .price {
  font-weight: bold;
  font-size: 12px;
  margin-top: 10px;
}

.imagesContainer {
  display: block;
  max-width: 100%;
}

.imgContainer{
  margin: 25px;
}

main {
  margin-top: 80px;
}

.imgContainer img {
  width: 100%;
  height: 100%;
}

}

@media (min-width: 769px) {
  /* Hide mobile navbar on PC */
  .mobile-navbar {
    display: none;
  }
}

.logoContainer img {
  width: 50px;
}