/* =====================================================
   DESIGN TOKENS
===================================================== */
:root {
  --purple: #8a2be2;
  --pink: #ff69b4;
  --lavender: #e6e6fa;
  --soft-pink: #fff0f5;
  --gold: #ffd700;

  --text-dark: #4a4a4a;
  --text-heading: #4b0082;

  --white: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.18);

  --bg-gradient: linear-gradient(135deg, var(--soft-pink), var(--lavender));
}

/* =====================================================
   RESET + BASE
===================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--bg-gradient);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* =====================================================
   ACCESSIBILITY
===================================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--text-heading);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 1000;
}
.skip-link:focus {
  top: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}

/* =====================================================
   NAVIGATION (SITE-WIDE)
===================================================== */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 6%;
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-container img {
  max-width: 260px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-heading);
}

.nav-links a[aria-current="page"] {
  color: var(--pink);
}

/* =====================================================
   NAV SHADOW DIVIDER (INDEX STYLE)
===================================================== */
.nav-divider {
  height: 22px;
  width: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0)
  );
}

/* =====================================================
   CART (NAV)
===================================================== */
.cart-nav-item {
  position: relative;
}

.nav-cart-trigger {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-badge {
  background: var(--pink);
  color: var(--white);
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =====================================================
   PAGE HEADERS / HERO
===================================================== */
.page-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 90px 20px 60px;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--text-heading);
  margin-bottom: 14px;
}

.page-header p {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
  color: #666;
}

/* =====================================================
   FILTER BAR (SHOP)
===================================================== */
.filter-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.filter-bar {
  background: rgba(255, 255, 255, 0.85);
  padding: 12px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.filter-btn {
  background: none;
  border: none;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border-radius: 999px;
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: var(--white);
}

/* =====================================================
   SHOP GRID
===================================================== */
.shop-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.product-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 34px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-info {
  padding: 26px;
}

.product-title {
  font-size: 1.15rem;
  color: var(--text-heading);
}

.product-price {
  color: var(--pink);
  font-weight: 700;
  margin-bottom: 16px;
}

/* =====================================================
   BUTTONS (SITE-WIDE)
===================================================== */
.add-btn,
.primary-btn,
.summary-btn {
  background: linear-gradient(135deg, var(--text-heading), var(--purple));
  border: none;
  color: var(--white);
  padding: 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.add-btn:hover,
.primary-btn:hover,
.summary-btn:hover {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

/* =====================================================
   ADMIN
===================================================== */
.admin-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.admin-table th,
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background: var(--soft-pink);
  text-align: left;
}

.admin-image-preview {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 6px;
}

/* =====================================================
   FOOTER
===================================================== */
footer {
  margin-top: auto;
  background: var(--white);
  text-align: center;
  padding: 24px;
  font-size: 0.9rem;
}
