/*
Theme Name: Soochymoochy
Theme URI: https://soochymoochy.com
Author: Senior Frontend Team
Description: A vibrant, high-conversion affiliate discovery theme for funny and weird products.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: soochymoochy
*/

/* --- Design Tokens --- */
:root {
  --color-bg: #FDF6F0;
  --color-text: #2D2D2D;
  --color-text-muted: #6B6B6B;
  --color-primary: #FF7F6A;
  --color-secondary: #FF5DA2;
  --color-accent-mint: #A8E6CF;
  --color-accent-aqua: #7FD8BE;
  --color-border: #F5E9E2;
  --font-main: 'Inter', sans-serif;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
}

/* --- Base --- */
* { box-sizing: border-box; }
body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.max-w-7xl { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }

/* --- Background Blobs --- */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
}
.blob-1 { top: -5%; left: -10%; width: 40%; height: 40%; background: linear-gradient(to bottom right, var(--color-accent-mint), #B8F2E6); }
.blob-2 { bottom: -5%; right: -10%; width: 50%; height: 50%; background: linear-gradient(to top right, #FFB5A7, var(--color-primary)); }

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.site-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.site-logo h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin: 0;
}
.site-logo span { color: var(--color-primary); }
.site-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* --- Search & Filters --- */
.filter-bar { display: flex; flex-direction: column; gap: 1rem; }
.search-wrapper { position: relative; flex-grow: 1; }
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(245, 233, 226, 0.6);
  border: none;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.875rem;
}
.search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.25rem; color: var(--color-text-muted); }

.price-range-wrapper {
  background: rgba(255, 255, 255, 0.4);
  padding: 0.75rem 1rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.price-label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.price-value { font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.price-slider { flex-grow: 1; height: 6px; border-radius: 3px; accent-color: var(--color-primary); cursor: pointer; }

.category-nav {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-btn {
  white-space: nowrap;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-btn.active { background: var(--color-text); color: white; border-color: var(--color-text); }

/* --- Carousel --- */
.carousel-section { position: relative; margin-bottom: 4rem; }
.carousel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.carousel-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-item { min-width: 85%; scroll-snap-align: center; }

@media (min-width: 768px) {
  .carousel-item { min-width: 340px; scroll-snap-align: start; }
}

/* --- Product Cards --- */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.sm-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.sm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sm-card-img { position: relative; aspect-ratio: 4/3; background: var(--color-bg); overflow: hidden; }
.sm-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.sm-card:hover .sm-card-img img { transform: scale(1.1); }

.sm-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  color: white;
  background: var(--color-secondary);
}

.sm-card-content { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; }
.sm-card-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; transition: color 0.2s; }
.sm-card:hover .sm-card-title { color: var(--color-primary); }
.sm-card-desc { font-size: 0.75rem; color: var(--color-text-muted); font-style: italic; margin-bottom: 1rem; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

.sm-card-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--color-bg); display: flex; justify-content: space-between; align-items: center; }
.sm-btn-buy {
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 900;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.sm-btn-buy:hover { box-shadow: 0 0 15px rgba(255, 127, 106, 0.4); }

/* --- Footer --- */
.site-footer {
  background: rgba(255, 255, 255, 0.4);
  border-top: 1px solid var(--color-border);
  padding: 4rem 1rem;
  margin-top: 5rem;
  backdrop-filter: blur(5px);
}
.footer-disclosure { font-size: 0.75rem; color: var(--color-text-muted); max-width: 450px; line-height: 1.6; }
