:root {
  --primary-color: #2874f0;
  /* Flipkart Blue */
  --primary-hover: #1e5bb8;
  --secondary-color: #fb641b;
  /* Flipkart Orange for action buttons */
  --text-dark: #212121;
  --text-light: #878787;
  --bg-color: #f1f3f6;
  /* Light gray background */
  --white: #fff;
  --border-color: #e0e0e0;
}

body {
  font-family: Roboto, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  color: var(--primary-color);
}

/* Header */
.site-header {
  background: var(--primary-color);
  padding: 10px 0;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .navbar-brand span {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  color: var(--white) !important;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
  color: var(--white) !important;
  font-weight: 500;
  margin: 0 10px;
  font-size: 15px;
}

.navbar-nav .nav-link:hover {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.search-form input {
  border-radius: 2px !important;
  border: none;
  padding: 8px 15px;
  width: 350px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .23);
}

.search-form button {
  color: var(--primary-color) !important;
  background: var(--white);
  border-radius: 2px;
  border: none;
}

/* Product Grid container */
.product-board {
  background: var(--white);
  padding: 15px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--white);
  /* For hover effect */
  border-radius: 2px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
  height: 100%;
  padding: 10px;
}

.product-card:hover {
  box-shadow: 0 3px 16px 0 rgba(0, 0, 0, .11);
}

.product-img-wrap {
  text-align: center;
  margin-bottom: 15px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  text-align: center;
}

.product-title {
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 16px;
}

.product-category {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
}

/* Single Post */
.single-post-container {
  background: var(--white);
  padding: 30px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.single-post-image {
  max-height: 500px;
  object-fit: contain;
  width: 100%;
  border: 1px solid var(--border-color);
  padding: 10px;
}

.buy-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 2px;
  border: none;
  width: 100%;
  margin-top: 15px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .2);
}

.buy-btn:hover {
  background-color: #f75d11;
  color: var(--white);
}

/* Adsense Placeholders */
.ad-slot {
  background: #fdfdfd;
  border: 1px dashed #d1d1d1;
  text-align: center;
  color: #a1a1a1;
  padding: 20px;
  margin: 20px 0;
  font-size: 12px;
  letter-spacing: 1px;
}

.ad-sidebar {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: #172337;
  color: var(--white);
  padding: 40px 0 20px;
  margin-top: 40px;
  font-size: 13px;
}

.site-footer a {
  color: var(--white);
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-title {
  color: var(--text-light);
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 15px;
}

.footer-bottom {
  border-top: 1px solid #454d5e;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
}

/* -------------------------------- */
/* MOBILE OPTIMIZATIONS             */
/* -------------------------------- */
.search-form {
  width: 100%;
}

.search-form input {
  width: 100%;
  border-radius: 2px !important;
}

@media (min-width: 992px) {
  .search-form input {
    width: 350px;
  }
}

@media (max-width: 576px) {

  /* Site Header */
  .site-header {
    padding: 5px 0;
  }

  .site-header .navbar-brand span {
    font-size: 1.2rem;
  }

  /* Product Cards Grid: Make them 2-column fit */
  .product-img-wrap {
    height: 160px;
    margin-bottom: 8px;
  }

  .product-card {
    padding: 8px;
  }

  .product-title {
    font-size: 13px;
    margin-bottom: 4px;
    line-height: 1.4;
  }

  .product-price {
    font-size: 14px;
  }

  /* Single Post Mobile */
  .single-post-container {
    padding: 15px;
  }

  .single-post-image {
    max-height: 300px;
    padding: 5px;
  }

  .buy-btn,
  .btn-warning,
  .btn-secondary,
  .btn-primary {
    font-size: 13px !important;
    padding: 10px !important;
  }

  /* Related Products Slider */
  .slider-item {
    flex: 0 0 130px !important;
    min-width: 130px !important;
  }

  .slider-item img {
    height: 160px !important;
  }
}