@import url("https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg: #ffffff;
  --panel: #e9f6f5;
  --text: #111111;
  --muted: #333333;
  --green: #2c7776;
  --red: #d90429;
  --yellow: #ffd84d;
  --white: #ffffff;
  --line: #a8b8b6;

  --radius-xl: 48px;
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* HEADER */

.topbar {
  width: 100%;
  min-height: 104px;
  padding: 18px 64px;
  background: #ffffff;
  border-bottom: 1px solid #dfe8e6;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: 430px minmax(300px, 1fr) auto;
  gap: 34px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.brand-logo-fallback {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: var(--red);
  color: var(--white);
  display: none;
  place-items: center;
  font-size: 46px;
  font-weight: 900;
  flex: 0 0 auto;
}

.brand-text {
  min-width: 0;
}

.brand strong {
  display: block;
  color: var(--text);
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 17px;
  margin-top: 7px;
  white-space: nowrap;
}

.search-wrap input {
  width: 100%;
  border: 1px solid #d1dddb;
  background: #f7fcfb;
  border-radius: 999px;
  padding: 15px 20px;
  outline: none;
  transition: 0.2s ease;
  font-size: 1rem;
}

.search-wrap input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(44, 119, 118, 0.13);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn,
.cart-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.2s ease;
  padding: 13px 18px;
  font-size: 1rem;
}

.ghost-btn {
  background: #eef8f6;
  color: #111111;
}

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

.cart-btn span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--yellow);
  color: #601000;
  font-size: 0.85rem;
  font-weight: 800;
}

/* LAYOUT */

.shop-layout {
  width: 100%;
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

/* LEFT CATEGORY */

.category-sidebar {
  height: calc(100vh - 104px);
  padding: 78px 20px 30px 44px;
  background: #ffffff;
  position: sticky;
  top: 104px;
  align-self: start;
  overflow-y: auto;
  z-index: 10;
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111111;
  text-align: left;
  padding: 0;
  border-radius: 0;
  font-size: 1.5rem;
  line-height: 1.75;
  font-weight: 700;
  text-decoration: none;
}

.category-item:hover,
.category-item.active {
  color: var(--red);
  background: transparent;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* MAIN CONTENT */

.shop-main {
  min-width: 0;
  padding-right: 44px;
}

.hero {
  width: 100%;
  height: 300px;
  padding-top: 28px;
  overflow: visible;
  position: relative;
}

.hero-inner {
  height: 100%;
  border-radius: 44px 44px 0 0;
  overflow: hidden;
  position: relative;
}

.hero-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-action {
  position: absolute;
  top: 28px;
  right: 42px;
  width: 190px;
  height: 150px;
  border-radius: 38px;
  background: var(--red);
  color: white;
  font-size: 34px;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 1px;
  display: grid;
  place-items: center;
  text-align: center;
  transform: rotate(7deg);
}

.content-panel {
  width: 100%;
  background: var(--panel);
  border-radius: 44px 44px 0 0;
  padding: 70px 44px 70px 36px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

/* TITLE AREA */

.section-head {
  padding: 0 0 70px 0;
}

.section-head h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1;
  letter-spacing: 1px;
  font-weight: 900;
}

.section-subtitle {
  margin: 32px 0 0;
  color: var(--text);
  font-size: clamp(21px, 1.65vw, 30px);
  line-height: 1.25;
  font-weight: 500;
}

.shop-motto {
  margin: 24px 0 0;
  color: #111111;
  font-size: 1.35rem;
  line-height: 1.45;
  font-weight: 500;
}

/* PRODUCTS */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  width: 100%;
}

.product-card {
  width: 100%;
  min-height: 440px;
  aspect-ratio: 0.66 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(22, 65, 62, 0.13);
  border-color: var(--green);
}

.bonus-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green);
  color: var(--white);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 1rem;
  font-weight: 700;
  z-index: 2;
}

.product-image {
  height: 54%;
  min-height: 210px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: #ffffff;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.product-name {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 700;
}

.product-desc {
  margin: 10px 0 0;
  color: #333333;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 400;
}

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding-top: 18px;
}

.action-label {
  background: var(--yellow);
  color: #b21712;
  border-radius: 8px 0 0 8px;
  padding: 7px 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.price-label {
  background: var(--red);
  color: var(--white);
  border-radius: 0 8px 8px 0;
  padding: 7px 12px;
  font-size: 1.05rem;
  font-weight: 700;
  min-width: 78px;
  text-align: center;
}

/* MOBILE CATEGORY */

.mobile-categories {
  display: none;
}

.empty-state {
  grid-column: 1 / -1;
  background: white;
  border-radius: 18px;
  padding: 28px;
  color: #333333;
  font-weight: 700;
}

/* SCROLL TOP */

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #121212;
  color: var(--white);
  font-size: 22px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  z-index: 30;
}

/* RESPONSIVE */

@media (max-width: 1400px) {
  .shop-layout {
    grid-template-columns: 285px minmax(0, 1fr);
  }

  .category-sidebar {
    padding-left: 28px;
  }

  .shop-main {
    padding-right: 28px;
  }

  .product-grid {
    gap: 18px;
  }
}

@media (max-width: 1250px) {
  .topbar {
    padding: 14px 24px;
    grid-template-columns: 380px 1fr auto;
  }

  .brand-logo-img,
  .brand-logo-fallback {
    width: 76px;
    height: 76px;
  }

  .brand strong {
    font-size: 27px;
  }

  .brand span {
    font-size: 15px;
  }

  .shop-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

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

  .product-card {
    min-height: 420px;
  }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .header-actions {
    justify-content: space-between;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    display: none;
  }

  .shop-main {
    padding-right: 0;
  }

  .hero {
    padding: 10px 10px 0;
  }

  .hero-inner {
    border-radius: 32px 32px 0 0;
  }

  .hero-action {
    display: none;
  }

  .content-panel {
    border-radius: 32px 32px 0 0;
    margin-top: -30px;
    padding: 44px 18px 52px;
  }

  .mobile-categories {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 0 0 26px;
    scrollbar-width: none;
  }

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

  .mobile-categories .category-item {
    flex: 0 0 auto;
    background: #ffffff;
    border: 1px solid #d1dddb;
    text-align: center;
    padding: 10px 15px;
    border-radius: 999px;
    text-decoration: none;
  }

  .mobile-categories .category-item.active,
  .mobile-categories .category-item:hover {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
  }

  .product-card {
    min-height: 400px;
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 1.1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    min-height: 380px;
  }

  .section-head {
    padding-bottom: 34px;
  }

  .section-subtitle {
    margin-top: 18px;
    font-size: 1.15rem;
  }

  .shop-motto {
    font-size: 1.1rem;
  }

  .brand strong {
    font-size: 24px;
    white-space: normal;
  }

  .brand-logo-img,
  .brand-logo-fallback {
    width: 68px;
    height: 68px;
  }
  .product-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #f7ecec 0%, #eef7f4 45%, #f8f2df 100%);
  color: #b8b8b8;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
}

@media (max-width: 430px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .brand strong {
    font-size: 22px;
  }
}