/* ============================================
   RARITY. — Design System & Global Styles
   Inspired by Mesa Ghana's clean aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Brand Colors — Ghana Flag */
  --red: #C8102E;
  --red-deep: #62010D;
  --gold: #FFD700;
  --gold-warm: #F2C200;
  --green: #006B3F;
  --green-deep: #004D2C;
  --black-star: #121212;
  --black: #0A0A0A;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --gray-50: #F5F5F3;
  --gray-100: #EBEBEA;
  --gray-200: #D6D6D4;
  --gray-400: #9E9E9C;
  --gray-600: #6B6B69;
  --gray-800: #333331;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 1400px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 200ms var(--ease-out);
  --transition-base: 400ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.16);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--black-star);
  color: var(--white);
  text-align: center;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
}

.announcement-bar p {
  display: inline-block;
  animation: scrollAnnouncement 25s linear infinite;
}

@keyframes scrollAnnouncement {
  0% {
    transform: translateX(30%);
  }

  100% {
    transform: translateX(-70%);
  }
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 0 -25px 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-800);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--black-star);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover {
  background: var(--gray-50);
  transform: scale(1.05);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red-deep);
  color: var(--white);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black-star);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: calc(var(--header-height) + 38px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: var(--space-3xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 500;
  color: var(--black-star);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease, color var(--transition-fast);
}

.mobile-menu-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.05s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.10s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(3) {
  transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(4) {
  transition-delay: 0.20s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(5) {
  transition-delay: 0.25s;
}

.mobile-nav-link:hover {
  color: var(--red-deep);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  max-height: 900px;
  overflow: hidden;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(0, 0, 0, 0.65) 0%,
      rgba(0, 0, 0, 0.3) 50%,
      rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(30px, 6vw, 100px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.4s forwards;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin-bottom: var(--space-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.6s forwards;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: var(--white);
  color: var(--black-star);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  transition: all var(--transition-base);
  align-self: flex-start;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.8s var(--ease-out) 0.8s forwards;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--black-star);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Marquee --- */
.marquee {
  background: var(--black-star);
  color: var(--white);
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeScroll 20s linear infinite;
}

.marquee-track span {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 8px;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-33.33%);
  }
}

/* --- Shop Section --- */
.shop-section {
  padding: var(--space-3xl) clamp(20px, 4vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--black-star);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 480px;
  margin: 0 auto;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-image-link {
  display: block;
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--gray-50);
  aspect-ratio: 5 / 6;
  border-radius: 4px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--red-deep);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
}

.product-quick-view {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.9);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform var(--transition-base);
}

.product-card:hover .product-quick-view {
  transform: translateY(0);
}

.product-info {
  padding: 14px 4px 0;
}

.product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--black-star);
  margin-bottom: 4px;
}

.product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
}

/* View All Button */
.view-all-wrapper {
  text-align: center;
  margin-top: var(--space-xl);
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 16px 48px;
  background: var(--red-deep);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--red-deep);
  transition: all var(--transition-base);
}

.view-all-btn:hover {
  background: transparent;
  color: var(--red-deep);
  transform: translateY(-2px);
}

/* --- Lookbook Section --- */
.lookbook-section {
  padding: var(--space-3xl) clamp(20px, 4vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.lookbook-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
}

.lookbook-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.lookbook-item:hover img {
  transform: scale(1.05);
}

.lookbook-large {
  grid-row: span 2;
}

.lookbook-large img {
  height: 100%;
  min-height: 500px;
}

.lookbook-wide {
  grid-column: span 2;
}

.lookbook-wide img {
  height: 320px;
}

.lookbook-item:not(.lookbook-large):not(.lookbook-wide) img {
  height: 300px;
}

.lookbook-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.lookbook-item:hover .lookbook-overlay {
  opacity: 1;
}

.lookbook-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
}

/* --- About Section --- */
.about-section {
  padding: var(--space-3xl) clamp(20px, 4vw, 60px);
  background: var(--off-white);
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-image {
  border-radius: 4px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
}

.about-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: var(--space-sm);
}

.about-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--black-star);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.about-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
}

.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin: var(--space-lg) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--black-star);
  line-height: 1.2;
}

.stat-label {
  font-size: 12px;
  color: var(--gray-600);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--red-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 2px solid var(--red-deep);
  transition: all var(--transition-base);
}

.about-cta:hover {
  gap: 16px;
  color: var(--black-star);
  border-color: var(--black-star);
}

.about-cta::after {
  content: '→';
  font-size: 18px;
  transition: transform var(--transition-base);
}

.about-cta:hover::after {
  transform: translateX(4px);
}

/* --- Features Strip --- */
.features-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 32px clamp(16px, 2vw, 40px);
  border-right: 1px solid var(--gray-100);
  transition: background var(--transition-fast);
}

.feature:last-child {
  border-right: none;
}

.feature:hover {
  background: var(--gray-50);
}

.feature svg {
  flex-shrink: 0;
  color: var(--red-deep);
}

.feature h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--black-star);
  margin-bottom: 2px;
}

.feature p {
  font-size: 12px;
  color: var(--gray-600);
}

/* --- Contact Section --- */
.contact-section {
  padding: var(--space-3xl) clamp(20px, 4vw, 60px);
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  background: var(--white);
  transition: all var(--transition-base);
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--red-deep);
  background: var(--off-white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card svg {
  color: var(--red-deep);
  margin-bottom: var(--space-md);
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black-star);
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 13px;
  color: var(--gray-600);
}

.footer-contact-info {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: var(--space-3xl) clamp(20px, 4vw, 60px);
  background: var(--black-star);
  color: var(--white);
  text-align: center;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.newsletter-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: var(--space-lg);
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.newsletter-btn {
  padding: 16px 32px;
  background: var(--red-deep);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--red-deep);
  cursor: pointer;
  transition: all var(--transition-base);
}

.newsletter-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

/* --- Footer --- */
.footer {
  background: var(--white);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) clamp(20px, 4vw, 60px) var(--space-xl);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(30px, 4vw, 60px);
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 100px;
  width: auto;
  margin-bottom: var(--space-md);
}

.footer-tagline {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.footer-links-group h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black-star);
  margin-bottom: var(--space-md);
}

.footer-links-group a {
  display: block;
  font-size: 14px;
  color: var(--gray-600);
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--red-deep);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--gray-100);
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gray-800);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--gray-50);
  color: var(--red-deep);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding: var(--space-lg) clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--gray-100);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--gray-400);
}

.footer-bottom a {
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-bottom a:hover {
  color: var(--gray-800);
}

/* Ghana Flag Bar */
.ghana-flag-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: var(--space-md);
  height: 4px;
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 2px;
  overflow: hidden;
}

.flag-red {
  flex: 1;
  background: var(--red);
}

.flag-gold {
  flex: 1;
  background: var(--gold);
}

.flag-green {
  flex: 1;
  background: var(--green);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .about-image img {
    height: 400px;
  }

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

  .feature:nth-child(2) {
    border-right: none;
  }

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    height: 70vh;
    min-height: 480px;
  }

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

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

  .product-image {
    padding: 12px;
  }

  .product-quick-view {
    display: none;
  }

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

  .lookbook-large {
    grid-row: span 1;
    grid-column: span 2;
  }

  .lookbook-large img {
    min-height: 300px;
    height: 300px;
  }

  .lookbook-wide {
    grid-column: span 2;
  }

  .lookbook-item:not(.lookbook-large):not(.lookbook-wide) img {
    height: 240px;
  }

  .lookbook-wide img {
    height: 260px;
  }

  .about-image img {
    height: 350px;
  }

  .features-strip {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: none;
    border-bottom: 1px solid var(--gray-100);
    padding: 24px clamp(20px, 4vw, 40px);
  }

  .feature:last-child {
    border-bottom: none;
  }

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

  .newsletter-input {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .footer-brand {
    max-width: 100%;
  }

  .about-stats {
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 420px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .product-grid {
    gap: 10px;
  }

  .product-image-wrapper {
    aspect-ratio: 4 / 5;
  }

  .product-name {
    font-size: 13px;
  }

  .product-price {
    font-size: 13px;
  }

  .lookbook-large img,
  .lookbook-wide img,
  .lookbook-item:not(.lookbook-large):not(.lookbook-wide) img {
    height: 200px;
  }
}

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Smooth image load --- */
img {
  opacity: 0;
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* Override for logo since it should always be visible */
.logo-img,
.footer-logo {
  opacity: 1;
}

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: right 0.4s var(--ease-out);
  box-shadow: var(--shadow-xl);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
}

.cart-header h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--black-star);
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.cart-close-btn:hover {
  color: var(--black-star);
}

.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.cart-item-img {
  width: 80px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--gray-50);
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black-star);
  margin-bottom: 4px;
}

.cart-item-size {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--black-star);
  margin-bottom: auto;
}

.cart-item-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
}

.cart-qty-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.cart-qty-val {
  width: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.cart-remove-btn {
  font-size: 12px;
  color: var(--gray-600);
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
}

.cart-empty-msg {
  text-align: center;
  color: var(--gray-600);
  margin: auto;
  font-size: 14px;
}

.cart-footer {
  padding: 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--black-star);
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--black-star);
  color: var(--white);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition-base);
}

.cart-checkout-btn:hover {
  background: var(--red-deep);
}
/* Keyboard and catalog usability */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
[id] { scroll-margin-top: 100px; }
.catalog-search { max-width: var(--max-width); margin: 0 auto 24px; padding: 0 20px; }
.catalog-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.catalog-search input { width: 100%; max-width: 480px; padding: 12px 16px; border: 1px solid var(--gray-200); border-radius: 4px; font: inherit; }
#search-count { margin-top: 8px; color: var(--gray-600); }
.cart-drawer { height: 100dvh; }
#cart-storage-status:not(:empty) { margin-bottom: 12px; color: var(--red-deep); }
.newsletter-inner > a { display: inline-block; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.cart-drawer:not(.active) { visibility: hidden; }
.mobile-menu-overlay { top: var(--header-height); padding-top: 2rem; overflow-y: auto; }
