@import url("responsive.css");

/* CSS Variables (Easy to customize later) */
:root {
  /* --bg-color: #ffffff; */
  --text-color: #212529;
  --nav-bg: #ffffff;
  --primary-color: #0d6efd;
  --default-color: #000;
  --footer-bg: #f8f9fa; /* light footer */
  --light_border_color: #fff;
}

body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#colorThemeSelect,
.lang_select {
  display: none;
}

.navbar {
  background-color: var(--nav-bg) !important;
}

/* DARK THEME */
body.theme-dark {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --nav-bg: #1e1e1e;
  --footer-bg: #1e1e1e; /* dark footer */
}

body.theme-dark footer.bg-light {
  background-color: var(--bg-color) !important;
}

body.theme-dark .bg-light .text-muted.small {
  color: var(--text-color) !important;
}

body.theme-dark .category-card {
  background: #1e1e1e;
}

body.theme-dark .dark_card {
  background: #1e1e1e;
}

body.theme-dark .category-item p,
body.theme-dark h5 {
  color: #f1f1f1;
}

.category-card h5 {
  color: #000;
}

/* CUSTMIZE THEME */
body.theme-blue {
  --primary-color: #0d6efd;
  --bg-color: #0d6efd;
  --text-color: #fff;
}
body.theme-green {
  --primary-color: #198754;
  --bg-color: #198754;
  --text-color: #fff;
}
body.theme-orange {
  --primary-color: #fd7e14;
  --bg-color: #fd7e14;
  --text-color: #fff;
}
body.theme-purple {
  --primary-color: #6f42c1;
  --bg-color: #6f42c1;
  --text-color: #fff;
}
body.theme-red {
  --primary-color: #dc3545;
  --bg-color: #dc3545;
  --text-color: #fff;
}

body.theme-light.theme-blue footer .text-muted.small,
body.theme-light.theme-green footer .text-muted.small,
body.theme-light.theme-orange footer .text-muted.small,
body.theme-light.theme-purple footer .text-muted.small,
body.theme-light.theme-red footer .text-muted.small {
  color: var(--text-color) !important;
}

.theme-dark .category_data .btn-outline-dark {
  border-color: var(--light_border_color) !important;
}

footer > div {
  background-color: var(--footer-bg, transparent);
  transition: background-color 0.3s ease;
}

.pointer {
  cursor: pointer;
}

.e_wrapper {
  max-width: 1600px;
}

.theme-dark .text_white {
  color: var(--text-color);
}

.theme-dark .text_white.text-muted {
  color: var(--text-color) !important;
}

.theme-dark hr {
  color: var(--text-color) !important;
}

.qty-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-actions button:disabled {
  pointer-events: none;
}

.product-slider:hover .slick-track {
  animation-play-state: paused !important;
}

/* Header */

.main-search .input-group {
  background: #f1f3f6;
  border-radius: 8px;
}

.main-search input {
  background-color: #dfe8f9;
  box-shadow: none;
  border-radius: 6px !important;
}

.main-search input:focus {
  box-shadow: none;
}

.main-search .fa-magnifying-glass {
  color: var(--bs-navbar-brand-color);
}

#mainNavbar a {
  color: var(--default-color);
}

.main-search .input-group i {
  top: 10px;
  left: 10px;
  z-index: 9;
}

#mainNavbar li {
  list-style-type: none;
}

/* ================= LOADER OVERLAY ================= */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

/* show loader */
.loader-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================= SPINNER ================= */
.loader {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--primary-color, #0d6efd);
  animation: spin 0.8s linear infinite;
}

body.theme-dark .loader-overlay {
  background: rgba(255, 255, 255, 0.7);
}

body.theme-light .loader-overlay {
  background: rgba(0, 0, 0, 0.75);
}

/* Spinner animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Main Sectoin */

.product-card img {
  object-fit: none;
}

.product-card {
  padding: 12px;
  overflow: hidden;
  border: 1px solid #ddd !important;
  border-radius: 12px !important;
}

.card_img {
  background-color: #efece7;
  border-radius: 12px;
}

.category-card {
  background: #fff;
}

.category-item img {
  width: 100%;
  height: 130px;
}

.category-item p {
  font-size: 14px;
  line-height: 1.3;
  color: #000;
}

.trend-product .slick-next {
  right: 20px;
}

.trend-product .slick-prev {
  left: 20px;
  z-index: 1;
}

.product-card img {
  height: 120px;
  object-fit: contain;
}

.product-title {
  font-size: 14px;
  line-height: 1.2;
  min-height: 20px;
}

.product-card .btn {
  background-color: #6bc9a4;
  border: none;
}

.product-card .btn:hover {
  background-color: #58b995;
}

.product-card .card img {
  height: 160px;
  object-fit: contain;
}

.product-card .card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 11px;
}

.card p {
  font-size: 13px;
}

.btn-warning {
  width: 32px;
  height: 32px;
  padding: 0;
}

/* Cart */

.cart-card,
.price-card {
  border-radius: 6px;
  border: none;
}

.cart-header {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
}

.cart-item {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}

.cart-img {
  width: 90px;
  height: auto;
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.qty-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-actions button {
  border: 1px solid var(--border-color);
  background: transparent;
  padding: 2px 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  margin-left: 10px;
}

.cart-footer {
  padding: 16px;
  text-align: right;
}

.place-order-btn {
  background: #ff6f00;
  color: #fff;
  font-weight: 600;
  padding: 10px 30px;
  border: none;
}

.price-title {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 15px;
  color: var(--muted-text);
}

/* Hove Banner Effect Css */
.hover_banner {
  position: relative;
  overflow: hidden;
}

.hover_banner > a::after,
.hover_banner > a::before {
  content: "";
  opacity: 0;
  position: absolute;
  transition: 0.35s;
  z-index: 1;
}

.hover_banner > a::before {
  border-bottom: 1px solid rgb(255, 255, 255);
  border-top: 1px solid rgb(255, 255, 255);
  inset: 20px 10px;
  transform: scale(1, 0);
}

.hover_banner a img {
  transform: scale(1);
  transition: 0.35s;
  width: 100%;
}

.block-img {
  margin-bottom: 30px;
}

.img-responsive {
  max-width: 100%;
  height: auto;
}

.hover_banner > a::after,
.hover_banner > a::before {
  content: "";
  opacity: 0;
  position: absolute;
  transition: 0.35s;
  z-index: 1;
}

.hover_banner > a::after {
  border-left: 1px solid rgb(255, 255, 255);
  border-right: 1px solid rgb(255, 255, 255);
  inset: 10px 20px;
  transform: scale(0, 1);
}

.hover_banner:hover > a::before,
.hover_banner:hover > a::after {
  opacity: 1;
  transform: scale(1);
}

.hover_banner:hover a img {
  transform: scale(1.05);
}

.hover_banner:hover > a::before,
.hover_banner:hover > a::after {
  opacity: 1;
  transform: scale(1);
}

.hover_banner > a:before {
  border-bottom: 1px solid #fff;
  border-top: 1px solid #fff;
  bottom: 20px;
  left: 10px;
  right: 10px;
  top: 20px;
  -webkit-transform: scale(1, 0);
  -ms-transform: scale(1, 0);
  -o-transform: scale(1, 0);
  transform: scale(1, 0);
}

.hover_banner > a:before {
  border-bottom: 1px solid #fff;
  border-top: 1px solid #fff;
  bottom: 20px;
  left: 10px;
  right: 10px;
  top: 20px;
  -webkit-transform: scale(1, 0);
  -ms-transform: scale(1, 0);
  -o-transform: scale(1, 0);
  transform: scale(1, 0);
}

/* *********************** */

.best_selling_product_item {
  overflow: hidden;
  margin-top: 25px;
  position: relative;
  height: 400px;
  border-radius: 16px;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.best_selling_product_item .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
}

.best_selling_product_item .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
}

.title {
  display: block;
  color: var(--colorBlack);
  font-size: 18px;
  font-weight: 600;
  text-transform: capitalize;
  transition: all linear 0.3s;
  -webkit-transition: all linear 0.3s;
  -moz-transition: all linear 0.3s;
  -ms-transition: all linear 0.3s;
  -o-transition: all linear 0.3s;
  font-family: var(--headingFont);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.best_selling_product_item .text p {
  font-size: 24px;
  font-family: var(--cursiveFont);
  letter-spacing: 2px;
  font-weight: 900;
  color: var(--themeColorTwo);
}

.best_selling_product_item .text .buy_btn {
  text-transform: capitalize;
  border-bottom: 1px solid #ffa500;
  color: var(--colorBlack);
  margin-top: 15px;
  font-size: 14px;
  font-weight: 500;
  transition: all linear 0.3s;
  -webkit-transition: all linear 0.3s;
  -moz-transition: all linear 0.3s;
  -ms-transition: all linear 0.3s;
  -o-transition: all linear 0.3s;
}

.best_selling_product_item .text .buy_btn i {
  margin-left: 5px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

/* *********************** */

.best_selling_product_item_large .text {
  position: absolute;
  top: 50%;
  left: 30px;
  width: 45%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

/* Login css */

.login_form > div,
.auth-card.login_form {
  background: cornsilk;
  border-radius: 15px;
}

.Login_wrapper main {
  width: 80%;
  height: 50%;
  background-color: #ffffff;
  margin: 100px auto;
  border-radius: 15px;
  box-shadow: 1px 2px 5px 10px rgba(0, 0, 0, 0.07);
  -webkit-box-shadow: 1px 2px 5px 10px rgba(0, 0, 0, 0.07);
  -moz-box-shadow: 1px 2px 5px 10px rgba(0, 0, 0, 0.07);
}

.Login_wrapper main .title {
  text-align: center;
  font-family: "Courgette", cursive;
  font-size: 40px;
  margin: 60px 0px;
}

#rememberMe {
  padding: 10px;
}

.Login_wrapper main form button {
  display: block;
  margin: 30px auto;
  width: 100px;
}

.Login_wrapper main form button:hover {
  transition: 0.5s;
}

.Login_wrapper main form input:focus {
  box-shadow: none;
  transition: 0.5s;
}

.login_form .carousel-inner {
  border-radius: 0 15px 15px 0;
}
