
* {
  /* outline: 1px solid red; */
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
@font-face {
  font-family: "DancingScript";
  src: url('../fonts/DancingScript-VariableFont_wght.ttf') format("truetype"),
       
}
@font-face {
  font-family: "Quicksand";
  src: url('../fonts/Quicksand-VariableFont_wght.ttf') format("truetype"),
       
}
@font-face {
  font-family: "CormorantGaramond";
  src: url('../fonts/CormorantGaramond-Italic-VariableFont_wght.ttf') format("truetype"),
       
}

/* ================= ROOT VARIABLES ================= */
:root {
  /* ===== Fonts ===== */
  --font-primary: "Quicksand", sans-serif;
  --font-heading: "CormorantGaramond", serif;
  --font-navHeading: "DancingScript", cursive;


  --headingTextColor: #084422;
  --bodyBackgroundColor: white;
  --orderSummaryViewCartBgColor: #f8fff9;
  --topPadding: 60px;
  --navTextColor: #084422;
  --navTextSize: 1.25rem;
  --eliteBackgroundColor: #F7F4EB;
  --buttonTextColor: white;
  --buttonHoverBgColor: #1F2937;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --hover-color: #198754;
  --text-dark: #1f2937;

   --color-dark: #2b2b2b;
  --color-light: #ffffff;
  --color-muted: #888;

  --color-brown: #3E7C6F;
  --color-gold: #2F5D50;
  --color-green: #66D9A8;
  --color-green-light: #A8E6CF;
  --color-danger: #dc3545;
  --color-gray: #5a3a1e;

  --color-shadow: rgba(0,0,0,.15);

  --gradient-gold: linear-gradient(135deg,#2f5d50,#2f5d50);
  --gradient-green: linear-gradient(135deg,#A8E6CF,#66D9A8);
  --gradient-success: linear-gradient(135deg,#28a745,#20c997);
  --gradient-danger: linear-gradient(135deg,#dc3545,#ff6b6b);

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

/* ================= BASE ================= */
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bodyBackgroundColor);
  font-family: var(--font-primary);
  padding-top: var(--topPadding);
}

main {
  flex: 1;
}

p {
  margin: 0;
}

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

/* ================= NAVBAR ================= */
.navbar {
  background: var(--bodyBackgroundColor);
  box-shadow: var(--shadow);
  height: 60px;
  padding: 0 1.5rem;
}

/* BRAND */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--navTextColor);
  text-decoration: none;
  font-family: var(--font-navHeading);
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover {
  transform: scale(1.02);
}

.navbar-brand img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

/* LINKS */
.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--hover-color);
}


/* ================= ICON BUTTONS (NO BORDERS + SAME GAP) ================= */
.btn-icon,
.navbar-toggler,
.mobile-search button,
.wishlist-icon {
  border: none ;
  background: transparent ;
  box-shadow: none ;
}

/* SAME spacing as before */
.btn-icon {
  padding: 0 6px;
  margin-left: 6px;
  font-size: 1.05rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.15s ease;
}

.btn-icon:hover {
  color: var(--hover-color);
  transform: translateY(-1px);
}

/* ================= SEARCH ================= */
.search-box {
  position: relative;
  margin-right: 15px;
}

.search-box input {
  border-radius: 20px;
  border: 1px solid #ddd;
  padding: 0.4rem 1rem 0.4rem 2rem;
  width: 220px;
  font-size: 0.9rem;
  background: #fff;
  transition: all 0.3s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--hover-color);
  box-shadow: 0 0 4px rgba(25, 135, 84, 0.3);
}

.search-box i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
  pointer-events: none;
}

/* ================= MOBILE SEARCH ================= */
.mobile-search {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  align-items: center;
  padding: 0 1rem;
  gap: 0.5rem;
  z-index: 1050;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.mobile-search.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-search input {
  flex: 1;
  border-radius: 20px;
  border: 1px solid #ddd;
  padding: 0.4rem 1rem;
  font-size: 1rem;
}

.mobile-search input:focus {
  border-color: var(--hover-color);
  box-shadow: 0 0 4px rgba(25, 135, 84, 0.3);
}

/* ================= RESPONSIVE NAV ================= */
@media (min-width: 540px) {
  .navbar-collapse {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
  }

  .navbar-brand {
    font-size: 0.9rem;
    gap: 0.4rem;
  }
}

@media (max-width: 991px) {
  .navbar {
    padding: 0 0.75rem;
  }

  .navbar-brand img {
    width: 30px;
    height: 30px;
  }

  .search-box {
    display: none ;
  }

  .mobile-search {
    display: flex;
  }

  .navbar-collapse {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: var(--shadow);
    text-align: center;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem 0;
    z-index: 1000;
  }
}

/* ================= FOOTER ================= */
.footer {
  font-family: var(--font-primary);
  background-color: var(--eliteBackgroundColor);
}

.footer__content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer h4 {
  text-decoration: underline;
  font-family: var(--font-heading);
}

.footer a {
  color: black;
  text-decoration: none;
}

/* ================= WISHLIST ================= */
.wishlist-icon {
  color: red;
}

.wishlist-icon:hover {
  transform: scale(1.15);
}

/* Wishlist image */
.wishlist-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.wishlist-item {
  display: flex;
  flex-direction: column;
}

.wishlist-item button {
  margin-top: auto;
}

/* ================= PAGINATION ================= */
#wishlistPagination button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-weight: 600;
}

#wishlistPagination button.btn-dark {
  background: linear-gradient(135deg, #66D9A8, #A8E6CF);
  border: none;
  color: #0b253b;
}

/* ================= RATING ================= */
.rating-stars .stars i {
  color: #f4b400;
  font-size: 14px;
}

.rating-stars .rating-count {
  font-size: 13px;
  color: #888;
}

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

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

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

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

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

/* ================= BREADCRUMB ================= */
.breadcrumb {
  font-size: 14px;
  margin: 10px 0 15px;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb span {
  margin: 0 6px;
  color: #999;
}


.dashboard-toggle{
  display: none;
}

body.dashboard-page  .dashboard-toggle{
  display : inline-flex;
}

button.back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50% ;
  padding: 0 ;

  background: #fff ;
  border: 1px solid #e6e6e6 ;

  display: flex ;
  align-items: center ;
  justify-content: center ;

  box-shadow: 0 3px 8px rgba(0,0,0,.15) ;
  transition: all .2s ease;
}

button.back-btn i {
  font-size: 18px;
}

button.back-btn:hover {
  transform: translateX(-2px);
  background: #F7F4EB ;
  box-shadow: 0 6px 14px rgba(43,94,48,.25) ;
}

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

.toast {
  min-width: 360px;
  background: var(--toast-bg);
  color: var(--color-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 {
  padding-left: 20px;
  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);
  }
}