/*==================================================
    KORAVO MARKETPLACE
    Version : 1.0
==================================================*/

/*==================================================
    MARKETPLACE
==================================================*/

.marketplace {
  background: #fff;
}

/*==================================================
    BREADCRUMB
==================================================*/

.marketplace-breadcrumb {
  padding: 22px 0;

  border-bottom: 1px solid var(--border);

  background: #fff;
}

.breadcrumb {
  display: flex;

  align-items: center;

  gap: 12px;

  font-size: 15px;
}

.breadcrumb a {
  color: var(--gray-600);
}

.breadcrumb span:last-child {
  color: var(--primary);

  font-weight: 600;
}
/*==================================================
    HERO
==================================================*/

.marketplace-hero {
  position: relative;

  overflow: hidden;

  padding: 90px 0 110px;

  background:
    radial-gradient(
      circle at top right,
      rgba(255, 106, 0, 0.1),
      transparent 30%
    ),
    radial-gradient(circle at left, rgba(13, 27, 61, 0.08), transparent 40%),
    linear-gradient(180deg, #f8fafc, #ffffff);
}

.marketplace-hero::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(#eef2f7 1px, transparent 1px),
    linear-gradient(90deg, #eef2f7 1px, transparent 1px);

  background-size: 40px 40px;

  opacity: 0.65;

  z-index: 0;
}

.marketplace-hero .container {
  position: relative;

  z-index: 1;
}

.marketplace-hero__wrapper {
  display: grid;

  grid-template-columns: 1.25fr 0.75fr;

  gap: 70px;

  align-items: center;
}
.marketplace-hero h1 {
  margin: 24px 0;

  font-size: 64px;

  line-height: 1.1;

  color: var(--primary);
}

.marketplace-hero p {
  font-size: 20px;

  max-width: 680px;

  color: var(--gray-600);
}
/*==================================================
    SEARCH
==================================================*/

.marketplace-search {
  display: flex;

  align-items: center;

  margin-top: 45px;

  padding: 10px;

  background: #fff;

  border-radius: 999px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-lg);
}

.marketplace-search i {
  padding: 0 22px;

  color: var(--secondary);

  font-size: 20px;
}

.marketplace-search input {
  flex: 1;

  border: none;

  background: none;

  font-size: 17px;
}

.marketplace-search button {
  display: flex;

  align-items: center;

  gap: 10px;

  padding: 18px 28px;

  border: none;

  border-radius: 999px;

  background: var(--secondary);

  color: #fff;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

.marketplace-search button:hover {
  background: var(--secondary-hover);
}
/*==================================================
    TAGS
==================================================*/

.marketplace-tags {
  display: flex;

  flex-wrap: wrap;

  gap: 14px;

  margin-top: 28px;
}

.marketplace-tags a {
  padding: 11px 18px;

  border-radius: 999px;

  background: #eef4ff;

  color: var(--primary);

  font-weight: 600;

  transition: 0.3s;
}

.marketplace-tags a:hover {
  background: var(--secondary);

  color: #fff;
}
/*==================================================
    STATS
==================================================*/

.marketplace-stats {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 28px;

  margin-top: 55px;
}

.marketplace-stats div {
  background: #fff;

  padding: 22px;

  border-radius: 22px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-sm);
}

.marketplace-stats strong {
  display: block;

  font-size: 34px;

  color: var(--primary);
}

.marketplace-stats span {
  color: var(--gray-500);
}
/*==================================================
    PANEL
==================================================*/

.marketplace-panel {
  display: flex;

  flex-direction: column;

  gap: 22px;
}

/*==================================================
    HERO WIDGET
==================================================*/

.widget {
  background: #fff;

  border-radius: 28px;

  padding: 35px;

  border: 1px solid var(--border);

  box-shadow: var(--shadow-lg);
}

.widget h3 {
  margin-bottom: 25px;
}

.widget ul {
  display: flex;

  flex-direction: column;

  gap: 18px;
}

.widget li {
  padding: 16px;

  border-radius: 16px;

  background: #f8fafc;

  transition: 0.3s;
}

.widget li:hover {
  transform: translateX(6px);

  background: #eef4ff;
}
/*==================================================
PRODUCT CARD
==================================================*/

.product-card {
  background: #fff;

  border-radius: 24px;

  overflow: hidden;

  border: 1px solid var(--border);

  transition: 0.3s;

  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-8px);

  box-shadow: var(--shadow-xl);
}

.product-cover {
  padding: 30px;

  height: 220px;

  color: #fff;

  display: flex;

  flex-direction: column;

  justify-content: space-between;
}

.product-cover h3 {
  color: #fff;

  font-size: 26px;
}

.product-body {
  padding: 24px;
}

.product-rating {
  display: flex;

  justify-content: space-between;

  margin-bottom: 18px;
}

.product-footer {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 24px;
}

.btn-buy {
  padding: 12px 20px;

  border-radius: 999px;

  background: var(--secondary);

  color: #fff;
}
.blue {
  background: #2563eb;
}

.green {
  background: #10b981;
}

.purple {
  background: #9333ea;
}

.orange {
  background: #ea580c;
}

.red {
  background: #ef4444;
}

.cyan {
  background: #0891b2;
}
.marketplace-layout {
  display: grid;

  grid-template-columns: 320px 1fr;

  gap: 32px;

  align-items: start;
}
.marketplace-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));

  gap: 28px;

  align-items: start;
}
.marketplace-content {
  width: 100%;
}
.marketplace-wrapper {
  padding: 70px 0;
}
.product-category {
  display: inline-block;

  padding: 8px 16px;

  background: rgba(255, 255, 255, 0.18);

  border: 1px solid rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(10px);

  border-radius: 999px;

  font-size: 13px;

  font-weight: 600;
}
.product-author {
  margin-top: 18px;

  font-size: 14px;

  color: var(--gray-500);
}
.product-rating {
  display: flex;

  justify-content: space-between;

  align-items: center;

  font-size: 14px;

  color: var(--gray-600);
}
.btn-buy {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 12px 20px;

  border-radius: 999px;

  background: var(--secondary);

  color: #fff;

  transition: 0.3s;
}

.btn-buy:hover {
  transform: translateY(-2px);
}
.product-cover {
  position: relative;

  overflow: hidden;
}
.product-cover::after {
  content: "";

  position: absolute;

  right: -40px;

  top: -40px;

  width: 120px;

  height: 120px;

  background: rgba(255, 255, 255, 0.08);

  border-radius: 50%;
}
.marketplace-sidebar {
  padding: 30px;

  border: 1px solid var(--border);

  border-radius: 24px;

  background: #fff;

  position: sticky;

  top: 100px;
}
.marketplace-sidebar h3 {
  margin-bottom: 20px;
}
.marketplace-sidebar ul {
  display: flex;

  flex-direction: column;

  gap: 12px;
}
.marketplace-sidebar li {
  cursor: pointer;

  padding: 12px;

  border-radius: 12px;

  transition: 0.3s;
}
.marketplace-sidebar li:hover {
  background: #eef4ff;

  color: var(--secondary);
}
.marketplace-toolbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 20px 30px;

  background: #fff;

  border: 1px solid var(--border);

  border-radius: 20px;

  margin-bottom: 24px;
}
.marketplace-recommendation {
  padding: 30px;

  margin-bottom: 30px;

  border-radius: 24px;

  background: linear-gradient(90deg, #eef4ff, #fff);

  border: 1px solid var(--border);
}
.marketplace-cta {
  padding: 100px 0;

  text-align: center;

  background: #f8fafc;

  margin-top: 100px;
}
.marketplace-search input:focus {
  outline: none;
}
@media (max-width: 992px) {
  .marketplace-hero__wrapper {
    grid-template-columns: 1fr;
  }

  .marketplace-layout {
    grid-template-columns: 1fr;
  }

  .marketplace-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}
