/* Customer home page refresh. Scoped to templates/store/home.html. */
.home-eyebrow {
  color: var(--accent-hover);
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: .55rem;
  text-transform: uppercase;
}

.home-hero {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3.5rem;
}

.home-hero__grid {
  align-items: stretch;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
}

.home-hero__copy {
  background: var(--bg-card);
  background-image: radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.04) 0%, transparent 60%);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px;
  padding: 3.5rem;
  transition: var(--transition);
}

.home-hero__copy:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.home-hero__copy h1 {
  color: var(--text);
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 1rem;
  max-width: 12ch;
}

.home-hero__copy p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1.5rem;
  max-width: 48ch;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.home-btn {
  align-items: center;
  border-radius: 99px; /* Pill shape for premium feel */
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: .75rem 1.6rem;
  transition: var(--transition);
  letter-spacing: .02em;
}

.home-btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(10, 15, 26, 0.2);
}

.home-btn--primary:hover {
  background: var(--primary-mid);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10, 15, 26, 0.25);
}

.home-btn--secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.home-btn--secondary:hover {
  border-color: rgba(217, 119, 6, 0.4);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.home-hero__products {
  background: transparent;
  border: none;
  display: grid;
  gap: 1rem;
}

.home-featured {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 96px 1fr;
  min-height: 110px;
  padding: .85rem;
  transition: var(--transition);
}

.home-featured:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  color: var(--text);
  transform: translateY(-4px) scale(1.02);
}

.home-featured__image {
  align-items: center;
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text-light);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.home-featured__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-featured__body {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.home-featured__body small {
  color: var(--text-light);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-featured__body strong {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.35;
}

.home-featured__body span {
  color: var(--primary);
  font-weight: 800;
}

.home-campaign-board {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.home-campaign-board__shell {
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  overflow: hidden;
}

.home-campaign-board__label {
  align-items: center;
  align-self: stretch;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 900;
  gap: .45rem;
  min-width: 148px;
  padding: 0 1rem;
  text-transform: uppercase;
}

.home-campaign-board__viewport {
  min-width: 0;
  overflow: hidden;
}

.home-campaign-board__track {
  animation: homeCampaignMarquee 34s linear infinite;
  display: flex;
  gap: .75rem;
  padding: .7rem;
  width: max-content;
}

.home-campaign-board__viewport:hover .home-campaign-board__track {
  animation-play-state: paused;
}

.home-campaign-card {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: grid;
  gap: 1rem;
  grid-template-columns: 82px minmax(200px, 1fr) auto;
  min-height: 96px;
  min-width: 440px;
  padding: .75rem 1rem;
  transition: var(--transition);
}

.home-campaign-card:hover {
  box-shadow: var(--shadow);
  color: var(--text);
  transform: translateY(-3px);
}

.home-campaign-card__media {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  border-radius: 8px;
  color: var(--primary-light);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.home-campaign-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-campaign-card__content {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.home-campaign-card__content small {
  color: var(--accent-hover);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-campaign-card__content strong {
  color: var(--primary);
  font-size: .94rem;
  line-height: 1.25;
}

.home-campaign-card__content span {
  color: var(--text-muted);
  font-size: .8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-campaign-card__action {
  align-items: center;
  color: var(--primary);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 900;
  gap: .35rem;
  white-space: nowrap;
}

@keyframes homeCampaignMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-section {
  padding: 3.2rem 0;
}

.home-sponsored {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.4rem;
}

.home-sponsored__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-sponsored-card {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: grid;
  gap: .9rem;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 112px;
  padding: .85rem;
  position: relative;
  transition: var(--transition);
}

.home-sponsored-card::after {
  background: rgba(217, 119, 6, .1);
  border: 1px solid rgba(217, 119, 6, .24);
  border-radius: 999px;
  color: var(--accent-hover);
  content: "Sponsorlu";
  font-size: .62rem;
  font-weight: 900;
  padding: .12rem .45rem;
  position: absolute;
  right: .75rem;
  top: .65rem;
}

.home-sponsored-card:hover {
  border-color: rgba(217, 119, 6, .28);
  box-shadow: var(--shadow);
  color: var(--text);
  transform: translateY(-4px);
}

.home-sponsored-card__media {
  align-items: center;
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: 8px;
  color: var(--primary-light);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.home-sponsored-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-sponsored-card__body {
  display: grid;
  gap: .18rem;
  min-width: 0;
  padding-right: 3rem;
}

.home-sponsored-card__body small {
  color: var(--text-light);
  font-size: .68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-sponsored-card__body strong {
  color: var(--primary);
  font-size: .92rem;
  line-height: 1.3;
}

.home-sponsored-card__body span {
  color: var(--danger);
  font-weight: 900;
}

.home-sponsored-card__body em {
  color: var(--text-muted);
  font-size: .8rem;
  font-style: normal;
  line-height: 1.35;
}

.home-section--tight {
  padding-bottom: 2rem;
}

.home-section__head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.home-section__head h2 {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
}

.home-section__link {
  color: var(--text-muted);
  font-size: .86rem;
  font-weight: 800;
}

.home-category-rail {
  display: grid;
  gap: .85rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.home-category {
  align-items: center;
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-size: .9rem;
  font-weight: 800;
  gap: .75rem;
  min-height: 130px;
  padding: 1.25rem .75rem;
  text-align: center;
  transition: var(--transition);
}

.home-category:hover {
  box-shadow: var(--shadow);
  color: var(--primary);
  transform: translateY(-5px);
}

.home-category__icon {
  align-items: center;
  background: var(--bg);
  border-radius: 8px;
  color: var(--primary-light);
  display: flex;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 54px;
}

.home-category__icon img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-service {
  background: #fff;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 1.35rem 0;
}

.home-service__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-service__grid div {
  align-items: center;
  display: grid;
  gap: .15rem .7rem;
  grid-template-columns: 38px 1fr;
}

.home-service__grid i {
  align-items: center;
  background: var(--bg);
  border-radius: 8px;
  color: var(--primary);
  display: flex;
  grid-row: span 2;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.home-service__grid strong {
  color: var(--text);
  font-size: .92rem;
}

.home-service__grid span {
  color: var(--text-muted);
  font-size: .8rem;
}

.home-product-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-product {
  background: var(--bg-card);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.home-product:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px) scale(1.01);
  z-index: 2;
}

.home-product__media {
  aspect-ratio: 1 / 1;
  background: var(--bg);
  color: var(--text-light);
  display: block;
  overflow: hidden;
  position: relative;
}

.home-product__media img {
  height: 100%;
  object-fit: cover;
  transition: transform .22s ease;
  width: 100%;
}

.home-product:hover .home-product__media img {
  transform: scale(1.025);
}

.home-product__badge {
  background: var(--danger);
  border-radius: 999px;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  left: .65rem;
  padding: .2rem .6rem;
  position: absolute;
  top: .65rem;
  z-index: 2;
}

.home-product__placeholder {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.home-product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .95rem;
}

.home-product__vendor {
  align-items: center;
  color: var(--text-light);
  display: flex;
  font-size: .74rem;
  font-weight: 700;
  gap: .3rem;
  margin-bottom: .35rem;
}

.home-product__name {
  color: var(--text);
  display: -webkit-box;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: .8rem;
  min-height: 2.55em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-product__name:hover {
  color: var(--primary-light);
}

.home-product__meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: -.2rem 0 .75rem;
}

.home-product__meta span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--success);
  display: inline-flex;
  font-size: .68rem;
  font-weight: 900;
  gap: .25rem;
  min-height: 24px;
  max-width: 100%;
  padding: .15rem .5rem;
}

.home-product__meta span:not(:first-child) {
  color: var(--text-muted);
}

.home-product__meta span.is-muted {
  color: var(--danger);
}

.home-product__price {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .85rem;
}

.home-product__price strong {
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 900;
}

.home-product__price strong.is-sale {
  color: var(--danger);
}

.home-product__price span {
  color: var(--text-light);
  font-size: .82rem;
  text-decoration: line-through;
}

.home-product__actions {
  display: grid;
  gap: .5rem;
  grid-template-columns: .7fr 1fr;
  margin-top: auto;
}

.home-product__detail,
.home-product__button {
  align-items: center;
  border-radius: 8px;
  display: flex;
  font-weight: 800;
  gap: .45rem;
  justify-content: center;
  min-height: 42px;
  padding: 0 .75rem;
  transition: var(--transition);
}

.home-product__detail {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}

.home-product__detail:hover {
  border-color: rgba(217, 119, 6, .35);
  color: var(--primary);
}

.home-product__button {
  background: var(--primary);
  border: 0;
  color: #fff;
}

.home-product__button:hover {
  background: var(--primary-mid);
  box-shadow: 0 4px 12px rgba(10, 15, 26, 0.2);
}

.home-product__button:disabled {
  background: #cbd5e1;
  box-shadow: none;
  cursor: not-allowed;
}

.home-empty-inline {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  grid-column: 1 / -1;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    min-height: auto;
  }

  .home-category-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-sponsored__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-campaign-board__shell {
    grid-template-columns: 1fr;
  }

  .home-campaign-board__label {
    justify-content: center;
    min-height: 42px;
    min-width: 0;
  }

  .home-campaign-card {
    grid-template-columns: 58px minmax(150px, 1fr);
    min-width: 315px;
  }

  .home-campaign-card__action {
    display: none;
  }

  .home-hero {
    padding: 1.5rem 0 1.2rem;
  }

  .home-hero__copy {
    padding: 1.5rem;
  }

  .home-hero__copy h1 {
    font-size: 2rem;
    max-width: 13ch;
  }

  .home-hero__products {
    gap: .65rem;
  }

  .home-featured {
    grid-template-columns: 74px 1fr;
    min-height: 88px;
  }

  .home-service__grid {
    grid-template-columns: 1fr;
  }

  .home-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-sponsored__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .home-category-rail {
    display: flex;
    margin: 0;
    overflow-x: auto;
    padding: 0 0 .25rem;
    scrollbar-width: none;
  }

  .home-category-rail::-webkit-scrollbar {
    display: none;
  }

  .home-category {
    flex: 0 0 126px;
  }

  .home-product__body {
    padding: .75rem;
  }

  .home-product__button {
    font-size: .82rem;
  }

  .home-product__actions {
    grid-template-columns: 1fr;
  }

  .home-product__detail,
  .home-product__button {
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-campaign-board__track {
    animation: none;
  }
}
