:root {
  --color-green-dark: #2d4a2d;
  --color-green-main: #5a8a3c;
  --color-border: #e4e7ec;
  --color-muted: #667085;
  --color-text: #101828;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --shadow-soft: 0 8px 28px rgba(16, 24, 40, 0.08);
  --transition: 0.25s ease;
  --max-width: 1200px;
}

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

body {
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

button {
  font: inherit;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.08);
}

.header__inner {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-green-main);
  white-space: nowrap;
}

.logo--light {
  color: #8fcc6a;
}

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

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  transition: color var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--color-green-main);
}

.header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.header__icon {
  display: flex;
  color: #0f172a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.btn--primary {
  background: #6a9858;
  color: #fff;
}

.btn--outline {
  background: #f5f2df;
  color: #0f172a;
}

.btn__plus {
  font-size: 22px;
  line-height: 1;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 999px;
}

.profile-page {
  padding: 42px 0 80px;
}

.page-title {
  margin-bottom: 28px;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  color: #030712;
}

.profile-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

.profile-sidebar {
  display: grid;
  gap: 24px;
}

.profile-card,
.activity-card,
.my-products,
.action-card {
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.profile-card {
  padding: 28px 24px;
  text-align: center;
}

.avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #6a9858;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.profile-card h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-phone {
  color: #475467;
  margin-bottom: 22px;
}

.profile-line {
  height: 1px;
  background: var(--color-border);
  margin: 22px 0;
}

.profile-stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: #344054;
}

.profile-stat b {
  color: #030712;
}

.edit-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  border-radius: 999px;
  background: #f3f0dc;
  cursor: pointer;
  font-weight: 700;
}

.profile-content {
  display: grid;
  gap: 28px;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.action-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-green-main);
}

.action-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #c8dab8;
  color: var(--color-green-main);
  font-size: 24px;
  font-weight: 800;
}

.action-card h3 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
}

.action-card p {
  color: var(--color-muted);
  font-size: 14px;
}

.activity-card,
.my-products {
  padding: 28px 24px;
}

.activity-card h2,
.my-products h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 24px;
}

.activity-list {
  display: grid;
  gap: 14px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.activity-dot {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--color-green-main);
  flex-shrink: 0;
}

.activity-title {
  font-weight: 600;
}

.activity-time {
  color: var(--color-muted);
  font-size: 13px;
}

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

.section-head a {
  color: var(--color-green-main);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.product-image {
  height: 160px;
  background: #f0f1f3;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 16px;
}

.product-body h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.product-body p {
  color: var(--color-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.product-price {
  font-weight: 800;
  color: var(--color-green-dark);
}

.empty-state {
  padding: 34px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 24px;
}

.empty-state p {
  margin-bottom: 18px;
  color: var(--color-muted);
}

.footer {
  background: var(--color-green-dark);
  color: rgba(255, 255, 255, 0.75);
  padding-top: 56px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__brand p {
  max-width: 310px;
  margin-top: 16px;
  font-size: 14px;
}

.footer__col h4 {
  margin-bottom: 16px;
  color: #fff;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.footer__bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 980px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-card {
    max-width: 420px;
  }
}

@media (max-width: 980px) {
  .header__inner {
    height: 68px;
  }

  .nav,
  .header__actions {
    display: none;
  }

  .burger {
    display: flex;
  }

  .nav.open {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 18px 35px rgba(16, 24, 40, 0.12);
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .profile-page {
    padding: 28px 0 60px;
  }

  .profile-actions,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-card,
  .my-products,
  .profile-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.25);
}

.modal__content h2 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 28px;
}

.modal__content label {
  display: block;
  margin: 14px 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #344054;
}

.modal__content input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd6df;
  border-radius: 14px;
  outline: none;
}

.modal__content input:focus {
  border-color: var(--color-green-main);
}

.avatar-preview {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 50%;
  background: #6a9858;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.avatar-preview img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.modal-btn--cancel {
  background: #f3f0dc;
  color: #0f172a;
}

.modal-btn--save {
  background: #6a9858;
  color: #fff;
}

@media (max-width: 520px) {
  .modal__content {
    padding: 22px 18px;
  }

  .modal__actions {
    grid-template-columns: 1fr;
  }
}
.logout-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 12px;
  border: 1px solid #f2b8b5;
  border-radius: 999px;
  background: #fff5f5;
  color: #b42318;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition), transform var(--transition);
}

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

.nav__link--mobile {
  display: none;
}

@media (max-width: 980px) {
  .nav__link--mobile {
    display: block;
  }
}