@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #e11d48;
  --accent-hover: #be123c;
  --accent-soft: #fff1f2;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 1rem;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.1);
}

html {
  scroll-behavior: smooth;
}

body.modern-ui {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background-color: #f8fafc;
  background-image:
    radial-gradient(ellipse 120% 80% at 100% -20%, rgba(225, 29, 72, 0.09), transparent 50%),
    radial-gradient(ellipse 80% 50% at -10% 30%, rgba(124, 58, 237, 0.06), transparent 45%),
    linear-gradient(180deg, #fefefe 0%, #f8fafc 40%, #f1f5f9 100%);
  overflow-x: hidden;
}

body.modern-ui header.sticky,
body.modern-ui > header:first-of-type {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 32px rgba(15, 23, 42, 0.04) !important;
  border-radius: 0 !important;
}

body.modern-ui header a.text-2xl,
body.modern-ui header a.text-xl,
body.modern-ui header a[class*="text-3xl"] {
  background: linear-gradient(135deg, #0f172a 0%, #e11d48 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

body.modern-ui footer.bg-white,
body.modern-ui footer {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%) !important;
  color: #e2e8f0 !important;
  border-radius: 0 !important;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
}

body.modern-ui footer h4 {
  color: #f8fafc !important;
}

body.modern-ui footer p,
body.modern-ui footer a {
  color: #94a3b8 !important;
}

body.modern-ui footer a:hover {
  color: #fda4af !important;
}

body.modern-ui footer .border-t {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.modern-header {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 32px rgba(15, 23, 42, 0.04) !important;
}

/* Inner pages: primary nav links */
body.modern-ui header nav a.text-gray-600 {
  color: var(--muted) !important;
  font-weight: 500;
}

body.modern-ui header nav a.text-gray-600:hover {
  color: var(--text) !important;
}

.modern-nav a {
  position: relative;
  padding: 0.25rem 0;
  color: var(--muted) !important;
  font-weight: 500;
}

.modern-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #a855f7);
  border-radius: 2px;
  transition: width 0.2s ease;
}

.modern-nav a:hover {
  color: var(--text) !important;
}

.modern-nav a:hover::after {
  width: 100%;
}

.modern-cart-btn {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modern-cart-btn:hover {
  background: #ffe4e6;
  transform: scale(1.05);
}

.modern-cart-btn svg {
  color: var(--accent) !important;
}

.ad-region-hint {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sidebar {
  background: linear-gradient(165deg, #ffffff 0%, #fafafa 100%) !important;
  box-shadow: -24px 0 48px rgba(15, 23, 42, 0.12) !important;
}

.sidebar a:hover {
  background: var(--accent-soft) !important;
  color: var(--accent) !important;
}

body.modern-ui .fade-in {
  animation: modernFade 0.7s ease-out both;
}

@keyframes modernFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.modern-ui .product-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.2s ease;
}

body.modern-ui .product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(225, 29, 72, 0.2);
}

body.modern-ui .product-card img {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.modern-ui .product-card:hover img {
  transform: scale(1.05);
}

body.modern-ui .product-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(135deg, #0f172a 15%, #be123c 50%, #7c3aed 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.footer-modern {
  background: linear-gradient(145deg, #0f172a 0%, #1e1b4b 45%, #0f172a 100%) !important;
  color: #e2e8f0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.15);
}

.footer-modern h4 {
  color: #f8fafc !important;
}

.footer-modern p,
.footer-modern a {
  color: #94a3b8 !important;
}

.footer-modern a:hover {
  color: #fda4af !important;
}

.footer-modern .border-t {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.pagination-btn-modern {
  min-width: 2.5rem;
  border-radius: 9999px !important;
  border: 1px solid var(--border) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pagination-btn-modern:not(.pagination-btn-active):hover {
  border-color: rgba(225, 29, 72, 0.35) !important;
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

.pagination-btn-active {
  background: linear-gradient(135deg, #e11d48, #db2777) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}
