* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  /* background-color: #fdfdfd; */
  background-color: #0E0E0E; /* Deep background */
  /* color: #222; */
  color: #F6F1EB; /* Light text */
  padding: 40px 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  margin-left: 50px;
  margin-right: 50px;
}

#perfumeHeading {
  font-size: 36px;
  margin-bottom: 30px;
  /* color: #2c2c2c; */
  color: #C9A86A; /* Luxe Gold */
}

#createButton {
  
  display: none;
  margin-bottom: 40px;
  text-decoration: none;
}

#createButton h1 {
  font-family: 'Montserrat', sans-serif;
  
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F6F1EB;
  padding: 14px 30px;
  border-radius: 10px;
  font-size: 20px;
  transition: all 0.3s ease;
}

#createButton h1:hover {
  /* background-color: #000;
  color: #fff;
  border: 2px solid #8b795e; */
  background: rgba(255, 255, 255, 0.15);
  color: #C9A86A;
}

.perfume {
  position: relative;
  
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 2px;
  padding: 6px;
  padding-bottom: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.perfumeImage {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
}



.perfumeImage:hover{
  transform: scale(1.05);
}

.name {
  font-size: 18px;
  font-weight: normal;
  /* color: #2a2a2a; */
  color: #F6F1EB;
  margin: 10px 0 5px;
  text-align: center;
}

.price {
  font-size: 16px;
  /* color: #5a5a5a; */
  color: #C9A86A;
  
  font-weight: normal;
  text-align: center;
  margin-bottom: 10px;
}

/* Rating */
.rating {
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.verified {
  width: 14px;
  height: 14px;
}

/* Strike-through Original Price */
.strike {
  text-decoration: line-through;
  /* color: #999; */
  color: #8B7C62;

  font-weight: normal;
  margin-left: 8px;
}

.btn {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-top: auto;
}

.editButton,
.deleteButton {
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  color: white;
}

.editButton {
  background-color: #1a4d2e;
}

.editButton:hover {
  background-color: #143c24;
}

.deleteButton {
  background-color: #7c0a02;
}

.deleteButton:hover {
  background-color: #5b0000;
}

#searchInput {
  padding: 12px 20px;
  border: none;
  border-radius: 0;
  /* border-bottom: 2px solid #000; */
  margin-bottom: 30px;
  width: 300px;
  max-width: 100%;
  font-size: 16px;
  
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  
  border-bottom: 2px solid #C9A86A;
  color: #F6F1EB;
}

#searchInput:focus {
  border-bottom: 2px solid #C9A86A;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #555;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.navbar {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hamburger {
  display: none;
}

.side-panel {
  display: none;
}

.navButton {
  
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration: none;
  color: #F6F1EB;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 18px;
  transition: all 0.3s ease;
  
}

.navButton:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #C9A86A;
}


/* @media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  #searchInput {
    width: 100%;
  }
} */

.overlay-text {
  width: 64.6%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  pointer-events: none;
  /* background: rgba(0, 0, 0, 0.663);
  padding: 20px 40px;
  border-radius: 12px; */

    background: rgba(0, 0, 0, 0.7);
    color: #F6F1EB;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px 40px;
}

.overlay-text h1 {
  font-size: 2.7rem;
  color: #C9A86A;
  margin-bottom: 10px;
}

.overlay-text p {
  font-size: 1.5rem;
  color: #ccc;
}

.overlay-text h1,
.overlay-text p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.swiper {
  width: 80%;
  padding-top: 50px;
  padding-bottom: 50px;
  
}

.swiper-slide {
  background-position: center;
  background-size: cover;
  width: 600px;
  height: 600px;
  overflow: hidden;
}

.swiper-slide img {
  display: block;
  width: 100%;
}

#wrapper {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
  padding: 0 20px;
}

/* Perfume Card */


/* Add to Cart */
.addToCartButton {
  font-family: 'Montserrat', sans-serif;
  width: 105%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #F6F1EB;
  padding: 10px 18px;
  border-radius: 2px;
  margin-top: 12px;
  font-size: 12px;
  transition: all 0.3s ease;
  
}

.addToCartButton:hover {
  
  background: rgba(255, 255, 255, 0.15);
  color: #C9A86A;
}

/* Discount Badge */
.discount {
  position: absolute;
  bottom: 10px;
  left: 10px;
  /* background-color: #1a4d2e;
  color: #fff;
  font-size: 12px;
  font-weight: bold; */
  padding: 4px 8px;
  border-radius: 3px;
  z-index: 1;

  background-color: #C9A86A;
    color: #0E0E0E;
    font-weight: bold;
    font-size: 12px;
}


.hidden {
  display: none !important;
}

#about {
  font-family: 'Montserrat', sans-serif;
  margin-top: 80px;
  text-align: center;
  background-color: #0e0e0e; /* Rich dark background */
  padding: 60px 20px;
}

#about h2 {
  font-size: 32px;
  color: #f6f1eb; /* Ivory */
  margin-bottom: 16px;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.7;
  color: #d0c7b7; /* Soft warm text */
}

.info-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background-color: #1a1a1a; /* Sleek black card */
  padding: 24px;
  border-radius: 14px;
  width: 240px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2); /* gold border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.15);
}

.card h3 {
  color: #d4af37; /* Gold */
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  font-size: 14px;
  color: #e0dcd5;
}

#contact {
  background-color: #121212; /* darker contrast section */
  padding: 60px 20px;
  color: #f6f1eb;
  text-align: center;
}

#contact h2 {
  font-size: 28px;
  color: #f6f1eb;
}

.social-icons {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons a i {
  color: #f6f1eb;
  font-size: 26px;
  transition: color 0.3s ease;
}

.social-icons a:hover i {
  color: #d4af37; /* gold on hover */
}

.contact-text {
  font-size: 15px;
  color: #d0c7b7;
  margin-top: 20px;
}

.contact-text a {
  color: #d4af37;
  text-decoration: none;
}

/* Responsive adjustments for tablets and phones */
@media (max-width: 768px) {
  header {
    padding: 1rem;
    text-align: center;
  }

  header h1 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .swiper-slide {
    width: 90% !important;
    height: auto;
    margin: 0 auto;
    padding: 1rem;
  }

  .overlay-text {
    position: static;
    width: 100%;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
  }

  .overlay-text h2 {
    font-size: 1.5rem;
  }

  .overlay-text p {
    font-size: 1rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
  }

  .footer .left,
  .footer .right {
    width: 100%;
    margin: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  

  /* Base Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }

  body {
    background-color: #0e0e0e;
    color: #fff;
  }

  /* Hamburger Icon */
  .hamburger {
    width: 30px;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    background-color: #0E0E0E;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 20px;
  }

  .hamburger span {
    display: block;
    height: 3px;
   
    background: #d4af37; /* gold */
    
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Side Panel */
  .side-panel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 220px;
    height: 100%;
    /* background-color: #1a1a1a; */
    background: rgba(26, 26, 26, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding-left: 30px;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 1000;
  }

  .side-panel a {
    color: #d4af37;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    transition: color 0.3s ease;
  }

  .side-panel a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
  }

  .side-panel a:hover::after {
    width: 100%;
  }

  /* Active class for menu open */
  .side-panel.open {
    left: 0;
  }

  .navbar {
    display: none;
  }

  .container{
    padding: 0 1rem;
  }

  #perfumeHeading{
    font-size: 1.5rem;
    margin-bottom: auto;
  }
/* 
  .navbar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 0.3rem;
  } */



  /* .navbar {
    width: 100%;
    flex-direction: column;
    gap: 0.25rem;
    
  }

  .navbar a {
    font-size: 0.55rem;
    padding: 0.4rem 0.5rem;
  } */

  .swiper-slide {
    width: 70% !important;
    height: auto !important;
    padding: 0.75rem;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .overlay-text {
    top: 15rem;
    position: relative;
    width: 62%;
    padding: 1rem 0.5rem;
    text-align: center;
  }

  .overlay-text h1 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .overlay-text p {
    font-size: 0.5rem;
    line-height: 1.4;
  }


  #searchInput{
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid #C9A86A;
    color: #F6F1EB;

  }

  
  .info-cards > .card {

    display: flex;
    align-items: center;
    text-align: left;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .about-text {
    max-width: 100%;
    margin: 0 auto;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #d0c7b7; /* Soft warm text */
  }

  .about-text h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  #about h2 {
    font-size: 1.5rem;
  }

  #contact{
    /* height: 20rem; */
    padding: 40px 20px;
    margin-top: 20px;
  }

  .contact-text {
    font-size: 0.8rem;
    margin-top: 1rem;
  } 
  .contact-text a {
    font-size: 0.8rem;
  }
  .social-icons a i {
    font-size: 1.5rem;
  }
}
