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

:root {
  --mainColor: #4b3b94;
}

body {
  font-family: "Cairo", sans-serif;
}

.top-bar {
  background-color: #e60000;
  color: white;
  padding: 7px 15px;
  font-weight: bold;
  position: relative;
  overflow: hidden;
}

.topbar-text {
  display: inline-block;
}

.close-topbar {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.logo {
  width: 100px;
}

.search-form {
  width: 690px;
}

.search-form .form-control {
  padding-right: 50px;
  border: 1px solid rgba(86, 68, 149, 0.3);
  color: #564495;
  background-color: #fff;
  box-shadow: none;
  outline: none;
}

.search-form .form-control:focus {
  border-color: rgba(86, 68, 149, 0.3);
  box-shadow: none !important;
  outline: none !important;
}

.search-form .form-control::placeholder {
  color: #564495;
  opacity: 0.8;
}

.search-form .form-control:hover {
  border-color: #564495;
  transition: border-color 0.3s ease;
}

.search-form .search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #564495;
  pointer-events: none;
  font-size: 16px;
}

.search-form .form-control::-webkit-search-decoration,
.search-form .form-control::-webkit-search-cancel-button,
.search-form .form-control::-webkit-search-results-button,
.search-form .form-control::-webkit-search-results-decoration {
  display: none;
}

@media (max-width: 991px) {
  .search-form {
    width: 100%;
  }

  .navbar .container {
    text-align: center;
  }

  .logo,
  .cartLogo {
    width: 50px;
    height: auto;
  }

  .navbar-brand {
    margin-bottom: 0;
  }
}

.custom-navbar {
  background-color: var(--mainColor);
  padding: 10px 0;
}

.navbar-nav .nav-link {
  color: #fff;
  font-size: 20px;
  margin: 0 15px;
}

.login-btn i {
  margin-left: 5px;
}

.navbar-nav .nav-link:hover {
  text-decoration: underline;
  color: #ddd;
}

.login-btn {
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 12px;
  font-size: 16px;
  transition: 0.3s;
}

.login-btn:hover {
  background-color: #fff;
  color: var(--mainColor);
}

.carousel {
  margin-block: 20px;
}

.carousel-control-prev,
.carousel-control-next {
  display: none !important;
}

.carousel-indicators [data-bs-target] {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background-color: #ccc !important;
  margin: 0 6px;
  border: none !important;
  opacity: 1 !important;
  transition: background-color 0.3s ease;
}

.carousel-indicators .active {
  background-color: var(--mainColor) !important;
}

.carousel-item img {
  height: 415px;
  border-radius: 10px;
}

.products-section {
  padding: 40px 20px;
}

.section-header {
  margin-bottom: 30px;
}

.refund-section {
  background-color: var(--mainColor);
  padding: 20px 0;
  height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 50px;
}

.refund-btn {
  background-color: red;
  color: white;
  font-weight: bold;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 10px;
  line-height: 1.6;
  transition: 0.3s ease;
}

.refund-btn:hover {
  background-color: #cc0000;
}

.leaf-img {
  width: 80px;
  max-width: 100%;
}

.product-img {
  width: 200px;
  max-width: 100%;
}

.spon-img {
  width: 100px;
  max-width: 100%;
}

@media (max-width: 768px) {
  .refund-section {
    display: none;
  }
}

.main-heading {
  font-size: 32px;
  color: var(--mainColor);
  font-weight: 700;
  margin-bottom: 10px;
}

.sub-heading {
  font-size: 26px;
  color: #666;
  margin-bottom: 0;
}

.product-card {
  width: 100%;
  max-width: 270px;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
  background-color: #fff;
  text-align: center;
  margin: 10px;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--mainColor);
}

.product-img {
  width: 100%;
  height: auto;
}

.product-details {
  padding: 15px;
}

.product-title {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.rating {
  font-size: 14px;
  color: #f4b400;
  margin-bottom: 10px;
}

.stars {
  color: #f4b400;
  margin-right: 4px;
}

.price {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 5px;
  margin-bottom: 10px;
}

.current-price {
  color: #333;
  font-weight: bold;
}

.old-price {
  text-decoration: line-through;
  color: #888;
}

.discount {
  color: red;
  font-size: 13px;
}

.add-to-cart {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  color: var(--mainColor);
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.add-to-cart i {
  margin-left: 6px;
}

.add-to-cart:hover {
  background-color: var(--mainColor);
  color: white;
}

.all-products {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  color: var(--mainColor);
  padding: 10px 100px;
  margin-top: 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: 0.3s ease;
}

.all-products:hover {
  background-color: var(--mainColor);
  color: white;
}

.banner {
  height: 370px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("../images/shopping.png") no-repeat center center;
  background-size: cover;
  color: white;
  border-radius: 10px;
  text-align: center;
}
.banner .btn-main {
  background-color: #4b3c88;
  color: white;
}
.banner .btn-main:hover {
  background-color: #362a66;
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
}
.ticker {
  display: inline-block;
  animation: ticker-scroll 30s linear infinite;
}
.testimonial {
  display: inline-block;
  background: #f9f9f9;
  border-radius: 10px;
  padding: 10px 20px;
  margin: 0 10px;
  min-width: 250px;
  text-align: center;
}
.testimonial img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 5px;
}
.testimonial .name {
  font-weight: bold;
  font-size: 14px;
}
.testimonial .position {
  font-size: 12px;
  color: #666;
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}
.section-title {
  color: #4b3c88;
}

.footer {
  background-color: var(--mainColor);
  padding: 50px 0 20px;
  color: #fff;
}

.footer .pLogo {
  font-size: 16px;
  font-weight: 400;
}

.footer .navs a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
}

.footer .navs a:hover {
  text-decoration: underline;
}

.footer .line {
  border-color: #fff;
}

.footer .copy {
  text-align: center;
  font-size: 15px;
}

.footer .copy .copyRight {
  margin-right: 10px;
}

.footer .copy .alaa {
  margin-left: 10px;
  color: #f7981d;
}

.footer .pays {
  font-size: 18px;
  font-weight: 500;
}

.footer i {
  font-size: 26px;
  cursor: pointer;
  transition: transform 0.2s;
}

.footer i:hover {
  transform: scale(1.2);
  color: #f7981d;
}

.footer .pVisaAdd {
  font-size: 15px;
  margin: 0;
}

.newest {
  background-color: var(--mainColor);
  color: #fff;
  border: 1px solid #ccc;
  padding: 10px 30px;
  margin-right: 40px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.newest:hover {
  background-color: var(--mainColor);
  color: #fff;
}

.more {
  background-color: #f9f9f9;
  color: var(--mainColor);
  border: 1px solid #ccc;
  padding: 10px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.more:hover {
  background-color: var(--mainColor);
  color: #fff;
}

.filters {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
}

.filter-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--mainColor);
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.filter-group {
  margin-bottom: 25px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-toggle {
  background: none;
  border: none;
  color: #444;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  text-align: right;
  margin-bottom: 10px;
}

.form-check {
  margin-bottom: 10px;
}

.form-check-label {
  cursor: pointer;
  color: #333;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-check-input:checked {
  background-color: var(--mainColor);
  border-color: var(--mainColor);
}

.text-warning {
  font-size: 14px;
}

.usage-policy-card {
  direction: rtl;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: none;
  margin: 30px auto;
  max-width: 900px;
}

.usage-policy-card .card-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
}

.usage-policy-card .brand-name {
  color: #7e57c2;
  text-decoration: none;
  margin-right: 5px;
  font-weight: normal;
}

.policy-list {
  padding-right: 20px;
  list-style-type: disc;
  color: #444;
  font-size: 15px;
  line-height: 1.8;
}

.policy-list li {
  margin-bottom: 12px;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: right 0.3s ease-in-out;
  padding: 20px;
  overflow-y: auto;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 9990;
  display: none;
}

.overlay.active {
  display: block;
}

.cart-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.remove-btn {
  background-color: transparent;
  border: none;
  color: red;
  font-size: 18px;
  cursor: pointer;
}

.cart-footer {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.toast-notify {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #198754;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: 99999;
}

.toast-notify.show {
  opacity: 1;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  background: white;
  padding: 25px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

.modal-box .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: #dc3545;
  cursor: pointer;
}

.user-icon {
  color: #6c757d;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 41px;
  left: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6c757d;
  font-size: 1.1rem;
}

.toggle-password:focus {
  outline: none;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  background-color: #f9f9f9;
  outline: none;
}

input[type="email"]:hover,
input[type="password"]:hover,
input[type="text"]:hover {
  border-color: #6f42c1;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
  background-color: #fff;
}

input[type="email"]:not(:placeholder-shown),
input[type="password"]:not(:placeholder-shown),
input[type="text"]:not(:placeholder-shown) {
  font-weight: bold;
  color: #212529;
}

.productDetailsSection {
  margin-block: 35px;
}

.productDetailsSection .breadcrumb {
  font-size: 20px;
  font-weight: 400;
}

.productDetailsSection .share {
  text-decoration: none;
  font-size: 16px;
  color: var(--mainColor);
  border: var(--mainColor) solid 1px;
  border-radius: 10px;
  padding: 10px 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.productDetailsSection .share:hover {
  background-color: var(--mainColor);
  color: #fff;
}

.proImg {
  border: 1px solid #c4c4c4;
  border-radius: 10px;
  padding: 5px;
  overflow: hidden;
}

.proImg img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.breadcrumb {
  color: #6c757d;
  font-size: 0.9rem;
}

.rating span:first-child {
  font-size: 1.2rem;
}

.main-details {
  padding: 20px;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
}

.pro-price {
  color: var(--mainColor);
}

.pro-details {
  padding: 20px;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
}

.pro-content {
  padding: 20px;
  border: 1px solid #c4c4c4;
  border-radius: 10px;
}

.pro-content ul {
  margin-right: 30px;
}

.pro-title {
  color: var(--mainColor);
}

.nav-tabs .nav-link {
  border: none;
  border-radius: 30px;
  background-color: #eee;
  color: #333;
  margin: 0 5px;
  padding: 10px 20px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-tabs .nav-link.active {
  background-color: var(--mainColor);
  color: white;
}

.tab-content {
  padding: 20px;
  border-radius: 12px;
}

.tab-content .tab-pane {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease-in-out;
}

.tab-content .tab-pane.active.show {
  opacity: 1;
  transform: translateY(0);
}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 40px;
  left: 30px;
  z-index: 99;
  font-size: 18px;
  border: none;
  outline: none;
  background-color: var(--mainColor, #4b3b94);
  color: white;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s;
}

#backToTopBtn:hover {
  background-color: #3a2d7d;
}

.card {
  background-color: #fff;
  border-radius: 12px;
}

.input-with-icon {
  position: relative;
}

.floating-label {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
  font-size: 0.9rem;
}

.edit-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--mainColor);
  cursor: pointer;
}

.form-group .inputForm {
  padding-left: 50px;
  text-align: end;
}

.navbar-toggler {
  border-color: white;
}

.navbar-toggler-icon {
  background-color: transparent;
  background-image: none;
}

.navbar-toggler-icon::before {
  content: "\2630";
  color: white;
  font-size: 1.5rem;
}

.toggler-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: #fff;
}
