/* =============================================
   ANNING'S CLOTHING — GLOBAL DESIGN SYSTEM
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --black:   #0A0A0A;
  --white:   #FFFFFF;
  --off-white: #F5F4F0;
  --light-grey: #E8E6E1;
  --mid-grey: #A0A09A;
  --dark-grey: #555550;
  --border: #DDDBD6;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --nav-height: 64px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; outline: none; border: none; background: none; }

/* --- Typography --- */
.label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-grey);
}
.heading-xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}
.heading-lg {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}
.heading-md {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.body-sm { font-size: 12px; color: var(--dark-grey); }

/* =============================================
   NAV
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
}
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
}
.nav-logo {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-right: 60px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
}
.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-grey);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--black);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--black); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--black); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav-actions button, .nav-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  color: var(--black);
  transition: opacity var(--transition);
  position: relative;
}
.nav-actions button:hover, .nav-actions a:hover { opacity: 0.6; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  width: 16px; height: 16px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   PAGE WRAPPER
   ============================================= */
.page-content { padding-top: var(--nav-height); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--transition);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}
.btn-dark:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--black);
}
.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-full { width: 100%; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 60px 40px 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.8fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-brand-desc {
  font-size: 12px;
  color: var(--dark-grey);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 24px;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  font-size: 13px;
  color: var(--dark-grey);
}
.footer-social a:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.footer-col-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: 12px;
  color: var(--dark-grey);
  transition: color var(--transition);
  letter-spacing: 0.03em;
}
.footer-links a:hover { color: var(--black); }
.footer-newsletter {
  display: flex;
  border-bottom: 1px solid var(--black);
  margin-top: 10px;
}
.footer-newsletter input {
  flex: 1;
  padding: 10px 0;
  font-size: 12px;
  background: transparent;
  color: var(--black);
}
.footer-newsletter input::placeholder { color: var(--mid-grey); }
.footer-newsletter button {
  padding: 10px 0 10px 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--black);
  text-transform: uppercase;
  transition: opacity var(--transition);
}
.footer-newsletter button:hover { opacity: 0.5; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-copy {
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.04em;
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.04em;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--black); }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.22s; }
.fade-up.delay-3 { animation-delay: 0.34s; }
.fade-up.delay-4 { animation-delay: 0.46s; }

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   PRODUCT CARD (shared)
   ============================================= */
.product-card {
  position: relative;
  cursor: pointer;
}
.product-card-img {
  aspect-ratio: 3/4;
  background: var(--off-white);
  overflow: hidden;
  margin-bottom: 14px;
}
.product-card-img img {
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-img img {
  transform: scale(1.04);
}
.product-card-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  border: 1px solid var(--border);
}
.product-card:hover .product-card-wishlist { opacity: 1; }
.product-card-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}
.product-card-color {
  font-size: 11px;
  color: var(--mid-grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card-price {
  font-size: 13px;
  font-weight: 400;
}

/* =============================================
   SECTION HEADER (shared)
   ============================================= */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-header-link {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-grey);
  border-bottom: 1px solid var(--dark-grey);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.section-header-link:hover {
  color: var(--black);
  border-color: var(--black);
}

/* =============================================
   SCROLLBAR
   ============================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--mid-grey); }
