/* =============================================
   Pueblo Smartshop – Landing Page Styles
   ============================================= */

:root {
  --pink: #FF6B9D;
  --pink-dark: #E8558A;
  --teal: #4ECDC4;
  --teal-dark: #3BB8AF;
  --orange: #FFB347;
  --green: #95E86C;
  --purple: #A78BFA;
  --gold: #F5A623;
  --text: #1a1a1a;
  --text-muted: #666;
  --bg: #ffffff;
  --bg-light: #f5f5f7;
  --bg-blue: #eef6f8;
  --gradient-rainbow: linear-gradient(90deg, #FF6B9D, #FFB347, #4ECDC4, #95E86C, #A78BFA);
  --gradient-btn: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-pill: 50px;
  --container: 1024px;
  --box-padding: 32px;
  --page-bg: #eceef2;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--page-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---- Box Layout ---- */
.page {
  padding: 24px 0 40px;
  min-height: 100vh;
}

.site-box {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--bg);
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 8px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--box-padding);
}

.gradient-text {
  background: var(--gradient-rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn--gradient {
  background: var(--gradient-btn);
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
}

.btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 157, 0.45);
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__image {
  width: 156px;
  height: auto;
  display: block;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--pink);
}

.nav__link--highlight {
  color: var(--pink);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--pink);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #e53935;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: visible;
  min-height: 520px;
  padding-bottom: 100px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 475px;
  background: url('img/section-hero.png') center top/100% 475px no-repeat;
  z-index: 0;
}

.hero__content,
.hero__visual {
  visibility: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 520px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 380px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero__halo {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #FF6B9D, #FFB347, #4ECDC4, #95E86C, #A78BFA, #FF6B9D
  );
  opacity: 0.55;
  filter: blur(2px);
  animation: halo-spin 12s linear infinite;
}

.hero__halo::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(255,255,255,0.6) 100%);
}

@keyframes halo-spin {
  to { transform: rotate(360deg); }
}

.hero__product {
  position: relative;
  z-index: 2;
}

.product-jar {
  width: 180px;
  height: 240px;
  background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 40%, #1a1a1a 100%);
  border-radius: 12px 12px 20px 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-jar::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #111;
  border-radius: 4px 4px 0 0;
}

.product-jar__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  padding: 16px;
  gap: 4px;
}

.product-jar__brand {
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.product-jar__name {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.product-jar__type {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.product-jar__weight {
  font-size: 1.4rem;
  font-weight: 800;
  margin-top: 8px;
}

/* ---- Categories (overlapping hero) ---- */
.hero__categories {
  position: relative;
  z-index: 10;
  margin-top: -95px;
}

.categories__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 24px 20px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s, box-shadow 0.25s;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card--truffles { background: url('img/magic-trueffels.png') center/cover; }
.category-card--herbal   { background: url('img/herbal-blends.png') center/cover; }
.category-card--legal    { background: url('img/legal-highs.png') center/cover; }
.category-card--grow     { background: url('img/growkits.png') center/cover; }
.category-card--kratom   { background: url('img/kratom.png') center/cover; }

.category-card--truffles::before,
.category-card--truffles .category-card__icon,
.category-card--truffles .category-card__arrow {
  display: none;
}

.category-card--truffles .category-card__title,
.category-card--truffles .category-card__desc {
  transform: translateY(-44px);
}

.category-card--truffles .category-card__title {
  white-space: nowrap;
  font-size: 0.82rem;
}

.category-card--herbal::before,
.category-card--herbal .category-card__icon,
.category-card--herbal .category-card__arrow {
  display: none;
}

.category-card--herbal .category-card__title {
  margin-bottom: 4px;
  transform: translateY(-44px);
  font-size: 0.82rem;
}

.category-card--herbal .category-card__desc {
  transform: translateY(-44px);
}

.category-card--legal::before,
.category-card--legal .category-card__icon,
.category-card--legal .category-card__arrow {
  display: none;
}

.category-card--legal .category-card__title {
  margin-bottom: 4px;
  transform: translateY(-28px);
  font-size: 0.82rem;
}

.category-card--legal .category-card__desc {
  transform: translateY(-28px);
}

.category-card--grow::before,
.category-card--grow .category-card__icon,
.category-card--grow .category-card__arrow {
  display: none;
}

.category-card--grow .category-card__title {
  margin-bottom: 4px;
  transform: translateY(-28px);
  font-size: 0.82rem;
}

.category-card--grow .category-card__desc {
  transform: translateY(-28px);
}

.category-card--kratom::before,
.category-card--kratom .category-card__icon,
.category-card--kratom .category-card__arrow {
  display: none;
}

.category-card--kratom .category-card__title {
  margin-bottom: 4px;
  transform: translateY(-28px);
  font-size: 0.82rem;
}

.category-card--kratom .category-card__desc {
  transform: translateY(-28px);
}

.category-card__icon {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
}

.category-card__icon--pink   { color: var(--pink); }
.category-card__icon--green  { color: var(--green); }
.category-card__icon--orange { color: var(--orange); }
.category-card__icon--teal   { color: var(--teal); }
.category-card__icon--blue   { color: #5B9BD5; }

.category-card__title,
.category-card__desc,
.category-card__arrow {
  position: relative;
  z-index: 2;
}

.category-card__title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.category-card__desc {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 16px;
}

.category-card__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.category-card:hover .category-card__arrow {
  background: rgba(255,255,255,0.35);
}

/* ---- Bestseller ---- */
.bestseller {
  margin-top: -50px;
  padding: 0 0 64px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header__title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-header__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-dark);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.section-header__link:hover {
  color: var(--pink);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
}

.product-card__badge--pink   { background: var(--pink); }
.product-card__badge--green  { background: #5CB85C; }
.product-card__badge--orange { background: var(--orange); }
.product-card__badge--teal   { background: var(--teal-dark); }
.product-card__badge--purple { background: var(--purple); }

.product-card__image {
  height: 160px;
  border-radius: 10px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
}

.product-card__image--truffle  { background-image: url('img/product-golden-teacher.png'); }
.product-card__image--kratom   { background-image: url('https://images.unsplash.com/photo-1597848212624-a19eb35e2651?w=300&q=80'); }
.product-card__image--herbal   { background-image: url('img/product-herbal-chill.png'); }
.product-card__image--growbox  { background-image: url('https://images.unsplash.com/photo-1416879595882-3373a0480b5b?w=300&q=80'); }
.product-card__image--widow    { background-image: url('img/product-white-widow.png'); }

.product-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.product-card__size {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.stars {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-size: 1.1rem;
  font-weight: 800;
}

.product-card__cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--pink);
  color: #fff;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}

.product-card__cart:hover {
  background: var(--pink-dark);
  transform: scale(1.05);
}

/* ---- Trust Bars ---- */
.trust-bar {
  padding: 40px 0;
}

.trust-bar--pink {
  background: var(--bg-light);
}

.trust-bar--teal {
  background: var(--bg-blue);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-item__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.trust-item__icon--pink  { color: var(--pink); }
.trust-item__icon--gold  { color: var(--gold); }
.trust-item__icon--green { color: #5CB85C; }
.trust-item__icon--blue  { color: #5B9BD5; }
.trust-item__icon--teal  { color: var(--teal-dark); }

.trust-item__text strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.trust-item__text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---- About ---- */
.about {
  position: relative;
  min-height: 480px;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255,255,255,0.88) 45%, rgba(255,255,255,0.2) 75%, transparent 100%),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=1600&q=80') center/cover no-repeat;
}

.about__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.about__content {
  max-width: 480px;
}

.about__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.about__leaf {
  margin-bottom: 16px;
}

.about__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ---- Responsive ---- */
@media (max-width: 1320px) {
  .page {
    padding: 16px 0 32px;
  }
}

@media (max-width: 1100px) {
  .categories__grid,
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav__list {
    gap: 16px;
  }

  .nav__link {
    font-size: 0.82rem;
  }
}

@media (max-width: 900px) {
  .header__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .nav__list {
    gap: 20px;
    padding-bottom: 4px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__visual {
    min-height: 300px;
  }

  .hero {
    padding-bottom: 60px;
  }

  .hero__categories {
    margin-top: 0;
  }

  .categories__grid,
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  :root {
    --box-padding: 20px;
  }

  .page {
    padding: 0;
  }

  .site-box {
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    padding-bottom: 32px;
  }

  .hero__categories {
    margin-top: 0;
  }

  .categories__grid,
  .products__grid {
    grid-template-columns: 1fr;
  }

  .trust-bar__grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
