/* Common CSS for reusability */

/* --- Buttons --- */
.btn-common-primary {
  background: linear-gradient(180deg, #21b9ff 0%, #00a5f1 100%);
  border-radius: 200px;
  border: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  height: 50px;
  width: 100%; /* Default to full width of container or adjusted via utility */
  max-width: 335px; /* Max width usually seen in designs */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-common-primary:disabled,
.btn-common-primary.disabled {
  background: linear-gradient(
    180deg,
    rgba(33, 185, 255, 0.5) 0%,
    rgba(0, 165, 241, 0.5) 100%
  );
  cursor: not-allowed;
}

.btn-common-primary:hover:not(:disabled) {
  opacity: 0.9;
}

/* Delete Button (Small Circle) */
.btn-circle-delete {
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Clear Button (Small Circle) */
.btn-circle-clear {
  background: #6c757d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* --- Alerts / Banners --- */
.alert-banner-error {
  background: #fdecea;
  border-color: #fdecea;
  color: #1f1f1f;
  border-radius: 8px; /* Assuming rounded corners */
  padding: 12px 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.alert-link-error {
  color: #dc3545;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* --- Modals --- */
/* Custom styling for Bootstrap modals if needed generally */
.modal-content-custom {
  border-radius: 15px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-title-custom {
  font-weight: 700;
  color: #303030;
}

/* Close button absolute positioning helper */
.modal-close-abs {
  position: absolute;
  right: 15px;
  top: 10px;
  z-index: 10;
}

/* --- Skeleton Loading Animations --- */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton-loading {
  background: #f6f7f8;
  background-image: linear-gradient(
    to right,
    #f6f7f8 0%,
    #edeef1 20%,
    #f6f7f8 40%,
    #f6f7f8 100%
  );
  background-repeat: no-repeat;
  background-size: 800px 104px;
  display: inline-block;
  position: relative;
  animation: shimmer 1s linear infinite forwards;
  border-radius: 4px;
}

.skeleton-text {
  height: 12px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 20px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-img {
  width: 100%;
  height: 100%;
}

.skeleton-box {
  width: 100%;
  height: 50px;
}

/* --- Scroll Lock Utility --- */
body.body-scroll-locked {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
}

/* --- Global Overlay Hardening --- */
.modal,
.modal-backdrop,
.offcanvas,
.offcanvas-backdrop,
.custom-pincode-modal,
.mobile-sort-modal,
.mobile-filter-modal,
.mobile-fullscreen-overlay,
#acc-slider-container,
#acc-slider-overlay,
#tt-hc-overlay,
#tt-extend-overlay {
  overscroll-behavior: contain;
}

/* Ensure backdrops capture all pointer events and have correct z-index */
.modal-backdrop,
.offcanvas-backdrop,
#acc-slider-overlay,
#tt-hc-overlay,
#tt-extend-overlay,
.custom-pincode-modal::before {
  pointer-events: auto;
}

/* --- Navbar Visibility (Prevent Flicker) --- */
/* Hide mobile navbar on desktop */
@media (min-width: 768px) {
  #mobile-cart-navbar {
    display: none !important;
  }
}

/* Hide desktop navbar on mobile */
@media (max-width: 767px) {
  .header-area {
    display: none !important;
  }
  #mobile-cart-navbar {
    display: flex !important;
  }
}

.modal-content {
  display: block;
}
