:root {
  --brand: #1c1915;
  --ink: #131814;
  --muted: #8a8e92;
  --muted-2: #51575c;
  --line: #c9cbcc;
  --surface: #ffffff;
  --page: #ffffff;
  --announcement: #2d8ce3;
  --footer-bg: #00aa68;
  --discount: #00b53a;
  --best-price-bg: rgba(230, 254, 244, 0.7);
  --best-price-text: #008040;
  --search-bg: #f9f8ff;
  --search-border: #8f54f0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: ibmRegular, "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

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

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

/* Announcement bar */
.announcement-bar {
  background: var(--announcement);
  color: #fff;
  font-family: ibmSemiBold, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}

.announcement-track span {
  white-space: nowrap;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Header */
.site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid #f2f2f2;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .nav-bar {
    padding: 12px 40px;
    gap: 48px;
  }
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.menu-btn {
  border: none;
  background: transparent;
  padding: 4px;
  cursor: pointer;
  font-family: ibmMedium, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

.wordmark {
  font-family: soraSemiBold, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--brand);
  text-transform: lowercase;
}

.nav-links {
  display: none;
  gap: 20px;
  font-family: ibmMedium, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

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

.nav-search {
  flex: 1;
  max-width: 420px;
  display: none;
}

@media (min-width: 768px) {
  .nav-search {
    display: block;
  }
}

.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 0.5px solid var(--search-border);
  background: var(--search-bg);
}

.search-field input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: ibmMedium, sans-serif;
  font-size: 14px;
  color: var(--muted-2);
}

.search-field input:focus {
  outline: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: ibmMedium, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.nav-actions a {
  padding: 6px 10px;
  border-radius: 6px;
}

.nav-actions a:hover {
  background: #f5f5f5;
}

/* Main */
main {
  flex: 1;
  width: 100%;
}

.storefront-main {
  padding: 0 16px 48px;
  max-width: 1440px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .storefront-main {
    padding: 0 40px 64px;
  }
}

.content-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

@media (min-width: 1024px) {
  .content-main {
    padding: 32px 16px 64px;
  }
}

/* Product listing sections */
.product-listing-section {
  margin-top: 28px;
}

.section-heading {
  font-family: soraSemiBold, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  color: #1a1e31;
  margin: 0 0 16px;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 18px;
    margin-bottom: 20px;
  }
}

.product-listing-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 220px);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
  .product-listing-scroll {
    grid-auto-columns: minmax(200px, 260px);
    gap: 16px;
  }
}

.product-card-container {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 0.5px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  min-height: 100%;
}

@media (min-width: 1024px) {
  .product-card-container {
    border-radius: 16px;
  }
}

.product-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-media {
  position: relative;
  aspect-ratio: 2 / 3;
  padding: 2px;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 0.5px solid #eee;
  background: #f4f4f4;
}

.product-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #fff;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: ibmMedium, sans-serif;
  font-size: 8px;
  text-transform: uppercase;
  color: #133b5f;
}

@media (min-width: 1024px) {
  .product-tag {
    font-size: 12px;
    padding: 4px 8px;
  }
}

.product-card-info {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: ibmMedium, sans-serif;
  font-size: 11px;
  color: var(--muted-2);
}

.product-rating img {
  width: 15px;
  height: 15px;
}

.product-rating-divider {
  width: 2px;
  height: 9px;
  background: #afb2b4;
}

.product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.price-current {
  font-family: ibmSemiBold, sans-serif;
  font-size: 14px;
  color: var(--ink);
}

.price-mrp {
  font-family: ibmMedium, sans-serif;
  font-size: 11px;
  color: #afb2b4;
  text-decoration: line-through;
}

.price-off {
  font-family: ibmMedium, sans-serif;
  font-size: 10px;
  color: var(--discount);
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  .price-current {
    font-size: 16px;
  }
  .price-mrp,
  .price-off {
    font-size: 14px;
  }
}

.best-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--best-price-bg) 0%, rgba(230, 254, 244, 0.2) 100%);
  font-family: ibmMedium, sans-serif;
  font-size: 11px;
  color: var(--best-price-text);
}

.best-price img {
  width: 12px;
  height: 12px;
}

.product-card-title {
  margin: 0;
  font-family: ibmRegular, sans-serif;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1024px) {
  .product-card-title {
    font-size: 14px;
  }
}

.product-card-atc {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-top: 0.5px solid var(--line);
  font-family: soraSemiBold, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
}

.product-card-atc:hover {
  background: #f9f9f9;
}

@media (min-width: 1024px) {
  .product-card-atc {
    font-size: 14px;
    padding: 14px;
  }
}

/* Blog grid */
.blog-section {
  margin-top: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
}

.blog-card {
  background: #f9f9f9;
  border: 0.5px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 16rem;
}

@media (min-width: 1024px) {
  .blog-card {
    border-radius: 16px;
    min-height: 14rem;
  }
}

.blog-card img {
  width: 100%;
  aspect-ratio: 7 / 5;
  object-fit: cover;
}

.blog-card-body {
  padding: 10px 12px 14px;
  flex: 1;
}

.blog-card h3 {
  margin: 0 0 8px;
  font-family: ibmMedium, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .blog-card h3 {
    font-size: 16px;
  }
}

.blog-date {
  font-family: ibmRegular, sans-serif;
  font-size: 10px;
  color: var(--muted);
}

/* Content pages */
.content-page h1 {
  font-family: benzinExtrabold, soraSemiBold, sans-serif;
  font-size: 1.5rem;
  color: #624de3;
  text-transform: uppercase;
  margin-top: 0;
}

.content-page h2 {
  font-family: benzinExtrabold, sans-serif;
  font-size: 1.25rem;
  color: #624de3;
  text-transform: uppercase;
  margin-top: 2rem;
}

.content-page .prose {
  font-family: ibmRegular, sans-serif;
  line-height: 1.65;
  color: #3a3e41;
}

.content-page .prose p {
  margin: 0 0 1em;
}

.content-page .prose a {
  text-decoration: underline;
}

.milestones {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.milestone {
  background: #f9f9f9;
  border-left: 4px solid var(--brand);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
}

.milestone h3 {
  font-family: ibmMedium, sans-serif;
  margin: 0 0 8px;
}

details.faq {
  border-bottom: 1px solid #242f66;
  padding: 16px 0;
}

details.faq summary {
  cursor: pointer;
  font-family: ibmMedium, sans-serif;
  list-style: none;
}

details.faq summary::-webkit-details-marker {
  display: none;
}

.article-meta {
  font-family: ibmRegular, sans-serif;
  color: var(--muted);
  font-size: 0.9rem;
}

.button {
  display: inline-block;
  margin-top: 12px;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  font-family: ibmSemiBold, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: #fff;
  margin-top: auto;
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 16px 32px;
}

@media (min-width: 1024px) {
  .footer-inner {
    padding: 56px 40px 40px;
  }
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-title {
  font-family: benzinExtrabold, sans-serif;
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.4);
  margin: 0;
}

@media (min-width: 1024px) {
  .footer-title {
    font-size: 40px;
  }
}

.footer-newsletter {
  width: 100%;
  max-width: 38rem;
}

.subscribe-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 2px 2px 0 0 #322a65;
}

.subscribe-field input {
  flex: 1;
  border: none;
  padding: 8px;
  font-family: ibmMedium, sans-serif;
  font-size: 14px;
  color: #3a3e41;
}

.subscribe-field input:focus {
  outline: none;
}

.subscribe-field button {
  border: none;
  background: var(--brand);
  color: #fff;
  font-family: ibmSemiBold, sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 1024px) {
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px;
  }
}

.footer-col h4 {
  font-family: ibmSemiBold, sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  font-family: ibmMedium, sans-serif;
  font-size: 12px;
  color: #ccddd2;
  padding: 4px 0;
}

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

.footer-bottom {
  text-align: center;
  font-family: ibmMedium, sans-serif;
  font-size: 11px;
  color: #ccddd2;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
