@import url("../styles/colors.css");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* RESET AND BASE STYLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background-color: var(--Grey100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  align-self: stretch;
}

/* HEADER */

header {
  width: 100%;
  display: flex;
  padding: 16px 128px;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch;

  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

/* HEADER TOP BAR ELEMENTS */

.header-top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 64px;
  align-self: stretch;
}

.header-search-bar {
  height: 40px;
  display: flex;
  align-items: center;
  flex: 1 0 0;
  border-radius: 4px;
  border: 1px solid #ddd;
  overflow: hidden;
  box-sizing: border-box;
}

.header-search-bar input {
  height: 40px;
  border: none;
  display: flex;
  padding: 0px 16px;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  background: #fafafa;

  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.28px;
}

.header-search-bar-button {
  display: flex;
  padding: 0px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  color: #ffffff;
  background: #ff7130;
  cursor: pointer;
  border: none;
  transition: background-color 0.5s;

  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  /* 114.286% */
  letter-spacing: 0.574px;
}

.header-search-bar-button:hover {
  background-color: var(--Orange50);
}

.header-quick-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-quick-actions-user {
  display: flex;
  width: fit-content;
  height: 40px;
  align-items: center;
  border-radius: 4px;
  background: #f2f2f2;
  gap: 16px;
  padding: 0 16px;
  transition: background-color 0.5s;
  cursor: pointer;
}

.header-quick-actions-user:hover {
  background-color: #e6e6e6;
}

/* HEADER NAV BAR ELEMENTS */

.main-nav-container {
  display: flex;
  height: 40px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 64px;
  align-self: stretch;
}

.main-nav-button-menu {
  display: flex;
  padding: 0px 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;

  border-radius: 4px;
  border: 1px solid var(--Grey90);
  background: var(--Grey98);
  transition: background-color 0.5s;
  cursor: pointer;

  font-size: 14px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 16px;
  letter-spacing: 4.1%;
}

.main-nav-button-menu:hover {
  background-color: var(--Grey95);
}

.main-nav-button-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.5s;

  color: var(--Grey-10, #1a1a1a);
  text-align: center;

  /* Label/Medium */
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  /* 114.286% */
  letter-spacing: 0.574px;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: stretch;
}

.main-nav-list a {
  text-decoration: none;
  color: #333;
  padding: 16px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  transition: color 0.5s;
}

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

.main-nav-list-button {
  text-transform: uppercase;
  transition: color 0.5s;

  color: #ff7433;
  text-align: center;
  font-family: Montserrat;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
  /* 142.857% */
  letter-spacing: 0.119px;
}

/* Hero section */

.hero {
  width: 100%;
  display: flex;
  flex-direction: row;
  padding-inline: 128px;
  gap: 16px;
  min-height: 340px;
}

.hero-main {
  display: flex;
  width: 75%;
  background-color: #333;
  border-radius: 8px;
  flex-direction: column;
  align-items: end;
  background-image: url("../assets/hero-main.png");
  background-position: right;
}

.hero-secondary {
  display: flex;
  width: 25%;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
}

.hero-secondary-item-upper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
  background-color: #b32626;
  border-radius: 8px;
  background-image: url("../assets/hero-secondary-upper.png");
  background-position: right;
}

.hero-secondary-item-lower {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;
  align-self: stretch;
  background-color: #b32626;
  border-radius: 8px;
  background-image: url("../assets/hero-secondary-lower.png");
  background-position: fill;
}

/* Flash sale section */

.flash-sale {
  display: flex;
  background-color: #fff3f0;
  padding-inline: 128px;
  border-radius: 8px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  color: #000;

  /* Display/Small */
  font-family: Montserrat;
  font-size: 36px;
  font-style: normal;
  font-weight: 700;
  line-height: 44px;
  /* 122.222% */
}

.flash-title {
  font-size: 45px;
  font-weight: 900;
  background: linear-gradient(to bottom, #ff7130, #b32626);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.4px;
}

.see-all {
  color: #333;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 14px;
}

.see-all::after {
  content: "→";
  margin-left: 5px;
}

.product-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 10px 0;
}

.product-slider::-webkit-scrollbar {
  display: none;
}

.product-card {
  min-width: 200px;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
  width: 100px;
  height: 100px;
  background-color: #ffb999;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
}

.product-image img {
  max-width: 80%;
  max-height: 80%;
}

.product-brand {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-name {
  font-size: 14px;
  margin-bottom: 10px;
}

.product-price {
  font-weight: bold;
  color: #ff6b35;
  font-size: 18px;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Best sellers section */
.best-sellers {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-inline: 128px;
  gap: 32px;
}

.products-grid {
  display: flex;
  gap: 32px;
}

.product-large {
  border-radius: 8px;
  border: 1px solid var(--Grey-90, #e6e6e6);
  background: #fafafa;

  overflow: hidden;
  padding: 20px;
  display: flex;
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-large-image {
  flex: 0 0 40%;
}

.product-large-image img {
  max-width: 100%;
}

.product-large-info {
  flex: 0 0 60%;
  padding-left: 20px;
}

.product-large-brand {
  font-size: 14px;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-large-name {
  font-size: 20px;
  margin-bottom: 10px;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.price-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 10px;
}

/* Categories section */
.categories {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-inline: 128px;
  gap: 32px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.card-grid {
  display: flex;
  width: 100%;
  gap: 20px;
  padding-inline: 128px;
}

.card {
  height: 128px;
  display: flex;
  align-items: center;
  background-color: #fafafa;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card img {
  height: 48px;
}

.card-step-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.card-step {
  background: #fff;
  max-width: 23.5%;
  min-width: 23.5%;
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(76, 24, 143, 0.08);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.card-step-icon {
  width: 48px;
  height: 48px;
  background: #6c2bd7;
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-step-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.card-step-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.card-arrow-between {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 8px;
}

.trade-in-categories-container {
  display: flex;
  align-self: flex-start;
  padding-inline: 128px;
}

.category-card {
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fafafa;
  border-radius: 8px;
  text-decoration: none;
  flex-direction: row;
  color: #333;
  transition: transform 0.3s, box-shadow 0.3s;
}

.footer {
  background: #f5f5f5;
  width: 100%;
  padding: 64px 0 48px 0;
}

.footer-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 128px;
  margin: 0 auto;
}

.footer-col {
  min-width: 260px;
}

.footer-logo {
  font-size: 56px;
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  letter-spacing: -2px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 22px;
}

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

.footer-list-item-style {
  margin-bottom: 8px;
}

.footer-list-item-style a {
  color: #444;
  text-decoration: none;
}

.category-card-label {
  padding: 16px;
  color: #000;
  text-align: center;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
  /* 140% */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  align-self: stretch;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon img {
  margin-top: 4px;
  height: 128px;
}

/* Installment promo */
.installment-promo {
  display: flex;
  padding-inline: 128px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  background: linear-gradient(270deg, #d4cac4 0%, #fff9f6 100%);
}

.promo-content {
  display: flex;
  padding-inline: 128px;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.promo-months {
  display: flex;
  height: 24px;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
  color: #967d69;
}

.promo-title {
  display: flex;
  color: #594a40;
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 40px;
}

.promo-title span {
  margin: 0 8px;
  color: #ff6b35;
}

.promo-image img {
  height: 192px;
  align-self: stretch;
  aspect-ratio: 3/1;
}

/* Services section */
.services {
  margin: 40px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-title {
  font-size: 24px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.service-title span {
  color: #ff6b35;
}

.service-description {
  font-size: 14px;
  margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 992px) {
  .hero-content {
    width: 60%;
  }

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

@media (max-width: 768px) {
  .container {
    margin: 0 auto;
    padding: 0 16px;
  }

  .top-bar {
    flex-direction: column;
  }

  .search-bar {
    width: 100%;
    margin: 15px 0;
  }

  .main-nav {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
  }

  .hero-content {
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
  }

  .product-large {
    flex-direction: column;
  }

  .product-large-image {
    margin-bottom: 20px;
  }

  .product-large-info {
    padding-left: 0;
  }

  .categories-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .installment-promo {
    flex-direction: column;
  }

  .promo-content {
    margin-bottom: 20px;
  }
}
