.box .cont img {
  transition: transform 0.5s ease;
  height: 300px;
  object-fit: cover;
}

.box .cont:hover img {
  transform: scale(1.1);
}

.btns .btn {
  transition: all 0.3s ease;
  border-width: 2px;
}

.btns .btn.active,
.btns .btn:hover {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  border-color: var(--muted-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
:root {
  --primary-color: #a78d78d0;
  --text-color: #9c816b;
  --muted-text: #555;
  --bg-color: #f7f5f2;
  --card-bg: #fff;
  --navbar-bg: linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.06));
  --white: #fff;
  --section-padding: 80px;
  --btn-padding-y: 14px;
  --btn-padding-x: 32px;
  --h1-size: 48px;
  --line-height: 1.2;

  --transition-speed: 0.6s;
  --navbar-height: 64px;
}
.dark {
  --primary-color: #a78d78d0;
  --text-color: #9c816b;
  --muted-text: #fff;
  --bg-color: #212121;
  --card-bg: #212121;
  --white: #fff;
  
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px; /* Thin scrollbar */
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
  border: 2px solid var(--bg-color); /* Creates padding effect */
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

/* Dark mode removed */

body {
  padding-top: 85px; /* Height of fixed navbar + generic spacing */
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}

html {
  overflow-x: hidden;
}

body.home-page {
  padding-top: 0;
}

header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navbar-bg);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 8px 0;
  display: block; /* Override Bootstrap's display: flex */
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}
nav ul {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  list-style: none;
  gap: 12px;
  margin: 0;
  padding: 0;
}
nav ul {
  display: flex;
  list-style: none;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.logo {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 20px;
  margin-right: 6px;
}
nav ul li a {
  text-decoration: none;
  color: var(--white);
  padding: 6px 10px;
  border-radius: 6px;
  transition:
    background 0.25s,
    color 0.25s;
}
nav ul li a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.switch {
  bottom: 18px;
  right: 8%;
  position: absolute;
  display: inline-block;
  width: 2.6em;
  height: 1.2em;
  z-index: 10;
}
.switch input {
  /* all: unset; */
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  background-color: #9c816b;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  transition: 0.4s;
  border-radius: 30px;
  box-shadow: 0 0 0 rgba(33, 133, 214, 0);
  transition: all 0.4s ease;
}
.slider:hover {
  box-shadow: #7461519f;
}

.slider::before {
  position: absolute;
  content: "";
  height: 0.8em;
  width: 0.8em;
  border-radius: 50%;
  left: 10%;
  bottom: 15%;
  box-shadow: inset 15px -4px 0px 15px #fdf906;
  background-color: #28096b;
  transition: all 0.4s ease;
  transform-origin: center;
}
.slider:hover::before {
  transform: rotate(45deg);
}

.switch input:checked + .slider {
  background-color: #28096b !important;
}
.switch input:checked + .slider::before {
  transform: translateX(100%);
  box-shadow: inset 8px -4px 0 0 #fff;
}
.switch input:checked + .slider:hover::before {
  transform: translateX(100%) rotate(-45deg);
}
.hero {
  position: relative;
  height: 100vh;
  display: block;
  overflow: hidden;
}
.hero-text {
  position: relative;
  z-index: 2;
  padding: var(--section-padding);
  padding-top: calc(var(--section-padding) + var(--navbar-height));
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
}

.hero-text h1 {
  font-size: var(--h1-size);
  line-height: var(--line-height);
  margin-bottom: 20px;
  color: #9c816b;
}

.hero-text p {
  color: var(--muted-text);
  max-width: 420px;
  margin-bottom: 30px;
}
.hero-text .btn-hero {
  background: var(--primary-color, #9c816b);
  color: var(--white, #fff);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: fit-content;
}

.hero-text .btn-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background: #b08b6d;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity var(--transition-speed) ease-in-out;
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.1));
}

.controls span {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: var(--white);
  cursor: pointer;
  padding: 10px;
}

#prev {
  left: 20px;
}
#next {
  right: 20px;
}
.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}
.icon-btn {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  position: relative;
  font-size: 14px;
  padding: 6px;
}
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff6b6b;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 12px;
}

.mini-cart {
  position: absolute;
  top: calc(var(--navbar-height) + 8px);
  right: 16px;
  width: 320px;
  background: rgba(255, 255, 255, 0.98);
  color: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  display: none;
  z-index: 1000;
}
.mini-cart.open {
  display: block;
}
.mini-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mini-cart-body {
  max-height: 240px;
  overflow: auto;
  padding: 12px 14px;
}
.mini-cart-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.mini-cart .empty {
  color: var(--muted-text);
}
.mini-cart .item {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.mini-cart .item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}
.mini-cart button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.mini-cart #clear-cart {
  background: transparent;
  color: #666;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.auth-link .auth-text {
  margin-left: 6px;
  font-size: 14px;
}
.auth-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  padding: 6px 8px;
  border-radius: 6px;
}
.auth-user {
  color: var(--white);
  display: flex;
  gap: 8px;
  align-items: center;
}
.auth-user .icon-btn {
  color: var(--white);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.newCollection {
  width: 90%;
  margin: 10% auto;
  text-align: center;
  padding: 30px;
}
.newCollection .collection {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 60px;
}

.collection .cart {
  width: 22%;
  background-color: var(--card-bg);
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.35s ease;
}

.collection .cart img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.collection .cart h3 {
  margin: 15px 0 5px;
  font-size: 18px;
  font-weight: 600;
}

.collection .cart h4 {
  font-size: 16px;
  color: var(--muted-text);
}

.collection .cart:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

.collection .cart:hover img {
  transform: scale(1.08);
}

.textCollection h2 {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--text-color);
}
.textCollection p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--muted-text);
}

.chooseUs {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 120px auto;
  padding: 40px;
  gap: 40px;
}

.chooseUs .img {
  width: 45%;
  overflow: hidden;
  border-radius: 16px;
}

.chooseUs .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.6s ease;
}

.chooseUs .img:hover img {
  transform: scale(1.08);
}

.chooseUs .text {
  width: 50%;
  padding: 20px;
}

.chooseUs .text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--text-color);
}

.chooseUs .text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-text);
  margin-bottom: 25px;
}

.chooseUs .text ul {
  list-style: none;
  padding: 0;
}

.chooseUs .text ul li {
  margin-bottom: 12px;
  font-size: 16px;
  position: relative;
  padding-left: 25px;
}

.chooseUs .text ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #9c816b;
  font-size: 14px;
}
.chooseUs .img {
  animation: fadeSlide 1.2s ease forwards;
}

.bestSellers {
  width: 90%;
  margin: 15% auto;
  text-align: center;
}

.bestSellers h2 {
  font-size: 36px;
  margin-bottom: 30px;
  color: var(--text-color);
}
.bestSellers p {
  font-size: 18px;
  margin-bottom: 20px;
}

.carousel {
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  animation: scroll 20s linear infinite;
}
.product-card {
  flex: 0 0 auto;
  width: 200px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 15px;
  text-decoration: none;
  color: var(--text-color);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.3s ease;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.product-card:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation-play-state: paused;
}

.product-card:hover img {
  transform: scale(1.005);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chooseUs {
  background: var(--bg-color);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.discount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 50px;
  position: relative;
  overflow: hidden;
  gap: 40px;
  margin: 100px auto;
  transition: background 0.3s easebox-shadow 0.3s ease;
}

.discount::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"><circle cx="150" cy="150" r="150" fill="%23f1c40f" fill-opacity="0.1"/></svg>')
    no-repeat;
  top: -50px;
  right: -100px;
  animation: float 6s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(20px) rotate(15deg);
  }
}

.discount-text {
  width: 50%;
  z-index: 1;
}

.discount-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #9c816b;
}

.discount-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--muted-text);
}

.btn-shop {
  display: inline-block;
  padding: 12px 30px;
  background: #9c816b;
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-shop:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.discount-img {
  width: 45%;
  z-index: 1;
}

.discount-img img {
  width: 100%;
  height: 400px;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.discount-img img:hover {
  transform: scale(1.05) rotate(-2deg);
}

.testimonials {
  width: 90%;
  margin: 120px auto;
  text-align: center;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 10px;
  color: #9c816b;
}

.section-header p {
  font-size: 18px;
  color: #555;
  margin-bottom: 50px;
}
.testimonial-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  max-width: 300px;
  flex: 1;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.testimonial-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial-card h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #9c816b;
}

.testimonial-card .rating {
  margin-bottom: 10px;
  color: #f5c518;
}

.testimonial-card .review {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: 12px;
}

.testimonial-card .time {
  font-size: 12px;
  color: #aaa;
}

.footer {
  background: #111;
  color: #eee;
  padding: 70px 0 20px;
  margin-top: 120px;
}

.footer-container {
  width: 90%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 220px;
}

.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #cfa56c; /* ذهبي */
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #bbb;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #cfa56c;
}

/* Brand */
.footer-col.brand h2 {
  letter-spacing: 3px;
  margin-bottom: 15px;
  color: #fff;
}

.footer-col.brand img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.footer-col.brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #aaa;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: #cfa56c;
  color: #111;
  transform: translateY(-4px);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  font-size: 13px;
  color: #777;
}

/* =====================
   Responsive Design
===================== */

/* Tablets */
@media (max-width: 992px) {
  .switch{
    left: 15%;
    bottom: 3px;
  }
  nav ul {
    position: static;
    transform: none;
    justify-content: center;
  }

  .hero-text {
    max-width: 70%;
  }

  .collection .cart {
    width: 45%;
  }

  .chooseUs {
    flex-direction: column;
    text-align: center;
  }

  .chooseUs .img,
  .chooseUs .text {
    width: 100%;
  }

  .discount {
    flex-direction: column;
    text-align: center;
  }

  .discount-text,
  .discount-img {
    width: 100%;
  }

  .discount-img img {
    height: 300px;
  }
}

/* Mobiles */
@media (max-width: 768px) {
  header.navbar {
    padding: 10px 0;
  }

  nav {
    flex-wrap: wrap;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    padding: 15px 0;
    display: none;
    margin-top: 10px;
    border-radius: 12px;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li a {
    padding: 10px;
    text-align: center;
  }

  .hero {
    height: auto;
    padding-bottom: 60px;
  }

  .hero-text {
    max-width: 100%;
    padding: 40px 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    margin: auto;
  }

  .controls span {
    font-size: 30px;
  }

  .collection .cart {
    width: 100%;
  }

  .product-card {
    width: 160px;
  }

  .discount-img img {
    height: 250px;
  }

  .testimonial-card {
    max-width: 100%;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Small Mobiles */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 26px;
  }

  .textCollection h2,
  .chooseUs .text h2,
  .bestSellers h2,
  .section-header h2 {
    font-size: 26px;
  }

  .discount-text h2 {
    font-size: 28px;
  }
}

