body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #FFFBFA;
  color: #363537;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #EF2D56;
  color: white;
  padding: 1rem 2rem;
}

/* Navigation Circles */
.nav-circles {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.nav-circles a {
  text-align: center;
  text-decoration: none;
  color: #363537;
  font-size: 0.9rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.nav-circles img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.nav-circles a:hover img {
  border-color: #363537;
  transform: scale(1.05);
}

.nav-circles a.active img {
  border-color: #363537;
}

.nav-circles span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
}




/* Highlight active nav circle */
.nav-circles a.active img {
  border-color: #ED7D3A;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  transform: scale(1.1);
}

.nav-circles a.active span {
  color: #ED7D3A;
  font-weight: bold;
}

/* Smooth transitions */
.nav-circles img,
.nav-circles span {
  transition: all 0.3s ease;
}


/* search Bar*/
#searchInput{
  width: 300px;
  height: 30px;
  border-radius: 15px; 
  padding-left: 30px;        

}
input::placeholder {
  color: #888;         
  font-style: italic;   
  opacity: 1;  
  padding-left: 10px;
}


nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s;
}

nav a:hover {
  color: #888;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.5rem;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ED7D3A;
  color: white;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 0.75rem;
}

main {
  padding: 1rem 2rem;
}

section {
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-card img {
 width: 100%;
  height: 200px;
  object-fit: cover;
  /*object-position: center; /* 👈 centers the image inside its box */
  display: block;
object-position: center top;}

.price {
  font-weight: bold;
  margin: 0.5rem 0;
}

.add-btn {
  background: #ED7D3A;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

.add-btn:hover {
  background: #EF2D56;
}


/* hover */
.img-container {
  position: relative;
  overflow: hidden;
  height: 200px; /* match your card design */
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
}

.img-container img.back {
  opacity: 0;
}

.product-card:hover .img-container img.front {
  opacity: 0;
}

.product-card:hover .img-container img.back {
  opacity: 1;
}
/*offer */
.offer{
  margin: -5px;
  text-align: center;
  font-weight: 500;
  color: white;
  background-color: black;
  padding-top: 4px;
  height: 20px;
}

/* 🛒 Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #EEEEFF;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 0.75rem;
}

.cart-item-info {
  flex: 1;
}

.cart-footer {
  padding: 1rem;
  border-top: 1px solid #ddd;
  font-weight: bold;
}

.remove-btn {
  background: none;
  border: none;
  color: crimson;
  cursor: pointer;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}



.content-section {
  display: none;
}

.content-section.active {
  display: block;
}



/* modify add remove buttons in cart */

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.qty-controls button {
  background: #ED7D3A;
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0;
}

.qty-controls button:hover {
  background: #EF2D56;
}

.item-total {
  display: block;
  margin-top: 0.5rem;
  font-weight: bold;
}
/* Modal Style */

/* ===== Product Modal ===== */
/* ===== Product Modal (clean) ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  max-width: 800px;
  width: 92%;
  text-align: center;
  position: relative;
  max-height: 92vh;
  overflow: auto;
}

/* Close button */
.close-modal {
  position: absolute;
  right: 14px;
  top: 10px;
  font-size: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 30;
}

/* gallery wrapper */
.modal-gallery {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

/* main image (single element) */
.modal-main {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 8px;
  transition: opacity 0.36s ease, transform 0.28s ease;
  opacity: 1;
  display: block;
}

/* hide while loading / during change */
.modal-main._fading {
  opacity: 0;
  transform: scale(0.995);
}

/* prev / next buttons */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev-btn { left: 8px; }
.next-btn { right: 8px; }

.prev-btn:hover, .next-btn:hover { background: rgba(0,0,0,0.75); }

/* thumbnails */
.thumbnail-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 18px;
  flex-wrap: wrap;
}

.thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  transition: opacity 0.18s, border-color 0.18s, transform 0.12s;
}

.thumbnail:hover { opacity: 1; transform: translateY(-2px); }
.thumbnail.active { opacity: 1; border-color: #333; }
 



/* checkout modal */

/* Checkout Modal Styling */
#checkoutModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#checkoutModal.active {
  display: flex;
}

.checkout-modal {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  position: relative;
}

.checkout-modal h2 {
  margin-bottom: 1rem;
  text-align: center;
}

.checkout-modal label {
  display: block;
  margin-top: 0.8rem;
  font-weight: bold;
}

.checkout-modal input,
.checkout-modal textarea,
.checkout-modal select {
  width: 100%;
  padding: 0.6rem;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.confirm-btn {
  margin-top: 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  width: 100%;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}

.confirm-btn:hover {
  background: #333;
}

.close-checkout {
  position: absolute;
  right: 1rem;
  top: 1rem;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}


footer{
 background: #EF2D56;
  color: white;
  text-align: center;
  padding-top: 25px;
  padding-bottom: 25px;

   
}

.footer-content{
  text-align: center;
}

.social-icons{
  font-size: 30px;
}

.footer-nav{
justify-content: center;
}