/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f9f7fb;
  color: #333;
}

/* HEADER / NAVBAR - Myntra Style */
header {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 30px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-area img {
  height: 50px;
}

.logo-area span {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #D15575, #FF6B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Main Navigation */
.main-nav {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-shrink: 0;
}

.main-nav a {
  text-decoration: none;
  color: #282c3f;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: #D15575;
}

.main-nav a.active {
  background-color: #D15575;
  /* Deep Rose from image */
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 30px;
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 10px 45px 10px 40px;
  border: 1px solid #f5f5f6;
  background: #f5f5f6;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #D15575;
  background: #fff;
}

.search-bar::before {
  content: "🔍";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

/* Utility Icons */
.utility-nav {
  display: flex;
  gap: 25px;
  align-items: center;
  flex-shrink: 0;
}

.utility-nav a {
  text-decoration: none;
  color: #282c3f;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.utility-nav a:hover {
  color: #D15575;
}

.utility-nav .icon {
  font-size: 20px;
}

/* GENERIC LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 20px;
  color: #555;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  background: #D15575;
  color: #fff;
  text-decoration: none;
  border-radius: 25px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  margin-top: 5px;
  margin-bottom: 5px;
}

.btn-outline {
  background: transparent;
  color: #D15575;
  border: 1px solid #D15575;
}

/* SECTION TITLES */
.section-title {
  font-size: 26px;
  margin-bottom: 10px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

/* PRODUCT GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 15px;
  text-align: center;
  /* Flex layout for bottom alignment */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card img {
  width: 100%;
  height: 300px;
  /* Fixed height for uniformity */
  object-fit: contain;
  /* Contain to show full product without cropping */
  object-position: center;
  background-color: #f8f8f8;
  /* Light background for proper display */
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 16px;
  margin-bottom: 5px;
  /* Fixed height for alignment (approx 2 lines) */
  height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card p {
  margin-bottom: 8px;
}

.price {
  font-weight: 700;
  color: #D15575;
  margin-bottom: 10px;
}

/* Push the last div (buttons) to the bottom */
.product-card>div:last-child {
  margin-top: auto;
}

/* ABOUT PAGE */
.about-wrapper {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h1 {
  font-size: 32px;
  margin-bottom: 15px;
  text-align: left;
}

.about-text p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #555;
}

.about-highlight {
  background: #fff;
  padding: 18px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin-top: 15px;
}

.about-highlight h3 {
  margin-bottom: 10px;
  font-size: 17px;
  color: #D15575;
}

.about-highlight ul {
  margin-left: 18px;
  line-height: 1.6;
  font-size: 14px;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}

/* VALUES SECTION */
.values-section {
  margin-top: 50px;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 25px;
}

.value-card {
  background: #fff;
  padding: 22px 18px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.value-card span {
  font-size: 32px;
  display: block;
  margin-bottom: 10px;
}

.value-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #D15575;
}

.value-card p {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h1 {
    text-align: center;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}


/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
}

/* CART */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart-table th,
.cart-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  text-align: left;
}

.cart-summary {
  text-align: right;
  font-weight: 600;
  margin-top: 10px;
}

/* FOOTER - Myntra Style */
footer {
  background: #282c3f;
  color: #d4d5d9;
  padding: 40px 40px 20px;
  font-size: 14px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
  letter-spacing: 0.5px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: #d4d5d9;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #D15575;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #3e4152;
  text-align: center;
  font-size: 13px;
}

/* HERO SECTION */
.hero {
  position: relative;
  height: 90vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-left: 6%;
}

/* Fullscreen slider images */
.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right top;
  /* shows the girl on the right side */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/* Active slide visible */
.hero-slider .active {
  opacity: 1;
}

/* Black overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  /* soft black overlay */
  z-index: 1;
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  text-align: left;
  /* move text to left */
}

.hero-content h1 {
  font-size: 58px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 20px;
  color: #eee;
  max-width: 480px;
  margin-bottom: 25px;
}

.hero-content .btn {
  padding: 12px 28px;
  font-size: 18px;
  border-radius: 30px;
}



/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 10px 20px;
    gap: 15px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: space-around;
    gap: 15px;
    border-top: 1px solid #f5f5f6;
    padding-top: 10px;
  }

  .main-nav a {
    font-size: 12px;
  }

  .search-bar {
    order: 2;
    max-width: 100%;
    flex: 1;
  }

  .utility-nav {
    order: 1;
    gap: 15px;
  }

  .utility-nav a span:last-child {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .logo-area img {
    height: 40px;
  }

  .logo-area span {
    font-size: 16px;
  }
}

.cart-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

/* WHY CHOOSE SECTION */
.why-choose {
  text-align: center;
  margin-top: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.feature-card {
  background: #fff;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 12px;
}

.feature-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #D15575;
}

.feature-card p {
  font-size: 14px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* CHECKOUT */
.checkout-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 25px;
}

.checkout-box {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.checkout-box h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #D15575;
}

.checkout-box input,
.checkout-box textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}

.summary-row.total {
  font-weight: 700;
  margin-top: 12px;
}

.radio-option {
  display: block;
  margin-bottom: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

.category-filter {
  text-align: center;
  margin-bottom: 25px;
}

.filter-btn {
  background: #fff;
  border: 2px solid #D15575;
  color: #D15575;
  padding: 8px 20px;
  margin: 5px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.filter-btn:hover {
  background: #D15575;
  color: white;
}

.filter-btn.active {
  background: #D15575;
  color: white;
}

/* SHOP BY CATEGORY SECTION - Visual Tiles */
.shop-category {
  text-align: center;
  padding: 60px 40px;
  background: #fff;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
}

.category-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.category-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.category-tile-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  padding: 15px;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Legacy button styles - keep for other pages */
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.cat-btn {
  padding: 12px 28px;
  background: #D15575;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 25px;
  font-size: 15px;
  transition: 0.3s;
}

.cat-btn:hover {
  background: #d9325a;
  transform: translateY(-3px);
}

/* SINGLE ROW CATEGORIES - Force Layout */
.category-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge */
}

.category-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

.category-tile {
  flex: 0 0 auto;
  min-width: 180px;
  /* Ensure suitable width */
  display: block;
  /* Ensure it behaves like a block */
}

/* RESPONSIVE NAVBAR */
.hamburger {
  display: none;
  /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: 0.3s;
}

@media (max-width: 900px) {
  header {
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 0;
    box-shadow: -2px 5px 10px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #eee;
    z-index: 1000;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
  }

  .main-nav a.active {
    border-radius: 0;
    background-color: #f9f7fb;
    color: #D15575 !important;
  }

  .logo-area {
    order: 1;
  }
}

/* HERO SECTION FIXES */
.hero {
  position: relative;
  min-height: 80vh;
  /* Default tall hero for desktop */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slider img.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Cover the area */
  object-position: center;
}

/* Ensure content is readable */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  /* White text for contrast */
}

/* Mobile Height Adjustment */
@media (max-width: 768px) {
  .hero {
    min-height: 40vh;
    /* Further reduced to ~350px-400px */
    padding: 30px 15px;
  }

  .hero h1 {
    font-size: 28px;
  }

  /* Two columns for products on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Adjust cards for smaller space */
  .product-card {
    padding: 10px;
  }

  .product-card img {
    height: 180px;
    /* Proportional height for smaller cards */
  }
}