/**
* Pelly Kelly E-commerce Theme
* Bows & Scrunchies Shop
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Quicksand:wght@300;400;500;600;700&display=swap');

:root {
  --primary-pink: #ff6b9d;
  --primary-pink-light: #ffb6c1;
  --primary-pink-dark: #e84a7f;
  --accent-coral: #ff8a80;
  --gradient-start: #ff9a9e;
  --gradient-mid: #fecfef;
  --gradient-end: #fdfcfb;
  --text-dark: #1a1a1a;
  --text-medium: #555555;
  --text-light: #888888;
  --bg-white: #ffffff;
  --bg-light: #fafafa;
  --bg-cream: #fff9f9;
  --border-light: #eeeeee;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(255, 107, 157, 0.15);
  --transition: all 0.3s ease;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  font-size: 14px;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
}

h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
  font-weight: 600;
}

h2 strong {
  font-weight: 600;
}

h3 {
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--text-dark);
}

p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
}

/* Main Layout */
div#main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Section Base */
section {
  padding: 3rem 1.5rem;
}

section.dark,
section.light {
  background: var(--bg-white);
  min-height: auto;
  color: var(--text-dark);
}

section img.background {
  display: none;
}

/* Loading */
.loading-progress {
  position: relative;
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 30vh auto 1rem auto;
}

.loading-progress circle {
  fill: none;
  stroke: var(--primary-pink-light);
  stroke-width: 0.4rem;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
}

.loading-progress circle:last-child {
  stroke: var(--primary-pink);
  stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
  transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
  position: absolute;
  text-align: center;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
  color: var(--primary-pink);
  inset: calc(30vh + 2rem) 0 auto 0;
  font-size: 0.85rem;
}

.loading-progress-text:after {
  content: var(--blazor-load-percentage-text, "Loading");
}

/* Error UI */
#blazor-error-ui {
  background: #fff0f3;
  bottom: 0;
  box-shadow: 0 -2px 10px rgba(255, 107, 157, 0.1);
  display: none;
  left: 0;
  padding: 1rem 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 1000;
  color: var(--primary-pink-dark);
  font-family: 'Quicksand', sans-serif;
}

#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: 0.75rem;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--text-dark);
  color: var(--bg-white);
  border: 2px solid var(--text-dark);
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-dark);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--text-dark);
}

.btn-outline:hover {
  background: var(--text-dark);
  color: var(--bg-white);
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

/* Grid Layouts */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade {
  animation: fadeIn 0.5s ease forwards;
}
