/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

/* === SOFT BEIGE / SAND THEME === */
body {
  font-family: 'Inter', sans-serif;
  background-color: #eee;
  color: #222222; /* Charcoal text */
      overflow-x: hidden;
    max-width: 100%;

}
body {
  opacity: 0;
  animation: pageFadeIn 0.8s ease forwards;
}
@keyframes pageFadeIn {
  to { opacity: 1; }
}


h1, h2, h3 {
  font-weight: 500;
  color: #222;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  padding: 40px 0 20px 0;
  text-align: center;
  color: #222;
    animation: bounceIn 1s ease, wiggle 3s infinite ease-in-out;
  
}
/* Bounce entry */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #8c6d5d; /* Soft Brown Hover */
}

/* Header (Not used in hero, kept for backup) */
header {
  background-color: #fff;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
   position: absolute;
  top: 20px;
  left: 60px;
  color: #fff; /* Or #222 if background is light */
  letter-spacing: 1px;

}
.urdu-text {
  position: absolute;
  top: 20px;
  left: 20px;
}




/* Navigation */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav ul li a {
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease;
}

nav ul li a:hover {
  color: #8c6d5d;
}

/* === HERO SECTION === */
.hero-background {
  background-image: url('images/backgroud.jpg'); /* ✅ Correct path (relative) */
  background-size: cover;
  background-position: center;
  height: 90vh;
  position: relative;
  color: #fff;
  text-align: center;
  width: 100%;
  overflow: hidden;
    justify-content: center;    /* Horizontal centering */
  align-items: center;  
}

/* Navigation inside hero */
.hero-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.left-side {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Menu toggle */
.menu-toggle {
  font-size: 1.0rem;
  cursor: pointer;
  font-weight: 600;
    position: absolute;
  top: 30px;
  left: 20px;
  color: #fff;
}

.menu-icon {
  position: absolute;
  top: 25px;
  left: 20px; /* <-- moved from right to left */
   font-size: 0.8rem;
}

/* Centered hero text */
.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
}

.hero-content h1 {
 font-weight: bold;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-top: 10px;
  color: #eee;
}

/* === FILTER BOX === */
.filter-box {
  text-align: center;
  margin: 40px 0 20px;
}

.filter-box select {
  padding: 8px 12px;
  margin: 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* === PRODUCT GALLERY === */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 40px;
}
.product-card:nth-child(5) {
  grid-column: 2 / span 2; /* centers in a 3-column grid */
  justify-self: left;
}
@media (max-width: 768px) {
  .product-card:nth-child(5) {
    grid-column: 1 / -1;   /* take the full row */
    justify-self: center;  /* center horizontally */
  }
}

.product-card {
  background-color: transparent;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transform: translateY(0);
  animation: slideUp 0.6s ease forwards;
   transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.product-card:hover {
 width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  
}
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
  transform: translateY(-5px);
}


.product-card img {
  width: 100%;
  object-fit: cover; /* crop karega excess part ko */
  border: none;
  margin-bottom: 10px;
}

.product-card:hover img {
  transform: scale(1.05);
}
.product-card .product-name {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 5px;
}

.product-card .price {
  font-weight: 600;
  font-size: 0.9rem;
  color: #444;
}

.product-card .old-price {
  text-decoration: line-through;
  color: #ff0000;
  font-size: 0.9rem;
  margin-right: 5px;
}

.product-card .sale-price {
  color: rgb(36, 35, 35);
  font-weight: bold;
}

.product-card img {
  width: 100%;
  border-radius: 0px;
}


/* Buy Now Button */
.buy-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #000000;
  color: white;
  border: none;
  font-size: 0.9rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.buy-btn:hover {
  background-color: #333333;
}

/* === FOOTER === */
/* Layout base to allow sticky footer */

.main-content {
  flex: 1; /* pushes footer to bottom */
}



/* === Footer Styling === */
footer {
  background-color: #f9f9f9;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  width: 100%;
}

.about-section,
.contact-section {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.about-section h2,
.contact-section h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #111;
}

.about-section p,
.contact-section p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  width: 100%;
}

.contact-info {
  margin-top: 10px;
}

.contact-info p {
  margin: 5px 0;
}

.contact-info a {
  color: #333;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer bottom line */
footer p:last-of-type {
  border-top: 1px solid #ddd;
  margin-top: 25px;
  padding-top: 10px;
  color: #777;
}




.about-section,
.contact-section {
  padding: 60px 20px;
  background-color: #fdfdfd;
  text-align: center;
  
}


.about-section h2,
.contact-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  
}

.about-section p,
.contact-section p {
  font-size: 1rem;
  color: #444;
  max-width: max-content;
  margin: 0 auto;
  line-height: 1.7;
  
}

.contact-info a {
  color: #8c6d5d;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}
.site-footer {
  background-color: #f8f8f8;
  padding: 40px 20px;
  font-family: 'Arial', sans-serif;
  color: #333;
}



/* Menu Icon */
.menu-icon {
  font-size: 1.0rem;
  cursor: pointer;
  position: absolute;
  top: 25px;
  left: 20px;
  z-index: 1001;
  color: white;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.92);
  padding: 120px 20px 20px 20px; /* top padding increased to push links down */
  flex-direction: column;
  gap: 25px;
  transition: left 0.3s ease-in-out;
  z-index: 1001;
   font-family: 'Inter', sans-serif;
    font-size: 2.5px;
  font-weight: bold;
  left: -260px;
  width: 240px;
  height: 100vh;
  background-color: #f7f4f0; /* soft beige */
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
  padding: 60px 25px 30px;
  z-index: 1002;
  transition: left 0.3s ease;
 
}
.close-sidebar-btn:hover {
    transform: rotate(90deg) scale(1.2);
    color: #000;
    transition: all 0.3s ease-in-out;
}
/* Sidebar links */


.sidebar a:hover {
  color: #8c6d5d;
}
.sidebar.active {
  left: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  z-index: 999;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
/* Sidebar - on left */
/* Menu Sidebar Aesthetic Theme */

.sidebar.active {
  left: 0;
}

.sidebar a {
 text-decoration: none;
    font-size: 18px;
    color: #333;
    display: block;
    transition: 0.2s;
    text-align: left;
    margin-top: 10%;
    font-weight: bold;
}

.sidebar a:hover {
  color: #ad6b5f;
}


.sidebar.active {
  left: 0;
}


/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: none;
  z-index: 1000;
}

.overlay.active {
  display:flex;
}

/* Menu icon (☰) */
.menu-icon {
  font-size: 1.2rem;
  cursor: pointer;
  color: white;
  position: absolute;
  left: 25px;
  z-index: 1002; /* Keep above sidebar */
}

/* Brand name */
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 700;
  position: absolute;
  top: 25px;
  left: 80px; /* adjust to position after ☰ icon */
  color: white;
  z-index: 1002;
}

.sign-in-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.sign-in-icon:hover {
  color: #8c6d5d; /* Optional hover color */
    animation: bounce 0.4s ease;
}
@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.sign-in-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.3s ease;
}

.sign-in-icon:hover {
  color: #ffffff;
  
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #fffafa;
  padding: 30px;
  width: 700px;      /* Fixed width */
  height: 560px;     /* Fixed height */
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  position: fixed;
  transform: translate(-50%, -50%); /* Center in screen */
  box-sizing: border-box;
  
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}

.modal-images {
  flex: 1 1 45%;
  text-align: center;
}

.modal-images img {
  max-width: 100%;
  border-radius: 06px;
  transition: box-shadow 0.3s ease;
}
.modal-images img:hover {
  transform: scale(1.05); /* Slight zoom */
}
.thumbnail-row img {
  width: 60px;
  margin: 5px;
  cursor: pointer;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.modal-info {
  flex: 1 1 50%;
  padding-left: 30px;
}

.modal-info h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.modal-info select {
  display: block;
  margin: 10px 0;
  padding: 8px;
  width: 100%;
}

.modal-buttons {
  margin-top: 20px;
}

.modal-buttons .buy-btn {
  margin-right: 10px;
}
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#cartIcon {
  position: absolute;         /* 👈 This makes it stay fixed */
  top: 20px;               /* Distance from top */
  right: 60px;             /* Distance from right */
  font-size: 24px;
  color: white;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1100;           /* Must be higher than everything else */
  transition: color 0.3s ease;
}
.cartIcon:hover {
  color: #8c6d5d; /* Optional hover color */
}
#cartIcon:hover {
  animation: bounce 0.4s ease;
}
@keyframes bounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}



#cartSidebar {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #f5f3ef; /* 🌿 Soft Beige Background */
  border-left: 1px solid #ddd;
  padding: 25px 20px;
  box-shadow: -2px 0 12px rgba(0,0,0,0.1);
  overflow-y: auto;
  z-index: 10002; /* ✅ High enough to show above modal */
  transition: right 0.3s ease;
  font-family: 'Inter', sans-serif;
}


#cartSidebar h3 {
  font-size: 1.4rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

#cartItems p {
  color: #222;
  font-size: 0.95rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

#cartItems button {
  background: transparent;
  color: #b80000;
  border: none;
  font-size: 0.85rem;
  cursor: pointer;
}

#cartTotal {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  margin: 15px 0;
}

#cartSidebar button {
    background-color: #222;
    color: white;
    border: none;
    padding: 10px 14px;
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s ease;
    width: 100%; /* ✅ Checkout & Clear Cart remain full width */
}

/* ✂️ Special case: Remove button small width */
#cartSidebar .remove-btn {
    background: linear-gradient(135deg, #6B8E89, #3C5A57); /* soft sage green gradient */
    color: #f9f9f9;
    padding: 6px 14px;
    font-size: 0.85rem;
    margin-top: 0;
    border-radius: 6px; /* rounded but not too pill-like */
    width: auto;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Hover */
#cartSidebar .remove-btn:hover {
    background: linear-gradient(135deg, #3C5A57, #6B8E89); /* reverse gradient */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

#cartSidebar {
  transition: right 0.35s ease-in-out;
}
#cartSidebar.active {
  right: 0;
}
#cartSidebar.active {
  animation: pulseSidebar 0.3s ease;
}
@keyframes pulseSidebar {
  0% { box-shadow: none; }
  100% { box-shadow: -2px 0 15px rgba(0,0,0,0.2); }
}

.cart-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}
.element.style {
    position: absolute;
    top: 20px;
    right: 160px;
    cursor: pointer;
    z-index: 1001;
    color: white;
}
/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
  .product-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-name {
    font-size: 1.5rem;
    left: 80px;
  }

  #cartIcon,
  #searchIcon,

  .hero-content h1 {
    font-size: 23px;
  }

  .hero-content p {
    font-size: 16px;
  }

  #searchBox {
    width: 140px;
    right: 20px;
    top: 55px;
  }
}

@media (max-width: 576px) {
  .product-gallery {
    grid-template-columns: repeat(1, 1fr);
  }

  .menu-icon {
    font-size: 1.5rem;
    left: 15px;
  }

  .sidebar {
    width: 70%;
  }

 

  #searchBox {
    width: 130px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.modal-content {
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay {
  transition: background-color 0.3s ease;
}

.modal-overlay[style*="display: flex"] .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* === Animate container on load === */
.container {
  animation: fadeInUp 0.8s ease-out;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* === Buttons hover animation === */
button {
  transition: all 0.3s ease-in-out;
  background-color: #222;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

button:hover {
  transform: scale(1.03);
  background-color: #000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* === Modal slide-up animation === */
.modal-content {
  animation: slideUp 0.5s ease;
}

/* === Smooth fade-in when modal opens === */
.modal {
  animation: fadeIn 0.3s ease;
}

/* === Receipt items slight motion === */
.receipt-item {
  transition: all 0.3s ease;
}
.receipt-item:hover {
  background: #f0f0f0;
  transform: scale(1.01);
}

/* === Animations keyframes === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  } to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  } to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  } to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === Input Radio hover cursor === */
.payment-options label {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}
.payment-options label:hover {
  color: #444;
}

/* === Close button animation === */
.close-btn:hover {
  transform: rotate(90deg) scale(1.2);
  color: #000;
  transition: all 0.3s ease-in-out;
}
.close-cart-btn {
  position: absolute;
  right: 15px;
  font-size: 18px;
  background-color: #d1cbcb00;
  color: #3C5A57;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
}

.close-cart-btn:hover {
  background: #e0e0e000;
}
.custom-upload {
  margin-top: 10px;
}

.custom-upload input[type="file"] {
  margin-top: 6px;
}

#cartSidebar.active {
  right: 0; /* slide in */
}

#cartSidebar {
  background-color: #fff; /* ensures it's not see-through */
  z-index: 11000 !important; /* higher than modal, overlay, sidebar */
}
/* Modal animation styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: rgb(236, 225, 225);
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}
.custom-upload label,
.customer-note label,
.quantity-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
  color: #222;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.quantity-control input {
  width: 60px;
  height: 36px;
  text-align: center;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #ccc;
  background: #f8f8f8;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
 
}

.quantity-btn:hover {
  background: #e5e5e5;
}

#customDesignUpload {
  margin-top: 8px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f9f9f9;
  cursor: pointer;
}

#customNote {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}

.close-sidebar-btn {
  position: absolute;
  top: 10px;
  right: 17px;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  top: 2%;
}
    .close-btn:hover {
    transform: rotate(90deg) scale(1.2);
    transition: all 0.3s ease-in-out;
    }


.logo {
  position: absolute;
  top: -08px; /* top space */
  left: 01px; /* right space */
}

.logo img {
  height: auto; /* Display size */
  width: auto;
  max-width: 100%; 
  image-rendering: -webkit-optimize-contrast; /* Crisp rendering */
}
/* Extra small devices (phones) */
@media (max-width: 575.98px) { 
  .sidebar {
   left: -260px;
  width: 240px;
  height: 100vh;
  }

}
/* 📱 Mobile Responsive Footer */
@media (max-width: 768px) {
  footer {
    text-align: center;
  }

  footer .footer-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  footer .footer-section {
    max-width: 300px;
  }

  footer ul {
    padding: 0;
  }

  footer ul li {
    display: inline-block;
    margin: 0 8px;
  }

  footer .social-icons a img {
    width: 24px;
    margin: 5px;
  }
}



.product-card {
  position: relative;
  
  border-radius: 10px;

  overflow: hidden;
  transition: transform 0.3s ease;
}

/* 🔥 Product Card Hover Effect */
.product-card:hover {
  transform: translateY(-10px);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

/* 🔥 Image + Ribbon Move Together */
.product-card:hover .product-image img,
.product-card:hover .ribbon span {
  transform: translateY(-5px) scale(1.02) rotate(-45deg);
}

/* Ribbon Style */
.ribbon {
  width: 120px;
  height: 120px;
  overflow: hidden;
  position: absolute;
  top: -5px;
  left: -5px;
}

.ribbon span {
  position: absolute;
  display: block;
  width: 160px;
  padding: 5px 0;
  background: #e63946; /* Red */
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transform: rotate(-45deg);
  top: 25px;
  left: -45px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: transform 0.3s ease, background 0.3s ease;
}

/* 🔥 Ribbon Hover Color Effect */
.ribbon span:hover {
  background: #c9182b;  /* Darker red */
}
.highlight-text {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
  color: #181818;
  animation: bounceIn 1s ease, wiggle 3s infinite ease-in-out;
}

/* Bounce entry */
@keyframes bounceIn {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); }
}

/* Toast Container */
/* Toast Container */
#toast {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  min-width: 260px;
  max-width: 90%;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f1f1f, #444);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  z-index: 5000; /* stays above modal */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* Show animation */
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Success glow */
#toast.success {
  background: linear-gradient(135deg, #4CAF50, #2e7d32);
  box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
}

/* Error glow */
#toast.error {
  background: linear-gradient(135deg, #f44336, #c62828);
  box-shadow: 0 6px 18px rgba(244, 67, 54, 0.4);
}



/* === CART SIDEBAR PRODUCT ITEM (Minimal Aesthetic) === */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #3c5a57;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);

}

.cart-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-details .name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.2px;
}

.cart-item-details .price {
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a4a4a;
}

.cart-item-details .quantity {
  font-size: 0.8rem;
  color: #777;
}

.remove-btn {
  background: #f8f8f8;
  border: none;
  font-size: 14px;
  color: #555;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}

.remove-btn:hover {
  background: #ffefef;
  color: #d63031;
  transform: scale(1.05);
}
#cartSidebar.open {
  right: 0; /* slides in */
}
#cartIcon.alert {
  animation: pulse 0.8s;
}

@keyframes pulse {
  0% { transform: scale(1); color: #000; }
  50% { transform: scale(1.3); color: #00b300; }
  100% { transform: scale(1); color: #000; }
}
/* Full-page modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8); /* Slightly darker overlay for full-screen */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border-radius: 0; /* optional: remove rounded corners for full-screen */
  background: #fdfdfd;
  display: flex;
  flex-direction: row; /* or column if you want stacked layout */
  flex-wrap: wrap;
  overflow-y: auto; /* scroll if content is too tall */
  padding: 40px;
  box-sizing: border-box;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.3s ease;
  position: relative;
}


/* Optional: close button bigger and fixed */
.close-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
  color: #333;
}

.modal-images,
.modal-info {
  flex: 1 1 50%; /* split screen */
  min-width: 300px;
  overflow: auto;
}

.modal-images img {
  max-width: 90%;
  height: auto;
}
.product-gallery {
  text-align: center;
}

.main-image {
  width: 300px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 10px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.thumbnails img {
  width: 60px;
  height: auto;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: 0.3s;
}

.thumbnails img:hover {
  border-color: #555;
}
.thumbnail {
  width: 60px;
  margin: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: 0.3s;
}
.thumbnail:hover {
  border-color: #777;
}
.active-thumb {
  border-color: black;
}
#pagination {
  text-align: center;
  margin: 15px 0;
}

#pagination button {
  background: #f0d9c0;
  border: none;
  padding: 8px 12px;
  margin: 0 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

#pagination button:hover {
  background: #e6c9a5;
}
/* Product Gallery Grid */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* auto-fit adjusts columns */
  gap: 20px; /* spacing between products */
  padding: 10px;
}

/* Mobile screens: 2 per row */
@media (max-width: 768px) {
  .product-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets: 3 per row */
@media (min-width: 769px) and (max-width: 1024px) {
  .product-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop: 4 per row */
@media (min-width: 1025px) {
  .product-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
.cart-badge {
  position: absolute;
  top: 15px;
  right: 48px;
  
  color: white;
  font-size: 12px;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
/* Modal Description Container */
.modal-description {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  background: #fff;
  line-height: 1.65;
  color: #222;
  /* Prevent the description from pushing the modal too tall */
  max-height: clamp(160px, 28vh, 280px);

  margin-top: 40px;
}

/* Heading text (you're using <h4> as the description text) */
.modal-description h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: #1f2937; /* slate-800 vibe */
}

/* Optional dynamic description paragraph */
.modal-description p {
  margin: 0;
  font-size: 0.95rem;
  color: #374151; /* slate-700 */
}

/* Hide the empty dynamic paragraph if you don't set it */
.modal-description p:empty {
  display: none;
}

/* Subtle scrollbar for long text (WebKit) */
.modal-description::-webkit-scrollbar {
  width: 8px;
}
.modal-description::-webkit-scrollbar-track {
  background: transparent;
}
.modal-description::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.12);
  border-radius: 8px;
}

/* Responsive tweaks for small screens */
@media (max-width: 480px) {
  .modal-description {
    padding: 14px;
    border-radius: 12px;
    max-height: 32vh;
  }
  .modal-description h4 {
    font-size: 0.96rem;
  }
  .modal-description p {
    font-size: 0.94rem;
  }
}

/* Optional: dark mode support (if your site toggles a .dark class on <html> or <body>) */
.dark .modal-description {
  background: #0f172a;           /* slate-900 */
  color: #e5e7eb;                /* slate-200 */
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.dark .modal-description h4 { color: #f1f5f9; } /* slate-100 */
.dark .modal-description p { color: #cbd5e1; }  /* slate-300 */
.dark .modal-description::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.14);
}
/* Large tablets */
@media (max-width: 1024px) {
  .hero-background {
    background-size: cover;       /* ensure it covers the area */
    background-position: center;  /* center the important part */
    height: 70vh;                 /* slightly smaller height */
  }
}

/* Tablets / small laptops */
@media (max-width: 768px) {
  .hero-background {
    background-size: cover;
    background-position: top center;  /* focus on top content */
    height: 60vh;                     /* adjust height for mobile */
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .hero-background {
    background-size: cover;
    background-position: top center; /* focus on main content */
    height: 50vh;                    /* smaller hero section */
  }
}
/* Default logo positioning for desktop */
.logo {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfectly centered */
  
}

.logo img {
  width: 150%;   /* increase this to make the logo bigger */
  height: 150%;
  image-rendering: -webkit-optimize-contrast;
    animation: logoFadeIn 2s ease-in-out forwards;
}
  
/* ==== Fade-in + Zoom Animation ==== */
@keyframes logoFadeIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
/* Medium tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .logo img {
    height: auto; /* slightly smaller */
  }
}

/* Small tablets / large phones (480px - 768px) */
@media (max-width: 768px) {
  .logo img {
    height: auto;
  }
}

/* Mobile phones (up to 480px) */
@media (max-width: 480px) {
  .logo img {
    height: auto;
    top: 30%;
  }
}
/* Hero container */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* full viewport height */
  background: url('your-background.jpg') center/cover no-repeat;
}

/* Logo inside hero */
.hero .logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero .logo img {
  height: 50%;
  width: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hero .logo img {
    height: auto; /* smaller for mobile */
  }
}

@media (max-width: 768px) {
  .logo {
    top: 30%; /* adjust vertical position */
    width: 400px; /* smaller width for tablets */
    height: auto; /* keep aspect ratio */
    max-width: 100%; /* optional responsive limit */
  }
}

/* Mobile / very small screens */
@media (max-width: 480px) {
  .logo {
    top: 25%; /* adjust vertical position */
    width: 400px; /* smaller width for mobiles */
    height: auto; 
    max-width: 100%; /* optional responsive limit */
  }

}
@media screen and (max-width: 600px) {
  .logo {
    max-width: 350px; /* smaller on iPhones */
    width: 60%;
  }
}
/* Hero section with background image */
.hero {
  height: 100vh; /* adjust to your design */
  background: url('images/your-bg.jpg') no-repeat center center/cover;
  position: relative;
}

/* Attractive announcement bar */
.announcement-bar {
  width: 100%;
  background: linear-gradient(90deg, #131313, #1f1f1f); /* subtle gradient */
  color: #fff;
  text-align: center;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-bottom: 3px solid #dfbe49;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3); /* depth */
  animation: slideUp 0.8s ease-out, glow 2s infinite alternate;
  position: relative;
  z-index: 10;
}

/* Slide up entrance */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* Tablet screens (≤ 768px) */
@media (max-width: 768px) {
  .announcement-bar {
    font-size: 0.95rem;
    padding: 10px 0;
    letter-spacing: 1px;
  }
}

/* Small phones (≤ 480px) */
@media (max-width: 480px) {
  .announcement-bar {
    font-size: 0.85rem;
    padding: 8px 6px;
    letter-spacing: 0.5px;
    white-space: nowrap; /* prevents text from breaking into 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
