@font-face {
  font-family: 'font';
  src: url(font/TTFirsNeueTrialRegular.ttf);
}

/* global css */
html {
  scroll-behavior: smooth;
}

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;
}

.icon-btn.more-btn {
  display: none;
}

.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;
  max-height: 250px;
  overflow-y: auto;
}

.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;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff5b5b;
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 3px 6px;
  min-width: 18px;
  text-align: center;
}

.notification-dropdown ul::-webkit-scrollbar {
  width: 8px;
}

.notification-dropdown ul::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.notification-dropdown ul::-webkit-scrollbar-thumb {
  background: #ffffff88;
  border-radius: 10px;
  transition: background 0.2s ease-in-out;
}

.notification-dropdown ul::-webkit-scrollbar-thumb:hover {
  background: #fff;
}


.profile-dropdown {
  position: absolute;
  right: 10px;
  top: 100px;
  background: #2cb5b3;
  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 {
  color: white;
  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;
  font-family: inherit;
}

/* container */
.more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  max-width: 320px;
  background: #2cb5b3;
  border-radius: 12px;
  padding: 8px;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: none;
  z-index: 1200;
  transform-origin: top right;
  transform: translateY(-6px) scale(0.98);
  opacity: 0;
  transition: transform .16s ease, opacity .16s ease;
}

.more-dropdown.show {
  display: block;
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* menu list */
.more-dropdown ul {
  list-style: none;
  margin: 0;
  padding: 6px 4px;
}

.navbar .left,
.navbar .right {
  display: flex;
  align-items: center;
}

.left a:hover,
.right a:hover {
  background: white;
}

#user-email {
  max-width: 220px;
  word-wrap: break-word;
  white-space: normal;
  font-size: 14px;
  margin: 6px 0;
  padding: 4px 0;
  border-bottom: 2px solid #eee;
  cursor: pointer;
}

#login-link {
  background: #2cb5b3;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: bold;
}

#login-link:hover {
  background: #2cb5b3;
  color: hotpink;
}

.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 {
  display: none;
  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;
}

.logo {
  height: 90px;
  margin-right: 35px;
}

/* 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 */
.catalog {
  text-align: center;
}

.catalog-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: white;
  background: hotpink;
  padding: 10px 25px;
  border-radius: 25px;
  display: inline-block;
  margin: 0 auto;
}

.catalog h2 {
  margin-top: 50px;
  cursor: pointer;
}

.categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  padding: 35px;
  margin: 40px auto;
  margin-top: 0;
}

.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;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  margin: 40px 0;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* 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;
}

.bs-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 button {
  background: hotpink;
  color: white;
  margin: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  border: none;
}

.bs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  background: #ffa7b6;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.bs-btn:hover {
  color: deeppink;
}

.bs-btn.prev {
  left: 40px;
}

.bs-btn.next {
  right: 40px;
}

.bs-dots {
  margin-top: 350px;
}

.bs-dots .dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background: black;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  opacity: 0.5;
}

.bs-dots .dot.active {
  opacity: 1;
}

.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;
  padding: 15px;
  border-radius: 20px;
  text-align: center;
  width: 220px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.promo-card:hover {
  transition: transform 0.2s ease;
  transform: translateY(-5px);
}

.category:hover {
  transition: transform 0.2s ease;
  transform: translateY(-5px);
}

#new-arrivals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.promo-card img {
  padding: 50px;
  background: #fff;
  object-fit: contain;
  height: 160px;
  border-radius: 15px;
  margin-bottom: 10px;
}

.promo-card h3 {
  font-size: 1rem;
  color: #c2185b;
  margin: 5px 0;
}

.promo-card .price {
  font-size: 0.9rem;
  color: #6d0037;
  margin-bottom: 10px;
}

.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;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease-in-out;
}

.modal-body {
  display: flex;
  gap: 20px;
}

.modal-image img {
  max-width: 250px;
  max-height: 250px;
  object-fit: contain;
  border-radius: 12px;
}

.modal-details {
  flex: 1;
  text-align: left;
}

.modal-details h3 {
  margin-top: 0;
  color: #e91e63;
}

.modal-details h4 {
  margin-top: 15px;
  color: #444;
}

.modal-price {
  font-weight: bold;
  font-size: 1.2rem;
  color: #e91e63;
  margin-top: 10px;
}

#addToCartBtn {
  background: #e91e63;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 10px;
  font-weight: bold;
}

#addToCartBtn:hover {
  background: #d81b60;
}

.close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  font-weight: bold;
}


.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

#quickViewModal img {
  max-width: 250px;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}


/* 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;
}

.message {
  text-align: center;
}

.address {
  text-align: center;
}

.more-dropdown ul,
.more-dropdown li,
.more-dropdown a {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
}

.more-dropdown a {
  display: block;
  padding: 4px 10px !important;
  text-decoration: none;
  color: white;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.12s ease, color 0.12s ease;
}

.more-dropdown li {
  border-bottom: 1px solid #eee;
}

.more-dropdown li:last-child {
  border-bottom: none;
}

.more-dropdown a:hover {
  background: #f8f8f8;
  color: #c2185b;
}

.product-slideshow {
  position: relative;
  overflow: hidden;
}

.product-cards {
  display: flex;
  transition: transform 0.6s ease;
}

.bs-card {
  flex: 0 0 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bs-card.active {
  opacity: 1;
  transform: scale(1);
}

.add-to-cart {
  cursor: pointer;
}

.add-to-cart:hover {
  background: deeppink;
}

.message {
  font-size: 1rem;
}

/* RESPONSIVE STUFFS */
@media (max-width: 1024px) {
  .navbar {
    flex-wrap: wrap;
  }

  .left a,
  .right a,
  .right li,
  .right h4{
    font-size: 1.5rem;
    padding: 6px 12px;
  }

  .right .icon-btn {
    margin-right: 5px;
    width: 60px;
    height: 45px;
    font-size: 1.5rem;
    padding: 4px;
  }

  .categories,
  #new-arrivals {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 12px;
    width: 95%;
    max-width: none;
  }

  .category img{
    width: 100%;
    height: 500px;  
    object-fit: cover;
    border-radius: 12px;
    display: block;
  }

 .featured-section {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  .carousel.featured-carousel {
    margin: 0 auto;
    width: 95%;
    max-width: none;
    min-height: 350px;
    border-radius: 16px;
  }

  .product-slideshow {
    margin: 0 auto;
    width: 95%;
    height: 10px;
    max-width: none;
    max-height: fit-content;
  }

  .desc{
    font-size: 2rem;
  }

  .product-slideshow p,
  .product-slideshow h3 {
    margin: 2px auto;
    font-size: 1.5rem;
  }

  .bs-btn.prev {
    left: 80px;
  }

  .bs-btn.next {
    right: 80px;
  }

  .add-to-cart {
    padding: 8px 12px;
    font-size: 2rem;
  }

  .promo-card {
    width: 100%;
    max-width: 400px;
  }

  .promo-card img {
    height: 300px;
    width: 300px;
    padding: 30px;
  }

  .category p,
  .promo-card h3,
  .promo-card .price,
  .promo-card p {
    font-size: 2rem;
    margin-top: 10px;
    line-height: 1.2;
  }

  .quick-view {
    padding: 10px 20px;
    font-size: 2rem;
  }

  .modal-content.promo-card {
    width: 90%;
    max-width: none;
  }

  .modal-content.promo-card p,
  .modal-content.promo-card h3,
  .modal-content.promo-card h4{
    font-size: 2rem;
  }

  #addToCartBtn {
    padding: 12px 20px;
    font-size: 2rem;
  }
  
  .footer-top,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  footer h3, 
  footer p,
  footer a,
  footer input,
  footer small {
    font-size: 2rem;
  }

  footer button {
    font-size: 2rem;
    padding: 12px 20px;
  }
}