/* CSS Variables */
:root {
  --white: #ffffff;
  --airy-blue: #bad5f2;
  --pale-pink-beige: #f5eae9;
  --steel-blue: #3e5f77;
  --soft-gray: #f8f9fa;
  --border-color: #e9ecef;
  --shadow: 0 4px 20px rgba(62, 95, 119, 0.1);
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--steel-blue);
  background: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-image {
  width: 50px; /* Slightly wider for oval shape */
  height: 70px; /* Slightly shorter height */
  object-fit: cover; /* Changed to cover for better oval fit */
  border-radius: 70%; /* This creates the oval/circle shape */
  border: 2px solid var(--airy-blue); /* Optional border */
  transition: var(--transition);
}

.logo h1 {
  font-family: "Playfair Display", serif;
  color: var(--steel-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--steel-blue);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--airy-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--airy-blue);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.search-btn,
.cart-btn {
  color: var(--steel-blue);
  font-size: 1.2rem;
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--steel-blue);
  cursor: pointer;
}

/* Hero Banner & Slider */
.hero-banner {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background: var(--airy-blue);
}

.slider-container {
  position: relative;
  height: 100%;
  width: 100%;
}

.image-slider {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.7);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(0px);
}

.slide-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-btn {
  display: inline-block;
  background: var(--pale-pink-beige);
  color: var(--steel-blue);
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.slider-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--white);
}

/* Categories Section */
.categories-section {
  padding: 4rem 0;
  background: var(--airy-blue);
}

.section-title {
  font-family: "Playfair Display", serif;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--steel-blue);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.category-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: 1px solid var(--pale-pink-beige);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(62, 95, 119, 0.15);
}

.category-icon {
  font-size: 3rem;
  color: var(--airy-blue);
  margin-bottom: 1rem;
}

.category-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--steel-blue);
}

.category-link {
  color: var(--airy-blue);
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.category-link:hover {
  color: var(--steel-blue);
}

/* Products Section */
.products-section {
  padding: 4rem 0;
  background: var(--white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--pale-pink-beige);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(62, 95, 119, 0.1);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--steel-blue);
}

.product-brand {
  color: var(--airy-blue);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--steel-blue);
  margin-bottom: 1rem;
}

.product-details {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.add-to-cart {
  width: 100%;
  background: var(--pale-pink-beige);
  color: var(--steel-blue);
  border: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.add-to-cart:hover {
  background: var(--airy-blue);
  color: var(--white);
}

/* Footer */
.footer {
  background: var(--steel-blue);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--pale-pink-beige);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--pale-pink-beige);
}

.social-links a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--pale-pink-beige);
}

/* Search Bar Styles */
.search-container {
  position: relative;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 25px;
  padding: 0.3rem;
  box-shadow: 0 2px 10px rgba(62, 95, 119, 0.1);
  border: 1px solid var(--airy-blue);
}

.search-input {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  color: var(--steel-blue);
  width: 200px;
  outline: none;
}

.search-input::placeholder {
  color: var(--airy-blue);
}

.search-btn {
  background: var(--airy-blue);
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--steel-blue);
  transform: scale(1.05);
}

/* Mobile Search */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  /* Keep the search bar visible and flexible */
  .search-container {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 3; /* ensures it stays below menu/buttons if needed */
  }

  .search-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    border-radius: 25px;
    padding: 0.3rem 0.5rem;
    box-shadow: 0 2px 10px rgba(62, 95, 119, 0.1);
    border: 1px solid var(--airy-blue);
    width: clamp(250px, 90%, 400px); /* ✅ fully responsive width */
  }

  .search-form.active {
    display: flex;
  }

  search-input {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--steel-blue);
    flex: 1; /* makes it flexible */
    outline: none;
  }

  .search-btn {
    background: var(--airy-blue);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
  }

  .search-btn:hover {
    background: var(--steel-blue);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .logo-image {
    width: 35px;
    height: 35px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-banner {
    height: 60vh;
  }

  .slide-title {
    font-size: 2rem;
  }

  .slide-text {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .slide-content {
    padding: 1.5rem;
  }

  .nav-wrapper {
    padding: 0.5rem 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .logo-image {
    width: 30px;
    height: 30px;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .hero-banner {
    height: 50vh;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .categories-section,
  .products-section {
    padding: 2rem 0;
  }

  .product-info {
    padding: 1rem;
  }

  /* ====== Maintain Desktop Layout But Make It Flexible ====== */

  /* Make text and images scale smoothly */
  html {
    font-size: clamp(12px, 1.2vw, 16px);
  }

  body {
    overflow-x: hidden;
  }

  /* Ensure all sections shrink proportionally */
  .container,
  .header,
  .hero-banner,
  .categories-section,
  .products-section,
  .footer {
    width: 100%;
    max-width: 100%;
  }

  /* Prevent overflow and large gaps on small screens */
  img,
  video {
    max-width: 100%;
    height: auto;
  }

  /* Keep grids flexible without stacking */
  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
  }

  /* Adjust hero banner and text size fluidly */
  .slide-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
  }

  .slide-text {
    font-size: clamp(1rem, 2vw, 1.2rem);
  }

  .cta-btn {
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    padding: clamp(8px, 1vw, 12px) clamp(20px, 2vw, 30px);
  }

  /* Make cards and boxes scale proportionally */
  .category-card,
  .product-card {
    transform: scale(1);
    transition: transform 0.3s ease;
  }

  .category-card:hover,
  .product-card:hover {
    transform: scale(1.02);
  }

  /* Keep header and menu inline without collapsing */
  .nav-wrapper,
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
  }

  .nav-link {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
  }

  /* Prevent text overlap inside cards */
  .product-info,
  .category-card h3 {
    word-wrap: break-word;
  }

  /* Footer flexible spacing */
  .footer-content {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
  }
}
