:root {
  --primary-blue: #0A2357;
  --accent-pink: #E91E63;
  --cream-bg: #F9F7E8;
  --text-white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* body */

body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  color: #333;
  /* background:var(--cream-bg); */
}


/* headings */

h1,
h2,
h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--primary-blue);
}

/* HERO */

.products-hero {
  /* min-height: 400px; */
  display: flex;
  align-items: center;
  background: url("Images/cards-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0;

}

.hero-row {
    min-height: 250px;
}



/* animation of text on hero image */

@keyframes fadeUp {

  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-blue);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
}


.hero-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  color: #444;
  margin-top: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease forwards;
  animation-delay: .4s;
}

/* SEARCH BAR */

/* SEARCH BOX */
.search-box {
  max-width: 700px;
  margin: auto;
  background: white;
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 8px;
}

/* INPUT */
.search-box input {
  border: none;
  flex: 1;
  min-width: 0;              /* 🔥 IMPORTANT for shrink */
  padding: 12px 15px;
  outline: none;
  font-size: 14px;
}

/* BUTTON */
.search-btn {
  background: var(--accent-pink);
  color: white;
  border: none;
  padding: 10px 18px;        /* reduced */
  border-radius: 30px;
  white-space: nowrap;       /* prevent text break */
  font-family: 'Montserrat';
  transition: 0.3s;
}

.search-btn:hover {
  background: var(--primary-blue);
}


@media (max-width: 400px) {

  .search-box {
    flex-direction: column;     /* stack */
    border-radius: 20px;
  }

  .search-box input {
    width: 100%;
  }

  .search-btn {
    width: 100%;
    text-align: center;
  }

}




/* ================= PRODUCT SECTION ================= */
.product-tabs-section {
  padding: 50px 80px; /* equal space for floating icons */
  background: #fafafa;
  text-align: center;
}


/* TABS */
.tabs {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0;
  background: #f1f1f1;
  border-radius: 30px;
  padding: 5px;
  width: fit-content;
  margin: auto;
}

/* Sliding Background */
.tab-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  background: #e91e63;
  border-radius: 25px;
  transition: all 0.4s ease;
  z-index: 0;
}

/* Buttons */
.tab-btn {
  flex: 1;
  padding: 10px 22px;
  border: none;
  background: transparent;
  font-weight: 500;
  cursor: pointer;
  z-index: 1;
  color: #333;
  transition: color 0.3s ease;
  white-space: nowrap;   /* prevents text from going to next line */
  min-width: max-content; /* makes width grow based on text */
}

/* Active Text Color */
.tab-btn.active {
  color: #fff;
}




/* CATEGORY */
.category-title {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 15px;
}



/* ================= CAROUSEL ================= */
.carousel-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 0;
}

/* IMPORTANT: allows scroll to first card */
.carousel {
  scroll-padding-left: 10px;
}

.carousel::-webkit-scrollbar {
  display: none;
}




/* ================= CARD ================= */
.product-card {
  flex: 0 0 260px;
  max-width: 260px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 🔥 equal height fix */
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* IMAGE */
.product-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}

/* CONTENT */
.product-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px;
}

/* TITLE */
.product-content h4 {
  font-size: 15px;
  min-height: 40px; /* 🔥 equal title height */
}

/* RATING */
.rating {
  font-size: 13px;
  color: #f4c150;
  margin: 5px 0;
}

.rating span{
  color: #444;
}

/* DESCRIPTION */
.product-content p {
  font-size: 13px;
  color: #555;
  flex-grow: 1; /* pushes price + btn down */
}

/* PRICE */
.price {
  font-weight: 600;
  color: #0a2357;
  margin: 10px 0;
}

/* BUTTON */
.enquiry-btn {
  text-align: center;
  padding: 8px;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}

.enquiry-btn:hover {
  background: #1ebe5d;
}


/* ================= ARROWS ================= */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 50%;
  z-index: 5;
  cursor: pointer;
}

.arrow.left {
  left: -25px;
}

.arrow.right {
  right: -25px;
}





/* SEARCH RESULT BOX */
.search-results-wrapper {
  margin-bottom: 30px;
  padding: 20px;
  border-radius: 12px;
  background: #fafafa;
  /* box-shadow: 0 4px 12px rgba(0,0,0,0.05); */
}

/* RESPONSIVE */
@media (max-width:768px){
  .product-card {
    min-width: 220px;
  }

  .product-img img {
    height: 140px;
  }
}


/* TAB CONTENT VISIBILITY FIX */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}









/* FAQ */

.faq-section {

  background: #f8f9ff;
  padding: 70px 0;
}

.accordion-button {

  font-family: 'Montserrat';
  font-weight: 500;

}








/* Floating Contact Icons */ 

/* ================= FLOATING ACTIONS ================= */
.floating-actions {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

/* ICON BASE */
.floating-actions a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

/* HOVER */
.floating-actions a:hover {
  transform: scale(1.1);
}

/* ================= ICON COLORS ================= */
.f-mail {
  background: #4a86ff;
}

.f-phone {
  background: #3b60e4;
}

.f-whatsapp {
  background: var(--whatsapp-green);
}

.f-location {
  background: #ff5722;
}

.f-instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.f-youtube {
  background: #ff0000;
}

/* ================= MOBILE VISIBILITY CONTROL ================= */

/* Hide WhatsApp on desktop */
.floating-actions a.mobile-only {
  display: none;
}

/* Show WhatsApp only on mobile */
@media (max-width: 992px) {
  .floating-actions a.mobile-only {
    display: flex !important;
  }
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {
  .product-card {
    flex: 0 0 220px;
  }

  .arrow {
    width: 40px;
    height: 40px;
  }
}

/* < 840px → 2 cards */
@media (max-width: 840px) {

  .product-tabs-section {
    padding: 50px 70px;
  }

  .product-card {
    flex: 0 0 calc(50% - 12px);
    max-width: calc(50% - 12px);
  }

}

/* < 600px → 1 card */
@media (max-width: 600px) {

  .product-tabs-section {
    padding: 40px 50px;
  }

  .product-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .product-img {
    height: 150px;
  }
}

/* Small mobile */
@media (max-width: 400px) {

  .product-tabs-section {
    padding: 30px 40px;
  }

  .product-content h4 {
    font-size: 14px;
  }

  .product-content p {
    font-size: 12px;
  }
}


@media (max-width: 400px) {

  .tabs {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .tab-btn {
    flex: 1;
    min-width: 0;              /*  allows shrinking */
    white-space: normal;       /* allows wrapping */
    font-size: 13px;
    padding: 8px 10px;
    text-align: center;
  }

  /* optional: tighter indicator */
  .tab-indicator {
    width: calc(50% - 6px);
  }
}


/* ================= OPTIONAL ENHANCEMENTS ================= */

/* Smooth click feel */
.floating-actions a:active {
  transform: scale(0.95);
}

/* Shadow improvement */
.floating-actions a {
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


/* ================= FAB CONTAINER ================= */

.fab-container {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 9999;
}

/* MAIN BUTTON */
.fab-main {
  width: 50px;
  height: 50px;
  background: #c40d42;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transition: 0.3s;
}

/* Rotate on open */
.fab-container.active .fab-main {
  transform: rotate(45deg);
}

/* ITEMS WRAPPER */
.fab-items {
  position: absolute;
  bottom: 70px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: 0.3s;
}

/* SHOW ITEMS */
.fab-container.active .fab-items {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* INDIVIDUAL ICON */
.fab-item {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: 0.3s;
}

/* HOVER */
.fab-item:hover {
  transform: scale(1.1);
}

/* COLORS */
.f-mail { background: #4a86ff; }
.f-phone { background: #3b60e4; }
.f-location { background: #ff5722; }
.f-whatsapp { background: #25d366; }
.f-instagram {
  background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af,#515bd4);
}

