/* Reset some default spacing */
body, html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  color: #212529;
}

/* Navbar */
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}
.navbar .nav-link {
  color: #333;
  font-weight: 500;
  margin-right: 15px;
}
.navbar .nav-link:hover {
  color: #007bff;
}

/* Hero Banner */
.hero-banner {
  height: 80vh;
  background-position: center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}
.hero-banner .container h1 {
  font-size: 3.5rem;
  font-weight: bold;
}
.hero-banner .container p {
  font-size: 1.5rem;
  margin-bottom: 30px;
}
.hero-banner .btn {
  padding: 12px 30px;
  font-size: 1rem;
}

/* Section Headers */
section h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
}
.card-text {
  font-size: 1rem;
  color: #666;
}

/* Buttons */
.btn-primary, .btn-outline-primary {
  border-radius: 30px;
}
.btn-success {
  border-radius: 30px;
}

/* Footer */
footer {
  background-color: #343a40;
  color: white;
  padding: 40px 0;
}
footer a {
  color: #ddd;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
}
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-banner .container h1 {
    font-size: 2.2rem;
  }
  .hero-banner .container p {
    font-size: 1.1rem;
  }
}

/* Animations (optional refinements) */
[data-aos] {
  transition-duration: 0.8s;
}
.fashion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

.fashion-item {
  position: relative;
  overflow: hidden;
}

.fashion-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.fashion-item:hover img {
  transform: scale(1.05);
}

.fashion-item-large {
  grid-column: span 2;
  grid-row: span 2;
}
.hero-section {
  position: relative;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-section .overlay {
  background-color: rgba(0, 0, 0, 0.6);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-section .container {
  z-index: 1;
  position: relative;
}

/* Flip Card Base */
.flip-card {
  background: transparent;
  perspective: 1000px;
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  transition: transform 0.5s ease;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.7s ease;
  border-radius: 1rem;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Front of Card */
.flip-card-front {
  background: linear-gradient(135deg, #1d1f2f, #2c3e50);
  color: #fff;
  border-radius: 1rem;
  backface-visibility: hidden;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.flip-card-front img {
  max-height: 180px;
  border-radius: 10px;
  margin-bottom: 1rem;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.05);
}

/* Back of Card */
.flip-card-back {
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  color: #111;
  border-radius: 1rem;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  padding: 2rem;
  height: 100%;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.flip-card-back h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.flip-card-back p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #555;
}

.flip-card-back .btn {
  background: #222;
  color: #fff;
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.flip-card-back .btn:hover {
  background: #000;
  transform: scale(1.05);
  box-shadow: 0 0 10px #000;
}
#categories h2 {
  position: relative;
  font-weight: 700;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
}

#categories h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, #ff5f6d, #ffc371);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}
/* Overlay Image on Featured Products */
.overlay-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0.05;
  z-index: 0;
}

.overlay-image img {
  width: 100%;
  height: auto;
}

/* Featured section remains above overlay */
#featured-products .container {
  position: relative;
  z-index: 2;
}

/* Slim Banner Styling */
.slim-banner img {
  max-height: 120px;
  object-fit: cover;
  width: 100%;
}
