/* =========================
   RESET & BASE
   ========================= */
html, body {
  touch-action: manipulation;
}

body {
  opacity: 0;
  transition: opacity 0.25s ease;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  -webkit-text-size-adjust: 100%;
}

img {
  pointer-events: none;
  user-select: none;
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes rotateYAnim {
  0%, 20%   { transform: scale(1.25) rotateY(0deg); }
  40%       { transform: scale(1.25) rotateY(180deg); }
  60%       { transform: scale(1.25) rotateY(360deg); }
  100%      { transform: scale(1.25) rotateY(360deg); }
}

@keyframes colorShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pop {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* =========================
   HEADER
   ========================= */
.header {
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(90deg, #e91e63 0%, #fce4ec 50%, #e91e63 100%);
  padding: 10px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: fixed;
  top: 0;
  z-index: 1000;
  color: white;
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
}

#header-idx {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  transition: top 0.3s, bottom 0.3s;
}

.top-row,
.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hidden {
  display: none;
}

/* =========================
   SEARCH BAR & ICONS
   ========================= */
.search-bar {
  padding-right: 70px;          /* space for both icons */
  flex-grow: 1;
  border-radius: 999px !important;
}

.search-bar::placeholder {
  color: #4a4a4a;
  font-weight: 500;
}

.search-icon {
  position: absolute;
  right: 42px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: #3f3f3f;
  pointer-events: none;
}

.mic-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #28a745;
}

.icons {
  display: flex;
  gap: 15px;
}

/* =========================
   LOGO
   ========================= */
.logo {
  display: inline-flex;
  align-items: center;
  color: black;
}

.double-hassi {
  font-size: 5px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-right: -60px;
  margin-bottom: 15px;
  position: relative;
  top: -4px;
}

.anand {
  font-size: 30px;
  font-weight: bold;
  margin-right: 3px;
}

.fa-face-smile {
  font-size: 25px;
  color: black;
}

/* =========================
   SIDEBAR
   ========================= */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, #fff5fa 0%, #fde7f0 40%, #ffffff 70%, #fde7f0 100%);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidenav .brand-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.nav-link {
  padding: 15px 25px;
  color: #ff1493 !important;
  display: flex;
  align-items: center;
  border-radius: 8px;
  margin: 8px 0;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background-color: rgba(255,255,255,0.4);
}

.nav-link i {
  font-size: 1.2rem;
  width: 30px;
  margin-left: 15px;
}

.nav-header {
  position: relative;
  padding: 10px 16px 20px;
}

.closebtn {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 32px;
  color: #c2185b;
  text-decoration: none;
}

/* =========================
   SERVICE MESSAGE
   ========================= */
#service-message {
  padding: 12px;
  margin: 10px 0;
  border-radius: 12px;
  background: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1050;
}

.fixed-top-message {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  right: 0;
  margin: 0 !important;
  background: linear-gradient(
  to bottom,
  #ffe6eb 0%,
  #fff5f7 25%,
  #ffffff 50%,
  #fff5f7 75%,
  #ffe6eb 100%
)!important;
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* =========================
   SERVICE CARD
   ========================= */
.service-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px;
  margin: 10px 12px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  font-family: system-ui, -apple-system, sans-serif;
}

.service-card .left {
  display: flex;
  gap: 10px;
}

.service-card .icon {
  font-size: 18px;
  margin-top: 2px;
}

.service-card .text strong {
  font-size: 14px;
  color: #222;
}

.service-card small {
  font-size: 11.5px;
  display: block;
}

.service-card.success small,
.service-card.success .icon {
  color: #2e7d32;
}

.service-card.error small,
.service-card.error .icon {
  color: #c62828;
}

.service-card.warning small,
.service-card.warning .icon {
  color: #ef6c00;
}

/* =========================
   CHANGE BUTTON
   ========================= */
.change-btn {
  border: none;
  background: linear-gradient(90deg, #e6f9ec 20%, #ffffff 50%, #e6f9ec 100%);
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(255, 182, 213, 0.4);
}

/* =========================
   CATEGORIES SECTION
   ========================= */
.categories h2 {
  background: linear-gradient(90deg, #f8d7e2 20%, #ffffff 50%, #f8d7e2 100%);
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
  letter-spacing: 1px;
}

/* =========================
   USER BUTTON & ICON
   ========================= */
.user-btn {
  display: inline-flex;
  align-items: center;
}

.user-icon {
  display: inline-block;
  transform: scale(1.25);
  transform-origin: center;
  background: linear-gradient(90deg,
    #ffffff, #1f2a44, #0f766e, #7c3aed,
    #f97316, #22c55e, #06b6d4);
  background-size: 500% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rotateYAnim 8s ease-in-out infinite,
             colorShift 10s linear infinite;
}

/* =========================
   CAROUSEL
   ========================= */
#offerCarousel {
  margin: 0 8px;
}

.carousel-inner img {
  border-radius: 20px;
}

.carousel-indicators {
  position: static;
  margin-top: 10px;
  justify-content: center;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #555;
  margin: 0 5px;
  opacity: 0.5;
}

.carousel-indicators .active {
  background-color: #000;
  opacity: 1;
}

/* =========================
   SOCIAL SECTION
   ========================= */
.social-section {
  margin-top: 25px;
  text-align: center;
}

.social-title {
  font-size: 0.85rem;
  color: #6a1b9a;
  margin-bottom: 10px;
  display: block;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: transform 0.3s ease;
}

.social-icon.facebook { background: #1877f2; }
.social-icon.instagram { background: #e1306c; }
.social-icon.youtube { background: #ff0000; }

.social-icon:hover {
  transform: scale(1.12);
}

/* =========================
   PIN MODAL
   ========================= */
.pin-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.pin-box {
  width: 90%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: pop 0.3s ease;
}

.pin-header i {
  font-size: 32px;
  color: #ff2e63;
}

.pin-header h3 {
  margin: 8px 0 2px;
  font-weight: 700;
}

.pin-header small {
  color: #555;
}

#pinInput {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 16px;
  text-align: center;
  letter-spacing: 2px;
  outline: none;
}

#pinInput:focus {
  border-color: #ff2e63;
  box-shadow: 0 0 6px rgba(255,46,99,0.3);
}

.pin-submit {
  margin-top: 12px;
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #ff2e63, #ff7a18);
  color: #fff;
  font-weight: 600;
}

.pin-note {
  font-size: 12px;
  margin-top: 8px;
  color: #666;
}

/* =========================
   RESPONSIVE: MOBILE (max-width:480px)
   ========================= */
@media (max-width: 480px) {
  .header {
    padding: 10px 12px;
  }
  .double-hassi {
    margin-right: -40px;
  }
  .categories h2 {
    font-size: 1.5rem;
  }
  .search-bar {
    min-width: 0;
  }
}