
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Background Image Fix */
body {
    font-family: 'Playfair Display', serif;
    background: url('https://res.cloudinary.com/dacpbywfp/image/upload/v1742058337/bc_xm1ftg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Fix Content Wrapping */
.main-content {
    flex: 1;
}

/* Dark Overlay for Better Readability */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: -1;
}


.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 20px;
}
/* QR Code Section */
.qr-section {
  text-align: center;
  margin: 20px auto;
  padding: 15px;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1); /* Glass effect */
  backdrop-filter: blur(10px);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effect */
.qr-section:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* QR Text */
.qr-section p {
  font-size: 1.2rem;
  color: #ffb400; /* Highlight text color */
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
  margin-bottom: 10px;
}

/* QR Image */
.qr-section img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

/* QR Image Hover */
.qr-section img:hover {
  transform: rotate(5deg) scale(1.1);
}


/* Title Styling */
h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  text-shadow: 2px 2px 5px rgba(246, 245, 245, 0.5);
  margin-bottom: 20px;
  background: linear-gradient(90deg, #ff9800, #ff6b6b);
  
  /* Gradient text effect */
  background-clip: text;
  -webkit-background-clip: text; /* For Safari and older Chrome */
  color: transparent; /* Fallback for non-WebKit browsers */
  -webkit-text-fill-color: transparent; /* For Safari and older Chrome */
  
  animation: fadeInDown 1s ease;
  
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page Transitions */
.page {
  display: none;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
}

.brand {
  color: #ff9800;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 2px 2px 5px rgba(251, 248, 248, 0.5);
}

/* Category Cards */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px;
  width: 100%;
  max-width: 1200px;
}

.category-card {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  overflow: hidden; /* Prevents image from overflowing */
  width: 180px; /* Adjust as needed */
}

/* Hover Effect */
.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.3);

}

/* Improved Image Placement */
.category-card img {
  width: 100%;
  height: 120px; /* Adjust height for a perfect fit */
  object-fit: cover; /* Ensures image covers the card without distortion */
  border-radius: 10px;
  margin-bottom: 15px;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.3));
}

/* Title Styling */
.category-card h3 {
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
}

/* Emoji Styling */
.category-card .emoji {
  font-size: 1.8rem;
}



/* Items List */
.items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding-bottom: 50px; /* Ensures space above footer */
}

/* Item Card */
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #000;
  color: white;
  padding: 15px;
  border-radius: 10px;
  width: 100%; /* Make sure it fills the container */
  max-width: 200px; /* Prevents oversized cards */
  height: auto; /* Auto height to fit content */
}

/* Hover Effect */
.item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

/* Item Image */

.item img {
  width: 100%; /* Image fills the card */
  height: 150px; /* Fixed height for uniformity */
  object-fit: cover; /* Ensures image scales properly */
  border-radius: 10px;
}

/* Title */
.item h3 {
  font-size: 1.3em;
  color: #fff;
  font-weight: 700;
}

/* Description */
.item p {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8); /* Make text more readable */
}

/* Price */
.item .price {
  font-weight: bold;
  color: #ff9800;
  font-size: 1.3em;
  margin-top: 10px;
}

/* Fix Text Visibility on Hover */
.item:hover h3,
.item:hover p {
  color: #fff;
}


/* Back Button Styling */
#back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  background: linear-gradient(90deg, #ff9800, #ff6b6b);
  border: none;
  font-size: 1.2em;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#back-button:hover {
  background: linear-gradient(90deg, #ff6b6b, #ff9800);
  transform: scale(1.05);
}

/* Ensure body takes full height */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Push content to fill space and keep footer at the bottom */
.main-content {
  flex: 1; /* This pushes the footer to the bottom */
}

/* Footer styling */
footer {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.8);
  text-align: center;
  color: white;
}

/* Designer Name */
footer .designer {
  font-weight: bold;
  color: #ff914d;
  display: inline-flex;
  align-items: center;
  gap: 5px; /* Space between name and WhatsApp icon */
}

/* WhatsApp Icon */
.whatsapp-icon {
  width: 18px; /* Adjusted size */
  height: 18px;
  filter: drop-shadow(0px 0px 3px rgba(37, 211, 102, 0.8));
  transition: transform 0.2s ease-in-out;
}

.whatsapp-icon:hover {
  transform: scale(1.1);
}
 /* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  /* Fix Grid for 2 Cards per Row */
  .categories, .items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Exactly 2 cards per row */
    gap: 10px; /* Adjusted for better spacing */
    padding: 10px;
  }

  /* Ensure Cards are Uniform */
  .category-card {
    width: 100%;
    max-width: 160px; /* Slightly reduced width */
    height: 250px; /* Fixed height to keep all cards uniform */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Ensures content is spaced properly */
    text-align: center;
    background: #000;
    color: white;
    padding: 10px;
    border-radius: 10px;
  }

  /* Fix Image Sizing */
  .category-card img {
    width: 100%; /* Ensures it fits the card */
    height: 100px; /* Reduced height to prevent stretching */
    object-fit: cover; /* Prevents distortion */
    border-radius: 10px;
  }

  /* Fix Text Alignment and Spacing */
  .category-card h3 {
    font-size: 1rem;
    margin: 5px 0;
  }

  .category-card p {
    font-size: 0.8rem;
    margin: 5px 0;
  }

  .category-card span {
    font-size: 1rem;
    font-weight: bold;
    color: #ffb400; /* Highlight price */
  }

  /* Fix Footer Overlapping */
  footer {
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
  }
}



