@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #0085FF;
  --color-accent: #20283F;
  --color-border: #E2E6EB;
  --color-offwhite: #F7F8F9;
  --color-text: #66696C;
  --color-heading: #252729;
  --content-width: 1280px;
  --header-height: 168px
}

body {
  margin: 0;
}

* {
  font-family: 'Inter', sans-serif;
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
}

.container {
  max-width: min(100vw - 80px, var(--content-width));
  width: 100%;
  margin: 0 auto;
}

header {
  background-color: var(--color-accent);
  padding: 40px 0 24px;
  position: sticky;
  top: 0;
  z-index: 1;
}

header .container {
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.nash-logo, .header-right {
  width: 248px;
}

.header-middle {
  flex: 1;
  max-width: 522px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

#search-bar {
  position: relative;
  width: 100%;
  display: flex;
}

#search-input {
  all: unset;
  font-size: 11.25px;
  padding: 17px 64px 17px 25px;
  background-color: #fff;
  border-radius: 100px;
  border: 1px solid var(--color-offwhite);
  box-shadow: 0px 2px 6px 0px rgba(37, 39, 41, 0.04);
  flex: 1;
}

#search-button {
  all: unset;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  background-color: var(--color-primary);
}

#search-button svg {
  width: 20px;
  height: 20px;
}

#search-results {
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  border-radius: 25px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  box-shadow: 0px 2px 6px 0px rgba(37, 39, 41, 0.04);
  transform: translateY(100%);
  display: none;
  padding: 17px 25px;
}

#search-results.visible {
  display: flex;
  flex-direction: column;
}

nav {
  display: flex;
  gap: 34px;
}

nav a {
  color: #fff;
  font-size: 13.563px;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

#main-content {
  margin-top: 100px;
}

#product-info {
  display: flex;
  align-items: flex-start;
  gap: 44px;
}

.product-image-container {
  flex: 1;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-offwhite);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
}

.product-image-container img {
  width: 100%;
  max-width: 400px;
  max-height: 400px;
  object-fit: contain;
  border-radius: 4px;
}

.product-details {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  width: 412px;
}

#product-title {
  margin: 0 0 24px;
  font-size: 21.484px;
  font-weight: 500;
  line-height: 30.01px;
}

#product-description {
  margin: 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
  line-height: 24px;
}

.features-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  
}

.feature-item {
  display: flex;
  gap: 16px;
}

.feature-item svg {
  width: 22px;
  height: 22px;
}

.feature-item svg g {
  stroke: var(--color-primary);
}

.feature-title {
  margin: 0 0 2px;
  font-size: 11.813px;
  line-height: 14px;
  font-weight: 700;
}

.feature-subtitle {
  font-size: 11.438px;
  line-height: 14px
}

.section-header {
  display: flex;
  justify-content: space-between;
  margin: 50px 0;
  align-items: center;
  gap: 32px;
}

.explore-link {
  border-radius: 48px;
  border: 1px solid var(--color-border);
  color: var(--color-heading);
  padding: 18px 26.8px 19px 27px;
  font-size: 13.672px;
  line-height: 16px;
  background: #FFF;
  box-shadow: 0px 4px 10px 0px rgba(20, 20, 43, 0.04);
  text-decoration: none;
}

.section-title {
  font-size: 25.797px;
  font-weight: 500;
  line-height: 38.01px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
  max-width: 720px;
  flex: 1;
  margin: 50px 0;
}

.section-header .section-title {
  margin: 0;
}

#size-chart-table-container {
  background-color: var(--color-accent);
  border-radius: 16px;
  padding: 40px 0 40px 16px;
}

#size-chart-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-right: -20px;
  transform: translateX(16px);
}

#size-chart-table * {
  color: #fff;
  text-align: left;
}

#size-chart-table .table-heading {
  font-size: 17.156px;
  font-weight: 700;
  line-height: 20px;
  padding: 0 52px 19px 0;
}

#size-chart-table .table-cell {
  font-size: 17.578px;
  line-height: 20px;
  padding: 20px 0 19px;
  position: relative;
}

#size-chart-table .table-cell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 52px;
  height: 1px;
  background-color: var(--color-border);
}

#size-chart-table .table-row:last-child .table-cell {
  padding-bottom: 0;
}

.popular-products {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.product-card {
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: #FFF;
  box-shadow: 0px 2px 6px 0px rgba(37, 39, 41, 0.04);
  text-decoration: none;
  flex: 1;
}

.product-image-wrapper img {
  width: 100%;
  height: 274px;
  object-fit: cover;
  background-color: var(--color-offwhite);
  display: block;
}

.product-card-info {
  padding: 20px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-info .product-category {
  color: var(--color-primary);
  margin: 0;
  font-size: 11.625px;
  line-height: 14px;
}

.product-card-info .product-name {
  margin: 0;
  font-size: 15.625px;
  font-weight: 700;
  line-height: 18px;
}

.services-grid {
  display: flex;
  gap: 32px;
  margin: 100px 0;
}

.service-card {
  display: flex;
  gap: 16px;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.service-card svg {
  width: 48px;
  height: 48px;
}

.service-line {
  width: 1px;
  min-height: 100%;
  background-color: var(--color-border);
}

.service-title {
  margin: 0 0 8px;
  font-size: 17px;
}

.service-description {
  margin: 0;
  font-size: 15px;
}

footer {
  background-color: var(--color-accent);
  padding: 100px 0 40px;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

footer * {
  color: #fff;
}

.footer-columns {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.copyright-container {
  text-align: center;
}

.footer-heading {
  margin: 0;
  font-size: 13.672px;
  font-weight: 700;
  line-height: 16px;
}

.footer-menu {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
}

.footer-menu li {
  display: block;
}

.footer-menu a {
  color: var(--color-offwhite);
  text-decoration: none;
  font-size: 13.672px;
  line-height: 16px;
}

.footer-menu a::hover {
  text-decoration: underline;
}

.popular-products-list {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-direction: column;
}

.popular-products-list img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
}

.popular-product-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-name {
  font-size: 13.453px;
  font-weight: 700;
  line-height: 16px;
}

.footer-column-newsletter {
  padding: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}

.footer-column-newsletter .footer-heading {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 18px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.newsletter-input {
  all: unset;
  font-size: 11.25px;
  padding: 17px 25px;
  background-color: #fff;
  border-radius: 100px;
  border: 1px solid var(--color-offwhite);
  box-shadow: 0px 2px 6px 0px rgba(37, 39, 41, 0.04);
}

.newsletter-button {
  all: unset;
  color: #fff;
  background-color: var(--color-primary);
  padding: 17px 25px;
  text-align: center;
  font-size: 13.781px;
  font-weight: 700;
  line-height: 16px;
  border-radius: 100px;
}

@media (max-width: 1024px) {
  header .container {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 20px;
  }

  .header-right {
    display: none;
    justify-content: center;
  }

  .header-middle {
    display: contents;
  }

  .nash-logo {
    width: initial;
    height: 64px;
  }

  #search-bar {
    width: initial;
    flex: 1;
    min-width: 0;
  }

  #search-input {
    min-width: 0;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  .popular-products {
    gap: 16px;
  }
  
  .product-card {
    width: calc(50% - 20px / 2);
    flex: initial;
  }

  .product-image-wrapper img {
    height: 157px;
  }

  .product-card-info {
    padding: 16px 17px 19px;
    gap: 7px;
  }

  .product-card-info .product-category {
    font-size: 12px;
    line-height: 7.964px;
  }

  .product-card-info .product-name {
    font-size: 14px;
    line-height: 10.239px;
  }

  .product-details {
    width: 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 136px;
  }
  
  header {
    padding: 20px 0 16px;
  }
  
  header .container {
    gap: 16px;
  }
  
  .container {
    max-width: calc(100vw - 14px * 2);
  }
  
  .services-grid {
    flex-direction: column;
    gap: 16px;
    margin: 50px 0;
  }

  .service-line {
    min-width: 100%;
    height: 1px;
  }

  .section-header {
    margin: 25px 0;
  }

  .section-title {
    margin: 25px 0;
    font-size: 20px;
    line-height: 23.543px;
    padding-bottom: 12px;
  }

  #product-info {
    flex-direction: column;
  }

  .product-details {
    width: 100%;
    padding: 0;
    border: none;
  }

  .product-image-container {
    width: 100%;
    position: initial;
  }

  #main-content {
    margin-top: 40px;
  }
}

@media (max-width: 512px) {
  :root {
    --header-height: 120px;
  }
  
  .nash-logo {
    height: 48px;
  }
}
/* Search Results Styling */
.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  color: inherit;
  transition: all 0.2s ease-in-out;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: #f5f7fa;
}

.result-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.result-icon-type {
  background-color: #fef3c7;
}

.result-icon-item {
  background-color: #F0F9FF;
}

.result-content {
  flex: 1;
}

.result-title {
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 4px;
}

.result-details {
  font-size: 12px;
  color: #64748b;
}
