/* =========================
   GLOBAL TEXT STYLES
========================= */

@font-face {
  font-family: 'SFR';
  src: url("../font/SFPRODISPLAYREGULAR.OTF") format('opentype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'SFR';
  src: url("../font/SFPRODISPLAYMEDIUM.OTF") format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SFR';
  src: url("../font/SFPRODISPLAYBOLD.OTF") format('opentype');
  font-weight: 600;
  font-style: normal;
}



h1, h2, h3, h4, h5, h6, p {
  color: rgb(61, 61, 61);
  margin: 0;
  padding: 0;
  font-family: SFR;
}

/* =========================
 FONT VARIANTS
========================= */
.lato { font-family: "Lato", sans-serif; }

.lato-thin { font-weight: 100; font-style: normal; }
.lato-light { font-weight: 300; font-style: normal; }
.lato-regular { font-weight: 400; font-style: normal; }
.lato-bold { font-weight: 700; font-style: normal; }
.lato-black { font-weight: 900; font-style: normal; }

.lato-thin-italic { font-weight: 100; font-style: italic; }
.lato-light-italic { font-weight: 300; font-style: italic; }
.lato-regular-italic { font-weight: 400; font-style: italic; }
.lato-bold-italic { font-weight: 700; font-style: italic; }
.lato-black-italic { font-weight: 900; font-style: italic; }

/* =========================
 CARD STYLES
========================= */

/* ---------- PRODUCT GRID ---------- */
.p-cards {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 40px 0 20px 0; /* spacing from hero */
  gap: 25px;
}

#products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  width: 70%;
}


.card{
  border-radius:18px;
  padding:10px;
  transition:all .25s ease;
  box-shadow:0 6px 20px rgba(0,0,0,0.05);
  display:flex;
  flex-direction: column;
  min-height: 220px; /* consistent card height */
  width: 187px;
}
.cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* keep elements near top */
  align-items: center;
  gap: 12px; /* slightly increased gap for premium spacing */
  width: 180px;
  height: 350px;
  margin-top: 20px;
  border-radius: 16px;
  background:#fbf2d68e;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:0 16px 40px rgba(0,0,0,0.12);
}

.img-box{
  background:#f5f5f7;
  border-radius:14px;
  padding:15px;
  overflow:hidden;
}

.img-box img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:10px;
  transition:transform .35s ease;
}

.card:hover .img-box img{
  transform:scale(1.06);
}
.cards_holder {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;

}

.cards {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 187px;
  height: 350px;
  margin-top: 20px;

}

.card-top1,
.card-top2,
.card-top3 {
  background-size: cover;
  background-position: center;
  height: 32vh;
  width: 25vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  border-radius: 15px;
}

.card-top1 { background-image: url(images/ph.jpeg); }
.card-top2 { background-image: url(images/ph2.jpg); }
.card-top3 { background-image: url(images/ph3.jpg); }

.inner-card-top {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

.card-cart-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.card-cart-button img {
  width: 30px;
  height: 30px;
  border-radius: 50px;
}

.inner-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  /* background-color: rgba(218, 218, 218, 0.264); */
  width: 14vw;
  color: white;
  height: 7vh;
  border-radius: 15px;
  padding: 8px 13px;
  background-color: #f5f1e7;
}

.inner-topcard-bottom-left {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 130px;
  margin-right: 8px;
  height: 30px;
  padding: 0 7px;
  border-radius: 30px;
  background-color: rgba(184, 184, 184, 0.523);
}

.inner-topcard-bottom-left h3 {
  font-size: 12px;
  color: white;
  text-decoration: none;
  font-family: SFR;
  font-weight: 400;
}

.inner-topcard-bottom-left h5 {
  width: 18px;
  height: 18px;
  background-color: aliceblue;
  border-radius: 50%;
  font-size: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-topcard-bottom-right {
  background-color: black;
  color: white;
  width: 65px;
  height: 30px;
  border-radius: 20px;
  font-size: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.inner-bottomcard-bottom-left {
  display: flex;
  flex-direction: column;
  justify-content: space-around;

}

.inner-bottomcard-bottom-left h2 {
  font-size: 15px;
  color: #224b43;

}

.inner-bottomcard-bottom-left h3 {
  font-weight: 300;
  font-size: 12px;       /* readable size */
  color: rgb(61, 61, 61); /* text color */
  background-color: transparent; /* optional */
  margin: 0;             /* optional reset */
}


.inner-bottomcard-bottom-right {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  text-decoration: underline dotted;
}

.inner-bottomcard-left h3 {
  font-weight: 300;
  font-size: 3px;
  background-color: #2f3542;
  text-decoration: none;

}


/* =========================
 ICON BUTTONS
========================= */
.card-wishlist-btn,
.inner-bottomcard-bottom-right {
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 4px;
  margin: 0;
  overflow: visible;
  transition: transform 0.2s ease;
}

.card-wishlist-btn { width: 35px; height: 35px; }
.inner-bottomcard-bottom-right { width: 42px; height: 42px; }

.wishlist-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.cart-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.card-wishlist-btn:hover,
.inner-bottomcard-bottom-right:hover {
  transform: scale(1.06);
}

/* =========================
 NOTIFICATIONS
========================= */
.pop-notice {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff4757;
  transform: scale(0);
  animation: popAnim 0.3s forwards;
  pointer-events: none;
  z-index: 1000;
}

@keyframes popAnim {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.toast-notification {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #2f3542;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInFade 0.5s forwards;
}

@keyframes slideInFade {
  0% { opacity: 0; transform: translateY(-20px); }
  50%, 100% { opacity: 1; transform: translateY(0); }
}

/* =========================
 LINKS
========================= */
.inner-topcard-bottom-left,
.inner-topcard-bottom-left a {
  text-decoration: none !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex;
}

.product_header{
  width: 100vw;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: center;
}
.product_header h1{
  font-size: 30px;
  padding: 20px;
  font-family: SFR;
  font-weight: 400;
  font-style: normal;
}
.product_header h3{
  font-size: 20px;
  max-width: 70%;
  font-weight: 200;
  font-family: SFR;
  font-weight: 200;
  font-style: normal;
}

/* =========================
 RESPONSIVE
========================= */
@media (max-width: 768px) {
  .card-wishlist-btn { width: 30px; height: 30px; }
  .inner-bottomcard-bottom-right { width: 54px; height: 54px; }
  .wishlist-icon { width: 24px; height: 24px; }
  .cart-icon-img { width: 26px; height: 26px; }
}

/* =========================
   CARD REFINED STYLES
========================= */

.cards {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* keep elements near top */
  align-items: center;
  gap: 12px; /* slightly increased gap for premium spacing */
  width: 190px;
  height: 350px;
  margin-top: 20px;
  border-radius: 16px;
  background:#ffffff8e;
}

.card-top1,
.card-top2,
.card-top3 {
  background-size: cover;
  background-position: center;
  height: 32vh;
  width: 14vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px; /* pushed elements closer to border */
  border-radius: 15px;
}

.inner-card-top {
  display: flex;
  justify-content: flex-end;
  padding: 5px; /* push icons slightly inside */
}

.card-wishlist-btn {
  width: 35px;
  height: 35px;
  border-radius: 30%;
  border: none;
  background: rgba(255, 255, 255, 0.171);
  backdrop-filter: blur(2px); /* frosted glass */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.card-wishlist-btn:hover {
  background: 
  rgba(255, 255, 255, 0.315);
  backdrop-filter: blur(4px);
}

.inner-bottomcard-bottom-right {
  width: 42px;
  height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  text-decoration: underline dotted;
  transition: all 0.15s ease;
}

.inner-bottomcard-bottom-right:hover {
  transform: scale(1.05); /* subtle growth */
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  /* background-color: rgba(255, 255, 255, 0.05); */
  width: 14vw;
  height: auto;
  border-radius: 15px;
  padding: 8px 10px; /* slightly tighter padding for premium feel */
}

/* Text inside card */
.inner-bottomcard-bottom-left h2 {
  font-size: 16px;
  margin-bottom: 3px;
  font-family: SFR;
  font-size: 400;

}

.inner-bottomcard-bottom-left h3 {
  font-weight: 400;
  font-size: 12px;
  color: #224b43;
  margin: 0;
  font-family: SFR;
  font-size: 400;
  
}

/* Image adjustments */
.img-box {
  background: #f5f5f7;
  border-radius: 14px;
  padding: 8px; /* closer padding inside */
  overflow: hidden;
}

.img-box img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
}

/* Remove card hover background & padding animation */
.card:hover {
  transform: translateY(-4px); /* subtle hover lift only */
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* =========================
   PREMIUM FEEL SPACING
========================= */
.cards_holder {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 0; /* slightly increased gap for spacious premium layout */
}

/* =========================
   NOTIFICATIONS & TOAST
========================= */
.pop-notice {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #ff4757;
  transform: scale(0);
  animation: popAnim 0.3s forwards;
  pointer-events: none;
  z-index: 1000;
}

.toast-notification {
  position: fixed;
  top: 20px;
  left: 20px;
  background-color: #2f3542;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInFade 0.5s forwards;
}

@keyframes popAnim {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInFade {
  0% { opacity: 0; transform: translateY(-20px); }
  50%, 100% { opacity: 1; transform: translateY(0); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .card-wishlist-btn { width: 30px; height: 30px; }
  .inner-bottomcard-bottom-right { width: 40px; height: 40px; }
  .img-box img { height: 140px; }
}
/* =========================
   COMPACT PRODUCT CARD MOBILE
========================= */
@media (max-width: 480px) {

  #products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
    padding: 10px;
  }

  .cards {
    width: 100%;
    height: auto;
    margin-top: 12px;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: #ffffffdd;
  }

  .card-top1, .card-top2, .card-top3 {
    width: 100%;
    height: 120px;
    padding: 6px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
  }

  .inner-card-top {
    padding: 3px;
  }

  .card-wishlist-btn {
    width: 28px;
    height: 28px;
  }

  .inner-card-bottom {
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
  }

  .inner-topcard-bottom-left {
    width: 100%;
    padding: 4px 6px;
  }

  .inner-topcard-bottom-left h3 {
    font-size: 10px;
  }

  .inner-topcard-bottom-left h5 {
    font-size: 6px;
    width: 14px;
    height: 14px;
  }

  .inner-topcard-bottom-right {
    font-size: 8px;
    width: 50px;
    height: 22px;
  }

  .card-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
    width: 100%;
    height: auto;
    background-color: #f5f1e7;
  }

  .inner-bottomcard-bottom-left h2 {
    font-size: 14px;
  }

  .inner-bottomcard-bottom-left h3 {
    font-size: 10px;
  }

  .inner-bottomcard-bottom-right {
    width: 36px;
    height: 36px;
    font-size: 8px;
  }

  .img-box {
    padding: 4px;
  }

  .img-box img {
    height: 100px;
    border-radius: 8px;
  }

  /* Optional: reduce spacing between cards for compactness */
  .cards_holder {
    gap: 8px;
    justify-content: center;
  }
}

/* =========================
   COMPACT PRODUCT CARD MOBILE
========================= */
@media (max-width: 480px) {

  #products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    width: 100%;
    padding: 10px;
  }

  .cards {
    width: 100%;
    height: auto;
    margin-top: 12px;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: #ffffffdd;
  }

  .card-top1, .card-top2, .card-top3 {
    width: 100%;
    height: 180px;
    padding: 6px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
  }

  .inner-card-top {
    padding: 3px;
  }

  .card-wishlist-btn {
    width: 28px;
    height: 28px;
  }

  .inner-card-bottom {
    flex-direction: row;
    align-items: flex-start;
    gap: 4px;
  }

  .inner-topcard-bottom-left {
    width: 70%;
    padding: 4px 6px;
  }

  .inner-topcard-bottom-left h3 {
    font-size: 10px;
  }

  .inner-topcard-bottom-left h5 {
    font-size: 6px;
    width: 14px;
    height: 14px;
  }

  .inner-topcard-bottom-right {
    font-size: 8px;
    width: 40px;
    height: 22px;
  }

  .card-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    border-radius: 12px;
    width: 100%;
    height: auto;
    background-color: #f5f1e7;
  }

  .inner-bottomcard-bottom-left h2 {
    font-size: 14px;
  }

  .inner-bottomcard-bottom-left h3 {
    font-size: 10px;
  }

  .inner-bottomcard-bottom-right {
    width: 36px;
    height: 36px;
    font-size: 8px;
  }

  .img-box {
    padding: 4px;
  }

  .img-box img {
    height: 50vh;
    border-radius: 8px;
  }

  /* Optional: reduce spacing between cards for compactness */
  .cards_holder {
    gap: 0px;
    justify-content: center;
  }
  .product_header {
    margin-top: 0px;
  }
  .product_header h1 {
    font-size: 24px;
    padding: 10px;
    font-weight: 600;
    padding: 0px;
    margin-top: 5px;
  }
  .product_header h3 {
    font-size: 16px;
    max-width: 90%;
    font-weight: 400;
    
  }
  .p-cards {
    padding: 0px 0 20px 0; /* spacing from hero */
    gap: 25px;
  }
  
}

