/* ═══════════════════════════════════════════
   PEDACITOS DE TELA — Main Stylesheet
   ═══════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #FFC4D6;
  --pink-light: #FFF4F7;
  --cream: #FFF0DC;
  --rose: #FFE0EC;
  --mint: #D9F2E6;
  --text: #4A3728;
  --text-light: #7A6558;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(74, 55, 40, 0.08);
  --shadow-hover: 0 8px 30px rgba(74, 55, 40, 0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Custom cursor on interactive elements ── */
.collection-card,
.product-card,
.hero-btn,
.about-card {
  cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'><text y='18' font-size='18'>💖</text></svg>") 12 12, pointer;
}

/* ── Background decoration image ── */
.bg-tela-img {
  position: fixed;
  bottom: -30px;
  left: -250px;
  width: 700px;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  .bg-tela-img {
    width: 400px;
    left: -40px;
  }
}

.bg-laine-img {
  display: none;
}

/* ── Page backgrounds ── */
.page-home {
  background-color: #FFF4F7;
  background-image: radial-gradient(circle, #FFC4D6 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

.page-admin {
  background-color: #FFF4F7;
  background-image: radial-gradient(circle, #FFC4D6 1.5px, transparent 1.5px);
  background-size: 18px 18px;
}

/* ═══════════════════════════════════════════
   CUTE SVG BACKGROUND DECORATIONS
   ═══════════════════════════════════════════ */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-deco {
  position: absolute;
  opacity: 0.08;
  font-size: 2rem;
}

.bg-deco:nth-child(1)  { top: 5%;  left: 3%;  font-size: 2.5rem; }
.bg-deco:nth-child(2)  { top: 12%; right: 6%; font-size: 1.8rem; }
.bg-deco:nth-child(3)  { top: 25%; left: 7%;  font-size: 1.5rem; }
.bg-deco:nth-child(4)  { top: 35%; right: 4%; font-size: 2.2rem; }
.bg-deco:nth-child(5)  { top: 48%; left: 2%;  font-size: 1.6rem; }
.bg-deco:nth-child(6)  { top: 55%; right: 8%; font-size: 2rem; }
.bg-deco:nth-child(7)  { top: 68%; left: 5%;  font-size: 1.4rem; }
.bg-deco:nth-child(8)  { top: 75%; right: 3%; font-size: 1.9rem; }
.bg-deco:nth-child(9)  { top: 85%; left: 8%;  font-size: 1.7rem; }
.bg-deco:nth-child(10) { top: 92%; right: 6%; font-size: 2.1rem; }
.bg-deco:nth-child(11) { top: 18%; left: 50%; font-size: 1.3rem; }
.bg-deco:nth-child(12) { top: 42%; left: 92%; font-size: 1.6rem; }

/* ═══════════════════════════════════════════
   SCALLOPED EDGES (wavy fabric trim)
   ═══════════════════════════════════════════ */
.scallop-edge {
  width: 100%;
  height: 20px;
  position: relative;
  z-index: 2;
}

.scallop-edge.top {
  background: radial-gradient(circle at 10px -5px, transparent 12px, var(--pink-light) 13px);
  background-size: 20px 20px;
  background-position: 0 0;
}

.scallop-edge.bottom {
  background: radial-gradient(circle at 10px 25px, transparent 12px, var(--pink-light) 13px);
  background-size: 20px 20px;
  background-position: 0 0;
}

.scallop-edge.pink-to-white.top {
  background: radial-gradient(circle at 10px -5px, transparent 12px, #fff 13px);
  background-size: 20px 20px;
}

.scallop-edge.white-to-pink.bottom {
  background: radial-gradient(circle at 10px 25px, transparent 12px, var(--pink-light) 13px);
  background-size: 20px 20px;
}

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-deco-border {
  display: none;
}

.nav-deco-border.bottom {
  display: none;
}

.nav-scallop {
  display: none;
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  transition: transform var(--transition);
}

.nav-logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 1.8rem;
  animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.logo-text {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: #C75B7A;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover {
  background: var(--pink-light);
  color: #C75B7A;
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--pink);
  color: #8B3A5C;
}

.nav-link-icon {
  margin-right: 0.3rem;
  font-size: 0.8rem;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle .arrow {
  font-size: 0.7rem;
  transition: transform var(--transition);
}

.nav-dropdown:hover .arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  list-style: none;
  min-width: 200px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  border: 2px dashed var(--pink);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.6rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 8px;
  font-weight: 500;
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--pink-light);
  color: #C75B7A;
  padding-left: 1.3rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  z-index: 99;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 5rem 2rem 2rem;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  visibility: hidden;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  visibility: visible;
}

.mobile-link {
  text-decoration: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-bottom: 1px solid #F5F0F0;
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:hover, .mobile-link.active {
  background: var(--pink-light);
  color: #C75B7A;
}

.mobile-label {
  display: block;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.8rem 1.5rem 0.3rem;
}

.mobile-collections-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid #F5F0F0;
  padding-bottom: 0.3rem;
  margin-bottom: 0.3rem;
}

.mobile-collections-group div {
  display: flex;
  flex-direction: column;
}

.mobile-collections-group a {
  display: block;
  text-decoration: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.7rem 1.5rem 0.7rem 2.5rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.mobile-collections-group a:hover {
  background: var(--pink-light);
  color: #C75B7A;
}

/* ═══════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  text-align: center;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

/* Cloud shape behind hero text */
.hero-cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 130%;
  background: transparent;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
}

.hero-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  color: #C75B7A;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 0 rgba(199, 91, 122, 0.1);
}

.hero-line1, .hero-line2 {
  display: block;
}

.hero-line2 {
  font-size: 0.85em;
  color: #D4849B;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: inline-block;
  position: relative;
  border: 2px solid transparent;
}

.hero-subtitle::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed var(--pink);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #C75B7A, #E88FAA);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(199, 91, 122, 0.3);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(199, 91, 122, 0.4);
}

.hero-btn:active {
  transform: translateY(0) scale(0.98);
  animation: bounceClick 0.4s ease;
}

@keyframes bounceClick {
  0% { transform: scale(0.98); }
  40% { transform: scale(1.08); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.btn-sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.3) rotate(15deg); opacity: 0.8; }
}

/* Hero stitch lines */
.hero-deco {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.stitch-line {
  position: absolute;
  top: 20%;
  width: 2px;
  height: 60%;
  background: repeating-linear-gradient(
    180deg,
    var(--pink) 0px,
    var(--pink) 6px,
    transparent 6px,
    transparent 12px
  );
  opacity: 0.3;
}

.stitch-line.left { left: 8%; }
.stitch-line.right { right: 8%; }

/* ═══════════════════════════════════════════
   CONFETTI CANVAS
   ═══════════════════════════════════════════ */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Pulsing heart */
@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ═══════════════════════════════════════════
   ABOUT MINI SECTION
   ═══════════════════════════════════════════ */
.about-mini {
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  border: 2px solid transparent;
  cursor: default;
  position: relative;
  box-shadow: var(--shadow);
}

.about-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed var(--pink);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.about-card:hover {
}

.about-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.8rem;
}

.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #C75B7A;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   RIBBON BANNER (for section titles)
   ═══════════════════════════════════════════ */
.ribbon-banner {
  display: inline-block;
  position: relative;
  padding: 0.6rem 2.5rem;
  background: linear-gradient(135deg, #C75B7A, #D4849B);
  color: white;
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.ribbon-banner::before,
.ribbon-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
}

.ribbon-banner::before {
  left: -14px;
  border-width: 22px 14px 22px 0;
  border-color: transparent #C75B7A transparent transparent;
}

.ribbon-banner::after {
  right: -14px;
  border-width: 22px 0 22px 14px;
  border-color: transparent transparent transparent #D4849B;
}

/* ═══════════════════════════════════════════
   STITCH DIVIDER
   ═══════════════════════════════════════════ */
.stitch-divider {
  height: 3px;
  max-width: 200px;
  margin: 0.8rem auto;
  background: repeating-linear-gradient(
    90deg,
    var(--pink) 0px,
    var(--pink) 8px,
    transparent 8px,
    transparent 14px
  );
}

/* ═══════════════════════════════════════════
   COLLECTIONS SECTION
   ═══════════════════════════════════════════ */
.collections-section {
  padding: 2rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #C75B7A;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 500;
  background: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  display: inline-block;
  position: relative;
  border: 2px solid transparent;
}

.section-subtitle::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed var(--pink);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.collections-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

/* Collection Card */
.collection-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  position: relative;
}

.collection-card::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed var(--pink);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
  z-index: 2;
}

.collection-card:hover {
  box-shadow: var(--shadow-hover);
  animation: jellyBounce 0.6s ease forwards;
}

@keyframes jellyBounce {
  0% { transform: scale(1); }
  20% { transform: scale(1.05, 0.96); }
  40% { transform: scale(0.97, 1.04); }
  60% { transform: scale(1.02, 0.98); }
  80% { transform: scale(0.99, 1.01); }
  100% { transform: scale(1); }
}

.card-preview {
  height: 140px;
  position: relative;
  overflow: hidden;
}

.card-preview-inner {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.collection-card:hover .card-preview-inner {
  transform: scale(1.05);
}

.card-preview-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #FFFFFF;
  backdrop-filter: blur(4px);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #C75B7A;
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  flex: 1;
  line-height: 1.5;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: #C75B7A;
  transition: gap var(--transition);
}

.collection-card:hover .card-action {
  gap: 0.6rem;
}

/* ═══════════════════════════════════════════
   COLLECTION PAGE
   ═══════════════════════════════════════════ */
.collection-hero {
  position: relative;
  padding: 5rem 2rem 3rem;
  text-align: center;
  z-index: 1;
}

.collection-title {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #C75B7A;
  margin-bottom: 0.8rem;
  text-shadow: 2px 2px 0 rgba(199, 91, 122, 0.1);
}

.collection-desc {
  font-size: 1.1rem;
  color: var(--text-light);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

/* Products Grid */
.products-section {
  padding: 2rem 2rem 4rem;
  position: relative;
  z-index: 1;
}

.products-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Product Card */
.product-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 2px dashed transparent;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--pink);
}

/* Pulsing heart on product hover */
.product-card .product-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.product-card:hover .product-heart {
  opacity: 1;
  animation: pulseHeart 1s ease-in-out infinite;
}

.product-image-wrap {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.08);
}

.product-placeholder {
  font-size: 4rem;
  opacity: 0.3;
}

.product-info {
  padding: 1.5rem;
  position: relative;
}

.product-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.2rem;
  color: #C75B7A;
  margin-bottom: 0.5rem;
}

.product-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Price tag (fabric tag look) */
.product-price-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream);
  padding: 0.4rem 1rem 0.4rem 1.4rem;
  border-radius: 0 20px 20px 0;
  position: relative;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-left: -1.5rem;
}

.product-price-tag::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}

.product-price-tag .price-euro {
  font-size: 0.85rem;
}

/* Back link */
.back-link-container {
  text-align: center;
  padding: 0 2rem 3rem;
  position: relative;
  z-index: 1;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #C75B7A;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  border: 2px dashed var(--pink);
  transition: all var(--transition);
}

.back-link:hover {
  background: var(--white);
  gap: 0.8rem;
  box-shadow: var(--shadow);
  animation: jellyBounce 0.5s ease;
}

/* ═══════════════════════════════════════════
   ADMIN PAGE
   ═══════════════════════════════════════════ */
.admin-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.admin-header {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
}

.admin-title {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: #C75B7A;
  margin-bottom: 0.3rem;
}

.admin-subtitle {
  color: var(--text-light);
  font-weight: 500;
  background: #FFFFFF;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  display: inline-block;
  position: relative;
  border: 2px solid transparent;
}

.admin-subtitle::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 2px dashed var(--pink);
  border-radius: calc(var(--radius) - 2px);
  pointer-events: none;
}

.admin-section {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  border: 2px dashed var(--pink);
}

.admin-section-header {
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px dashed var(--cream);
}

.admin-section-header h2 {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #C75B7A;
}

/* Forms */
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group textarea {
  padding: 0.8rem 1rem;
  border: 2px solid #EEE;
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pink);
}

.form-group input[type="color"] {
  width: 60px;
  height: 40px;
  border: 2px solid #EEE;
  border-radius: 8px;
  cursor: pointer;
  padding: 2px;
}

.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #C75B7A, #E88FAA);
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  align-self: flex-start;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(199, 91, 122, 0.3);
}

.admin-btn:active {
  animation: bounceClick 0.3s ease;
}

.admin-btn.secondary {
  background: linear-gradient(135deg, #8B9DC3, #A8B8D0);
}

.admin-btn.danger {
  background: linear-gradient(135deg, #D94F4F, #E87777);
}

.admin-btn.small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

/* Collection items in admin */
.admin-collection-item {
  border: 2px solid #EEE;
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
  background: var(--white);
}

.admin-collection-item:hover {
  border-color: var(--pink);
}

.admin-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.admin-col-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.2rem;
  color: #C75B7A;
}

.admin-col-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.admin-product-item {
  border: 2px dashed #EEE;
  border-radius: var(--radius-sm);
  padding: 0.8rem;
  transition: all var(--transition);
  position: relative;
}

.admin-product-item:hover {
  border-color: var(--pink);
  background: var(--pink-light);
}

.admin-prod-thumb {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--pink-light), var(--cream));
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-prod-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-prod-name {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.admin-prod-price {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 600;
}

.admin-prod-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

/* File upload */
.file-upload-area {
  position: relative;
  border: 2px dashed #DDD;
  border-radius: var(--radius-sm);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: var(--pink);
  background: var(--pink-light);
}

.file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-weight: 500;
}

.upload-icon {
  font-size: 2rem;
}

.image-preview {
  display: none;
  max-width: 200px;
  max-height: 200px;
  margin: 1rem auto 0;
  border-radius: 8px;
  object-fit: cover;
}

.image-preview.active {
  display: block;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s ease;
  border: 2px dashed var(--pink);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color var(--transition);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: #D94F4F;
  background: #FFF0F0;
}

.modal-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.3rem;
  color: #C75B7A;
  margin-bottom: 1.2rem;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.footer-deco-border {
  display: none;
}

.footer-content {
  background: #FFFFFF;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-logo {
  font-size: 1.5rem;
}

.footer-name {
  font-family: 'Pacifico', cursive;
  font-size: 1.2rem;
  color: #C75B7A;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: #C75B7A;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-dot {
  color: var(--pink);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-hover);
  border-left: 4px solid #4CAF50;
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 300;
  transform: translateX(120%);
  transition: transform 0.4s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.error {
  border-left-color: #D94F4F;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .collections-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .about-container {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .admin-product-list {
    grid-template-columns: 1fr;
  }

  .admin-col-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ribbon-banner {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
  }

  .ribbon-banner::before {
    border-width: 18px 12px 18px 0;
    left: -12px;
  }

  .ribbon-banner::after {
    border-width: 18px 0 18px 12px;
    right: -12px;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 0.6rem 1rem;
  }

  .logo-text {
    font-size: 1.1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .admin-main {
    padding: 1rem;
  }
}

/* ═══════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-light);
}

.empty-state-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state p {
  font-weight: 500;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════ */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-card {
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-hover);
  border: 2px dashed var(--pink);
  text-align: center;
}

.login-header {
  margin-bottom: 2rem;
}

.login-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: wobble 3s ease-in-out infinite;
}

.login-title {
  font-family: 'Pacifico', cursive;
  font-size: 1.8rem;
  color: #C75B7A;
  margin-bottom: 0.3rem;
}

.login-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: 500;
}

.login-error {
  color: #D94F4F;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 1.2rem;
}

.login-back {
  display: inline-block;
  margin-top: 1.5rem;
  text-decoration: none;
  color: #C75B7A;
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity var(--transition);
}

.login-back:hover {
  opacity: 0.7;
}

.form-group input[type="password"] {
  padding: 0.8rem 1rem;
  border: 2px solid #EEE;
  border-radius: var(--radius-sm);
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--transition);
  background: var(--white);
}

.form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--pink);
}

/* ═══════════════════════════════════════════
   IMAGE LIGHTBOX
   ═══════════════════════════════════════════ */
.product-img-clickable {
  cursor: zoom-in;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════ */
.contact-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
  z-index: 1;
}

.contact-card {
  background: #FFFFFF;
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-hover);
  border: 2px dashed var(--pink);
}

.contact-image-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--pink);
  background: linear-gradient(135deg, var(--pink-light), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-placeholder {
  font-size: 4rem;
  opacity: 0.3;
}

.contact-title {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: #C75B7A;
  margin-bottom: 0.5rem;
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.contact-phone-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--cream);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.contact-phone-wrap:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-phone-icon {
  font-size: 1.3rem;
}

.contact-phone {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
}

@media (max-width: 480px) {
  .contact-card {
    padding: 2rem 1.5rem;
  }

  .contact-image-wrap {
    width: 150px;
    height: 150px;
  }
}
