/* =========================================================
   AccMint — Main Stylesheet
   Mobile-first. Original AccMint branding & green palette.
   ========================================================= */

:root {
  --color-primary: #2BB673;
  --color-primary-deep: #169B55;
  --color-dark-bg: #050505;
  --color-white: #FFFFFF;
  --color-light-bg: #F5F7F6;
  --color-text-dark: #111827;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 8px 24px rgba(17, 24, 39, 0.08);
  --shadow-card-hover: 0 14px 30px rgba(17, 24, 39, 0.14);

  --container-max: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text-dark);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol { list-style: none; }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(43, 182, 115, 0.35);
}

.btn--dark {
  background: var(--color-dark-bg);
  color: var(--color-white);
}

.btn--dark:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.8rem;
}

.btn--block {
  width: 100%;
}

/* =========================================================
   Header
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-dark-bg);
  padding: 0.75rem 1rem;
}

.header__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.header__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__row--top {
  justify-content: space-between;
}

.header__row--bottom {
  margin-top: 0.65rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo__accent {
  color: var(--color-primary);
}

.logo--footer {
  font-size: 1.5rem;
}

/* Search */
.header__search {
  display: flex;
  align-items: center;
  background: #181818;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.5rem 0.55rem 1.1rem;
  flex: 1;
}

.header__search--desktop {
  display: none;
}

.header__search--mobile {
  width: 100%;
}

.search__input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-white);
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
}

.search__input::placeholder {
  color: #8a8a8a;
}

.search__btn {
  color: var(--color-primary);
  display: flex;
  align-items: center;
  padding: 0.35rem;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Nav (desktop) */
.header__nav--desktop {
  display: none;
}

.header__locale {
  color: #cfcfcf;
  font-size: 0.85rem;
  white-space: nowrap;
}

.header__locale--mobile {
  display: block;
  flex-shrink: 0;
}

.header__profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #181818;
  border: 1px solid #2a2a2a;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header__profile--desktop {
  display: none;
}

.header__mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-dark-bg) 0%, var(--color-dark-bg) 35%, var(--color-primary-deep) 100%);
  overflow: hidden;
  padding: 2.5rem 1rem 2.5rem;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
}

.hero__shape--one {
  width: 260px;
  height: 260px;
  background: var(--color-primary);
  top: -80px;
  right: -60px;
}

.hero__shape--two {
  width: 220px;
  height: 220px;
  background: var(--color-primary-deep);
  bottom: -100px;
  left: -60px;
  opacity: 0.4;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero__text {
  text-align: center;
  color: var(--color-white);
  margin-bottom: 2rem;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: 1rem;
  color: #d8d8d8;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

.hero__badges {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  color: var(--color-white);
}

.badge__icon {
  font-size: 0.95rem;
}

/* Hero cards - mobile horizontal scroll */
.hero__cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.hero__cards::-webkit-scrollbar {
  display: none;
}

.hero-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
  flex: 0 0 78%;
  scroll-snap-align: start;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.hero-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(43, 182, 115, 0.12);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem;
}

.hero-card__name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.hero-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary-deep);
  margin-bottom: 1rem;
}

/* =========================================================
   Products Section
   ========================================================= */

.products {
  background: var(--color-light-bg);
  padding: 2.5rem 1rem;
}

.products__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.tabs {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.75rem;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 0.75rem 0.1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.tab--active {
  color: var(--color-text-dark);
  font-weight: 700;
  border-bottom-color: var(--color-primary);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.product-grid__empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem 0;
}

/* Mobile: stacked horizontal list cards */
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(43, 182, 115, 0.1);
  color: var(--color-primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / 3;
}

.product-card__body {
  grid-column: 2;
}

.product-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.product-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card__price {
  font-weight: 800;
  color: var(--color-primary-deep);
  font-size: 0.95rem;
}

.product-card__details {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: underline;
}

.product-card__buy {
  grid-column: 1 / 3;
  margin-top: 0.5rem;
}

/* =========================================================
   Why Choose AccMint
   ========================================================= */

.features {
  padding: 2.5rem 1rem;
  background: var(--color-white);
}

.features__container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.features__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1.75rem;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-card {
  background: var(--color-light-bg);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--color-dark-bg);
  color: #cfcfcf;
  padding: 2.5rem 1rem 1.5rem;
}

.footer__container {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.footer__tagline {
  font-size: 0.85rem;
  color: #9a9a9a;
  margin: 0.5rem 0 1.75rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.75rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: #cfcfcf;
  transition: color 0.15s ease;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: 0.78rem;
  color: #777;
  border-top: 1px solid #1f1f1f;
  padding-top: 1.25rem;
}

/* =========================================================
   Tablet (>= 640px)
   ========================================================= */

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-card {
    flex: 0 0 45%;
  }
}

/* =========================================================
   Desktop (>= 992px)
   ========================================================= */

@media (min-width: 992px) {
  .header {
    padding: 1rem 2rem;
  }

  .header__row--bottom {
    display: none;
  }

  .header__search--desktop {
    display: flex;
    max-width: 420px;
  }

  .header__mobile-actions {
    display: none;
  }

  .header__nav--desktop {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .header__nav--desktop a:not(.btn):not(.header__profile) {
    color: #d8d8d8;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
  }

  .header__nav--desktop a:not(.btn):not(.header__profile):hover {
    color: var(--color-white);
  }

  .hero {
    padding: 4rem 2rem 4rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__tagline {
    font-size: 1.1rem;
  }

  .hero__cards {
    overflow-x: visible;
    justify-content: center;
  }

  .hero-card {
    flex: 0 0 calc(33.333% - 0.7rem);
  }

  .products {
    padding: 4rem 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .product-card__icon {
    margin: 0 auto 0.75rem;
    grid-row: auto;
  }

  .product-card__body {
    grid-column: auto;
  }

  .product-card__meta {
    justify-content: center;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .product-card__buy {
    grid-column: auto;
  }

  .features {
    padding: 4rem 2rem;
  }

  .footer {
    padding: 3.5rem 2rem 1.75rem;
  }

  .footer__container {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .footer__links {
    justify-content: flex-end;
  }

  .footer__copy {
    grid-column: 1 / 3;
    text-align: center;
  }
}
