/* RESET & BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style-type: none;
}

/* HEADER SECTION */
header {
  background-color: #e0e4f1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: ;
}

.header-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.left-section .logo {
  height: 50px;
}

.middle {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  max-width: 500px;
}

.input-bar {
  padding: 8px 12px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
}

.search-button {
  background: #0a66c2;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
}

.search-icon {
  height: 20px;
}

.right-sections {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart {
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  cursor: pointer;
}

.cart-icon{
  height: 20px;
}

.cart-products-number {
  position: absolute;
  top: -8px;
  right: -10px;
  background: crimson;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
}

.user {
  height: 35px;
  cursor: pointer;
}

/* BRANDS SECTION */
.phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: #fff;
}

.brands {
  padding: 8px 12px;
  background-color: #e4f0ff;
  color: #0a66c2;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.brands:hover {
  background-color: #cce2ff;
}

.line {
  width: 1px;
  background-color: #ccc;
  height: 20px;
}

/* INTRO SECTION */
.intros {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
  background: #fff;
}

.Categories {
  flex: 1;
}

.category {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sidebar ul li {
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.3s;
}

.sidebar ul li:hover {
  color: #0a66c2;
}

.picture {
  flex: 3;
  position: relative;
}

.description {
  position: absolute;
  top: 20px;
  left: 20px;
  color: white;
  z-index: 2;
}

.fdiscription {
  font-size: 24px;
  font-weight: 700;
}

.f2description {
  font-size: 16px;
}

.f3description {
  font-size: 20px;
  font-weight: bold;
  color: #ffc107;
}

/* TRENDING PRODUCTS */
.trending-products-title {
  padding: 20px;
  font-size: 24px;
  font-weight: bold;
}

.trending-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
}

.trending-products1 {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* SEE MORE BUTTON */
.seemore {
  text-align: center;
  padding: 20px;
}

.see-more-button {
  background-color: #0a66c2;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.see-more-button:hover {
  background-color: #084b9a;
}

/* ADVERTS SECTION */
.adverts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  padding: 20px;
}

.advert1, .advert2, .advert3, .advert4, .advert5, .advert6 {
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
}

.adverts-container button {
  background: #0a66c2;
  color: #fff;
  padding: 8px 20px;
  margin-top: 10px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
}

/* LATEST PRODUCTS */
.latest-products-container,
.MacBooks-ipads-container,
.laptops-tablets-container,
.buds-and-smartwatches-container,
.vr-container {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 20px;
}

.latest-products-1,
.MacBooks-ipads {
  background: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.MacBooks-ipads button,
.latest-products-1 button {
  background: #0a66c2;
  color: white;
  border: none;
  padding: 6px 15px;
  border-radius: 20px;
  margin-top: 10px;
  cursor: pointer;
}

/* RECOMMENDATIONS */
.recommendations-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.Product1-container,
.Product2-container {
  flex: 1;
  background: white;
  border-radius: 10px;
  padding: 15px;
}

.recommendations-description {
  margin: 10px 0;
  font-size: 15px;
}

/* ABOUT US */
.about{
  text-decoration: none;
  color: #333;
}
.about-us-container {
  text-decoration: none;
  padding: 30px;
  background-color: #fff;
  color: #333;
}

.about-us-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background-color: #0a66c2;
  color: white;
  padding: 20px;
}

.address-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

.contact-social-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.contact-social-container img {
  height: 30px;
  width: 30px;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  .intros {
    flex-direction: column;
  }

  .middle {
    width: 100%;
  }

  .right-sections {
    justify-content: center;
    flex-wrap: wrap;
  }

  .description {
    position: static;
    color: #000;
    padding: 10px 0;
  }

  .sidebar {
    margin-bottom: 20px;
  }

  .header-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
