/* Homepage redesign — Modern Trust + classic accents */

:root {
  --home-primary: #6b0f1a;
  --home-primary-dark: #4a0a12;
  --home-gold: #c9a227;
  --home-cream: #faf7f2;
  --home-text: #2b2b2b;
  --home-muted: #6b6b6b;
  --home-shadow: 0 8px 24px rgba(74, 10, 18, 0.08);
}

body.home-page {
  background: var(--home-cream);
  line-height: 2;
}

body.home-page #main {
  margin-top: 0;
}

/* Hero */
.home-hero {
  position: relative;
  min-height: 54vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(74, 10, 18, 0.88) 0%, rgba(107, 15, 26, 0.72) 45%, rgba(0, 0, 0, 0.35) 100%),
    url('../img/bgg.jpg') top center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.home-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--home-gold), transparent);
}

.home-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 88px;
  padding-bottom: 24px;
}

.home-hero__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.home-hero__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(201, 162, 39, 0.6);
  border-radius: 999px;
  color: #f6e6b8;
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.04em;
}

.home-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.75;
  margin-top: 14px;
  margin-bottom: 12px;
  color: #fff;
}

.home-hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 2.1;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 22px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  justify-content: center;
}

.home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  line-height: 2;
  text-decoration: none;
  transition: 0.25s ease;
}

.home-btn-primary {
  background: var(--home-gold);
  color: var(--home-primary-dark);
}

.home-btn-primary:hover {
  background: #dbb42e;
  color: var(--home-primary-dark);
}

.home-btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}

.home-btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.home-btn-line {
  background: #06c755;
  color: #fff;
}

.home-btn-line:hover {
  background: #05a847;
  color: #fff;
}

.home-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.home-btn-shopee {
  background: #ee4d2d;
  color: #fff;
}

.home-btn-shopee:hover {
  background: #d73211;
  color: #fff;
}

.home-hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  justify-content: center;
}

.home-hero__contact a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sections */
.home-section {
  padding: 32px 0;
}

.home-section--welcome {
  padding-top: 20px;
  padding-bottom: 8px;
}

#main > .home-section:first-child {
  padding-top: 12px;
}

.home-section--alt {
  background: #fff;
}

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 2;
  color: var(--home-primary);
  border-bottom: 3px solid var(--home-gold);
  padding-bottom: 8px;
}

.home-section-head h3,
.home-catalog-section .home-section-head h3 {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  line-height: 2;
  color: var(--home-primary);
  border-bottom: 2px solid var(--home-gold);
  padding-bottom: 6px;
}

.home-section-link {
  color: var(--home-primary);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.home-section-link:hover {
  color: var(--home-primary-dark);
}

.home-section-intro {
  color: var(--home-muted);
  margin: -4px 0 16px;
  font-size: 16px;
  line-height: 2;
}

/* Category chips */
.home-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-category-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(107, 15, 26, 0.08);
  border-radius: 16px;
  box-shadow: var(--home-shadow);
  text-decoration: none;
  color: var(--home-text);
  transition: 0.25s ease;
}

.home-category-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--home-primary);
}

.home-category-chip__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(107, 15, 26, 0.08);
  color: var(--home-primary);
  font-size: 20px;
  flex-shrink: 0;
}

.home-category-chip__label {
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
}

/* Product cards */
.home-product-card {
  width: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--home-shadow);
  border: 1px solid rgba(107, 15, 26, 0.06);
  display: flex;
  flex-direction: column;
}

.home-product-card__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3efe8;
}

.home-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.home-product-card:hover .home-product-card__image img {
  transform: scale(1.04);
}

.home-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--home-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.home-product-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-product-card__body h4 {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 8px;
  padding-top: 0.2em;
  min-height: 4.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-product-card__body h4 a {
  color: var(--home-text);
  text-decoration: none;
}

.home-product-card__body h4 a:hover {
  color: var(--home-primary);
}

.home-product-card__body p {
  color: var(--home-muted);
  font-size: 13px;
  line-height: 2;
  margin: 0 0 12px;
  padding-top: 0.15em;
  min-height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.home-product-card__link {
  color: var(--home-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 2;
  text-decoration: none;
}

.home-product-card__link:hover {
  color: var(--home-primary-dark);
}

.home-catalog-section {
  margin-bottom: 24px;
}

.home-catalog-section:last-child {
  margin-bottom: 0;
}

.home-scroll-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.home-scroll-track::-webkit-scrollbar {
  height: 6px;
}

.home-scroll-track::-webkit-scrollbar-thumb {
  background: rgba(107, 15, 26, 0.25);
  border-radius: 999px;
}

.home-scroll-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--home-shadow);
}

.home-scroll-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

.home-scroll-card h4 {
  font-size: 13px;
  line-height: 2;
  margin: 0;
  padding: 12px 12px 14px;
  min-height: 4.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-scroll-card h4 a {
  color: var(--home-text);
  text-decoration: none;
}

/* Trust */
.home-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.home-trust-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--home-shadow);
}

.home-trust-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--home-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.home-trust-item h4 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 2;
  color: var(--home-primary);
}

.home-trust-item p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 2.1;
}

/* Welcome */
.home-welcome {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--home-shadow);
  overflow: hidden;
}

.home-welcome summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  color: var(--home-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-welcome summary::-webkit-details-marker {
  display: none;
}

.home-welcome summary::after {
  content: '\F282';
  font-family: bootstrap-icons !important;
  transition: transform 0.25s ease;
}

.home-welcome[open] summary::after {
  transform: rotate(180deg);
}

.home-welcome__content {
  padding: 0 22px 22px;
  color: var(--home-text);
  font-size: 16px;
  line-height: 2.2;
}

.home-empty {
  color: var(--home-muted);
  margin: 0;
}

/* Sticky mobile bar */
.home-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #fff;
  border-top: 1px solid rgba(107, 15, 26, 0.1);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}

.home-sticky-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 8px 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--home-primary);
}

.home-sticky-bar a i {
  font-size: 18px;
}

.home-sticky-bar a.is-line {
  background: rgba(6, 199, 85, 0.08);
  color: #058f3d;
}

@media (min-width: 768px) {
  .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .home-scroll-card {
    flex-basis: 220px;
  }

}

@media (min-width: 992px) {
  .home-category-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}