@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');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #F8F8F8;
}

h1 {
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 32px;
  color: #1a1a1a;
}

h3 {
  margin-top: 30px;
  color: #1a1a1a;
  padding-left: 20px;
  font-weight: 700;
  font-size: 28px;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-radius: 0 0 12px 12px;
  min-height: 60px;
}

.navbar .logo {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
}

.navbar .logo i {
  color: #0f9d58;
  font-size: 26px;
  margin-right: 8px;
  font-style: normal;
}

.search-bar {
  flex: 1;
  margin: 0 35px;
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 25px;
  padding: 10px 20px;
  max-width: 550px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e9ecef;
}

.search-bar select,
.search-bar input {
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
}

.search-bar select {
  margin-right: 15px;
  color: #555;
}

.search-bar input {
  flex: 1;
  color: #333;
}

.search-bar i {
  font-size: 16px;
  color: #888;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #A259FF;
}

.nav-links a.active {
  color: #A259FF;
  font-weight: 600;
}

.login-btn {
  background-color: #A259FF;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(162,89,255,0.25);
  font-size: 14px;
}

.login-btn:hover {
  background-color: #7C3AED;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(162,89,255,0.35);
}

/* Promo Banners */
.promo-section {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 15px;
}

.left-banner {
  flex: 2;
  background-image: url('images/banner.png ');

  border-radius: 30px;
  background-size: cover;
  background-position: center;
  color: rgb(0, 0, 0);
  height: 420px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  
}

.right-banners {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.right-banner {
  background-size: cover;
  background-position: center;
  color: white;
  height: 190px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
}

.combo {
  background-image: url('images/banner-ad-2.jpg');
}

.coupons {
  background-image: url('images/banner-ad-1.jpg');
}

.left-banner h2,
.right-banner h2 {
  font-size: 24px;
  font-weight: bold;
}

.left-banner p,
.right-banner p {
  margin-top: 10px;
  font-size: 16px;
}

.shop-now {
  margin-top: 15px;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}

/* Product Section */
.product-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 30px;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px 15px;
  }
}

@media (min-width: 1200px) {
  .product-container {
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 40px 35px;
  }
}

.product {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  margin: 0 auto;
  width: 100%;
}

.product:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-color: #ddd;
}

.product img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  border-radius: 4px;
  background: #f8f9fa;
  margin-bottom: 10px;
  padding: 6px;
}

/* Promo Newsletter Banner */
.promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-image: url('images/banner-newsletter.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 60px 40px;
  min-height: 300px;
  gap: 30%;
}

.promo-text {
  flex: 1;
  padding-right: 30px;
}

.promo-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.promo-text p {
  font-size: 16px;
}

.promo-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
}

.promo-form input,
.promo-form button {
  padding: 12px 15px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
}

.promo-form button {
  background-color: #1e1e1e;
  color: white;
  font-size: 16px;
  cursor: pointer;
}

/* Also Looking For */
.also-looking {
  padding: 30px 20px;
  background-color: #fff;
}

.also-looking h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #fcf6eb;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #444;
  white-space: nowrap;
}

/* Features Section */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 30px 20px;
  background-color: #fff;
}

.feature-box {
  flex: 1 1 calc(20% - 20px);
  min-width: 220px;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 10px;
  text-align: left;
  transition: 0.3s ease;
}

.feature-box:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.feature-box h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 14px;
  color: #555;
}

/* Product Cards */
.products {
  padding: 20px;
  background: #F8F8F8;
}

.products h1 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 800;
  color: #222;
  letter-spacing: 0.5px;
}

.product-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
  width: 100%;
  min-height: 300px;
  height: auto;
  overflow: visible;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-color: #d0d0d0;
}

/* Tilted Discount Ribbon - Top Left Corner */
.product-card .discount-ribbon {
  position: absolute;
  top: 12px;
  left: -8px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
  letter-spacing: 0.8px;
  transform: rotate(-3deg);
  border-radius: 4px;
}

.product-card .discount-ribbon::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 0;
  border-left: 4px solid #1a7a34;
  border-bottom: 4px solid transparent;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  border-radius: 8px;
  background: #fafafa;
  margin-bottom: 10px;
  padding: 10px;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card .product-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #2c3e50 !important;
  line-height: 1.35;
  min-height: 38px;
  overflow: hidden;
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  text-align: left;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1;
  position: relative;
}

.product-card .price-section {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px 0;
  text-align: left;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
}

.product-card .discounted-price {
  color: #1a1a1a !important;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.product-card .original-price {
  color: #95a5a6 !important;
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 500;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.discount-percent {
  font-size: 9px;
  color: #fff !important;
  background: #28a745;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.product-card .discount-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 14px 0 14px 0;
  z-index: 10;
  box-shadow: 0 3px 10px rgba(238, 90, 82, 0.4);
  letter-spacing: 0.5px;
}

.product-card .offer-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #28a745 0%, #20a03a 100%);
  color: white;
  padding: 7px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
  letter-spacing: 0.3px;
}

.offer-line {
  font-size: 11px;
  color: #28a745;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  text-align: left;
}

.offer-line::before {
  content: "✅";
  margin-right: 5px;
}
.product-card .add-button,
.product-card .go-to-cart-button {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white !important;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: auto;
  display: flex !important;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
  z-index: 1;
}

.product-card .add-button:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.product-card .go-to-cart-button {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.3);
}

.product-card .go-to-cart-button:hover {
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(17, 153, 142, 0.4);
}

hr {
  margin: 20px 0;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .search-bar {
    display: none;
  }

  .promo-section,
  .features,
  .promo-banner {
    flex-direction: column;
    padding: 10px;
  }

  .left-banner,
  .right-banner,
  .product-card {
    width: 100%;
    min-height: 200px;
  }

  .promo-form {
    width: 100%;
    align-items: center;
  }

  .promo-form input,
  .promo-form button {
    width: 90%;
  }

  .product-container {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 576px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 20px;
  }

  .navbar .logo {
    font-size: 20px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
  }

  .login-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  .left-banner h2, .right-banner h2 {
    font-size: 18px;
  }

  .left-banner p, .right-banner p,
  .shop-now {
    font-size: 14px;
  }

  .promo-text h2 {
    font-size: 24px;
  }

  .promo-text p {
    font-size: 14px;
  }

  .feature-box {
    flex: 1 1 100%;
  }
}


  .also-looking {
    padding: 20px 15px;
  }

  .tags-container {
    justify-content: center;
  }

  h3, .products h1, .also-looking h2 {
    font-size: 20px;
    padding-left: 10px;
  }
/* footer section began */

/* Responsive Footer Styling */
.footer-menu {
  margin-bottom: 30px;
}

.footer-menu h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.footer-menu ul li a {
  text-decoration: none;
  color: #000000;
  transition: color 0.3s ease;
}

.footer-menu ul li a:hover {
  color: #5cbc8e;
}

.footer-menu input.form-control {
  flex: 1;
  min-width: 0;
}

#footer-bottom {
  background-color: #222;
  color: #b7f0cd;
  padding: 15px 0;
  font-size: 14px;
}

#footer-bottom a {
  color: #ffcc00;
  text-decoration: none;
}

#footer-bottom a:hover {
  text-decoration: underline;
}

/* Social button hover */
.social-links .btn-outline-light:hover {
  background-color: #ffcc00;
  border-color: #ffcc00;
  color: #f5bcde;
}

/* Responsive layout */
@media (max-width: 991.98px) {
  .footer-menu {
    text-align: center;
  }

  .footer-menu ul {
    padding: 0;
  }

  .footer-menu ul li {
    margin: 5px 0;
  }

  .footer-menu form {
    flex-direction: column;
  }

  .footer-menu form input,
  .footer-menu form button {
    width: 100% !important;
    border-radius: 4px !important;
  }

  .footer-menu form button {
    margin-top: 10px;
  }

  #footer-bottom .row {
    text-align: center;
  }

  #footer-bottom .copyright,
  #footer-bottom .credit-link {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .footer-menu img {
    max-width: 150px;
    height: auto;
  }

  .social-links ul {
    justify-content: center;
  }
}

/* Product Card Responsive Design */

/* Extra Large Desktop 16+ inch (1600px+) */
@media (min-width: 1600px) {
  .product-card {
    min-height: 310px;
    padding: 12px;
  }
  
  .product-card img {
    height: 150px;
  }
  
  .product-card .product-title {
    font-size: 15px;
    min-height: 40px;
  }
  
  .product-card .discounted-price {
    font-size: 18px;
  }
}

/* Large Desktop 14-16 inch (1400px - 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
  .product-card {
    min-height: 305px;
    padding: 12px;
  }
  
  .product-card img {
    height: 145px;
  }
  
  .product-card .product-title {
    font-size: 14.5px;
    min-height: 39px;
  }
  
  .product-card .discounted-price {
    font-size: 17px;
  }
}

/* Standard Desktop 13-14 inch (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  .product-card {
    min-height: 300px;
    padding: 12px;
  }
  
  .product-card img {
    height: 140px;
  }
  
  .product-card .product-title {
    font-size: 14px;
    min-height: 38px;
  }
  
  .product-card .discounted-price {
    font-size: 17px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 10px 15px;
    font-size: 13px;
    min-height: 40px;
  }
}

/* Laptop 11-12 inch (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
  .product-card {
    min-height: 285px;
    padding: 11px;
  }
  
  .product-card img {
    height: 130px;
  }
  
  .product-card .product-title {
    font-size: 13.5px;
    min-height: 37px;
  }
  
  .product-card .discounted-price {
    font-size: 16px;
  }
  
  .product-card .original-price {
    font-size: 12px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 9px 13px;
    font-size: 12.5px;
    min-height: 38px;
  }
}

/* Tablet Landscape 10-11 inch (900px - 1023px) */
@media (min-width: 900px) and (max-width: 1023px) {
  .product-card {
    min-height: 275px;
    padding: 10px;
  }
  
  .product-card img {
    height: 125px;
    padding: 9px;
  }
  
  .product-card .product-title {
    font-size: 13px;
    min-height: 35px;
  }
  
  .product-card .discounted-price {
    font-size: 15px;
  }
  
  .product-card .original-price {
    font-size: 11.5px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 9px 12px;
    font-size: 12px;
    min-height: 36px;
  }
}

/* Tablet Portrait 9-10 inch (768px - 899px) */
@media (min-width: 768px) and (max-width: 899px) {
  .product-card {
    min-height: 265px;
    padding: 10px;
  }
  
  .product-card img {
    height: 120px;
    padding: 8px;
  }
  
  .product-card .product-title {
    font-size: 12.5px;
    min-height: 34px;
  }
  
  .product-card .discounted-price {
    font-size: 14.5px;
  }
  
  .product-card .original-price {
    font-size: 11px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 8px 11px;
    font-size: 11.5px;
    min-height: 35px;
  }
}

/* Small Tablet 7-8 inch (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
  .product-card {
    min-height: 255px;
    padding: 9px;
  }
  
  .product-card img {
    height: 115px;
    padding: 7px;
  }
  
  .product-card .product-title {
    font-size: 12px;
    min-height: 33px;
  }
  
  .product-card .price-section {
    gap: 6px;
    margin: 6px 0 8px 0;
  }
  
  .product-card .discounted-price {
    font-size: 14px;
  }
  
  .product-card .original-price {
    font-size: 10.5px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 34px;
  }
}

/* Large Phone 6.5-7 inch (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
  .product-card {
    min-height: 250px;
    padding: 8px;
  }
  
  .product-card img {
    height: 110px;
    padding: 7px;
  }
  
  .product-card .product-title {
    font-size: 11.5px;
    min-height: 31px;
  }
  
  .product-card .price-section {
    gap: 5px;
    margin: 5px 0 7px 0;
  }
  
  .product-card .discounted-price {
    font-size: 13.5px;
  }
  
  .product-card .original-price {
    font-size: 10px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 7px 9px;
    font-size: 10.5px;
    min-height: 32px;
  }
}

/* Standard Phone 6.1-6.5 inch (414px - 479px) */
@media (min-width: 414px) and (max-width: 479px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px 6px;
  }
  
  .product-card {
    min-height: 245px;
    padding: 8px;
  }
  
  .product-card img {
    height: 105px;
    padding: 6px;
  }
  
  .product-card .product-title {
    font-size: 11px;
    min-height: 30px;
  }
  
  .product-card .price-section {
    gap: 4px;
    margin: 4px 0 6px 0;
  }
  
  .product-card .discounted-price {
    font-size: 13px;
  }
  
  .product-card .original-price {
    font-size: 9.5px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 7px 8px;
    font-size: 10px;
    min-height: 30px;
  }
}

/* Compact Phone Below 6.1 inch (360px - 413px) */
@media (min-width: 360px) and (max-width: 413px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px;
    padding: 8px 5px;
  }
  
  .product-card {
    min-height: 240px;
    padding: 7px;
  }
  
  .product-card img {
    height: 100px;
    padding: 6px;
  }
  
  .product-card .product-title {
    font-size: 10.5px;
    min-height: 29px;
  }
  
  .product-card .discounted-price {
    font-size: 12.5px;
  }
  
  .product-card .original-price {
    font-size: 9px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 6px 7px;
    font-size: 9.5px;
    min-height: 29px;
  }
}

/* Extra Small Phone (Below 360px) */
@media (max-width: 359px) {
  .product-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 7px 4px;
  }
  
  .product-card {
    min-height: 235px;
    padding: 6px;
  }
  
  .product-card img {
    height: 95px;
    padding: 5px;
  }
  
  .product-card .product-title {
    font-size: 10px;
    min-height: 28px;
  }
  
  .product-card .discounted-price {
    font-size: 12px;
  }
  
  .product-card .original-price {
    font-size: 8.5px;
  }
  
  .product-card .add-button,
  .product-card .go-to-cart-button {
    padding: 6px 6px;
    font-size: 9px;
    min-height: 28px;
  }
}

