/* navbar */
.navbar {
    background-color: #ff6f61;
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 10px 18px;
}
/* logo */
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}
#giftLogo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  margin: 0 !important;
}
.site-name a {
  text-decoration: none;
  color: var(--secondary-color);
  font-size: 1.5rem;
}
/* navlinks */
.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  white-space: nowrap;
}
.nav-links li {
  list-style-type: none;
}
.nav-links li a {
  text-decoration: none;
  padding: 12px 16px;
  font-size: 1.2rem;
  outline: none;
  color: var(--secondary-color);
  border-radius: 20px;
  transition: all 0.3s ease;
}
.nav-links li a:hover {
  color: var(--primary-text);
}
/* search bar */
.right-side {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  padding: 8px 12px;
}
#search,
#searchMenu {
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
  border: none;
  outline: none;
  /* border: 1px solid rgba(8, 78, 121, 0.5); */
  border-radius: 20px;
  box-shadow: rgba(121, 16, 8, 0.5) 0 4px 12px inset;
}
#search::placeholder {
  font-size: 0.8rem;
  color: rgb(112, 110, 110);
}
#search:focus-within {
  box-shadow: rgba(8, 78, 121, 0.5) 0 4px 12px inset;
}
#menu {
  color: var(--secondary-color);
  font-size: 2rem;
  display: none;
}
.mobile-menu {
  display: none;
}
/* navbar responsive */
@media screen and (max-width: 1028px) {
  .navbar {
    position: relative;
  }
  #menu {
    display: block;
    cursor: pointer;
  }
  .desktop-menu {
    display: none;
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 1.2rem;
    position: fixed;
    top: 68px;
    right: 8px;
    transform: translateX(150%);
    background: var(--primary-bg);
    pointer-events: none;
    z-index: 1;
    width: 13rem;
    padding: 1rem 14px !important;
    box-shadow: rgb(248, 91, 91) 8px 10px 8px;
    transition: all 0.5s ease-in-out;
  }
  .mobile-menu-active {
    transform: translateX(0);
    pointer-events: auto;
  }
  .mobile-menu li a {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    padding: 10px;
    font-size: 19px;
    min-width: 9rem;
    color: white;
    font-weight: bolder;
    border-radius: 20px;
    border: 1px solid rgba(66, 3, 13, 0.5);
    transition: all 300ms ease;
  }
  .mobile-menu li a:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--primary-text) 8px 8px 8px;
  }
  #searchMenu {
    display: none;
  }
}
@media screen and (max-width: 540px) {
  #search {
    display: none;
  }
  #searchMenu {
    display: block;
  }
  #searchMenu::placeholder {
    font-size: 0.8rem;
    color: rgb(112, 110, 110);
  }
  #searchMenu:focus-within {
    box-shadow: rgba(8, 78, 121, 0.5) 0 4px 12px inset;
  }
}


.gift-section {
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

.gift-section h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.gift-card {
  display: inline-block;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 150px;
  margin: 0.5rem;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  vertical-align: top;   /*  FIX: aligns cards properly in a row */
}

/*  FIXED IMAGE ALIGNMENT */
.gift-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;     /*  Makes all images same size without distortion */
  border-radius: 6px;
  display: block;
  margin: 0 auto 10px auto; /* centers the image */
}

.gift-card:hover {
  background-color: #ffebd8;
  transition: background-color 0.3s;
}


.site-footer {
    background-color: #ff6f61;
    color: #ffffff;
    padding: 50px 0 0;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin: 20px;
}

.footer-column h3 {
    font-size: 1.3em;
    margin-bottom: 20px;
    position: relative;
    color: #ffffff;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background-color: #ffebd8; 
}

.footer-column p, .footer-column ul {
    font-size: 0.95em;
    line-height: 1.7;
    color: #ffebd8; 
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ffebd8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffffff; 
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #ffffff;
    font-size: 1.5em;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffebd8;
}

.footer-bottom {
    text-align: center;
    padding: 25px 20px;
    border-top: 1px solid #ff8f81;
    margin-top: 30px;
    color: #ffebd8; 
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }
}

.gift-section {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gift-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 111, 97, 0.03) 0%, transparent 70%);
  animation: sectionGlow 20s linear infinite;
  pointer-events: none;
}

@keyframes sectionGlow {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(30px, 30px) rotate(360deg); }
}
.gift-section h2 {
  position: relative;
  display: inline-block;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gift-section h2::before {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 4px;
  background: linear-gradient(90deg, #ff6f61, #e63946, #ff6f61);
  border-radius: 2px;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gift-section h2:hover {
  transform: scale(1.05);
  color: #e63946;
  text-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.gift-section h2:hover::before {
  transform: translateX(-50%) scaleX(1);
}

/* --- Gift Card 3D Pop-out Effect --- */
.gift-card {
  position: relative;
  transform-style: preserve-3d;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

/* Gradient overlay on hover */
.gift-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 111, 97, 0.1), rgba(230, 57, 70, 0.2));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 8px;
  z-index: 1;
}

.gift-card:hover::before {
  opacity: 1;
}

/* Shine effect on hover */
.gift-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 70%
  );
  transform: translateX(-100%) translateY(-100%) rotate(45deg);
  transition: transform 0.6s ease;
}

.gift-card:hover::after {
  transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Main hover effect */
.gift-card:hover {
  transform: translateY(-15px) scale(1.08) rotateX(5deg);
  background-color: #fff5f2;
  box-shadow: 
    0 20px 40px rgba(230, 57, 70, 0.3),
    0 0 0 4px rgba(255, 111, 97, 0.2),
    0 0 20px rgba(255, 111, 97, 0.4);
  z-index: 10;
}

/* --- Gift Card Image Enhanced Animation --- */
.gift-card img {
  position: relative;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.gift-card:hover img {
  transform: scale(1.15) translateY(-8px);
  filter: brightness(1.1) saturate(1.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* --- Gift Card Text Pop Effect --- */
.gift-card {
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.gift-card:hover {
  color: #e63946;
  font-size: 1.05em;
  letter-spacing: 0.5px;
}

/* --- Floating Badge Effect (NEW, SALE, etc.) --- */
.gift-card[data-badge]::before {
  content: attr(data-badge);
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #ff6f61, #e63946);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
  animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* --- Card Border Glow Animation --- */
@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 111, 97, 0.4);
  }
}

.gift-card {
  animation: borderGlow 3s ease-in-out infinite;
  animation-play-state: paused;
}

.gift-card:hover {
  animation-play-state: running;
}

/* --- Staggered Card Animation on Page Load --- */
.gift-card {
  opacity: 0;
  animation: cardFadeIn 0.6s ease forwards;
}

.gift-card:nth-child(1) { animation-delay: 0.1s; }
.gift-card:nth-child(2) { animation-delay: 0.2s; }
.gift-card:nth-child(3) { animation-delay: 0.3s; }
.gift-card:nth-child(4) { animation-delay: 0.4s; }
.gift-card:nth-child(5) { animation-delay: 0.5s; }
.gift-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Add to Cart Button (if you add one) --- */
.gift-card-btn {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: linear-gradient(135deg, #ff6f61, #e63946);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 3;
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

.gift-card:hover .gift-card-btn {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.gift-card-btn:hover {
  transform: translateX(-50%) translateY(0) scale(1.1);
  box-shadow: 0 8px 20px rgba(230, 57, 70, 0.6);
}


.gift-card:hover .gift-card-price {
  transform: scale(1.15);
  background: #e63946;
  color: white;
}

/* --- Mouse Follow Glow Effect --- */
.gift-section {
  position: relative;
}

.gift-card {
  --mouse-x: 0;
  --mouse-y: 0;
}

.gift-card:hover {
  background: radial-gradient(
    600px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 111, 97, 0.1),
    transparent 40%
  );
}

/* --- Ripple Click Effect --- */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.gift-card:active::before {
  animation: ripple 0.6s ease-out;
}

/* --- Enhanced Mobile Responsiveness --- */
@media (max-width: 768px) {
  .gift-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.25);
  }
  
  .gift-card:hover img {
    transform: scale(1.1) translateY(-5px);
  }
}

/* --- Dark Mode Support (Optional) --- */
@media (prefers-color-scheme: dark) {
  .gift-section {
    background-color: #fff9f9;
  }
  
  .gift-section h2 {
    color: #fff;
  }
  
  .gift-card {
    background-color: #ffffff;
    border-color: #444;
    color: #fff;
  }
  
  .gift-card:hover {
    background-color: #ffffff;
  }
}
.search-section input {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 25px;
    border: 1px solid #ccc;
}

/* Product Categories Bar */
.product-categories {
    display: flex;
    justify-content: space-around; /* distributes items evenly */
    align-items: center;
    background-color: white; /* soft pink background */
    padding: 15px 0;
    overflow-x: auto; /* scroll if screen is too small */
}

.product-categories .category {
    position: relative;
    text-align: center;
    cursor: pointer;
    flex: 0 0 auto; /* prevents shrinking */
}

.product-categories .category img {
    width: 120px;   /* increased from 80px */
    height: 120px;  /* increased from 80px */
    object-fit: cover;
    border-radius: 50%; /* keeps the images round */
    transition: transform 0.3s;
}


.product-categories .category:hover img {
    transform: scale(1.1);
    opacity:25%;
}

.product-categories .category span {
    position: absolute;
    bottom: 7;
    left: 50%;
    transform: translateX(-50%);
    color: black;
    font-size: 20px;
    padding: 3px 8px;
}
.category .hover-text{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  font-size: 20px;
  pointer-events: none; 
}
.category:hover .hover-text {
  opacity: 1;
}

