/* fonts */
@font-face {
  font-family: 'Baby Doll';
  src: url('./fonts/Baby Doll.ttf') format('truetype');
}

@font-face {
  font-family: 'CreatoDisplay-Regular';
  src: url('./fonts/CreatoDisplay-Regular.otf') format('truetype');
}


/* general reset */
body {
  margin: 0;
  padding-top: 60px;
  font-family: 'CreatoDisplay-Regular', sans-serif;
  background-image: url('pink_bg.png');
  background-size: 30px 30px;
  background-color: #fdfbfc;
  color: #2b2b2b;
}

.second-body {
  background-color: #fdfbfc;
  color: #2b2b2b;
  margin-top: 0px;
  margin-bottom: 20px;
  margin-right: 5px;
  margin-left: 5px;
  
}


/* title */
h1, h2, h3 {
  font-family: 'Baby Doll', cursive;
  color: #2b2b2b;
  font-size: 2.5rem;
  text-align: center;
  margin-top: 2rem;
}

/* product card */
.product {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1rem;
  margin: 1rem;
  text-align: center;
  max-width: 240px;
}

.product img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.price {
  color: #7a807b; /* vert doux, pas trop flashy */
  font-family: 'CreatoDisplay-Regular', sans-serif;
  font-weight: 300;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}


/* button */
button,
.button {
  background-color: rgb(239, 117, 243);
  color: #ffffff;
  font-family: 'Baby Doll', cursive;
  font-size: 1rem;
  padding: 0.4rem 1.2rem;
  border: 1px solid #ffc6fa;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button:hover,
.button:hover {
  background-color: #fff9ff;
  color:#2b2b2b;
}


/* links */
a {
  color: #3c9cbc !important;
  text-decoration: none;
  font-family: 'CreatoDisplay-Regular', sans-serif;
  font-weight: 500;
  transition: color 0.2s ease, border-bottom 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #ff8ad3 !important;
  /* border-bottom: 1px solid #ff8ad3; */ /* effet souligné au hover */
}


/* drop downs */
select {
  border-radius: 0;
}

select {
  background-color: transparent;
  border: none;
  outline: none;
  font-family: 'CreatoDisplay-Regular', sans-serif;
  font-size: 0.95rem;
  padding: 0.4rem 0.8rem;
  /* border-bottom: 2px solid transparent; */
  transition: border-color 0.2s ease;
  text-align: center;
}

select:hover {
  border-bottom: 2px solid #f479c0;
}

select:focus {
  outline: none;
  border-color: #f479c0;
  box-shadow: none;
}


/* text fields */
input[type="email"],
input[type="text"],
input[type="password"],
textarea {
  padding: 0.6rem 1rem;
  border: 1px solid #d8cfe6;
  border-radius: 12px;
  background-color: #fff9ff;
  font-family: 'CreatoDisplay-Regular', sans-serif;
  font-size: 1rem;
  color: #333;

  transition: border 0.3s ease, box-shadow 0.3s ease;
}

input[type="email"]:focus,
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus {
  outline: none;
  border-color: #a8c4ff;
  box-shadow: 0 0 0 3px rgba(168, 196, 255, 0.3);
}

::placeholder {
  color: #aaa;
  font-style: italic;
}

/* quand il y a un lien/button on met image de papatte */
/* used: https://www.cursors-4u.com/cursor/nat264 */
a, button {
  cursor: url('https://cdn.cursors-4u.net/previews/cat-33edce41-32.webp') 32 32, pointer !important;
}

.navbar, .top-spacer {
  background-image: url('pink_bg.png');
  background-size: 30px 30px;
  background-color: #fdfbfc;
}

/*  menu: normal  */
.nav-menu {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  position: relative;
}

.nav-menu {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  position: relative;
}

/* desktop: true center */
@media (min-width: 769px) {
  .nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
  }
}

/* menu: mobile smaller size of elements */
@media (max-width: 768px) {
  .nav-center {
    position: static;
    transform: none;
    justify-content: center;
    flex: 1;
    flex-wrap: wrap; /* prevents overflow */
  }

  .nav-right {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    margin-top: 6px;
  }

  .nav-right input {
    width: 70vw;   /* takes 70% of screen width */
    max-width: 220px;
    height: 28px;
    font-size: 12px;
    padding: 2px 6px;
  }


  .nav-menu {
    flex-direction: column;
    align-items: center;
  }
}


/* they won't be able to copy-paste anything */
* {
  user-select: none;
  -webkit-user-select: none;
}



#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

.toast {
  background: #333;
  color: white;
  padding: 12px 18px;
  margin-bottom: 10px;
  border-radius: 8px;
  opacity: 0.95;
  animation: fadein 0.3s, fadeout 0.3s 3s;
}

/* error style */
.toast.error {
  background: #e74c3c;
}

/* animation */
@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 0.95; transform: translateY(0); }
}

@keyframes fadeout {
  from { opacity: 0.95; }
  to { opacity: 0; }
}


.out-of-stock {
  color: red;
  font-weight: bold;
}

/*+ pagination */
.pagination-btn {
  /* your styles here */
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.pagination-btn.active {
  background-color: rgb(255, 216, 239);
  color: white;
}