/* ==================== COMMON/SHARED CSS ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Arial", sans-serif;
  background-color: #fff;
}


.btn-pink {
  background-color: #e91e63;
  border-color: #e91e63;
  color: #fff;
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
}
.btn-pink:hover {
  background-color: #c2185b;
  border-color: #c2185b;
  color: #fff;
}


.text-pink {
  color: #e91e63;
}


/* ==================== HEADER CSS ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0 6px 16px rgb(255, 183, 255);
  padding: 9px 0;
}

.navbar-brand {
  font-weight: bold;
  font-size: 24px;
  color: #e91e63 !important;
}
.navbar-nav .nav-link {
  color: #333 !important;
  font-weight: 500;
  margin: 0 15px;
}
.navbar-nav .nav-link:hover {
  color: #e91e63 !important;
}


.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}
.header-icons i {
  font-size: 18px;
  color: #333;
  cursor: pointer;
}
.header-icons i:hover {
  color: #e91e63;
}


/* ==================== HERO SECTION CSS ==================== */

.hero-section{
  width:100%;
  margin-top:60px;
}

.hero-banner-container{
  position:relative;
  width:100%;
  overflow:hidden;
}

.hero-banner-img{
  width:100%;
  height:280px;
  object-fit:cover;
  display:block;
}

.hero-shop-now-btn {
  position: absolute;
  top: 78%;
  right: 16%;
  transform: translateY(-50%);
  background-color: #8b4513;
  color: #fff;
  border: none;
  padding: 12px 50px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}
.hero-shop-now-btn:hover {
  background-color: #654321;
}
@media (max-width: 768px) {
  .hero-shop-now-btn {
    right: 10%;
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}




/* ==================== CAKES SECTION CSS ==================== */
.cakes-section {
  padding: 60px 0;
  background-color: #fff;
}
.cakes-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.cakes-section-header .section-info {
  text-align: left;
}
.section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.section-subtitle {
  color: #666;
  margin-bottom: 40px;
}
.cake-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
  position: relative;
}
.cake-card:hover {
  transform: translateY(-5px);
}
.cake-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cake-card-body {
  padding: 20px;
  text-align: center;
}
.cake-card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}
.cake-card-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 5px;
}
.cake-add-to-cart-btn {
  background-color: #c2185b;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cake-add-to-cart-btn:hover {
  background-color: #ad1457;
}
.view-all-btn {
  background-color: #e91e63;
  color: #fff;
  border: none;
  padding: 8px 25px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}
.view-all-btn:hover {
  background-color: #c2185b;
  color: #fff;
  text-decoration: none;
}


/* ==================== BESTSELLERS SECTION CSS ==================== */
.bestsellers-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}
.product-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin-bottom: 30px;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card-body {
  padding: 20px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}
.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e91e63;
  margin-bottom: 15px;
}
.add-to-cart-btn {
  background-color: #c2185b;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.add-to-cart-btn:hover {
  background-color: #ad1457;
}


/* Rating and discount badges */
.rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.rating i {
  color: #ffc107;
  font-size: 14px;
  margin-right: 2px;
}


.price-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: -57px;
  position: absolute;
  bottom: 60px;
  left: 10px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 4px;
}
.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
}
.sale-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #e91e63;
}


.wishlist-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 2;
}
.wishlist-icon i {
  color: #666;
  font-size: 16px;
}
.wishlist-icon:hover i {
  color: #e91e63;
}


.view-all-grey {
  background-color: #6c757d;
  color: #fff;
  border: none;
  padding: 8px 25px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
}
.view-all-grey:hover {
  background-color: #5a6268;
  color: #fff;
  text-decoration: none;
}


.rating-badge {
  background-color: #28a745;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
}
.rating-badge i {
  color: #fff;
  font-size: 12px;
}


.discount-badge {
  background-color: #90ee90;
  color: #006400;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 10px;
  right: 80px;
  z-index: 2;
}


/* ==================== CTA SECTION CSS ==================== */
.cta-section {
  background: linear-gradient(135deg, #add8e6 0%, #ffb6c1 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 0;
}
.cta-pink-text {
  color: #e91e63;
}
.cta-black-text {
  color: #000;
}


/* ==================== FOOTER CSS ==================== */
.footer {
  background-color: #f8f9fa;
  padding: 50px 0 30px 0;
  border-top: 1px solid #e9ecef;
}
.footer-brand {
  font-size: 24px;
  font-weight: bold;
  color: #e91e63;
  margin-bottom: 20px;
}
.footer h5 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}
.footer ul {
  list-style: none;
  padding: 0;
}
.footer ul li {
  margin-bottom: 10px;
}
.footer ul li a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer ul li a:hover {
  color: #e91e63;
}
.footer-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
  .cta-section h2 {
    font-size: 2rem;
  }
}


/* ==================== USER DROPDOWN ==================== */
.user-dropdown {
  position: relative;
  display: inline-block;
}
.user-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  margin-top: 10px;
}
.user-dropdown:hover .user-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-header {
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.dropdown-header h4 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 5px;
}
.dropdown-header p {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 15px;
}
.dropdown-login-btn {
  background-color: #e91e63;
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  text-align: center;
}
.dropdown-login-btn:hover {
  background-color: #c2185b;
  color: #fff;
  text-decoration: none;
}
.dropdown-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dropdown-menu-items {
  padding: 10px 0;
}
.dropdown-menu-item {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}
.dropdown-menu-item:hover {
  background-color: #f8f9fa;
  color: #e91e63;
  text-decoration: none;
}
.user-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}


/* Remove default background & make arrows clean */
.swiper-button-prev,
.swiper-button-next {
    background: none !important;
    width: 30px;
    height: 30px;
    color: black !important;
    font-weight: bold;
}

/* Arrow Icon Styling */
.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 25px;
    color: gray !important;
}

/* Position to middle (slightly upward) */
.swiper-button-prev,
.swiper-button-next {
    top: 35% !important;  /* 50% is exact center, 45% moves slightly upward */
    transform: translateY(-50%);
}

/* Push arrows to outside of cards */
.swiper-button-prev {
    left: -40px;  /* You can adjust (-50px or -60px) based on your layout */
}

.swiper-button-next {
    right: -40px;
}

/* Optional: Hover effect */
.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: #ff0077; /* pink hover (optional) */
    cursor: pointer;
}

.out-of-stock {
  color: red;
  font-weight: bold;
  margin-top: 5px;
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
}

.cake-add-to-cart-btn:disabled,
.add-to-cart-btn:disabled {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed !important;
}

.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
  display: inline-block;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff3d3d;
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 50%;
  font-weight: bold;
}

#wishlist-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #ff3d3d;
  color: #fff;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 50%;
  font-weight: bold;
}

.wishlist-icon i {
  color: #999;          /* white/grey heart */
  transition: 0.2s;
}

.wishlist-icon.active i {
  color: #e91e63;       /* pink heart */
}

/* DEFAULT HEART (NOT WISHLISTED) */
.wishlist-icon i {
  font-family: "Font Awesome 5 Free";
  font-weight: 400; /* regular (outline) */
  color: #ccc;
  transition: all 0.3s ease;
}

/* ACTIVE HEART (WISHLISTED) */
.wishlist-icon.active i {
  font-weight: 900; /* solid (filled) */
  color: #e91e63;   /* pink */
}

/* FIX FONT AWESOME HEART TILT (NO ROTATION) */
.wishlist-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-icon i {
  line-height: 1;
  transform: translateY(0);
}

/* MICRO ALIGNMENT FIX FOR SOLID HEART */
.wishlist-icon.active i {
  transform: translateX(-0.5px);
}

.rating-badge {
  display: inline-block;
  background: #4caf50;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  margin-top: 6px;
}
.rating-badgelatestprdct {
  display: inline-block;
  background: #4caf50;
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  margin-top: 0px;
  margin-bottom: 50px;
  margin:4px
}


/* OFFER BADGE */
.offer-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 10;
}

/* OFFER TEXT (Product Details Page) */
.offer-text {
  margin: 6px 0;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 500;
}

.weight-popup {
  position: absolute;
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: none;
  z-index: 999;
}

.weight-popup button {
  margin: 4px;
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: white;
  cursor: pointer;
  border-radius: 4px;
}

.weight-popup button:hover {
  background: #f16ead;
  color: white;
}

.hero-section{
  width:100%;
  margin-top:70px;
}

.bannerSwiper{
  position: relative;
  width:100%;
  height:280px;
}

.hero-banner-img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.bannerSwiper .swiper-pagination{
  position:absolute;
  bottom:15px;
  left:50% !important;
  transform:translateX(-50%) !important;
  width:auto !important;
  text-align:center;
  z-index:10;
}

.bannerSwiper .swiper-pagination-bullet{
  width:8px;
  height:8px;
  background:#ffffff;
  opacity:0.6;
  margin:0 5px;
  transition:all 0.3s ease;
}

.bannerSwiper .swiper-pagination-bullet-active{
  background:#e91e63;   /* your website pink */
  opacity:1;
  transform:scale(1.2);
  box-shadow:0 0 6px rgba(233,30,99,0.6);
}

.product-link {
  text-decoration: none;
  color: black;
  font-weight: 600;
  transition: color 0.2s ease;
}

.product-link:hover {
  color: #d81b60;   /* pink */
}

.weight-popup{
  position:absolute;
  background:white;
  border:1px solid #ddd;
  padding:6px;
  display:none;
  z-index:1000;
}

.weight-popup button{
  margin:3px;
  padding:6px 10px;
  border:1px solid #ff6b8b;
  background:white;
  cursor:pointer;
}

.weight-popup button:hover{
  background:#ff6b8b;
  color:white;
}

.weight-popup .out-stock{
  background:#eee;
  color:#999;
  cursor:not-allowed;
}

.logout-btn{
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 8px 20px;
  cursor: pointer;
}

@media (max-width:768px){
  .bannerSwiper{
    height:200px;
  }
}

@media (max-width:480px){
  .bannerSwiper{
    height:160px;
  }
}