@font-face {
  font-family: 'font';
  src: url(font/TTFirsNeueTrialRegular.ttf);
}

/* global css */
body {
  font-family: 'font';
  margin: 0;
}

.hidden {
  display: none;
}

select {
  width: 100%;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

select:hover {
  border-color: #e91e63;
}

select:focus {
  border-color: #e91e63;
  box-shadow: 0 0 5px rgba(233, 30, 99, 0.3);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 3px solid #000;
}

/* hide more btn */
.icon-btn.more-btn {
  display: none;
}

/* only shows to admin */
.admin .icon-btn.more-btn {
  display: block;
}

.notification-wrapper {
  position: relative;
  display: inline-block;
}

.notification-dropdown {
  position: absolute;
  top: 80px;
  right: 0;
  background: #2cb5b3;
  color: white;
  width: 250px;
  padding: 15px;
  border-radius: 10px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.notification-dropdown.show {
  display: block;
}

.notification-dropdown h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 5px;
}

.notification-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.notification-dropdown li {
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.notification-dropdown li:last-child {
  border-bottom: none;
}
.profile-dropdown {
  position: absolute;
  right: 10px;
  top: 100px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: none;
  width: 180px;
  z-index: 2000;
}

.profile-dropdown.show {
  display: block;
}

.profile-dropdown p {
  margin: 0 0 10px 0;
  font-weight: bold;
}

.profile-dropdown button {
  width: 100%;
  padding: 8px;
  border: none;
  background: #f44336;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.profile-dropdown button:hover {
  background: #d32f2f;
}

.more-wrapper {
  position: relative;
  display: inline-block;
}

.more-dropdown {
  position: absolute;
  top: 60px;
  right: 0;
  background: #2cb5b3;
  color: white;
  width: 200px;
  border-radius: 10px;
  display: none;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.more-dropdown ul {
  list-style: none;
  padding: 10px;
  margin: 0;
}

.more-dropdown li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.more-dropdown li:last-child {
  border-bottom: none;
}

.more-dropdown li a {
  color: white;
  text-decoration: none;
  display: block;
}

.more-dropdown.show {
  display: block;
}

.navbar .left,
.navbar .right {
  display: flex;
  align-items: center;
}

.left a:hover,
.right a:hover {
  background: white;
}

.navbar .left a {
  background: hotpink;
  color: white;
}

.navbar .left a,
.search-container,
.navbar .right a {
  margin: 5px;
  margin-top: 50px;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
}

.icon-btn {
  background: #5ce1e6;
  border-radius: 20px;
  width: 50px;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  margin-top: 40px;
  margin-left: 10px;
  padding: 5px;
  color: inherit;
}

.icon-btn:focus {
  outline: none;
}


.search-container {
  visibility: hidden;
  align-items: center;
  background-color: #e0f7f9;
  padding: 5px 10px;
  border-radius: 20px;
}

.search-input {
  border: none;
  outline: none;
  background: transparent;
  padding: 5px;
  font-size: 14px;
  width: 150px;
}

.search-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.logo {
  height: 90px;
  margin-left: 20px;
}

/* HOME CAROUSEL */
.carousel {
  position: relative;
  overflow: hidden;
  width: 90%;
  margin: 20px auto;
  background: #b8f2f2;
  border-radius: 20px;
  border: 20px double #b8f2f2;
}

.carousel-track {
  display: flex;
  transition: 0.5s ease-in-out;
}

.carousel-track img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  background: #2f7d7d;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  padding: 10px;
}

.dot {
  height: 10px;
  width: 10px;
  background-color: black;
  border-radius: 50%;
  display: inline-block;
  margin: 5px;
  opacity: 0.5;
  cursor: pointer;
}

.dot.active {
  opacity: 1;
}

.main-carousel .carousel-btn {
  color: white;
  background: #8deaea;
}

.main-carousel .carousel-btn:hover {
  color: darkblue;
}

/* CATEGORIES */
.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  padding: 35px;
  margin: 40px auto;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.category img {
  width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 15px;
  border: 5px solid hotpink;
}

.category p {
  background-color: hotpink;
  color: white;
  font-weight: bold;
  text-align: center;
  margin: 8px;
  padding: 5px;
  width: 100%;
  border-radius: 8px;
}

/* FEATURED SECTION */
.featured-section {
  display: flex;
  gap: 20px;
  margin: 20px;
}

/* Left Carousel */
.featured-carousel {
  flex: 1;
  min-width: 350px;
  max-width: 600px;
  background: hotpink;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  color: white;
  border: none;
}

.carousel-track-container {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: 0.5s ease-in-out;
  list-style: none;
  padding: 0;
  margin: 0;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img {
  background: #fff;
  object-fit: contain;
  width: 100%;
  border-radius: 15px;
}

.carousel-btn {
  border: none;
  font-size: 20px;
  padding: 5px 10px;
  margin: 10px;
  cursor: pointer;
  border-radius: 50%;
}


.carousel-dots {
  margin-top: 10px;
}

.carousel-dots .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: grey;
  cursor: pointer;
  transition: 0.3s ease;
}

.carousel-dots .dot.active {
  background-color: black;
}

.featured-carousel .carousel-btn {
  color: white;
  background: #ffa7b6;
}

.featured-carousel .carousel-btn.prev {
  left: 20px;
}

.featured-carousel .carousel-btn.next {
  right: 20px;
}

.featured-carousel .carousel-btn:hover {
  color: deeppink;
}

/* Right Product Slideshow */
.product-slideshow {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  margin: 0 auto;
  background: hotpink;
  color: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
}

.product-cards {
  position: relative;
  height: 300px;
}

.product-card {
  position: absolute;
  top: 0;
  left: 50%;
  color: black;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  transition: all 0.5s ease;
  background: white;
  border-radius: 15px;
  padding: 10px;
  width: 90%;
}

.product-card.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.product-card img {
  background: #fff;
  object-fit: contain;
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

.product-card a {
  background: hotpink;
  color: white;
  margin: 5px;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 20px;
  font-weight: bold;
}

.product-dots {
  margin-top: 300px;
}

.product-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background: black;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  opacity: 0.5;
}

.product-dots .dot.active {
  opacity: 1;
}

/* Section title */
.promotion {
  text-align: center;
  margin: 40px 0;
  padding: 0 15px;
}

.promotion .section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  background: hotpink;
  padding: 10px 25px;
  border-radius: 25px;
  display: inline-block;
  margin: 0 auto;
}

/* Grid layout */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  justify-items: center;
  padding: 50px;
}

/* Product card */
.promo-card {
  background: #ffc0cb; /* light pink */
  padding: 15px;
  border-radius: 20px;
  text-align: center;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Hover effect */
.promo-card:hover {
  transition: transform 0.2s ease;
  transform: translateY(-5px);
}

.category:hover {
  transition: transform 0.2s ease;
  transform: translateY(-5px);
}

/* Image */
.promo-card img {
  background: #fff;
  object-fit: contain;
  height: 160px;
  border-radius: 15px;
  margin-bottom: 10px;
}

/* Name & Price */
.promo-card h3 {
  font-size: 1rem;
  color: #c2185b; /* darker pink */
  margin: 5px 0;
}

.promo-card .price {
  font-size: 0.9rem;
  color: #6d0037;
  margin-bottom: 10px;
}

/* Quick view button */
.quick-view {
  background: hotpink;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.85rem;
  cursor: pointer;
}

.quick-view:hover {
  background: deeppink;
}

/* FOOTER STYLES */
footer {
  font-family: 'font', sans-serif;
  color: #003333;
  margin-top: 30px;
}

/* Top row */
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  flex-wrap: wrap;
  background: #b2ebf2;
  border-radius: 12px;
  margin-bottom: 20px;
}

.footer-card {
  flex: 1;
  min-width: 250px;
  text-align: center;
  padding: 20px;
  background: #e0f7fa;
  border-radius: 12px;
}

.footer-card h3 {
  margin-bottom: 10px;
}

/* Bottom row */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px;
  flex-wrap: wrap;
  background: #4dd0e1;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  padding: 20px;
}

/* Form styling */
.footer-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-section input,
.footer-section button {
  padding: 10px;
  border: none;
  border-radius: 6px;
}

.footer-section button {
  background: #00796b;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.footer-section button:hover {
  background: #004d40;
}

.address {
  text-align: center;
}

/* RESPONSIVE STUFFS */

@media (max-width: 1024px) {
  
  .promo-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 180px;
    padding-right: 180px;
  }

    .categories {
      grid-template-columns: repeat(2, 1fr);
      width: 700px;
      gap: 100px;
      margin: 0px auto;
    }

  .promotion .section-title {
    font-size: 1.5rem;
    padding: 8px 20px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .footer-card, .footer-section {
    max-width: 600px;
    text-align: center;
  }
}

