:root {
  --blue: #2949e8;
  --ink: #10194a;
  --muted: #69728d;
  --line: #e5e8ef;
  --cream: #f7f8fc;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 13px;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  height: 270px;
  margin-top: 24px;
  display: grid;
  grid-template-columns: 38% 62%;
  border-radius: 9px;
  overflow: hidden;
}
.hero-copy {
  padding: 24px 40px 20px 32px;
  background: #eef2ff;
}
.eyebrow {
  margin: 0 0 10px;
  color: #6076d4;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.hero h1 {
  margin: 0;
  font-size: 42px;
  line-height: 0.95;
  letter-spacing: -2px;
}
.hero h1 span {
  color: var(--blue);
}
.hero h1 .hero-heading-start {
  color: inherit;
}
.hero-description {
  max-width: 370px;
  margin: 14px 0 14px;
  color: #596586;
  font-size: 11px;
  line-height: 1.6;
}
.hero-button {
  display: inline-block;
  padding: 9px 13px;
  border-radius: 5px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}
.hero-image {
  position: relative;
  overflow: hidden;
  background: #dbe3ed;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 52%;
}
.hero-card {
  position: absolute;
  left: 28px;
  bottom: 18px;
  width: 190px;
  max-width: calc(100% - 32px);
  padding: 8px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 8px;
  box-shadow: 0 4px 12px rgba(20, 30, 70, 0.08);
  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease;
}
.hero-card:hover,
.hero-card:focus-visible {
  outline: 0;
  box-shadow: 0 7px 18px rgba(20, 30, 70, 0.18);
  transform: translateY(-2px);
}
.hero-card-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.hero-card-original-price {
  color: #858b99;
  font-size: 9px;
}
.hero-card-original-price[hidden] {
  display: none;
}
.hero-card-current-price {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}
.pencil-badge {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  transform: rotate(12deg);
  border-radius: 50%;
  background: #ef6a4b;
  color: #fff;
  text-align: center;
  font-size: 8px;
  font-weight: 800;
}

.benefits {
  height: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.benefits article {
  display: flex;
  align-items: center;
  gap: 10px;
}
.benefit-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: block;
}
.benefits strong,
.benefits small {
  display: block;
}
.benefits strong {
  font-size: 10px;
}
.benefits small {
  margin-top: 3px;
  color: #8b92a5;
  font-size: 8px;
}

.need {
  height: auto;
  position: relative;
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.need h2,
.section-heading h2 {
  margin: 0;
  font-size: 21px;
}
.need > a,
.section-heading > a {
  position: absolute;
  right: 0;
  top: 28px;
  color: var(--blue);
  font-size: 9px;
}
.category-grid {
  height: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 16px;
}
.category-grid a {
  min-width: 0;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 16px;
  border: 1px solid #e6e3dc;
  border-radius: 10px;
  background: #fffefa;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}
.cat-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  color: var(--blue);
  flex: 0 0 auto;
}
.category-grid strong {
  font-size: 12px;
}
.category-grid small {
  margin-top: 4px;
  color: #969daf;
  font-size: 9px;
}
.category-grid small span {
  color: #78839a;
  font-size: 10px;
}

.products {
  height: 300px;
  position: relative;
  padding-top: 22px;
}
.section-heading {
  height: 34px;
  display: flex;
  align-items: flex-start;
}
.product-controls {
  position: static;
}
.product-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid #dfe3ec;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
}
.product-controls #product-prev,
.product-controls #product-next {
  position: absolute;
  z-index: 3;
  top: 55%;
  transform: translateY(-50%);
}
.product-controls #product-prev {
  left: -42px;
}
.product-controls #product-next {
  right: -42px;
}
.product-controls button:hover:not(:disabled) {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.product-controls button:disabled {
  cursor: default;
  opacity: 0.4;
}
.tabs {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tabs button {
  height: 23px;
  padding: 0 12px;
  border: 1px solid #e6e9f0;
  border-radius: 13px;
  background: #fff;
  color: #747e99;
  font: inherit;
  font-size: 8px;
}
.tabs button.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.product-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 2px 14px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.product-grid::-webkit-scrollbar {
  display: none;
}
.product-card {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}
.product-image {
  height: 150px;
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe3ea;
  border-radius: 4px;
  background: #f1f1ed;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-image > a {
  width: 100%;
  height: 100%;
  display: block;
}
.heart {
  position: absolute;
  z-index: 2;
  right: 8px;
  top: 7px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #7d8498;
  font-size: 12px;
}
.product-card h3 {
  height: 27px;
  margin: 8px 0 2px;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.45;
}
.product-card h3 a:hover {
  color: var(--blue);
}
.rating {
  margin: 0;
  color: #2e73f4;
  font-size: 8px;
  letter-spacing: 1px;
}
.rating span {
  color: #9aa1af;
  letter-spacing: 0;
}
.rating .review-count {
  color: #7d879e;
  letter-spacing: 0;
}
.rating .review-count:hover {
  color: var(--blue);
  text-decoration: underline;
}
.price {
  display: flex;
  align-items: center;
  margin-top: 5px;
}
.price strong {
  color: #ec5057;
  font-size: 10px;
}
.price del {
  margin-left: 6px;
  color: #a0a5b1;
  font-size: 8px;
}
.price button {
  width: 24px;
  height: 24px;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: #edf2ff;
  color: var(--blue);
}

.reviews {
  height: auto;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
}
.reviews-content {
  min-width: 0;
}
.reviews-heading {
  margin-bottom: 14px;
}
.reviews-heading h2 {
  margin: 0;
  color: #17213f;
  font-size: 19px;
  line-height: 1.35;
}
.review-score {
  margin-left: auto;
  color: #f1a900;
  font-size: 8px;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.review-grid article {
  min-width: 0;
  min-height: 128px;
  padding: 12px;
  border: 1px solid #ece8df;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(37, 39, 52, 0.035);
}
.review-grid article > strong {
  color: #f1b11b;
  font-size: 8px;
  letter-spacing: 1px;
}
.review-grid p {
  min-height: 43px;
  margin: 7px 0 8px;
  color: #737b91;
  font-size: 9px;
  line-height: 1.6;
}
.review-grid article > div {
  display: flex;
  align-items: center;
  gap: 7px;
}
.avatar {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #dfe6ff;
  color: var(--blue);
  font-size: 9px;
}
.review-grid b,
.review-grid small {
  display: block;
}
.review-grid b {
  font-size: 8px;
}
.review-grid small {
  margin-top: 2px;
  color: #9aa1b2;
  font-size: 7px;
}
.reviews-status {
  margin: 12px 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}
.review-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.reviews-more {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #d5dced;
  border-radius: 18px;
  background: #fff;
  color: var(--blue);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
}
.reviews-more[hidden] {
  display: none;
}
.reviews-collapse {
  padding: 9px 18px;
  border: 1px solid #dfe3ec;
  border-radius: 6px;
  background: #fff;
  color: #626d86;
  font-size: 12px;
  font-weight: 600;
}
.reviews-collapse[hidden] {
  display: none;
}
.reviews-collapse:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.review-form-panel {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid #e8ebf2;
  border-radius: 10px;
  background: #fff;
}
.review-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.review-form[hidden],
.review-login-prompt[hidden] {
  display: none;
}
.review-form > label {
  display: grid;
  gap: 6px;
  color: #38425d;
  font-size: 12px;
  font-weight: 600;
}
.review-form select,
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #dfe3ec;
  border-radius: 7px;
  background: #fff;
  color: #28314d;
  font: inherit;
  font-size: 12px;
}
.review-form textarea {
  min-height: 84px;
  resize: vertical;
}
.review-form select:focus,
.review-form textarea:focus {
  outline: 2px solid rgba(54, 91, 190, 0.2);
  border-color: var(--blue);
}
.review-form-comment,
.review-form-actions {
  grid-column: 1 / -1;
}
.review-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.review-form-actions button {
  min-height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.review-form-actions button:hover:not(:disabled) {
  background: #29499e;
}
.review-form-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.review-login-prompt {
  margin: 0;
  color: #626d86;
  font-size: 12px;
}
.review-login-prompt a {
  margin-left: 6px;
  color: var(--blue);
  font-weight: 600;
}
.reviews-more:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
}
.reviews-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 800px) {
  .container {
    width: min(100% - 24px, 1120px);
  }
  .hero {
    height: 460px;
    grid-template-columns: 1fr;
  }
  .hero-copy {
    min-height: 220px;
  }
  .hero-image {
    height: 240px;
  }
  .benefits {
    height: auto;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px 0;
  }
  .need {
    height: auto;
    padding-bottom: 20px;
  }
  .need > a {
    top: 25px;
  }
  .category-grid {
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
  }
  .products {
    height: auto;
    padding-bottom: 24px;
  }
  .product-grid {
    gap: 12px;
  }
  .product-card {
    flex-basis: calc((100% - 12px) / 2);
  }
  .product-controls #product-prev {
    left: 0;
  }
  .product-controls #product-next {
    right: 0;
  }
  .reviews {
    padding-bottom: 20px;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .review-grid article {
    min-height: 0;
  }
  .review-grid p {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 36px;
  }
  .hero-copy {
    padding-inline: 24px;
  }
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-grid {
    gap: 8px;
  }
  .product-card {
    flex-basis: calc((100% - 8px) / 2);
  }
  .product-image {
    height: 130px;
  }
  .tabs button:last-child {
    display: none;
  }
}

a,
button {
  cursor: pointer;
}
input {
  cursor: text;
}
button {
  font-family: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #91a5ff;
  outline-offset: 3px;
}
.category-grid a,
.tabs button,
.heart,
.add-cart {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.category-grid a:hover {
  transform: translateY(-3px);
  border-color: #b7c5ff;
  background: #f2f5ff;
  box-shadow: 0 8px 18px rgba(27, 55, 150, 0.09);
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
}
.product-card:hover .product-image,
.product-card:focus-within .product-image {
  border-color: #bac7ff;
  box-shadow: 0 7px 16px rgba(27, 55, 150, 0.14);
}
.product-card:hover .product-image img,
.product-card:focus-within .product-image img {
  transform: scale(1.05);
}
.heart,
.add-cart {
  cursor: pointer;
}
.heart:hover,
.heart[aria-pressed="true"] {
  color: #e34f65;
  background: #fff0f2;
}
.add-cart:hover {
  color: #fff;
  background: var(--blue);
}
@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image,
  .product-image img {
    transition: none;
  }
  .product-card:hover,
  .product-card:focus-within {
    transform: none;
  }
  .product-card:hover .product-image img,
  .product-card:focus-within .product-image img {
    transform: none;
  }
}
.search-status {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.products-more {
  display: block;
  margin: 24px auto 0;
  padding: 10px 20px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.products-more[hidden] {
  display: none;
}
.products-more:hover:not(:disabled) {
  background: var(--blue);
  color: #fff;
}
.products-more:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (min-width: 801px) {
  body {
    font-size: 14px;
  }
  .container {
    width: min(1200px, calc(100% - 64px));
  }
  .hero {
    height: 330px;
    margin-top: 28px;
  }
  .hero-copy {
    padding: 34px 42px 24px;
  }
  .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero-description {
    max-width: 420px;
    margin: 18px 0;
    font-size: 13px;
  }
  .hero-button {
    padding: 11px 16px;
    font-size: 12px;
  }
  .hero-card {
    left: 32px;
    bottom: 22px;
    width: 165px;
    padding: 11px 13px;
    font-size: 10px;
  }
  .hero-card strong {
    font-size: 15px;
  }
  .hero-card small {
    font-size: 10px;
  }
  .pencil-badge {
    width: 76px;
    height: 76px;
    right: 28px;
    top: 24px;
    font-size: 10px;
  }
  .benefits {
    height: 88px;
  }
  .benefits article {
    gap: 13px;
  }
  .benefit-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .benefits strong {
    font-size: 12px;
  }
  .benefits small {
    font-size: 10px;
  }
  .need {
    height: auto;
    min-height: 204px;
    padding-top: 30px;
    padding-bottom: 25px;
  }
  .need h2,
  .section-heading h2 {
    font-size: 24px;
  }
  .need > a,
  .section-heading > a {
    top: 35px;
    font-size: 11px;
  }
  .category-grid {
    height: auto;
    gap: 12px;
  }
  .category-grid a {
    min-height: 130px;
    padding: 14px;
  }
  .cat-icon {
    width: 30px;
    height: 30px;
  }
  .category-grid strong {
    font-size: 12px;
  }
  .category-grid small {
    font-size: 9px;
  }
  .products {
    height: auto;
    min-height: 390px;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .section-heading {
    height: 39px;
  }
  .section-heading > a {
    top: 32px;
  }
  .tabs {
    height: 43px;
    gap: 9px;
  }
  .tabs button {
    height: 29px;
    padding: 0 15px;
    font-size: 10px;
  }
  .search-status {
    min-height: 20px;
    font-size: 12px;
  }
  .product-grid {
    gap: 16px;
  }
  .product-card {
    flex-basis: calc((100% - 48px) / 4);
  }
  .product-image {
    height: 190px;
    border-radius: 6px;
  }
  .heart {
    width: 27px;
    height: 27px;
    right: 10px;
    top: 10px;
    font-size: 17px;
  }
  .product-card h3 {
    height: 36px;
    margin-top: 10px;
    font-size: 12px;
  }
  .rating {
    font-size: 10px;
  }
  .price {
    margin-top: 7px;
  }
  .price strong {
    font-size: 13px;
  }
  .price del {
    font-size: 10px;
  }
  .price button {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .reviews {
    height: auto;
    min-height: 220px;
    padding-top: 28px;
    padding-bottom: 30px;
  }
  .review-grid {
    gap: 16px;
  }
  .review-grid article {
    height: auto;
    min-height: 130px;
    padding: 14px 16px;
  }
  .review-grid article > strong {
    font-size: 10px;
  }
  .review-grid p {
    min-height: 48px;
    margin: 7px 0 9px;
    font-size: 10px;
  }
  .avatar {
    width: 30px;
    height: 30px;
    font-size: 11px;
  }
  .review-grid b {
    font-size: 10px;
  }
  .review-grid small {
    font-size: 9px;
  }
  .review-score {
    font-size: 10px;
  }
  .reviews-status {
    font-size: 12px;
  }
  .reviews-more {
    padding: 10px 20px;
    font-size: 13px;
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .hero h1 {
    font-size: 46px;
  }
  .hero-copy {
    padding-left: 28px;
    padding-right: 24px;
  }
  .product-card {
    flex-basis: calc((100% - 32px) / 3);
  }
}
