@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-color: #4A2C2A;     /* Dark maroon */
  --secondary-color: #8B4513;  /* Saddle brown */
  --accent-color: #FFD700;     /* Gold */
  --light-bg: #F5F5F0;         /* Off-white */
  --dark-text: #333;
  --hover-bg: rgba(255, 215, 0, 0.1); /* Light gold hover */
  --logo-bg: #FFFFFF;
  --category-bg: #6B2D26;      /* Maroon for category cards */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ================ TYPOGRAPHY ================ */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 600;
  color: var(--primary-color);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }

/* ================ UTILITIES ================ */
.pt-30 { padding-top: 30px; }
.pb-30 { padding-bottom: 30px; }
.mb_100 { margin-bottom: 100px; }
.mt_100 { margin-top: 100px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-15 { gap: 15px; }
.gap-25 { gap: 25px; }

/* ================ HEADER TOP ================ */
.header-top {
  background-color: var(--primary-color);
  padding: 10px 0;
  font-size: 0.9rem;
}

.header-top-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.header-top .left,
.header-top .social-header {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.header-top .call {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-top .call a {
  font-size: 0.85rem;
  color: #fff;
}

.social-header ul {
  display: flex;
  list-style: none;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.social-header a {
  color: #fff;
  font-size: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-header a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ================ NAVBAR ================ */
.ep-header-section {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  box-shadow: 0 4px 12px rgba(226, 157, 56, 0.15);
  transition: all 0.3s ease;
}

.navbar {
  padding: 12px 0;
  transition: padding 0.3s ease;
}

.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  padding: 0;
  margin: 0;
}

.navbar-brand img {
  height: 85px;
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.08);
}

.navbar-toggler {
  border: none;
  padding: 6px 10px;
  background-color: var(--primary-color);
  border-radius: 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 20px;
  height: 20px;
}

.navbar-nav {
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color) !important;
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--hover-bg);
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
  padding: 12px 0;
  min-width: 220px;
  max-height: 70vh;
  overflow-y: auto;
  background-color: #fff;
}

.dropdown-item {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--dark-text);
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 8px;
}

.dropdown-item:hover {
  background-color: var(--hover-bg);
  color: var(--secondary-color);
  transform: translateX(5px);
}

.view-more-link {
  font-weight: 600;
  color: var(--accent-color) !important;
  border-top: 1px solid #eee;
  margin-top: 8px;
  padding-top: 8px;
  text-align: center;
}

.view-more-link:hover {
  background-color: rgba(255, 215, 0, 0.05);
  color: var(--secondary-color) !important;
}

/* Cart Icon */
.header-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.header-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary-color);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.header-icon:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: translateY(-3px);
}

.cart-indicator {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ================ CAROUSEL ================ */
.carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 50px;
}

.carousel-item {
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item:hover img {
  transform: scale(1.03);
}

.carousel-caption {
  position: absolute;
  bottom: 15%;
  left: 5%;
  max-width: 50%;
  background: rgba(74, 44, 42, 0.75);
  padding: 20px 25px;
  border-radius: 12px;
  text-align: left;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption h5 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.carousel-caption p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

/* ================ CATEGORIES SECTION ================ */
.top-categories {
  padding: 60px 0;
  background-color: #fff;
}

.top-categories h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--category-bg);
  margin-bottom: 40px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.top-categories h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

.category-card {
  width: 100%;
  max-width: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #fff;
  aspect-ratio: 2/3; /* Maintain aspect ratio for all cards */
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card h4 {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover h4 {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateX(-50%) translateY(-5px);
}

/* ================ FOOTER ================ */
.footer {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #fff;
  padding: 70px 0 30px;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.footer-logo img {
  height: 90px;
  filter: brightness(0) invert(1);
  margin-bottom: 15px;
}

.footer-heading {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #eee;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(8px);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #ddd;
}

/* ================ BACK TO TOP ================ */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 998;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* ================ PAGE BANNER ================ */
.page_banner_overlay {
  background: linear-gradient(rgba(226, 157, 56, 0.25), rgba(226, 157, 56, 0.15)), url('banner-bg.jpg') center/cover no-repeat;
  padding: 80px 0;
}

.page_banner_text h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
  text-transform: capitalize;
}

.page_banner_text ul {
  display: flex;
  justify-content: center;
  gap: 10px 25px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.page_banner_text ul li a {
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
  position: relative;
  transition: all 0.3s ease;
}

.page_banner_text ul li:not(:last-child) a::after {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.7rem;
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
}

.page_banner_text ul li a:hover {
  color: var(--accent-color);
  opacity: 1;
}

/* ================ PRODUCT CARD (EXAMPLE) ================ */
.product-card {
  background: #fff;
  border: 2px solid var(--accent-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-card:hover img {
  transform: scale(1.08);
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-description-view {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-description-price {
  color: var(--accent-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 12px 0;
}

.card-description-viewdetails {
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 600;
  align-self: flex-start;
  transition: all 0.3s ease;
}

.card-description-viewdetails:hover {
  background: var(--secondary-color);
  color: #fff;
  transform: translateY(-2px);
}

/* ================ RESPONSIVE DESIGN ================ */

/* Large Devices */
@media (max-width: 1200px) {
  .container { max-width: 1140px; }
  .carousel-caption { max-width: 60%; }
  .carousel-caption h5 { font-size: 2rem; }
}

/* Medium Devices */
@media (max-width: 992px) {
  .header-top-wrapper { flex-direction: column; gap: 12px; text-align: center; }
  .header-top .left, .social-header { justify-content: center; }
  .carousel-item img { height: 55vh; }
  .carousel-caption { bottom: 10%; left: 5%; max-width: 70%; padding: 15px; }
  .carousel-caption h5 { font-size: 1.8rem; }
  .category-row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
  .category-card { max-width: 100%; }
  .navbar-collapse {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
  .nav-link { justify-content: center; }
}

/* Small Devices */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .carousel-item img { height: 45vh; }
  .carousel-caption { bottom: 8%; max-width: 80%; padding: 12px; }
  .carousel-caption h5 { font-size: 1.5rem; }
  .carousel-caption p { font-size: 0.95rem; }
  .navbar-brand img { height: 70px; }
  .top-categories h2 { font-size: 1.8rem; }
  .category-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
  .category-card h4 { font-size: 0.9rem; padding: 6px 14px; }
  .footer { padding: 50px 0 20px; }
  .footer-logo img { height: 70px; }
  .page_banner_text h1 { font-size: 2.5rem; }
  
  /* Fix product card images on mobile */
  .product-card img {
    height: 180px;
  }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .container { padding: 0 12px; }
  .header-top { font-size: 0.8rem; padding: 8px 0; }
  .header-top .left, .social-header { flex-wrap: wrap; gap: 10px; }
  .social-header a { width: 28px; height: 28px; font-size: 0.9rem; }
  .carousel-item img { height: 35vh; }
  .carousel-caption { bottom: 5%; left: 3%; max-width: 90%; padding: 10px; border-radius: 8px; }
  .carousel-caption h5 { font-size: 1.2rem; }
  .carousel-caption p { font-size: 0.85rem; display: none; }
  .navbar-brand img { height: 60px; }
  .top-categories { padding: 40px 0; }
  .top-categories h2 { font-size: 1.5rem; }
  .category-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { aspect-ratio: 3/4; } /* Adjust aspect ratio for smaller screens */
  .category-card h4 { font-size: 0.8rem; padding: 5px 10px; }
  .footer-logo img { height: 60px; }
  .footer-heading { font-size: 1.1rem; }
  .footer-social a { width: 35px; height: 35px; }
  .back-to-top { width: 45px; height: 45px; font-size: 1.1rem; bottom: 15px; right: 15px; }
  .page_banner_text h1 { font-size: 2rem; }
  .page_banner_text ul { gap: 8px 15px; }
  .page_banner_text ul li a { font-size: 0.9rem; }
  
  /* Further optimize product card images for very small screens */
  .product-card img {
    height: 150px;
  }
}

/* Footer Gradient */
.footer-modern {
    background: linear-gradient(135deg, #5a0910 0%, #be2933e0 100%);
    color: #fff;
    padding: 50px 0 20px;
    font-size: 0.97rem;
    position: relative;
    overflow: hidden;
}
.footer-row { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-section { flex: 1 1 180px; min-width: 180px; max-width: 300px; }

.footer-icon { font-size: 0.9rem; margin-right: 6px; }
.footer-heading { font-size: 1.08rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 20px 0 8px; }
.footer-links li { margin-bottom: 7px; }
.footer-links a { color: #fff; text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: #ffb347; }

.footer-social a { color: #fff; font-size: 1rem; margin-right: 10px; transition: .2s; }
.footer-social a:hover { color: #ffb347; transform: scale(1.15) rotate(-8deg); }

.newsletter-form .form-control {
    border-radius: 16px 0 0 16px; border: none; padding: 8px 14px; font-size: 0.95rem;
}
.newsletter-form .btn {
    border-radius: 0 16px 16px 0; background: #ffb347; color: #232526; border: none;
    font-weight: 600; padding: 8px 18px; transition: .2s;
}
.newsletter-form .btn:hover { background: #fff; color: #ffb347; }

.contact-info p { margin-bottom: 6px; font-size: 0.97rem; }

.footer-payments {
    display: flex; justify-content: center; gap: 18px; margin: 20px 0 10px; flex-wrap: wrap;
}
.footer-payments i { font-size: 22px; color: #fff; transition: .2s; }
.footer-payments i:hover { color: #ffb347; transform: scale(1.1); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1); margin-top: 25px; padding-top: 12px;
    text-align: center; font-size: 0.95rem; color: #ddd;
}

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 25px; right: 25px; width: 44px; height: 44px;
    background: #ffb347; color: #232526; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 4px 12px rgba(0,0,0,.2);
    opacity: 0; visibility: hidden; transition: .3s; z-index: 998;
}
.back-to-top.active { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #fff; transform: translateY(-4px); }

/* WhatsApp Float */
.whatsapp-float {
    position: fixed; bottom: 80px; right: 25px; width: 56px; height: 56px;
    background: #25D366; color: #fff; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 16px rgba(0,0,0,.3);
    z-index: 998; transition: .3s; animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* Chat Widget */
.chat-widget { position: fixed; bottom: 25px; left: 25px; z-index: 999; }
.chat-button {
    width: 52px; height: 52px; background: #ffb347; color: #232526; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
    cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: .3s;
}
.chat-button:hover { background: #fff; transform: scale(1.1); }

.chat-box {
    position: absolute; bottom: 70px; left: 0; width: 310px; background: #fff;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); overflow: hidden;
    display: none; flex-direction: column; max-height: 480px;
}
.chat-box.active { display: flex; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.chat-header {
    background: #ffb347; color: #232526; padding: 14px 18px; display: flex;
    justify-content: space-between; align-items: center; font-weight: 600;
}
.chat-close { background: none; border: none; font-size: 18px; cursor: pointer; }
.chat-close:hover { color: #d35400; }

.chat-body { flex: 1; padding: 16px; overflow-y: auto; background: #f8f9fa; max-height: 300px; }
.chat-message { margin-bottom: 12px; display: flex; }
.chat-message.user { justify-content: flex-end; }
.message-bubble {
    max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 0.95rem;
    line-height: 1.4; word-wrap: break-word;
}
.bot .message-bubble { background: #e9ecef; color: #333; border-bottom-left-radius: 4px; }
.user .message-bubble { background: #ffb347; color: #232526; border-bottom-right-radius: 4px; }

.chat-footer {
    padding: 12px 16px; background: #fff; border-top: 1px solid #eee; display: flex; gap: 8px;
}
.chat-input {
    flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 20px;
    font-size: 0.95rem; outline: none;
}
.chat-input:focus { border-color: #ffb347; }
.chat-send {
    width: 40px; height: 40px; background: #ffb347; color: #232526; border: none;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: .2s;
}
.chat-send:hover { background: #d35400; color: #fff; }

/* Responsive */
@media (max-width: 991px) {
    .footer-row { flex-direction: column; align-items: stretch; }
    .footer-section { max-width: 100%; }
    .whatsapp-float { bottom: 90px; right: 15px; width: 50px; height: 50px; font-size: 24px; }
    .chat-widget { bottom: 15px; left: 15px; }
    .chat-button { width: 48px; height: 48px; }
    .chat-box { width: 280px; }
}
@media (max-width: 576px) {
    .whatsapp-float { bottom: 80px; right: 12px; width: 48px; height: 48px; }
    .chat-box { width: 260px; left: -100px; }
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-color: #4A2C2A;     /* Dark maroon */
  --secondary-color: #8B4513;  /* Saddle brown */
  --accent-color: #FFD700;     /* Gold */
  --light-bg: #F5F5F0;         /* Off-white */
  --dark-text: #333;
  --hover-bg: rgba(255, 215, 0, 0.1); /* Light gold hover */
  --logo-bg: #FFFFFF;
  --category-bg: #6B2D26;      /* Maroon for category cards */
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light-bg);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ================ CAROUSEL FIXES ================ */
.carousel {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  margin-bottom: 50px;
  touch-action: pan-y pinch-zoom;
}

.carousel-item {
  position: relative;
  transition: transform 0.6s ease-in-out;
}

.carousel-img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carousel-item:hover .carousel-img {
  transform: scale(1.03);
}

.carousel-caption {
  position: absolute;
  bottom: 15%;
  left: 5%;
  right: 5%;
  max-width: 90%;
  background: rgba(74, 44, 42, 0.85);
  padding: 20px 25px;
  border-radius: 12px;
  text-align: left;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption h5 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.carousel-caption p {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  opacity: 0.9;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* ================ CATEGORIES SECTION ================ */
.top-categories {
  padding: 60px 0;
  background-color: #fff;
}

.top-categories h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--category-bg);
  margin-bottom: 40px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
}

.top-categories h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 25px;
  justify-items: center;
}

.category-card {
  width: 100%;
  max-width: 200px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  background: #fff;
  aspect-ratio: 2/3;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-card h4 {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-card:hover::before {
  opacity: 1;
}

.category-card:hover h4 {
  background: var(--accent-color);
  color: var(--primary-color);
  transform: translateX(-50%) translateY(-5px);
}

/* ================ RESPONSIVE DESIGN ================ */

/* Large Devices */
@media (max-width: 1200px) {
  .container { max-width: 1140px; }
  .carousel-caption { max-width: 60%; }
  .carousel-caption h5 { font-size: 2rem; }
}

/* Medium Devices */
@media (max-width: 992px) {
  .carousel-img { height: 55vh; }
  .carousel-caption { 
    bottom: 10%; 
    left: 5%; 
    right: 5%;
    max-width: 80%; 
    padding: 15px; 
  }
  .carousel-caption h5 { font-size: 1.8rem; }
  .carousel-caption p { font-size: 1rem; }
  .category-row { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
  .category-card { max-width: 100%; }
}

/* Small Devices */
@media (max-width: 768px) {
  .carousel-img { height: 45vh; }
  .carousel-caption { 
    bottom: 8%; 
    max-width: 90%; 
    padding: 12px; 
    text-align: center;
  }
  .carousel-caption h5 { font-size: 1.5rem; margin-bottom: 8px; }
  .carousel-caption p { font-size: 0.95rem; margin-bottom: 12px; }
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  .carousel-control-prev { left: 10px; }
  .carousel-control-next { right: 10px; }
  .top-categories h2 { font-size: 1.8rem; }
  .category-row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
  .category-card h4 { font-size: 0.9rem; padding: 6px 14px; }
}

/* Extra Small Devices */
@media (max-width: 576px) {
  .container { padding: 0 12px; }
  .carousel-img { height: 35vh; }
  .carousel-caption { 
    bottom: 5%; 
    left: 3%; 
    right: 3%;
    max-width: 94%; 
    padding: 10px; 
    border-radius: 8px; 
  }
  .carousel-caption h5 { 
    font-size: 1.2rem; 
    margin-bottom: 5px;
  }
  .carousel-caption p { 
    font-size: 0.85rem; 
    margin-bottom: 10px;
    display: block !important; /* Ensure text is always visible */
  }
  .carousel-caption .btn {
    padding: 6px 16px;
    font-size: 0.9rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 35px;
    height: 35px;
  }
  .carousel-control-prev { left: 5px; }
  .carousel-control-next { right: 5px; }
  .top-categories { padding: 40px 0; }
  .top-categories h2 { font-size: 1.5rem; }
  .category-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card { aspect-ratio: 3/4; }
  .category-card h4 { 
    font-size: 0.8rem; 
    padding: 5px 10px;
    white-space: normal;
    text-align: center;
    width: 90%;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .carousel-item:hover .carousel-img {
    transform: none;
  }
  
  .category-card:hover {
    transform: none;
  }
  
  .category-card:hover img {
    transform: none;
  }
  
  .category-card:hover h4 {
    transform: translateX(-50%);
  }
}

/* Ensure Bootstrap carousel works properly */
.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
}