body {
  font-family: "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #dcae96;
  color: #000000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
#img-slider {
  margin-top: -55px;
  height: 90vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.select-none {
  text-align: center;
}

#img-slider .slide .info h4 {
  padding-bottom: 15px;
  font-size: 1.5rem;
  color: #222;
  font-family: "Montserrat", sans-serif;
}
#img-slider .slide .info h2 {
  font-size: 40px;
  font-family: "Montserrat", sans-serif;

  line-height: 3.375rem;
  color: #222;
}
#img-slider .slide .info h1 {
  font-family: "Playfair Display", serif;
  font-size: 3.125rem;
  line-height: 4rem;
  color: #955251;
}
#img-slider .slide .info p {
  font-family: "Montserrat", sans-serif;
}
#img-slider .slide .info button {
  background: url(../images/button.png) no-repeat center center;
  background-size: contain;
  background-color: transparent;
  color: #955251;
  font-weight: 700;
  border: 0;
  padding: 14px 80px 14px 65px;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: auto;
  font-family: "Montserrat", sans-serif;
}

#img-slider .slide .info button a {
  text-decoration: none;
  color: #955251;
  cursor: pointer;
}
/* ===== SEARCH BAR ===== */
.search-container {
  max-width: 400px;
  position: relative;
  margin: auto;
}
.search-box {
  display: flex;
  align-items: center;
  background: #955251;
  border: 1px solid #955251;
  padding: 10px 15px;
  border-radius: 25px;
}

.search-box input {
  color: #ffff;
  border: none;
  outline: none;
  width: 100%;
  margin-left: 10px;
  font-size: 14px;
  background-color: #955251;
}
.search-box input::placeholder {
  color: #dcae96;
}

.search-history {
  list-style: none;
  background: #955251;
  border-radius: 10px;
  margin-top: 5px;
  padding: 5px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: none;
  position: absolute;
  width: 100%;
  z-index: 10;
}

.search-history li {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  cursor: pointer;
  background-color: #955251;
  border-radius: 20px;
}

.search-history li:hover {
  background: #955251;
}

.search-history span {
  color: #dcae96;
  cursor: pointer;
}
/* PRODUCTS */
button {
  background-color: #955251;
  color: #dcae96;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}
button:hover {
  background-color: #000000;
}

/* CART */
#cart {
  position: fixed;
  top: calc(100px + env(safe-area-inset-top));
  right: 20px;
  background: #dcae96;
  border: 1px solid #955251;
  padding: 15px;
  width: 320px;
  border-radius: 10px;
  z-index: 2000;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#user-name {
  color: #955251;
  background-color: #dcae96;
  border: 1px solid #955251;
  padding: 10px;
  border-radius: 10px;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}

#cart.hidden {
  opacity: 0;
  transform: translateY(-25px);
  pointer-events: none;
}

#cart-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0;
}
.item-text {
  flex: 1;
}

.item-actions {
  display: flex;
  gap: 8px; 
}
.remove-btn {
  background: #000000;
  color: #fff;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 10px;
   width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;

}
.remove-btn:hover {
  opacity: 0.85;
}
#checkout-btn {
  margin-top: 15px;
}
.qty-btn {
  background: #000000;
  color: #fff;
  border: none;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
   width: 32px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;

}
.qty-btn:hover {
  opacity: 0.85;
}
/* AUTH MODAL */
#auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.auth-box {
  background: #dcae96;
  padding: 35px 30px;
  width: 320px;
  border-radius: 14px;
  text-align: center;
  position: relative;
}

.auth-box h2 {
  font-family: "Playfair Display", serif;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #955251;
  border-radius: 6px;
  background: transparent;
}

.auth-btn {
  width: 100%;
  padding: 12px;
  background: #955251;
  color: #dcae96;
  border: none;
  letter-spacing: 2px;
  cursor: pointer;
}

.auth-btn:hover {
  background: #000;
}

.switch {
  margin-top: 15px;
  font-size: 13px;
}

.switch span {
  color: #955251;
  cursor: pointer;
  font-weight: 500;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}
.header-login-icon {
  font-size: 30px;
  margin-right: 15px;
  color: #955251;
  cursor: pointer;
  transition: 0.3s;
}

.header-login-icon:hover {
  color: #000;
}

/* Language select */
#language-select {
  background: transparent;
  border: 1px solid #955251;
  color: #955251;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: "Montserrat", sans-serif;
  cursor: pointer;
}

.header-icon i {
  font-size: 30px;
  color: #955251;
  cursor: pointer;
  transition: 0.3s ease;
}

/*  TOP PRODUCTS PAGE */

.top-hero {
  text-align: center;
  margin-top: 65px;
  margin-bottom: 65px;
}

.top-hero h2 {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  letter-spacing: 5px;
  margin-bottom: 10px;
}

.top-hero p {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 3px;
}
.top-products {
  max-width: 1200px;
  margin: 40px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.top-card {
  background: #dcae96;
  border: 1px solid #955251;
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  position: relative;
  transition: transform 0.4s ease;
}

.top-card:hover {
  transform: translateY(-8px);
}

.top-card img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 15px;
}

.top-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin: 10px 0;
}

.top-card .desc {
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.top-card .price {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

.top-card button {
  background: #955251;
  color: #dcae96;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.top-card button:hover {
  background: #000;
}
/* Badge */
.badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #955251;
  color: #dcae96;
  font-size: 11px;
  letter-spacing: 2px;
  padding: 6px 10px;
  border-radius: 20px;
}
#newsletter {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  background: url(../images/banner.jpg) center/cover no-repeat;
  margin-bottom: -50px;
  padding: 70px 100px;
  margin-left: 0;
  margin-right: 0;
}
#newsletter h4 {
  color: #000;
  font-size: 22px;
  font-family: "Montserrat", sans-serif;
  margin-left: 100px;
}
#newsletter p {
  font-size: 17px;
  font-weight: 600;
  color: #955251;
  margin-left: 100px;
}
#newsletter input {
  height: 3.125rem;
  padding: 0 1.25rem;
  font-size: 14px;
  font-family: monospace;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 5px;
  outline: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
#newsletter button {
  background-color: #955251;
  color: white;
  white-space: nowrap;
  height: 3.125rem;
  font-weight: bold;
  border-radius: 5px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#newsletter button:hover {
  background-color: #000000;
  transition: 0.3s ease;
}
#newsletter .form {
  display: flex;
  width: 40%;
}
.why-ksh {
  padding: 100px 20px;
  text-align: center;
  background: linear-gradient(to bottom, #ebd1b9 0%, #dcae96 100%);
}

.why-ksh h2 {
  font-family: "Montserrat", sans-serif;
  color: #222;
  font-size: 40px;
  letter-spacing: 4px;
  margin-bottom: 60px;
}
.why-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
}
.why-card {
  background: #dcae96;
  border: 1px solid #955251;
  border-radius: 20px;
  padding: 40px 25px;
  transition: transform 0.5s ease;
}

.why-card:hover {
  transform: translateY(-10px);
}
.why-card i {
  font-size: 36px;
  color: #955251;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.why-card p {
  font-size: 14px;
  letter-spacing: 1px;
  opacity: 0.85;
}
.stock-ticker {
  font-size: 22px;
  padding: 10px 0;
  overflow: hidden;
  user-select: none;
  --gap: 60px;
  display: flex;
  gap: var(--gap);
  background: #955251;
  margin-top: -50px;
}

.stock-ticker ul {
  list-style: none;
  flex-shrink: 0;
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: var(--gap);
  font-weight: 700;
  color: #dcae96;
  font-family: "Montserrat", sans-serif;

  animation: scroll 18s linear infinite;
}

.stock-ticker .company {
  padding: 0 10px;
  white-space: nowrap;
}

@keyframes scroll {
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}
/*Product section*/
.section-p1 {
  margin: 20px;
}
#product1 {
  text-align: center;
}
#product1 .pro-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
#product1 .pro:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}
#product1 .pro-container .pro {
  width: 23%;
  min-width: 250px;
  padding: 10px 12px;
  border: 1px solid #cce7d0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
  margin: 15px 0;
  transition: all 0.3s linear;
  position: relative;
}
#product1 .pro-container .pro:hover {
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}
#product1 .pro-container .pro img {
  width: 100%;
  border-radius: 20px;
}
#product1 .pro .des {
  text-align: start;
  padding: 10px 0;
}
#product1 .pro .des span {
  color: #606063;
  font-size: 12px;
}
#product1 .pro .des h5 {
  padding-top: 7px;
  color: #1a1a1a;
  font-size: 14px;
}
#product1 .pro .des i {
  font-size: 12px;
  color: #955251;
}
#product1 .pro .des h4 {
  padding-top: 7px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-color);
}
#product1 .pro .cart i {
  width: 45px;
  height: 45px;
  line-height: 40px;
  font-size: 20px;
  background-color: #955251;
  border-radius: 50px;
  position: absolute;
  color: #dcae96;
  bottom: 20px;
  right: 15px;
  margin: auto;
  transition: background-color 0.3s ease;
}
#product1 .pro .cart i:hover {
  background-color: #000000;
}
.promo-scroll {
  background-color: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
}
.promo-track {
  display: inline-flex;
  gap: 50px;
  animation: scrollPromo 15s linear infinite;
}

.promo-track span {
  font-size: 12px;
  letter-spacing: 1px;
  font-family: "Montserrat", sans-serif;
}
@keyframes scrollPromo {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 768px) {
  .promo-track span {
    font-size: 12px;
  }
}
.pro {
  position: relative;
}

.favorite-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #955251;
  font-size: 25px;
  margin-right: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.favorite-heart:hover {
  transform: scale(1.2);
}
#favorites {
  position: absolute;
  top: 100px;
  right: 20px;
  width: 300px;
  max-height: 400px;
  background-color: #dcae96;
  border: 1px solid #955251;
  border-radius: 10px;
  padding: 15px;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  pointer-events: none;
}
#favorites:not(.hidden) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#favorites ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#favorites li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

#favorites button {
  background: #000000;
  color: #fff;
  border: none;
  padding: 4px 10px;
  cursor: pointer;
  border-radius: 5px;
  cursor: pointer;
}
#graph-title {
  font-family:'Montserrat', sans-serif;
  color: #000;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

/* Espace Admin */
#admin-panel {
  margin: 60px auto;
  max-width: 650px;
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  text-align: left;
  padding-bottom: 15px;
  font-weight: 600;
  color: #955251;
}

.admin-table td {
  padding: 12px 0;
  vertical-align: middle;
}
.admin-product {
  display: flex;
  flex-direction: column;
}

.admin-product span {
  font-size: 14px;
  color: #555;
}


.admin-table th,
.admin-table td {
  padding: 12px 16px;
  font-family: 'Montserrat', sans-serif;
}

.admin-table td:nth-child(2),
.admin-table td:nth-child(3) {
  text-align: center;
}
.admin-actions {
  display: flex;
  gap: 10px;
}
#admin-panel {
  display: none;
}

#admin-panel:not(.hidden) {
  display: block;
}
#admin-title {
  text-align: center;
  font-size: 25px;
  margin-bottom: 40px;
  font-family: 'Montserrat', sans-serif;
  text-decoration: underline;

} 
/* ================= REVIEWS ================= */
#reviews-section {
  margin: 30px;
  display: flex;
  justify-content: center;
  font-family: "Montserrat", sans-serif;
}

.reviews-container {
  width: 70%;
  max-width: 700px;
}

.reviews-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  text-align: center;
  margin-bottom: 18px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid #e2e9e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
}

.review-form input,
.review-form textarea {
  font-family: monospace;
  width: 100%;
  padding: 12px 15px;
  outline: none;
  border: 1px solid #e2e9e1;
  border-radius: 10px;
}

.rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rating-label {
  font-size: 14px;
  opacity: 0.9;
}

.stars-input {
  display: inline-flex;
  gap: 6px;
  cursor: pointer;
}

.stars-input i {
  font-size: 20px;
  opacity: 0.3;
  transition: 0.2s ease;
}

.stars-input i.active {
  opacity: 1;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-empty {
  text-align: center;
  opacity: 0.8;
}

.review-card {
  border: 1px solid #e2e9e1;
  border-radius: 16px;
  padding: 16px 16px 14px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-user {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-weight: 600;
}

.review-date {
  font-size: 12px;
  opacity: 0.7;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid #e2e9e1;
  background: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

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

.icon-btn i {
  font-size: 14px;
}

.delete-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background: #b6646c;
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.delete-btn:hover {
  background: #955251;
}

.review-rating {
  margin: 10px 0 8px;
  display: flex;
  gap: 6px;
}

.review-rating i {
  font-size: 16px;
  opacity: 0.25;
}

.review-rating i.filled {
  opacity: 1;
}

.review-text {
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 768px) {
  .reviews-container {
    width: 100%;
  }

  .review-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-actions {
    width: 100%;
    justify-content: flex-end;
  }
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  background-color: #955251;
  color: #fff;
  border: none;
  padding: 12px 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);

}
#scrollTopBtn i {
  font-size: 25px;
  color: #ffff;
}

#scrollTopBtn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background-color: #7d3f3e;
}

.chart-box canvas {
  width: 280px !important;   
  height: 280px !important; 
  margin: auto;
  display: block;
}
.chart-box {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid #955251;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  max-width: 360px;    
  margin-left: auto;
  margin-right: auto;
}

