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

:root {
  --pk50: #fff0f6;
  --pk100: #fcd4e5;
  --pk300: #f48fb3;
  --pk500: #e05585;
  --pk700: #b03060;
  --bl50: #eff6ff;
  --bl100: #d4e8fb;
  --bl300: #7dc1f0;
  --bl500: #2f8de0;
  --bl700: #1a5ca0;
  --n100: #f5f5f5;
  --n200: #e8e8e8;
  --n400: #aaa;
  --n600: #666;
  --n900: #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(160deg, var(--pk50) 0%, #fff 45%, var(--bl50) 100%);
  min-height: 100vh;
  color: var(--n900);
}

/* ── Header ── */
header {
  background: #fff;
  border-bottom: 1px solid var(--pk100);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 18px rgba(224, 85, 133, 0.08);
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--pk500), var(--bl500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}  
/*
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: #87CEEB; /* Sky Blue */
}
header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 600;
  background: linear-gradient(135deg, #87CEEB, #00BFFF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}*/
header nav { display: flex; gap: 0.25rem; align-items: center; }

header nav a {
  text-decoration: none;
  color: var(--n600);
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 30px;
  transition: background 0.2s, color 0.2s;
}

header nav a:hover { background: var(--pk50); color: var(--pk700); }

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 3.5rem 1rem 2rem;
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.hero h2 em { font-style: italic; color: var(--pk500); }

.hero p {
  color: var(--n600);
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* ── Search Bar ── */
.search-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid var(--pk300);
  border-radius: 50px;
  overflow: hidden;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 4px 22px rgba(224, 85, 133, 0.11);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.search-form:focus-within {
  border-color: var(--bl500);
  box-shadow: 0 4px 26px rgba(47, 141, 224, 0.16);
}

.search-form input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.8rem 1.2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  background: transparent;
  color: var(--n900);
}

.search-form input::placeholder { color: var(--n400); }

.search-form button {
  background: linear-gradient(135deg, var(--pk500), var(--bl500));
  border: none;
  color: #fff;
  padding: 0.62rem 1.3rem;
  margin: 5px;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.search-form button:hover { opacity: 0.88; transform: scale(1.02); }

/* ── Section Label ── */
.section-label {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label span {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pk500);
  font-weight: 500;
  padding: 0 1.2rem;
  position: relative;
}

.section-label span::before,
.section-label span::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 36px;
  height: 1px;
  background: var(--pk300);
}

.section-label span::before { right: 100%; }
.section-label span::after  { left: 100%; }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 3.5rem;
}

/* ── Product Card ── */
.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:24px;
    padding:20px;
}

.product-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    display:flex;
    flex-direction:column;
    height:100%;
}

.card-img{
    width:100%;
    height:320px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8f8f8;
}

.card-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.card-body{
    padding:15px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    min-height:140px;
}

.card-body h3{
    font-size:18px;
    min-height:48px;
    margin-bottom:10px;
    line-height:1.4;
}

.card-price{
    font-size:18px;
    font-weight:bold;
    color:#b12704;
    margin-bottom:12px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--n200);
}

.btn-add {
  background: linear-gradient(135deg, var(--pk500), #5baee0);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.4rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-add:hover { opacity: 0.85; }

.btn-wishlist {
  background: var(--pk50);
  border: 1px solid var(--pk100);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--pk500);
  font-size: 0.9rem;
  transition: background 0.2s;
}

.btn-wishlist:hover { background: var(--pk100); }

/* ── Auth Pages (login / register) ── */
.auth-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--pk100);
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(224, 85, 133, 0.1);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--pk500), var(--bl500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo p {
  color: var(--n600);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-top: 0.2rem;
}

.auth-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--n900);
}

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--n600);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--n200);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: var(--n900);
  background: var(--n100);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pk300);
  background: #fff;
}

.form-group input::placeholder { color: var(--n400); }

.form-group input[type="file"] {
  background: var(--bl50);
  border-color: var(--bl100);
  font-size: 0.82rem;
  cursor: pointer;
}

.btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--pk500), var(--bl500));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: scale(1.01); }

.auth-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--n600);
}

.auth-link a { color: var(--pk500); text-decoration: none; font-weight: 500; }
.auth-link a:hover { text-decoration: underline; }

/* ── Cart Page ── */
.cart-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  text-align: center;
}

.cart-page h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.cart-empty-icon {
  font-size: 3.5rem;
  color: var(--pk300);
  margin-bottom: 1rem;
}

.cart-page p { color: var(--n600); font-size: 1rem; font-weight: 300; }

.cart-page a {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--pk500);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid var(--pk300);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  transition: background 0.2s;
}

.cart-page a:hover { background: var(--pk50); }

/* ── Search Results ── */
.search-results-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.search-results-page .page-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--n900);
}

.search-results-page .page-heading em {
  font-style: italic;
  color: var(--pk500);
}

.result-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--n200);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
  margin-bottom: 0.7rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.result-item:hover {
  box-shadow: 0 4px 18px rgba(224, 85, 133, 0.1);
  transform: translateX(4px);
}

.result-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  flex: 1;
}

.result-price {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--pk700);
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--n600);
}

/* ── Admin Card ── */
.admin-page {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--bl100);
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 8px 40px rgba(47, 141, 224, 0.08);
}

.admin-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  text-align: center;
  background: linear-gradient(135deg, var(--pk500), var(--bl500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Footer ── */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--pk100);
  text-align: center;
  padding: 1.4rem;
  font-size: 0.78rem;
  color: var(--n600);
  letter-spacing: 0.04em;
}

.site-footer strong { color: var(--pk500); font-weight: 500; }

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 0 1rem; }
  .product-grid { padding: 0 1rem 3rem; gap: 1rem; }
  .hero { padding: 2rem 1rem 1.5rem; }
  .search-wrap { padding: 1rem 1rem 2rem; }
  .auth-card, .admin-card { padding: 2rem 1.25rem; }
}

/* ── Alerts (used on auth pages) ── */
.alert {
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}
.alert-error   { background:#fff0f0; border:1px solid #f5c6c6; color:#a94442; }
.alert-success { background:#f0fff4; border:1px solid #b2dfdb; color:#2e7d32; }
/* ── Logo in Header ── */
.header-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
 
.header-logo-container {
  position: relative;
  height: 44px;
  width: 44px;
  flex-shrink: 0;
}
 
.header-logo-container img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  /* Shift the black logo into the site's pink hue */
  filter:
    brightness(0)
    saturate(100%)
    invert(47%)
    sepia(60%)
    saturate(600%)
    hue-rotate(296deg)
    brightness(0.88);
}
 
/* Gradient overlay to blend pink → blue across the figure */
.header-logo-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(224,85,133,0.35) 0%, rgba(47,141,224,0.35) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
}