/* =========================================
   STEVEWEAR
   Clothing Ecommerce Styles
========================================= */

/* =========================================
   VARIABLES
========================================= */

:root {
  --primary: #4ec3e0;

  --black: #000000;

  --ink: #000000;

  --body: #232323;

  --muted: #6e7173;

  --white: #ffffff;

  --surface-alt: #edf1f2;

  --border: #dedede;

  --border-strong: #b3b3b3;

  --success: #2db463;

  --error: #d81a1a;

  --section: 6.4rem;

  --container: 124.8rem;

  --radius-sm: 0.4rem;

  --radius-md: 0.8rem;

  --radius-lg: 1.6rem;

  --radius-xl: 2.7rem;

  --radius-pill: 999.9rem;
}

/* =========================================
   RESET
========================================= */

* {
  margin: 0;

  padding: 0;

  box-sizing: border-box;
}

html {
  font-size: 62.5%;

  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;

  color: var(--body);

  background: var(--white);

  line-height: 1.375;
}

img {
  display: block;

  width: 100%;
}

a {
  color: inherit;

  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;

  border: 0;
}

.container {
  width: min(calc(100% - 3.2rem), var(--container));

  margin-inline: auto;
}

/* =========================================
   ANNOUNCEMENT
========================================= */

.announcement {
  min-height: 3.6rem;

  background: var(--black);

  color: var(--white);

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 1.2rem;

  padding: 0.8rem 1.6rem;

  font-size: 1.1rem;

  font-weight: 700;

  letter-spacing: 0.08em;
}

/* =========================================
   HEADER
========================================= */

.header {
  background: var(--white);

  border-bottom: 0.1rem solid var(--border);

  position: sticky;

  top: 0;

  z-index: 1000;
}

.nav {
  min-height: 8.2rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 4rem;
}

.logo {
  font-family: "Barlow Condensed", sans-serif;

  font-size: 3.4rem;

  font-weight: 700;

  line-height: 1;

  letter-spacing: -0.04em;
}

.logo span {
  color: var(--primary);
}

.desktop-nav {
  display: flex;

  align-items: center;

  gap: 3.4rem;
}

.desktop-nav a {
  font-size: 1.3rem;

  font-weight: 600;

  transition: opacity 0.2s ease;
  text-transform: uppercase;
}

.desktop-nav a:hover {
  opacity: 0.55;
}

.nav-actions {
  display: flex;

  align-items: center;

  gap: 1rem;
}

.nav-icon,
.menu-btn {
  width: 4.4rem;

  height: 4.4rem;

  background: transparent;

  display: grid;

  place-items: center;

  font-size: 2.2rem;

  position: relative;
}

.cart-icon span {
  position: absolute;

  top: 0.3rem;

  right: 0;

  min-width: 1.8rem;

  height: 1.8rem;

  padding-inline: 0.4rem;

  border-radius: 50%;

  background: var(--primary);

  color: var(--black);

  display: grid;

  place-items: center;

  font-size: 1rem;

  font-weight: 700;
}

.menu-btn {
  display: none;
}

/* =========================================
   MOBILE NAV
========================================= */

.mobile-menu {
  display: none;

  padding: 2.4rem 1.6rem 3.2rem;

  border-top: 0.1rem solid var(--border);
}

.mobile-menu.open {
  display: flex;

  flex-direction: column;
}

.mobile-menu a {
  padding: 1.7rem 0;

  border-bottom: 0.1rem solid var(--border);

  font-size: 1.7rem;

  font-weight: 600;
}

/* =========================================
   TYPOGRAPHY
========================================= */

.eyebrow {
  font-size: 1.2rem;

  font-weight: 700;

  letter-spacing: 0.08em;

  color: var(--muted);

  margin-bottom: 1.4rem;
}

h1,
h2 {
  font-family: "Barlow Condensed", sans-serif;

  font-weight: 600;

  letter-spacing: -0.025em;

  line-height: 0.95;
}

h1 {
  font-size: clamp(6.4rem, 8vw, 11.2rem);
}

h2 {
  font-size: clamp(4.8rem, 6vw, 7.2rem);
}

/* =========================================
   BUTTONS
========================================= */

.btn {
  min-height: 5.4rem;

  padding: 1.5rem 2.4rem;

  border-radius: var(--radius-xl);

  display: inline-flex;

  justify-content: center;

  align-items: center;

  font-size: 1.4rem;

  font-weight: 700;

  letter-spacing: 0.04em;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-0.2rem);
}

.btn-primary {
  background: var(--primary);

  color: var(--black);
}

.btn-dark {
  background: var(--black);

  color: var(--white);
}

/* =========================================
   HERO
========================================= */

.hero {
  min-height: 65rem;

  display: grid;

  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 1.1fr);

  background: var(--surface-alt);
}

.hero-content {
  display: flex;

  flex-direction: column;

  justify-content: center;

  padding: 8rem max(3.2rem, 6vw);
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-description {
  max-width: 51rem;

  margin-top: 2.8rem;

  font-size: 1.8rem;

  color: var(--muted);
}

.hero-buttons {
  display: flex;

  flex-wrap: wrap;

  gap: 1.2rem;

  margin-top: 3.4rem;
}

.hero-image {
  min-height: 65rem;

  position: relative;

  overflow: hidden;
}

.hero-image img {
  height: 100%;

  object-fit: cover;
}

.hero-label {
  position: absolute;

  right: 2.4rem;

  bottom: 2.4rem;

  padding: 1.2rem 1.6rem;

  background: var(--white);

  font-size: 1.1rem;

  line-height: 1.3;

  letter-spacing: 0.06em;
}

.hero-label strong {
  display: block;

  font-size: 1.3rem;
}

/* =========================================
   CATEGORY STRIP
========================================= */

.category-strip {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  border-bottom: 0.1rem solid var(--border);
}

.category-strip a {
  min-height: 7.8rem;

  padding: 2rem 2.4rem;

  display: flex;

  align-items: center;

  justify-content: space-between;

  border-right: 0.1rem solid var(--border);

  font-family: "Barlow Condensed", sans-serif;

  font-size: 2.6rem;

  font-weight: 600;
}

.category-strip a:last-child {
  border-right: 0;
}

.category-strip span {
  color: var(--muted);
}

/* =========================================
   SECTION
========================================= */

.section {
  width: min(calc(100% - 3.2rem), var(--container));

  margin-inline: auto;

  padding-block: var(--section);
}

.section-header {
  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 2.4rem;

  margin-bottom: 3.2rem;
}

.text-link {
  font-size: 1.4rem;

  font-weight: 700;
}

/* =========================================
   PRODUCT GRID
========================================= */

.product-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 1.6rem;
}

.product-card {
  min-width: 0;
}

.product-image {
  position: relative;

  aspect-ratio: 3/2;

  background: var(--surface-alt);

  overflow: hidden;

  border-radius: var(--radius-lg);
}

.product-image img {
  height: 100%;

  object-fit: cover;

  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;

  z-index: 2;

  top: 1.2rem;

  left: 1.2rem;

  padding: 0.7rem 1rem;

  background: var(--primary);

  color: var(--black);

  border-radius: var(--radius-pill);

  font-size: 1rem;

  font-weight: 700;

  letter-spacing: 0.05em;
}

.product-badge.dark {
  background: var(--black);

  color: var(--white);
}

.quick-add {
  position: absolute;

  left: 1.2rem;

  right: 1.2rem;

  bottom: 1.2rem;

  min-height: 4.8rem;

  border-radius: var(--radius-xl);

  background: var(--body);

  color: var(--border);

  font-size: 1.2rem;

  font-weight: 700;

  opacity: 0;

  transform: translateY(1rem);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.product-card:hover .quick-add {
  opacity: 1;

  transform: translateY(0);
}

.product-info {
  display: flex;

  justify-content: space-between;

  gap: 1.2rem;

  padding-top: 1.4rem;
}

.product-info h3 {
  font-size: 1.4rem;

  font-weight: 700;
}

.product-info p {
  margin-top: 0.4rem;

  color: var(--muted);

  font-size: 1.2rem;
}

.product-info strong {
  white-space: nowrap;

  font-size: 1.4rem;
}

/* =========================================
   BLACK STATEMENT
========================================= */

.statement {
  background: var(--black);

  color: var(--white);

  padding: 9rem max(3.2rem, 8vw);

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6rem;

  align-items: end;
}

.statement h2 {
  font-size: clamp(6rem, 8vw, 11rem);
}

.statement p:last-child {
  max-width: 48rem;

  color: #bdbdbd;

  font-size: 1.8rem;
}

/* =========================================
   COLLECTIONS
========================================= */

.collection-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 1.6rem;
}

.collection-card {
  position: relative;

  height: 48rem;

  overflow: hidden;

  border-radius: var(--radius-lg);

  background: var(--black);
}

.collection-card img {
  height: 100%;

  object-fit: cover;

  opacity: 0.82;

  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.collection-card:hover img {
  transform: scale(1.04);

  opacity: 0.65;
}

.collection-card > div {
  position: absolute;

  inset: auto 2.4rem 2.4rem 2.4rem;

  color: var(--white);
}

.collection-card p {
  font-size: 1.2rem;

  margin-bottom: 0.4rem;
}

.collection-card h3 {
  font-family: "Barlow Condensed", sans-serif;

  font-size: 5.2rem;

  line-height: 0.9;
}

.collection-card span {
  display: inline-block;

  margin-top: 1.2rem;

  font-size: 1.2rem;

  font-weight: 700;
}

/* =========================================
   ABOUT
========================================= */

.about {
  display: grid;

  grid-template-columns: 1fr 1fr;

  background: var(--surface-alt);
}

.about-content {
  padding: 8rem max(3.2rem, 7vw);

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: flex-start;
}

.about-content h2 {
  max-width: 60rem;
}

.about-content h2 span {
  color: var(--primary);
}

.about-content > p:not(.eyebrow) {
  max-width: 55rem;

  margin-top: 2.4rem;

  color: var(--muted);

  font-size: 1.7rem;
}

.about-content .btn {
  margin-top: 3rem;
}

.about-image {
  min-height: 60rem;
}

.about-image img {
  height: 100%;

  object-fit: cover;
}

/* =========================================
   REVIEWS
========================================= */

.review-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 1.6rem;
}

.review {
  padding: 2.4rem;

  border: 0.1rem solid var(--border);

  border-radius: var(--radius-lg);

  background: #f8f9fa;
}

.stars {
  color: var(--primary);

  letter-spacing: 0.3rem;

  margin-bottom: 2rem;
  font-size: 1.6rem;
}

.review p {
  min-height: 9rem;

  font-size: 1.6rem;
}

.review strong {
  display: block;

  margin-top: 1.8rem;

  font-size: 1.3rem;
}

.review span {
  display: block;

  color: var(--muted);

  font-size: 1.2rem;

  margin-top: 0.3rem;
}

/* =========================================
   NEWSLETTER
========================================= */

.newsletter {
  background: var(--primary);

  padding: 7rem max(3.2rem, 8vw);

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6rem;

  align-items: center;
}

.newsletter h2 {
  font-size: clamp(5rem, 6vw, 8rem);
}

.newsletter p:last-child {
  margin-top: 1.4rem;
  font-size: 1.6rem;
  max-width: 50rem;
}

.newsletter form {
  display: flex;

  gap: 0.8rem;
}

.newsletter input {
  width: 100%;

  min-height: 5.4rem;

  padding: 1.5rem 1.8rem;

  border: 0.1rem solid var(--black);

  background: var(--white);

  outline: none;
  font-size: 1.6rem;
}

.newsletter form .btn {
  flex-shrink: 0;
}

/* =========================================
   FOOTER
========================================= */

.footer {
  background: var(--white);

  padding: 6rem max(3.2rem, 6vw) 2.5rem;
}

.footer-grid {
  max-width: var(--container);

  margin-inline: auto;

  display: grid;

  grid-template-columns: 2fr repeat(3, 1fr);

  gap: 4rem;

  padding-bottom: 5rem;
}

.footer-brand p {
  max-width: 26rem;
  color: var(--muted);
  margin-top: 1.6rem;
  font-size: 1.6rem;
}

.footer h4 {
  margin-bottom: 1.8rem;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-grid a:not(.logo) {
  font-size: 1.4rem;
}

.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding-top: 2rem;
  border-top: 0.1rem solid var(--border);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 1.2rem;
  text-align: center;
}
.newsletter_btn {
  border: 0.1rem solid;
  border-radius: 0;
}
.newsletter_btn:hover {
  background-color: var(--body);
  color: var(--border);
  border: none;
}
/* =========================================
   SEARCH
========================================= */

.search-overlay {
  position: fixed;

  inset: 0;

  z-index: 2000;

  background: rgb(0 0 0 / 70%);

  display: none;

  align-items: flex-start;

  justify-content: center;

  padding: 10rem 2rem;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  width: min(70rem, 100%);

  padding: 3.2rem;

  background: var(--white);

  border-radius: var(--radius-lg);

  position: relative;
}

.close-btn {
  width: 4.2rem;

  height: 4.2rem;

  background: transparent;

  font-size: 3rem;

  line-height: 1;
}

.search-box > .close-btn {
  position: absolute;

  top: 1.5rem;

  right: 1.5rem;
}

.search-box input {
  width: 100%;

  padding: 1.8rem 0;

  border: 0;

  border-bottom: 0.2rem solid var(--black);

  outline: none;

  font-size: 2rem;
}

#searchResults {
  margin-top: 2rem;
}

.search-result {
  padding: 1.4rem 0;

  border-bottom: 0.1rem solid var(--border);

  display: flex;

  justify-content: space-between;
}

/* =========================================
   CART DRAWER
========================================= */

.cart-overlay {
  position: fixed;

  inset: 0;

  z-index: 1998;

  background: rgb(0 0 0 / 45%);

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;

  pointer-events: auto;
}

.cart-drawer {
  position: fixed;

  z-index: 1999;

  top: 0;

  right: 0;

  width: min(46rem, 100%);

  height: 100vh;

  background: var(--white);

  transform: translateX(100%);

  transition: transform 0.3s ease;

  display: flex;

  flex-direction: column;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-header {
  min-height: 8rem;

  padding: 0 2.4rem;

  border-bottom: 0.1rem solid var(--border);

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.cart-header h2 {
  font-size: 3.6rem;
}

.cart-items {
  flex: 1;

  overflow-y: auto;

  padding: 2rem 2.4rem;
}

.empty-cart {
  color: var(--muted);

  text-align: center;

  padding-top: 6rem;
  font-size: 1.6rem;
}

.cart-item {
  display: grid;

  grid-template-columns: 7.5rem 1fr auto;

  gap: 1.2rem;

  align-items: center;

  padding-block: 1.5rem;

  border-bottom: 0.1rem solid var(--border);
}

.cart-item img {
  width: 7.5rem;

  height: 9rem;

  object-fit: cover;

  border-radius: 0.8rem;
}

.cart-item h4 {
  font-size: 1.3rem;
}

.cart-item p {
  margin-top: 0.4rem;

  font-size: 1.2rem;

  color: var(--muted);
}

.remove-item {
  color: var(--error);

  background: transparent;

  font-size: 1.1rem;

  margin-top: 0.8rem;
}

.cart-footer {
  padding: 2rem 2.4rem;

  border-top: 0.1rem solid var(--border);
}

.cart-total {
  display: flex;

  justify-content: space-between;

  font-size: 1.8rem;

  margin-bottom: 1.6rem;
}

.checkout-btn {
  width: 100%;
}

.cart-footer > p {
  margin-top: 1.2rem;

  color: var(--muted);

  font-size: 1.1rem;

  text-align: center;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 102.4rem) {
  .desktop-nav {
    gap: 2rem;
  }

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

  .hero-content {
    padding: 6rem 4rem;
  }

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

  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

@media (max-width: 76.8rem) {
  :root {
    --section: 4.8rem;
  }

  .desktop-nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav {
    min-height: 7.2rem;
  }

  .logo {
    font-size: 3rem;
  }

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

  .hero-content {
    padding: 6.4rem 2rem;
  }

  .hero-image {
    min-height: 50rem;
  }

  .hero-description {
    font-size: 1.6rem;
  }

  .category-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-strip a:nth-child(2) {
    border-right: 0;
  }

  .category-strip a:nth-child(-n + 2) {
    border-bottom: 0.1rem solid var(--border);
  }

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

  .quick-add {
    opacity: 1;

    transform: none;
  }

  .statement {
    grid-template-columns: 1fr;

    padding: 7rem 2rem;

    gap: 3rem;
  }

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

  .collection-card {
    height: 42rem;
  }

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

  .about-image {
    min-height: 50rem;

    order: -1;
  }

  .about-content {
    padding: 6rem 2rem;
  }

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

  .review p {
    min-height: auto;
  }

  .newsletter {
    grid-template-columns: 1fr;

    padding: 6rem 2rem;

    gap: 3rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 57.6rem) {
  .announcement {
    font-size: 0.9rem;

    gap: 0.6rem;
  }

  .nav {
    gap: 0.5rem;
  }

  .nav-actions {
    gap: 0;
  }

  h1 {
    font-size: 6.6rem;
  }

  h2 {
    font-size: 5.2rem;
  }

  .hero-buttons {
    flex-direction: column;

    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-image {
    min-height: 44rem;
  }

  .category-strip a {
    min-height: 6.5rem;

    padding: 1.5rem;

    font-size: 2.2rem;
  }

  .section {
    width: min(calc(100% - 2.4rem), var(--container));
  }

  .section-header {
    align-items: flex-start;

    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;

    gap: 1rem;
  }

  .product-info {
    display: block;
  }

  .product-info strong {
    display: block;

    margin-top: 0.8rem;
  }

  .product-image {
    border-radius: 1rem;
  }

  .collection-card {
    height: 38rem;
  }

  .newsletter form {
    flex-direction: column;
  }

  .newsletter form .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;

    gap: 3rem 2rem;
  }

  .footer-bottom {
    flex-direction: column;

    gap: 0.8rem;
  }
}

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

/* =========================================
   PRODUCT / SHOP UTILITIES
========================================= */

.no-products,
.no-search-results {
  color: var(--muted);
  padding-block: 3rem;
}

.shop-hero {
  background: var(--surface-alt);
  padding: 7rem max(3.2rem, 6vw);
}

.shop-hero h1 {
  font-size: clamp(5.6rem, 8vw, 9rem);
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.2rem;
}

.shop-filter-group {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.shop-filter,
.shop-sort {
  min-height: 4.4rem;
  padding: 0 1.6rem;
  border: 0.1rem solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

.shop-sort {
  min-width: 16rem;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-top: 1rem;
  border: 0.1rem solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.quantity-btn {
  width: 3.2rem;
  height: 3.2rem;
  background: var(--white);
  font-size: 1.8rem;
  display: grid;
  place-items: center;
}

.quantity-btn:hover {
  background: var(--surface-alt);
}

.quantity-control span {
  min-width: 2.8rem;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-item-details {
  min-width: 0;
}

.cart-item-details h4 {
  line-height: 1.2;
}

.subscribed {
  background: var(--success) !important;
}

@media (max-width: 76.8rem) {
  .shop-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-sort {
    width: 100%;
  }
}
