:root {
  --container: 1100px;
  --accent: #ff2d7a;
  --muted: #8d8a8c;
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  margin: 0;
  color: #fdfdfd;
  background: #faf7f8;
}

.logo {
  width: 40px;
  height: auto;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size:x-large;
  font-family: 'Poppins', sans-serif;
  color: #ff2d7a;
}

.topnav a {
  margin: 0 12px;
  color: #333;
  text-decoration: none;
}

.actions .icon {
  margin-left: 10px;
  text-decoration: none;
  color: #666;
}

/* profile circle in header */
.profile-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.profile-circle.placeholder {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#ff2d7a;
  color:#fff;
  font-weight:700;
}
.user-name {
  margin-right:10px;
  vertical-align: middle;
}

.hero {
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.15)),
              url('/TUBES_2_Toko/assets/HomePage1.jpg') center/cover no-repeat;
  border-radius: 12px;
  width: 1050px;
  height: 350px;
  margin: 28px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  padding: 72px 20px;
  color: #fff;
  text-align: center;
  max-width: 760px;
}

.hero h1 {
  font-size: 44px;
  margin: 0 0 12px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.hero .lead {
  margin: 0 0 20px;
  color: rgba(255,255,255,0.9);
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 600;
}

.section-title {
  font-size: 20px;
  margin: 24px 0 12px;
  font-weight: 700;
  color: #111;
}

.categories {
  margin-top: 24px;
}

/* Header + tombol panah */
.categories-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-arrow {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.12s ease;
}

.cat-arrow:hover:not(:disabled) {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.cat-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Wrapper carousel */
.category-carousel {
  margin-top: 10px;
  position: relative;
}

/* Track kartu – horizontal scroll */
.categories .cards {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}

.categories .cards {
  scrollbar-width: none;  
  -ms-overflow-style: none; 
}

.categories .cards::-webkit-scrollbar {
  display: none;
}

.categories .cards::-webkit-scrollbar-track {
  background: transparent;
}

.categories .cards::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
}

/* Kartu kategori */
.categories .card {
  min-width: 180px;
  max-width: 220px;
  flex: 0 0 auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.categories .card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Gambar kategori */
.categories .card-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}

/* Caption di bawah gambar */
.categories .card-caption {
  padding: 10px 12px 14px;
  font-weight: 600;
  color: #111;
  text-align: center;
  background: #fff;
}

.categories .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

.card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Gambar kategori */
.card-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
}

.card-caption {
  padding: 10px 12px 14px;
  font-weight: 600;
  color: #111;
  text-align: center;
  background: #fff;
  /* reset properti overlay lama */
  position: static;
  top: auto;
  margin: 0;
  border-radius: 0;
  width: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}

/* FEATURED COLLECTION – horizontal slider */
.featured {
  margin-top: 32px;
  margin-bottom: 32px;
}

/* wrapper yang bisa di-scroll */
.featured-carousel {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px; /* biar nggak nempel scrollbar */
}

/* track isi card, dibuat horizontal */
.featured-track {
  display: flex;
  gap: 18px;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

/* tiap card nempel di “snap point” */
.featured-card {
  flex: 0 0 250px; /* lebar tiap kartu */
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.featured-media {
  width: 100%;
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.featured-meta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}

.featured-title {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.featured-price {
  font-size: 13px;
  color: #777;
}

/* Product list specific layout */
.product-list .cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (min-width: 1400px) {
  .product-list .cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

.product-card {
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.product-media {
  width: 100%;
  aspect-ratio: 4/5;
  padding-top: 125%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}

.product-info {
  padding: 12px;
}

.product-title {
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  background: transparent;
}

.product-price {
  color: #666;
  font-size: 13px;
}

.product {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

 .product-img {
  width: 100%;
  height: 260px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
 }

.product-meta {
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product .title {
  font-size: 14px;
  color: #333;
}

.product .price {
  color: #666;
  font-size: 13px;
}

.site-footer {
  background: #07003b;
  padding: 36px 0;
  margin-top: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 18px;
}

.site-footer .col ul {
  list-style: none;
  padding: 0;
  margin: 8px 0;
}

.site-footer a {
  color: #e3e4e3;
  text-decoration: none;
}

.muted {
  color: var(--muted);
}

.copyright {
  text-align: center;
  color: #999;
  padding-bottom: 10px;
}

@media (max-width: 900px) {
  .categories .cards {
    gap: 12px;
  }

  .categories .card {
    min-width: 150px;
  }

  .featured-cart {
    flex: 0 0 180px;
  }
}

@media (max-width: 520px) {
  .topnav {
    display: none;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-inner {
    padding: 40px 16px;
  }
  .categories .cards {
    grid-template-columns: 1fr;
  }
  .feature .card {
    flex: 0 0 70%;
  }
}
