

/* ================= ROOT VARIABLES ================= */
:root {
 
  /* ===== Base Colors ===== */
  --body-bg:#fbfaf7;
  --elite-bg: #f5f1e6;
  --heading-color: #084422;
  --text-light: #ffffff;
  --text-dark: #0a100b;

  /* ===== Layout ===== */
  --top-padding: 60px;

  /* ===== Navbar ===== */
  --nav-text-color: #084422;
  --nav-text-size: 1.25rem;

  /* ===== Buttons ===== */
  --btn-hover-bg: #1F2937;
  --btn-text-color: #ffffff;

  /* ===== Shadows ===== */
  --shadow-soft: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 4px 10px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 10px 20px rgba(12, 12, 12, 0.35);

  /* ===== Banner ===== */
  --banner-overlay: #0844226d;
  --banner-height: 400px;
  --banner-height-mobile: 200px;

  /* ===== Product Images ===== */
  --product-img-height: 230px;
  --product-img-height-mobile: 150px;

  /* ===== Rating ===== */
  --rating-bg: #d8ddd9bf;
  --rating-bg-hover: #d8ddd9f6;
  --rating-text: #0a100bd2;

  /* ===== Toast ===== */
  --toast-bg: #1f1f1f;
  --toast-success: #2ecc71;
  --toast-error: #e74c3c;

  --primary-cart-color : #2f5d50;

  /* ===== Loader ===== */
  --loader-bg: rgba(0, 0, 0, 0.7);
}

/* ================= RESET ================= */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

p {
  margin: 0;
}

/* ================= BASE ================= */
body {
  background: var(--body-bg);
  font-family: "Opensans", sans-serif;
  padding-top: var(--top-padding);
}

/* h1,
h2,
h3,
header span,
.product-name {
  font-family: var(--font-heading);
} */

.section-heading {
  color: var(--heading-color);
  font-family: var(--font-heading);
}

/* ================= BANNER ================= */
.banner {
  width: 100%;
  height: var(--banner-height);
  position: relative;
  overflow: hidden;
  background: var(--banner-overlay);
}

.banner img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease-in;
  opacity: 0;
}

.banner img.active {
  opacity: 1;
}

#banner__leftbtn,
#banner__rightbtn {
  position: absolute;
  top: 40%;
  font-size: 2rem;
  z-index: 2;
  color: var(--text-light);
  cursor: pointer;
  background: #0000003c;
  border-radius: 30px;
}

#banner__leftbtn {
  left: 3%;
}

#banner__rightbtn {
  right: 3%;
}

/* ================= SECTIONS ================= */
.loved-products,
.review {
  background-color: var(--elite-bg);
}

/* ================= PRODUCT CARDS ================= */
.loved-products__card,
.new-products__card {
  background-color: var(--body-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.loved-products__card:hover {
  transform: scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

/* ================= NEW PRODUCTS ================= */
.new-products__card {
  background-color: var(--elite-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-image-wrapper {
  height: var(--product-img-height);
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.new-products__card:hover {
  box-shadow: 0 10px 20px rgba(12, 12, 12, 0.29);
}

/* ================= RATING ================= */
.loved-products__rating {
  background-color: var(--rating-bg);
  color: var(--rating-text);
  padding: 5px;
  font-weight: 600;
}

.loved-products__rating:hover {
  background-color: var(--rating-bg-hover);
  color: var(--text-dark);
}

/* ================= BUTTONS ================= */
.cart,
#viewBtn {
  border: none;
  background-color: var(--primary-cart-color);
  color: white;
}

.cart:hover,
#viewBtn:hover {
  background-color: #244840;
  color: var(--btn-text-color);
}

/* ================= LINKS ================= */
.loved-products a,
.category__card a {
  color: var(--text-dark);
  text-decoration: none;
}

/* ================= CATEGORY ================= */
.category__card {
  transition: all 0.4s ease;
}

.category__card:hover {
  transform: scale(1.05);
  cursor: pointer;
}

/* ================= REVIEW ================= */
.review__card--img {
  border-radius: 50%;
}

/* ================= ABOUT ================= */
.about__image1 {
  border-radius: 50px 0 0 0;
}

.about__image2 {
  border-radius: 0 0 0 50px;
}

.about__image3 {
  border-radius: 0 30px 50px 0;
}

.about p {
  text-align: justify;
}

/* ================= LOADER ================= */
.dots-loader {
  display: flex;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: var(--loader-bg);
  z-index: 9999;
  gap: 8px;
}

.dots-loader span {
  width: 12px;
  height: 12px;
  background: var(--text-light);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dots-loader span:nth-child(2) { animation-delay: 0.2s; }
.dots-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ================= MODAL ================= */
.modal-body p {
  margin-bottom: 6px;
}

/* ================= TOAST ================= */
#toastContainer {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.toast {
  min-width: 360px;
  background: var(--toast-bg);
  color: var(--text-light);
  padding: 14px 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: slideDown 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

.toast.success .icon {
  background: var(--toast-success);
}

.toast.error .icon {
  background: var(--toast-error);
}

.toast .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-light);
  flex-shrink: 0;
}

.toast .message {
  font-size: 14px;
  line-height: 1.4;
}

/* ================= TOAST ANIMATIONS ================= */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 576px) {
  html {
    font-size: 14px;
  }

  .banner {
    height: var(--banner-height-mobile);
  }

  .product-image-wrapper {
    height: var(--product-img-height-mobile);
  }
}
