/* =============================================
   A BOX OF SOCKS — Main Stylesheet
   aboxofsocks.com
   ============================================= */

/* --- DESIGN TOKENS --- */
:root {
  --clr-bg: #FAFAF8;
  --clr-surface: #FFFFFF;
  --clr-text: #1A1A2E;
  --clr-text-muted: #5A5A72;
  --clr-primary: #FF3D5E;       /* Hot coral-red — signature energy */
  --clr-primary-dark: #D42E4E;
  --clr-accent: #FFD23F;        /* Electric yellow — punchy contrast */
  --clr-accent2: #00C2A8;       /* Teal — freshness */
  --clr-accent3: #7B5CF5;       /* Purple — trendy/fun */
  --clr-border: #E8E8F0;

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;

  --shadow-card: 0 4px 20px rgba(26,26,46,0.08);
  --shadow-card-hover: 0 8px 32px rgba(26,26,46,0.14);
  --shadow-btn: 0 4px 14px rgba(255, 61, 94, 0.3);

  --max-width: 1200px;
  --gap: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

/* --- UTILITY --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================= */
/* HEADER */
/* ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--clr-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--clr-text);
}

.logo-icon { font-size: 1.6rem; }
.logo strong { color: var(--clr-primary); }

.main-nav {
  display: flex;
  gap: 1.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.main-nav a {
  color: var(--clr-text-muted);
  transition: color 0.2s;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transition: transform 0.2s;
}
.main-nav a:hover { color: var(--clr-primary); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--clr-text);
}

/* ============================================= */
/* HERO */
/* ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #fff8f9 0%, #fff3e0 50%, #f0fff8 100%);
  padding: 5rem 0 4rem;
  border-bottom: 3px solid var(--clr-border);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,61,94,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(123,92,245,0.06) 0%, transparent 50%),
                    radial-gradient(circle at 50% 50%, rgba(255,210,63,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--clr-accent);
  color: var(--clr-text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--clr-text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-highlight {
  color: var(--clr-primary);
  position: relative;
  display: inline-block;
}
.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 3px;
  opacity: 0.6;
  z-index: -1;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--clr-text-muted);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--clr-primary);
}
.stat-label {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.hero-sock-float {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  opacity: 0.08;
  pointer-events: none;
  animation: float 4s ease-in-out infinite;
  line-height: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(-50%) rotate(-5deg); }
  50% { transform: translateY(calc(-50% - 15px)) rotate(5deg); }
}

/* ============================================= */
/* BUTTONS */
/* ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  background: var(--clr-primary-dark);
  box-shadow: 0 6px 20px rgba(255,61,94,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--clr-accent);
  color: var(--clr-text);
}
.btn-secondary:hover {
  background: #f0c52e;
  transform: translateY(-1px);
}

.btn-amazon {
  background: #FF9900;
  color: #111;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.btn-amazon:hover {
  background: #e68900;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
  padding: 0.7rem 1.75rem;
}
.btn-outline:hover {
  background: var(--clr-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--clr-primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--clr-accent);
  color: var(--clr-text);
}

/* ============================================= */
/* TRENDING STRIP */
/* ============================================= */
.trending-strip {
  padding: 4rem 0;
}

.strip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.strip-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.updated-badge {
  background: var(--clr-accent2);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.product-card {
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--clr-primary);
}

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
}

.badge-hot    { background: var(--clr-primary); color: #fff; }
.badge-trend  { background: var(--clr-accent3); color: #fff; }
.badge-gift   { background: var(--clr-accent); color: var(--clr-text); }
.badge-sport  { background: var(--clr-accent2); color: #fff; }

.card-img-wrap {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #f5f5ff 0%, #fff5f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.product-card:hover .card-img-wrap img { transform: scale(1.03); }

/* Fallback sock emoji when no image */
.card-img-wrap::after {
  content: '🧦';
  font-size: 5rem;
  position: absolute;
  opacity: 0.12;
  pointer-events: none;
}

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-accent2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-body h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--clr-text);
}

.card-stars { color: #FFB800; font-size: 0.9rem; }

.card-desc {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  flex: 1;
  margin-top: 0.25rem;
}

.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--clr-primary);
  margin-top: 0.25rem;
}

.see-all-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

/* ============================================= */
/* CATEGORIES */
/* ============================================= */
.categories {
  padding: 4rem 0;
  background: #fff;
  border-top: 2px solid var(--clr-border);
  border-bottom: 2px solid var(--clr-border);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--clr-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--clr-border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  background: var(--clr-bg);
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.cat-trendy:hover { border-color: var(--clr-accent3); }
.cat-sports:hover { border-color: var(--clr-accent2); }
.cat-gifts:hover  { border-color: var(--clr-primary); }
.cat-cozy:hover   { border-color: #4caf50; }

.cat-emoji { font-size: 2.5rem; }
.cat-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; }
.cat-card p { font-size: 0.88rem; color: var(--clr-text-muted); flex: 1; }
.cat-arrow { font-weight: 700; color: var(--clr-primary); font-size: 0.88rem; }

/* ============================================= */
/* BLOG PREVIEW */
/* ============================================= */
.blog-preview { padding: 4rem 0; }

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

.blog-card {
  background: var(--clr-surface);
  border: 2px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.blog-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  background: rgba(255,61,94,0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

.blog-card h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.blog-card h3 a { color: var(--clr-text); }
.blog-card h3 a:hover { color: var(--clr-primary); }

.blog-card p { font-size: 0.87rem; color: var(--clr-text-muted); flex: 1; }

.blog-meta { font-size: 0.78rem; color: var(--clr-text-muted); }
.read-more { font-weight: 700; color: var(--clr-primary); font-size: 0.88rem; }
.read-more:hover { text-decoration: underline; }

/* ============================================= */
/* GIFT BANNER */
/* ============================================= */
.gift-banner {
  background: linear-gradient(135deg, var(--clr-primary) 0%, #c0003a 100%);
  color: #fff;
  padding: 4rem 0;
  border-radius: 0;
}

.gift-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.gift-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.gift-text p {
  opacity: 0.9;
  max-width: 500px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.gift-emoji-parade {
  font-size: 2.5rem;
  letter-spacing: 0.3rem;
  opacity: 0.35;
}

/* ============================================= */
/* SISTER SITES */
/* ============================================= */
.sister-sites {
  padding: 3rem 0;
  background: var(--clr-surface);
  border-top: 2px solid var(--clr-border);
}

.sister-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
  margin-top: 1.5rem;
}

.sister-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem;
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s;
  text-align: center;
  align-items: center;
}

.sister-card:hover {
  border-color: var(--clr-primary);
  transform: translateY(-2px);
}

.sister-icon { font-size: 2rem; }
.sister-card h3 { font-family: var(--font-body); font-weight: 700; color: var(--clr-primary); }
.sister-card p { font-size: 0.85rem; color: var(--clr-text-muted); }

/* ============================================= */
/* FOOTER */
/* ============================================= */
.site-footer {
  background: var(--clr-text);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
  margin-top: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand .logo-icon { font-size: 1.8rem; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.1rem; display: block; margin-bottom: 0.5rem; margin-top: 0.25rem; }
.footer-brand p { font-size: 0.85rem; margin-bottom: 0.5rem; }
.affiliate-disclosure { font-size: 0.75rem; opacity: 0.6; margin-top: 0.75rem; line-height: 1.5; }

.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav h4 { color: #fff; font-family: var(--font-display); font-size: 0.85rem; margin-bottom: 0.5rem; letter-spacing: 0.03em; }
.footer-nav a { font-size: 0.85rem; opacity: 0.7; transition: opacity 0.2s; }
.footer-nav a:hover { opacity: 1; color: var(--clr-accent); }

.footer-bottom {
  padding: 1.25rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ============================================= */
/* RESPONSIVE */
/* ============================================= */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 2px solid var(--clr-border);
    gap: 1rem;
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }

  .hero { padding: 3rem 0 2.5rem; }
  .hero-sock-float { display: none; }
  .hero-cta-group { flex-direction: column; align-items: flex-start; }

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

  .gift-banner-inner { flex-direction: column; text-align: center; }
  .gift-banner-inner .gift-text { display: flex; flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* ============================================= */
/* ACCESSIBILITY */
/* ============================================= */
:focus-visible {
  outline: 3px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================= */
/* BLOG PAGE */
/* ============================================= */
.blog-hero {
  background: linear-gradient(135deg, #fff5f7 0%, #f5f0ff 100%);
  padding: 4rem 0;
  text-align: center;
  border-bottom: 2px solid var(--clr-border);
}

.blog-hero h1 { margin-bottom: 1rem; }
.blog-hero p { color: var(--clr-text-muted); max-width: 550px; margin: 0 auto; }

.blog-list-section { padding: 4rem 0; }
.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}

/* ============================================= */
/* ARTICLE / BLOG POST PAGE */
/* ============================================= */
.article-header {
  background: #fff;
  border-bottom: 2px solid var(--clr-border);
  padding: 3rem 0 2rem;
}

.article-header .breadcrumb {
  font-size: 0.8rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  max-width: 750px;
  margin-bottom: 1rem;
}

.article-header .article-meta {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
}

.article-body {
  padding: 3rem 0 4rem;
}

.article-content {
  max-width: 760px;
}

.article-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
  color: var(--clr-text);
}

.article-content h3 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #2a2a3e;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.article-affiliate-cta {
  background: linear-gradient(135deg, #fff5f7, #fff8e1);
  border: 2px solid var(--clr-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-affiliate-cta h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================= */
/* PRODUCTS PAGE (TRENDING / SPORTS / GIFTS) */
/* ============================================= */
.page-hero {
  background: linear-gradient(135deg, #fff5f7 0%, #f0fff8 100%);
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 2px solid var(--clr-border);
}

.page-hero .page-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-accent2);
  margin-bottom: 0.75rem;
}

.page-hero h1 { margin-bottom: 0.75rem; }
.page-hero p { color: var(--clr-text-muted); max-width: 560px; margin: 0 auto 1.5rem; }

.products-section { padding: 4rem 0; }

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: #fff;
  border: 2px solid var(--clr-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}
