@font-face {
  font-family: 'KrishnaBoldItalic';
  src: url('/krishna-font/KrishnaBoldItalic-2V7v.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
  font-display: swap;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== Image Protection ===== */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  pointer-events: none;
}

/* Re-enable pointer events on interactive elements that contain images */
a img,
button img,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators button {
  pointer-events: auto;
}

/* Transparent overlay on product/team image containers to block direct access */
.card .card-img-top,
.carousel-item img,
.img-protected {
  position: relative;
}

.card,
.carousel-item,
.img-protect-wrap {
  position: relative;
}

.card::after,
.carousel-item::after,
.img-protect-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  pointer-events: auto;
  z-index: 1;
}

/* Ensure all card content stays clickable above the image-protection overlay */
.card > *,
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators {
  position: relative;
  z-index: 2;
}

/* Prevent touch callout (iOS "Save Image") */
img {
  -webkit-touch-callout: none;
}

/* ===== Category Panel Styles ===== */
.category-panel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.category-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.category-panel-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #bbb 0%, #888 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
  transition: background 0.5s ease;
}

.category-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%, rgba(0,0,0,0) 100%);
  transition: background 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.category-panel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 10px;
  pointer-events: none;
}

.category-panel-label span {
  display: inline-block;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 3px;
  padding: 8px 22px;
  border: 2px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(2px);
  transition: all 0.4s ease;
}

/* Hover Effects */
.category-panel:hover .category-panel-img {
  transform: scale(1.1);
  filter: brightness(0.85);
}

.category-panel:hover .category-panel-placeholder {
  background: linear-gradient(135deg, #999 0%, #666 100%);
}

.category-panel:hover .category-panel-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
}

.category-panel:hover .category-panel-label span {
  background: rgba(255,255,255,0.18);
  border-color: #fff;
  letter-spacing: 5px;
  padding: 10px 28px;
}

/* Ensure panels are clickable above image protection overlay */
.category-panel,
.category-panel a {
  z-index: 3;
  position: relative;
}

/* ===== Hero Carousel Styles ===== */
.hero-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-carousel .carousel-item {
  position: relative;
}

.hero-carousel-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 576px) {
  .hero-carousel-img {
    height: 260px;
  }
}

@media (min-width: 768px) {
  .hero-carousel-img {
    height: 300px;
  }
}

@media (min-width: 1200px) {
  .hero-carousel-img {
    height: 360px;
  }
}

/* Overlay gradient — adapts to text alignment */
.hero-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-carousel-overlay-left {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-carousel-overlay-center {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.hero-carousel-overlay-right {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.hero-carousel-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  padding: 1rem 2.5rem;
  max-width: 55%;
}

/* Alignment variants */
.hero-carousel-caption-left {
  left: 0;
  text-align: left;
}

.hero-carousel-caption-center {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 70%;
}

.hero-carousel-caption-right {
  right: 0;
  left: auto;
  text-align: right;
}

@media (max-width: 575px) {
  .hero-carousel-caption {
    padding: 0.75rem 1rem;
    max-width: 80%;
  }
  .hero-carousel-caption-center {
    max-width: 90%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .hero-carousel-caption {
    padding: 1rem 1.5rem;
    max-width: 75%;
  }
}

@media (min-width: 1200px) {
  .hero-carousel-caption {
    padding: 2rem 3.5rem;
    max-width: 50%;
  }
}

.hero-carousel-headline {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (min-width: 576px) {
  .hero-carousel-headline {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 768px) {
  .hero-carousel-headline {
    font-size: 2rem;
    margin-bottom: 0.6rem;
  }
}

@media (min-width: 1200px) {
  .hero-carousel-headline {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }
}

.hero-carousel-subtext {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-style: italic;
  max-width: 500px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  margin-bottom: 0.25rem;
}

@media (min-width: 576px) {
  .hero-carousel-subtext {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .hero-carousel-subtext {
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .hero-carousel-subtext {
    font-size: 1.1rem;
  }
}

/* Hide Shop Now button on very small screens to avoid crowding */
@media (max-width: 575px) {
  .hero-carousel-caption .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
}

.hero-carousel-caption-center .hero-carousel-subtext {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.hero-carousel-caption-right .hero-carousel-subtext {
  margin-left: auto;
}

.hero-carousel .carousel-indicators {
  justify-content: flex-end;
  padding-right: 1rem;
  margin-bottom: 0.5rem;
}

.hero-carousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background-color: transparent;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.hero-carousel .carousel-indicators button.active {
  background-color: #0dcaf0;
  border-color: #0dcaf0;
  opacity: 1;
}

/* Carousel prev/next controls — bottom right */
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  position: absolute;
  top: auto;
  bottom: 0.5rem;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  opacity: 0.8;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.hero-carousel .carousel-control-prev {
  left: auto;
  right: 4rem;
}

.hero-carousel .carousel-control-next {
  left: auto;
  right: 1.5rem;
}

@media (min-width: 768px) {
  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 36px;
    height: 36px;
    bottom: 0.75rem;
  }
  .hero-carousel .carousel-control-prev {
    right: 4.5rem;
  }
  .hero-carousel .carousel-control-next {
    right: 1.75rem;
  }
  .hero-carousel .carousel-indicators {
    padding-right: 2rem;
    margin-bottom: 0.75rem;
  }
  .hero-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
  }
}

/* Disable the image-protection ::after overlay on hero carousel items */
.hero-carousel .carousel-item::after {
  display: none;
}

/* Fallback hero when no banners — peacock feather background */
.hero-fallback {
  position: relative;
  padding: 3rem 0;
  min-height: 220px;
  background: url('/images/peacock-feather.jpg') center/cover no-repeat;
}

.hero-fallback::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-fallback > * {
  position: relative;
  z-index: 1;
}

@media (min-width: 576px) {
  .hero-fallback {
    min-height: 260px;
  }
}

@media (min-width: 768px) {
  .hero-fallback {
    min-height: 300px;
    padding: 4rem 0;
  }
}

@media (min-width: 1200px) {
  .hero-fallback {
    min-height: 360px;
  }
}