@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");

body {
  font-family: "Inter", sans-serif;
  background-color: #fff;
  color: #222;
  padding-bottom: 50px;
}

/* ====== Topbar ====== */
.topbar {
  background-color: #fff;
  font-size: 0.85rem;
  border-bottom: 1px solid #eee;
  font-weight: 600;
  position: relative;
  z-index: 1020;
}

.topbar .btn-primary {
  background-color: #5988ff;
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(89, 136, 255, 0.25);
}

.topbar .btn-primary:hover {
  background-color: #3a6dff;
}

.topbar a.text-dark:hover {
  color: #5988ff !important;
}

.topbar form input {
  font-size: 0.9rem;
}

/* Responsive layout */
@media (max-width: 991px) {
  .topbar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .topbar .text-muted.d-none.d-lg-inline {
    display: none !important;
  }

  .topbar .btn-primary {
    align-self: center;
  }

  .topbar form {
    margin-top: 0.25rem;
  }
}

/* Navbar */
.navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar .nav-link {
  display: flex;
  align-items: center;
  height: 100%;
  font-weight: bold;
  color: #555;
  transition: 0.2s;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.navbar .dropdown-menu {
  pointer-events: auto;
  padding-top: 0.5rem;
}

.navbar .nav-link.active {
  color: #5988ff;
}

.navbar .nav-link:hover {
  color: #5988ff;
}

.navbar-nav {
  gap: 0;
}

.navbar-brand img {
  height: 42px;
  width: auto;
}

/* Megamenu base */
.dropdown-mega.position-static {
  position: static;
}
/* needed for full-width */
.mega-menu {
  left: 0;
  right: 0;
}

/* Titles and link style inside mega */
.mega-title {
  letter-spacing: 0.04em;
  font-weight: 700;
  color: #222;
}

.mega-links .dropdown-item {
  padding: 0.35rem 0;
  font-weight: 500;
  color: #555;
}
.mega-links .dropdown-item:hover {
  background: transparent;
  color: #5988ff;
}

/* Promo tile */
.promo-tile {
  background: linear-gradient(180deg, #eef7ff, #ffffff);
  border: 1px solid #f0f3ff;
}
.promo-art {
  max-width: 120px;
  transform: translateY(4px);
}

.navbar .dropdown-menu,
.navbar .mega-menu {
  margin-top: 0 !important;
  top: 100%;
  padding: 0;
}

/* Mobile behavior: stacked columns, remove shadows for simplicity */
@media (max-width: 991px) {
  .navbar .dropdown-menu.mega-menu {
    box-shadow: none;
    border-radius: 0;
  }
  .mega-links .dropdown-item {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Collapse icon rotation */
button[data-bs-toggle="collapse"][aria-expanded="true"] i {
  transform: rotate(180deg);
  transition: 0.3s;
}
button[data-bs-toggle="collapse"] i {
  transition: 0.3s;
}

/* Dropdown Style */
.dropdown-menu {
  min-width: 240px;
  border-radius: 0;
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.25s ease both;
}

.dropdown-item {
  font-weight: bold;
  color: #555;
  padding: 10px 18px;
}
.dropdown-item:hover {
  background-color: #f2f6ff;
  color: #5988ff;
}

.dropdown-divider {
  margin: 5px 0;
  opacity: 0.15;
}

/* ====== Mobile Search Overlay ====== */
.mobile-search-bar {
  position: relative;
  z-index: 1050;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.mobile-search-bar form button {
  padding: 0;
}

#mobileSearchInput {
  padding-right: 4rem; /* ensures both icons fit inside input */
}

.mobile-search-bar.show {
  animation: slideDown 0.25s ease forwards;
}

@keyframes slideDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.btn-close-overlay {
  background: none;
  border: none;
  color: #444;
  transition: color 0.2s ease;
}

.btn-close-overlay:hover {
  color: #5988ff;
}

/* @media (min-width: 992px) {
  .mobile-search-overlay {
    display: none !important;
  }
} */

/* ===== FIX NORMAL DROPDOWN + MEGAMENU BEHAVIOR ===== */
@media (min-width: 992px) {
  /* Hide both by default */
  .navbar .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    margin-top: 0 !important;
    transition: all 0.2s ease-in-out;
  }

  .navbar .dropdown-regular > .dropdown-menu {
    margin-top: 26px !important;
    top: calc(100% - 2px);
    /* border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem; */
  }

  /* ========== NORMAL DROPDOWN (only .dropdown-regular) ========== */
  .navbar .dropdown-regular:hover > .dropdown-menu,
  .navbar .dropdown-regular .dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .navbar .dropdown-regular {
    position: relative;
  }
  .navbar .dropdown-regular::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 6px; /* invisible bridge */
  }

  /* ========== MEGA MENU (only .dropdown-mega) ========== */
  .navbar .dropdown-mega .mega-menu {
    opacity: 0;
    visibility: hidden;
    margin-top: 0 !important;
    transition: all 0.2s ease-in-out;
  }

  .navbar .dropdown-mega:hover > .mega-menu,
  .navbar .dropdown-mega .mega-menu:hover {
    opacity: 1;
    visibility: visible;
  }
}

/* Fade animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile optimization */
@media (max-width: 991px) {
  .dropdown-menu {
    box-shadow: none;
    border-radius: 0;
  }
}

/* Offcanvas styling */
.offcanvas {
  width: 290px;
  border-right: 1px solid #eee;
}
.list-group-item {
  border: none;
}
.list-group-item:hover {
  background-color: #f7f9ff;
}
.list-group-item small {
  color: #555;
}
.list-group-item-action:focus {
  background: #f5f7fb;
  box-shadow: none;
}

/* Offcanvas nested collapses styling */
#mobileMenu .list-group-item {
  border: none;
  font-size: 0.95rem;
}
#mobileMenu .list-group-item i {
  transition: transform 0.3s;
}
#mobileMenu button[aria-expanded="true"] i {
  transform: rotate(180deg);
}
#mobileMenu .collapse .list-group-item {
  font-size: 0.85rem;
  color: #555;
}
#mobileMenu .collapse .list-group-item:hover {
  color: #5988ff;
  background: #f8faff;
}

/* ===== CART ITEM STYLING ===== */
.cart-item {
  background: #fff;
  border: 1px solid #eee;
  transition: all 0.2s ease-in-out;
}

.cart-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

.btn-qty {
  background-color: #f5f7fb;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  line-height: 1;
  padding: 0;
  color: #444;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-qty:hover {
  background-color: #5988ff;
  color: #fff;
  border-color: #5988ff;
}

.qty-input {
  width: 42px;
  height: 28px;
  border: 1px solid #ddd;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
}

.btn-remove {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.btn-remove:hover {
  opacity: 1;
}

#cartItems::-webkit-scrollbar {
  width: 6px;
}

#cartItems::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* ====== Hero Section ====== */
.hero-section {
  background-color: #f6f8fc;
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section .splide__slide {
  min-height: 350px;
  width: 100%;
  height: 80vh;
  min-height: 450px;
}

.hero-section .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-section .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* makes it behave like background-size: cover */
  object-position: center; /* centers image */
  display: block;
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

.hero-img {
  max-width: 90%;
  animation: floatY 4s ease-in-out infinite;
}

/* Text Styles */
.hero-section h1 {
  font-weight: 700;
  line-height: 1.2;
  color: #222;
}

.hero-section p {
  font-size: 1.05rem;
  color: #666;
}

.bg-orange {
  background-color: #ff6b4a !important;
  color: #fff !important;
}
.border-orange {
  border-color: #ff6b4a !important;
}

.hot-btn {
  text-decoration: none !important;
  border: none;
  border-bottom: 2px solid #222;
  border-radius: 0;
  padding-bottom: 4px;
  transition: all 0.2s ease;
}

.hot-btn:hover {
  border-bottom-color: #5988ff;
  color: #5988ff !important;
}

/* Buttons */
.btn-primary {
  background-color: #5988ff;
  border: none;
  box-shadow: 0 3px 10px rgba(89, 136, 255, 0.3);
}

.btn-primary:hover {
  background-color: #3a6dff;
}

.btn-outline-dark {
  border: 1px solid #222;
  color: #222;
  background: transparent;
}

.btn-outline-dark:hover {
  background-color: #222;
  color: #fff;
}

/* ====== Responsive Behavior ====== */
@media (max-width: 991px) {
  .hero-section {
    text-align: center;
  }

  .hero-img {
    display: none !important;
  }

  .hero-section .splide__slide {
    min-height: 350px;
    width: 100%;
    height: 50vh;
    min-height: 450px;
  }

  .hero-bg-circle {
    display: none;
  }

  .hero-section h1 {
    font-size: 2rem;
  }
  .navbar .d-none.d-lg-flex {
    display: none !important;
  }
}

@media screen and (max-width: 575px) {
  .hero-section h1 {
    font-size: 1.35rem;
  }

  .hero-section p {
    font-size: 0.8rem;
    color: #666;
  }
}

/* Bottom Tab Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
}
.bottom-nav a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #666;
  font-size: 13px;
}
.bottom-nav a i {
  font-size: 20px;
  display: block;
  margin-bottom: 2px;
}
.bottom-nav a.active,
.bottom-nav a:hover {
  color: #5988ff;
}
.bottom-nav .badge {
  font-size: 9px;
}

/* Hide bottom bar on large screens */
@media (min-width: 992px) {
  .bottom-nav {
    display: none;
  }
}

/* ===== PRODUCT SECTION ===== */
.product-section {
  background-color: #fff;
}

.promo-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.promo-card h6 {
  font-size: 0.9rem;
  color: #777;
}

.promo-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.shop-link {
  text-decoration: none;
  color: #ff6b00 !important;
  border: none;
  border-bottom: 2px solid #ff6b00;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.shop-link:hover {
  color: #ff6b00;
}

.promo-img {
  max-width: 120px;
  height: auto;
  transition: transform 0.4s ease;
}

.promo-card:hover .promo-img {
  transform: scale(1.05);
}

.bg-blue-light {
  background-color: #eef7ff !important;
}

@media (max-width: 767px) {
  .promo-card {
    text-align: center;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }
  .promo-img {
    max-width: 100px;
  }
}

/* ===== PRODUCT CARD HOVER ACTIONS ===== */
.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.product-img-box {
  position: relative;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff6b4a;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Hover icons */
.product-actions {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.product-card:hover .product-actions {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #5988ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.25s ease;
}

.action-btn:hover {
  background: #3a6dff;
  transform: scale(1.05);
}

/* Product Image */
.product-img {
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 767px) {
  .product-card img {
    max-height: 120px;
  }
  .action-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

/* ===== TESTIMONIAL SECTION ===== */
.testimonial-section {
  position: relative;
  background-color: #f9fafc;
}

.testimonial-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
  min-height: 320px;
}

.testimonial-card:hover {
  border-color: #5988ff;
  box-shadow: 0 10px 30px rgba(89, 136, 255, 0.1);
}

.testimonial-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #eef5ff;
}

.text-orange {
  color: #ff6b4a;
}

.splide__arrow {
  background-color: transparent;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #ddd;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.splide__arrow:hover {
  background-color: #ff6b4a;
  color: #ddd;
  border-color: #ff6b4a;
}

.splide__arrow svg {
  fill: #ddd;
  height: 1.2em;
  width: 1.2em;
}

.splide__pagination__page.is-active {
  background: #ff6b4a !important;
}

/* Responsive */
@media (max-width: 767px) {
  .testimonial-card {
    padding: 2rem 1.5rem;
  }
  .testimonial-img {
    width: 65px;
    height: 65px;
  }
}

/* ===== FOOTER ===== */
.footer-section {
  background-color: #fff;
  color: #222;
  padding: 3rem 0 2rem;
  border-top: 1px solid #c1c3c7;
}

.footer-section h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: #1f2937;
}

/* About Company */
.about-text {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Social Icons */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #c1c3c7;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.social-icon:hover {
  background-color: #5988ff;
  color: #fff;
  border-color: #5988ff;
  transform: translateY(-2px);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #5988ff;
  padding-left: 4px;
}

/* Contact Section */
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.icon-circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: 1.5px dotted #5988ff;
  border-radius: 50%;
  color: #5988ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 1rem;
}

.contact-text {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  padding-top: 0.25rem;
}

/* Footer Bottom */
.footer-divider {
  border: 0;
  border-top: 1px solid #c1c3c7;
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

.footer-copyright strong {
  color: #1f2937;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-bottom-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
  color: #5988ff;
}

@media (max-width: 991px) {
  .footer-section {
    padding: 2.5rem 0 1.5rem;
  }

  .footer-section h6 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767px) {
  .footer-section {
    padding: 2rem 0 1.5rem;
    padding-bottom: 5rem;
  }

  /* Left align on mobile */
  .footer-column {
    text-align: left;
    margin-bottom: 2rem;
  }

  .social-links {
    justify-content: flex-start;
  }

  .footer-links {
    text-align: left;
  }

  .footer-contact li {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .icon-circle {
    margin-right: 1rem;
    margin-bottom: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-bottom-links {
    justify-content: flex-start;
  }
}

@media (max-width: 575px) {
  .footer-bottom-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }
}

/* ===== Filter Sidebar ===== */
.filter-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 25px;
  color: #000;
}
.filter-box h5 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  position: relative;
}
.filter-box h5::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 4px;
  width: 3px;
  height: 18px;
  background-color: #5988ff;
  border-radius: 3px;
}

/* ===== PRODUCT HERO ===== */
.product-hero {
  background: url("https://klbtheme.com/medibazar/wp-content/uploads/2020/10/breadcrumb.jpg")
    center/cover no-repeat;
  min-height: 320px;
  position: relative;
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.product-hero h1 {
  position: relative;
  z-index: 1;
  color: #fff;
  letter-spacing: 0.5px;
  font-weight: 700;
}

/* Floating breadcrumb box */
.breadcrumb-box {
  bottom: -25px;
  padding: 12px 33px !important;
  z-index: 2;
  border: 1px solid #eee;
  font-size: 1rem !important;
  left: 25%;
}

/* Responsive */
@media (max-width: 767px) {
  .breadcrumb-box {
    padding: 8px 26px !important;
    left: 50%;
    font-size: 1rem !important;
  }
}

.breadcrumb {
  margin-bottom: 0;
  white-space: nowrap;
  overflow-x: auto;
  flex-wrap: nowrap !important;
  scrollbar-width: none; /* hide scrollbar on Firefox */
}
/* Custom breadcrumb divider: replace slash with arrow */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  font-size: 1rem;
  color: #999;
  vertical-align: middle;
  padding-right: 0.4rem;
  padding-left: 0.4rem;
}

.breadcrumb::-webkit-scrollbar {
  display: none; /* hide scrollbar on Chrome/Safari */
}

.breadcrumb-item {
  white-space: nowrap;
}

.breadcrumb a {
  color: #5988ff;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-item.active {
  color: #5988ff;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #5988ff !important;
}

/* Responsive */
@media (max-width: 767px) {
  .product-hero {
    min-height: 220px;
  }

  .breadcrumb-box {
    bottom: -20px;
    padding: 6px 16px;
  }

  .product-hero h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .breadcrumb {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    font-size: 0.85rem;
  }
}

/* ===== CUSTOM PAGINATION (CENTER + ROUND) ===== */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding-left: 0;
}

.custom-pagination .page-item {
  list-style: none;
}

.custom-pagination .page-link {
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  border: none;
  background-color: #eef0f3;
  color: #333;
  font-weight: 600;
  text-align: center;
  line-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.custom-pagination .page-item.active .page-link {
  background-color: #5988ff;
  color: #fff;
}

.custom-pagination .page-link:hover {
  background-color: #dbe4ff;
  color: #5988ff;
}

.custom-pagination .page-link i {
  font-size: 1rem;
  vertical-align: middle;
}

.featured-product-section {
  padding: 60px 0;
}

.section-header {
  font-size: 1.75rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #9b9b9b81;
}

.section-header p {
  color: #999;
  font-size: 0.95rem;
}

/* ===== PRODUCT DETAIL SPLIDE ===== */

/* ===== SHARE BUTTON STYLE ===== */
#shareToggle {
  background-color: #fff;
  transition: all 0.2s ease;
}
#shareToggle:hover {
  background-color: #f3f6ff;
  transform: scale(1.05);
}

/* Share Popup */
#shareLinks {
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.25s ease;
  z-index: 10;
  top: 50%;
  right: 120%;
  transform: translateY(-50%);
}

#shareLinks.show {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateY(65%) translateX(0);
}

/* Share Links */
#shareLinks a {
  color: #555;
  transition: color 0.2s ease, transform 0.2s ease;
}
#shareLinks a:hover {
  color: #5988ff;
  transform: translateY(-2px);
}

#main-slider {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

#main-slider .splide__slide img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #f8f9fa;
  border-radius: 10px;
}

#thumbnail-slider {
  margin-top: 15px;
}

#thumbnail-slider .splide__slide img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s ease;
}

#thumbnail-slider .splide__slide.is-active img,
#thumbnail-slider .splide__slide:hover img:not(.thumbnail) {
  border-color: #5988ff;
  box-shadow: 0 0 8px rgba(89, 136, 255, 0.25);
}

#thumbnail-slider .splide__slide:focus {
  outline: none !important;
  box-shadow: none !important;
}

#thumbnail-slider .splide__slide img {
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  object-fit: cover;
}

/* Highlight active thumbnail */
#thumbnail-slider .splide__slide.is-active img,
#thumbnail-slider .splide__slide:hover img:not(.thumbnail) {
  border-color: #5988ff !important;
  box-shadow: 0 0 0 3px rgba(89, 136, 255, 0.15);
  transform: scale(1.02);
}

/* Remove that weird circular focus highlight */
#thumbnail-slider .splide__arrow:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Optional: soft hover feedback */
#thumbnail-slider .splide__slide:hover img {
  border-color: #b6ceff;
}

.splide__track--nav > .splide__list > .splide__slide.is-active {
  border: none;
  box-shadow: none;
  outline: none !important;
}

@media (max-width: 767px) {
  #main-slider .splide__slide img {
    height: 280px;
  }
  #thumbnail-slider .splide__slide img {
    height: 70px;
  }
}

/* ===== PRODUCT DESCRIPTION & REVIEWS ===== */
.nav-tabs .nav-link {
  border: none;
  color: #222;
  font-weight: 600;
  background: transparent;
  position: relative;
}

.nav-tabs .nav-link.active {
  color: #5988ff;
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background-color: #5988ff;
  border-radius: 3px;
}

.nav-tabs {
  border-bottom: 1px solid #ddd;
}

textarea.form-control {
  resize: none;
}

.cart-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8f9fb;
  padding: 8px;
}

.qty-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-qty {
  background-color: #f5f7fb;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 1;
  padding: 0;
  color: #444;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-qty:hover {
  background-color: #5988ff;
  color: #fff;
  border-color: #5988ff;
}

.qty-input {
  width: 40px;
  height: 30px;
  border: 1px solid #ddd;
  text-align: center;
  border-radius: 6px;
  font-size: 14px;
}

.btn-remove {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.btn-remove:hover {
  opacity: 1;
}

/* Card hover for table */
.cart-item:hover {
  background-color: #f9fbff;
}

/* Mobile */
@media (max-width: 768px) {
  .cart-img {
    width: 60px;
    height: 60px;
  }
  .qty-box {
    gap: 4px;
  }
  .btn-qty {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
  .qty-input {
    width: 36px;
    height: 26px;
    font-size: 13px;
  }
}

.checkout-btn {
  font-size: small;
}

.checkout-form .form-control,
.checkout-form .form-select,
.checkout-form textarea {
  border: 1px solid #ddd;
  font-size: 0.95rem;
  padding: 10px 12px;
  box-shadow: none;
  transition: border-color 0.2s ease;
}

.checkout-form .form-control:focus,
.checkout-form .form-select:focus,
.checkout-form textarea:focus {
  border-color: #5988ff;
  box-shadow: 0 0 0 3px rgba(89, 136, 255, 0.15);
}

.checkout-form label {
  color: #444;
  font-weight: 600;
}

.card {
  border-radius: 5px !important;
}

.card table td,
.card table th {
  padding: 0.75rem 0;
}

.card button.btn {
  background: #5988ff;
  color: #fff;
}

@media (max-width: 991px) {
  .checkout-form {
    margin-bottom: 2rem;
  }
}

/* ===== Payment Accordion Styles ===== */
.accordion-item {
  border: 1px solid #e5e7eb !important;
  background: #fff;
  border-radius: 8px !important;
}

.accordion-button {
  background-color: #fff !important;
  color: #222 !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  box-shadow: none !important;
  border-radius: 8px !important;
  transition: all 0.25s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #f8faff !important;
  color: #5988ff !important;
  border-bottom: 1px solid #dee2e6;
}

.accordion-button::after {
  filter: brightness(0) saturate(100%) invert(55%) sepia(100%) saturate(340%)
    hue-rotate(202deg) brightness(98%) contrast(97%);
  transition: transform 0.25s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

.accordion-body {
  background-color: #fff;
  padding: 1rem;
  line-height: 1.6;
  border-top: 1px solid #f0f0f0;
}

/* ===== LOGIN PAGE STYLING ===== */
.login-section {
  background-color: #fff;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.login-form .form-control {
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.login-form .form-control:focus {
  border-color: #5988ff;
  box-shadow: 0 0 0 3px rgba(89, 136, 255, 0.15);
}

.login-form .btn-primary {
  background-color: #5988ff;
  border: none;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(89, 136, 255, 0.25);
}

.login-form .btn-primary:hover {
  background-color: #3a6dff;
}

.login-form a:hover {
  text-decoration: underline;
}

.toggle-password {
  border-color: #ddd;
  color: #777;
  transition: all 0.2s ease;
}

.toggle-password:hover {
  background-color: #f2f6ff;
  color: #5988ff;
}

/* ===== CUSTOMER DASHBOARD ===== */
.customer-dashboard .card {
  border-radius: 1rem;
}

.customer-dashboard .list-group-item {
  border: none;
  padding: 0.8rem 1.2rem;
  font-weight: 500;
}

.customer-dashboard .list-group-item.active {
  color: #fff;
  background-color: #5988ff;
  border-radius: 0;
}

.customer-dashboard .tab-content .card {
  transition: all 0.2s ease;
}

/* Mobile layout */
@media (max-width: 991px) {
  .customer-dashboard aside {
    order: 2;
  }
  .customer-dashboard .col-lg-9 {
    order: 1;
  }
}

/* ===== ORDERS TABLE (MATCH WISHLIST UI) ===== */
#orders .card-body {
  padding: 1.5rem;
}

#orders table {
  border-collapse: separate;
  border-spacing: 0 12px;
  width: 100%;
}

#orders thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #666;
  background: #f8f9fc;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
}

#orders tbody tr {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

#orders tbody tr:hover {
  background: #f9fbff;
  transform: translateY(-2px);
}

#orders tbody td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
  border-top: none;
}

#orders .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
}

#orders .btn-outline-primary {
  border-radius: 50px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(89, 136, 255, 0.15);
  transition: all 0.2s ease;
}

#orders .btn-outline-primary:hover {
  background-color: #5988ff;
  color: #fff;
}

@media (max-width: 767px) {
  #orders table {
    font-size: 0.85rem;
  }

  #orders tbody td {
    padding: 0.8rem 0.5rem;
  }

  #orders .btn-outline-primary {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
}

/* ===== WISHLIST TABLE FIX ===== */
#wishlist .card-body {
  padding: 1.5rem;
}

#wishlist table {
  border-collapse: separate;
  border-spacing: 0 12px;
}

#wishlist thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #666;
  background: #f8f9fc;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
}

#wishlist tbody tr {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

#wishlist tbody td {
  vertical-align: middle;
  padding: 1rem 0.75rem;
  border-top: none;
}

.wishlist-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  background: #f8f9fc;
  padding: 6px;
}

#wishlist .form-check-input {
  border-color: #ccc;
  cursor: pointer;
}

#wishlist .form-check-input:checked {
  background-color: #5988ff;
  border-color: #5988ff;
}

#wishlist .btn-light.text-danger {
  background: #f9f9f9;
  border: 1px solid #eee;
  width: 30px;
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#wishlist .btn-light.text-danger:hover {
  background-color: #ffecec;
  border-color: #ffb3b3;
  color: #dc3545;
}

/* ===== Wishlist Action Bar Responsive Fix ===== */
#wishlist .action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
}

/* Left group (Actions + Apply) */
#wishlist .action-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Select */
#wishlist .action-left select.form-select {
  width: 180px;
  max-width: 100%;
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border: 1px solid #ddd;
  background-color: #fff;
  transition: border-color 0.2s ease;
}

#wishlist .action-left select.form-select:focus {
  border-color: #5988ff;
  box-shadow: 0 0 0 3px rgba(89, 136, 255, 0.15);
}

/* Buttons */
#wishlist .action-left .btn,
#wishlist .action-right .btn {
  border-radius: 50px;
  padding: 0.45rem 1.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(89, 136, 255, 0.15);
}

#wishlist .action-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Hover subtle lift */
#wishlist .btn:hover {
  transform: translateY(-1px);
}

/* ===== Responsive layout ===== */
@media (max-width: 767px) {
    #wishlist .action-bar {
        flex-direction: column;
        align-items: stretch;
    }

    #wishlist .action-left,
    #wishlist .action-right {
        width: 100%;
        justify-content: center;
    }

    #wishlist .action-left select.form-select {
        width: 100%;
    }

    #wishlist .action-right .btn {
        flex: 1;
        text-align: center;
    } 
}

@media (max-width: 480px) {
    #wishlist .action-right {
        flex-direction: column;
        gap: 0.5rem;
    }

    #wishlist .action-right .btn {
        width: 100%;
        font-size: 0.9rem;
    }

}

/* ===== Compact Scrollable Tab Bar (Mobile) ===== */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 28px;
        width: auto;
    }
  .account-scroll-tabs {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 4px;
  }

  /* Hide scrollbar in Chrome, Safari, Edge */
  .account-scroll-tabs::-webkit-scrollbar {
    display: none;
  }

  .account-scroll-tabs button {
    border: 1px solid #5988ff;
    font-weight: 600;
    font-size: 0.8rem;
    line-height: 1.1;
    padding: 0.4rem 0.9rem;
    border-radius: 1.5rem;
    transition: all 0.2s ease;
    background-color: #fff;
    color: #5988ff;
    flex-shrink: 0;
  }

  .account-scroll-tabs button.active,
  .account-scroll-tabs button:focus {
    background-color: #5988ff !important;
    color: #fff !important ;
    border: 1px solid #5988ff !important;
  }

  .account-scroll-tabs i {
    font-size: 0.9rem;
    vertical-align: middle;
    margin-right: 4px;
  }

  .account-scroll-tabs {
    gap: 0.5rem !important;
  }
}
