/* ═══════════════════════════════════════════════════════════════════════════
   Nokta Süs — Ana Stil Dosyası
   Parti Süslerinde Toptan Fiyat
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --pink: #FF4FA0;
  --purple: #7C3FC5;
  --yellow: #FFD166;
  --cyan: #06D6A0;
  --blue: #118AB2;
  --bg: #FFF9FB;
  --card: #FFFFFF;
  --text: #1A0A2E;
  --muted: #7A6B8A;
  --border: #F0E6F6;
  --radius: 18px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
}

h1, h2, h3, h4, h5 { font-family: 'Nunito', sans-serif; }

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

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

/* ─── Scrollbar ─────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f8f0fc; }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 10px; }

/* ─── Container ─────────────────────────────────────────────────────────── */
.container {
  padding: 0 max(20px, calc((100vw - 1280px) / 2));
  width: 100%;
}

/* ─── Animations ────────────────────────────────────────────────────────── */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes pop { 0%{transform:scale(0.8);opacity:0} 100%{transform:scale(1);opacity:1} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes confetti-fall {
  0% { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes bounce-in { 0%{transform:scale(0)} 60%{transform:scale(1.1)} 100%{transform:scale(1)} }
@keyframes slide-up { from{transform:translateY(30px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes pulse-ring { 0%{box-shadow:0 0 0 0 rgba(255,79,160,0.5)} 70%{box-shadow:0 0 0 16px rgba(255,79,160,0)} 100%{box-shadow:0 0 0 0 rgba(255,79,160,0)} }

.float { animation: float 3s ease-in-out infinite; }
.pop { animation: pop 0.3s ease-out; }
.slide-up { animation: slide-up 0.5s ease-out both; }

/* ─── Confetti ──────────────────────────────────────────────────────────── */
.confetti-piece {
  position: fixed;
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 9999;
  animation: confetti-fall linear forwards;
}

/* ─── Gradient text ─────────────────────────────────────────────────────── */
.grad-text {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn-neon {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  border: none;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(155,93,229,0.4);
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(155,93,229,0.55); }
.btn-neon:active { transform: translateY(0); }
.btn-neon:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2.5px solid var(--purple);
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-outline:hover { background: var(--purple); color: white; }

/* ─── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: all 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(155,93,229,0.15); }
.card-static:hover { transform: none; box-shadow: none; }

/* ─── Badge ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.badge-pink { background: #FFE6F2; color: var(--pink); }
.badge-purple { background: #EDE0FF; color: var(--purple); }
.badge-yellow { background: #FFF5D6; color: #CC8800; }
.badge-cyan { background: #D0F7EE; color: #00896A; }

/* ─── Stars ─────────────────────────────────────────────────────────────── */
.star-filled { color: #FFD166; }
.star-empty { color: #E0D0F0; }

/* ─── Toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  z-index: 9000;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 30px rgba(155,93,229,0.4);
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ─── Overlay ───────────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(26,10,46,0.55);
  backdrop-filter: blur(4px);
  z-index: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ─── Cart sidebar ──────────────────────────────────────────────────────── */
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: white;
  z-index: 600;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 60px rgba(26,10,46,0.15);
}
.cart-sidebar.open { transform: translateX(0); }

/* ─── Modal ─────────────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.modal.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: white;
  border-radius: 24px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(26,10,46,0.2);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1);
}
.modal.show .modal-box { transform: scale(1); }

/* ─── Input ─────────────────────────────────────────────────────────────── */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #FDFAFF;
  transition: border-color 0.2s;
  outline: none;
}
.input:focus { border-color: var(--purple); }

/* ─── Select ────────────────────────────────────────────────────────────── */
.select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #FDFAFF;
  outline: none;
  cursor: pointer;
  appearance: none;
}

/* ─── Quantity stepper ──────────────────────────────────────────────────── */
.qty-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: white;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  transition: all 0.15s;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--purple); color: white; border-color: var(--purple); }

/* ─── Form error ────────────────────────────────────────────────────────── */
.form-error {
  display: block;
  color: var(--pink);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  z-index: 400;
  background: rgba(255,249,251,0.9);
  backdrop-filter: blur(16px);
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(255,249,251,0.97);
  border-bottom: 1.5px solid var(--border);
}

/* ─── Hero banner ────────────────────────────────────────────────────────── */
@keyframes heroIn { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }
@keyframes lineIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes badgePop { from{opacity:0;transform:scale(0.7)} to{opacity:1;transform:scale(1)} }
@keyframes orbPulse0 { 0%,100%{transform:scale(1) translate(0,0)} 50%{transform:scale(1.1) translate(20px,-20px)} }
@keyframes orbPulse1 { 0%,100%{transform:scale(1)} 50%{transform:scale(1.15) translate(-15px,15px)} }
@keyframes orbPulse2 { 0%,100%{transform:scale(1) translate(0,0)} 50%{transform:scale(0.9) translate(10px,10px)} }
@keyframes orbPulse3 { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2) translate(-10px,-10px)} }
@keyframes particleDrift {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.7; }
  100% { transform: translateY(-100vh) translateX(var(--dx)) rotate(720deg); opacity: 0; }
}

/* ─── Announcement bar ──────────────────────────────────────────────────── */
@keyframes announceBg { 0%{background-position:0% 50%} 100%{background-position:200% 50%} }
@keyframes fadeMsg { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:translateY(0)} }

/* ─── Compare bar ────────────────────────────────────────────────────────── */
@keyframes compareBarIn { from{transform:translateY(100%)} to{transform:translateY(0)} }

/* ─── Social proof notification ──────────────────────────────────────────── */
@keyframes socialIn { from{opacity:0;transform:translateX(-30px)} to{opacity:1;transform:translateX(0)} }

/* ─── Page sections ─────────────────────────────────────────────────────── */
.page-section { padding: 60px 0; }
.page-hero {
  background: linear-gradient(135deg, #1A0A2E, #2D1060);
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* ─── Product grid ──────────────────────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ─── Skeleton loading ──────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F0E6F6 25%, #FAF5FF 50%, #F0E6F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .col-mobile-full { grid-column: 1 / -1 !important; }
  .product-modal-grid { grid-template-columns: 1fr !important; }
  .product-detail-grid { grid-template-columns: 1fr !important; }

  /* Prevent horizontal overflow on all containers */
  .hero-slider, .cat-strip-wrap, .prod-section, .trust-row,
  .review-grid, .page-section, .container, main, section,
  [style*="padding"][style*="max("] {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* Ensure images don't overflow */
  img, svg, video, canvas { max-width: 100% !important; height: auto !important; }

  /* Trust badges collapse to 2 columns */
  .trust-row { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; padding: 12px 12px 40px !important; }

  /* Smaller product grid on mobile */
  .prod-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .prod-section { padding: 24px 12px !important; }

  /* Review cards */
  .review-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .review-card { padding: 16px !important; }

  /* Admin sidebar collapses */
  .admin-sidebar { width: 200px !important; }
  .admin-main { margin-left: 200px !important; padding: 16px !important; }
  .admin-table { font-size: 12px !important; }
  .admin-table th, .admin-table td { padding: 8px 6px !important; }

  /* Smaller headings */
  .section-title { font-size: 19px !important; }
  .section-sub { font-size: 12px !important; }

  /* Cart sidebar full width */
  .cart-sidebar { width: 100vw !important; }

  /* Navbar logo text smaller */
  .navbar a[href="/"] span { font-size: 18px !important; }

  /* Cookie banner stacked */
  #cookie-banner { flex-direction: column !important; text-align: center !important; padding: 12px 16px !important; }

  /* Toast narrower */
  .toast { left: 12px !important; right: 12px !important; transform: translateY(100px) !important; border-radius: 14px !important; font-size: 13px !important; padding: 12px 18px !important; white-space: normal !important; text-align: center !important; }
  .toast.show { transform: translateY(0) !important; }

  /* Breadcrumbs */
  .breadcrumbs { font-size: 12px !important; padding: 8px 0 !important; flex-wrap: wrap !important; }
}

@media (max-width: 480px) {
  /* Extra small: single column product grid */
  .prod-grid { gap: 8px !important; }
  .trust-row { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
  .trust-card { padding: 14px 10px !important; }
  .trust-icon { font-size: 22px !important; }
  .trust-title { font-size: 13px !important; }
  .trust-desc { font-size: 11px !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}
.tab-btn.active {
  color: var(--purple);
  border-bottom-color: var(--purple);
}

/* ─── Filter pills ──────────────────────────────────────────────────────── */
.filter-pill {
  padding: 8px 18px;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 2px solid #E0D0F0;
  background: white;
  color: var(--muted);
  transition: all 0.2s;
}
.filter-pill.active {
  border-color: var(--purple);
  background: var(--purple);
  color: white;
}

/* ─── FAQ accordion ─────────────────────────────────────────────────────── */
.faq-toggle {
  transition: transform 0.25s;
  display: inline-block;
}
.faq-toggle.open { transform: rotate(45deg); }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
}
.pagination a {
  border: 1.5px solid var(--border);
  color: var(--muted);
  background: white;
}
.pagination a:hover { border-color: var(--purple); color: var(--purple); }
.pagination span.active { background: var(--purple); color: white; }

/* ─── Empty state ───────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state .empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-state h3 { font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }

/* ─── Breadcrumbs ───────────────────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  padding: 16px 0;
}
.breadcrumbs a { color: var(--purple); font-weight: 700; }
.breadcrumbs span.sep { color: #A090B0; }

/* ─── Search input ──────────────────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  flex: 1;
  max-width: 480px;
}
.search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  opacity: 0.4;
}
.search-wrapper input {
  padding-left: 42px;
  border-radius: 50px;
  height: 42px;
  font-size: 14px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: #1A0A2E;
  color: rgba(255,255,255,0.9);
}
.site-footer a, .site-footer button {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.site-footer a:hover, .site-footer button:hover { color: var(--pink); }

/* ─── Admin styles ──────────────────────────────────────────────────────── */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: #F8F0FF;
}
.admin-sidebar {
  width: 240px;
  background: #1A0A2E;
  color: white;
  padding: 20px 0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  transition: all 0.2s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  color: white;
  background: rgba(255,79,160,0.2);
}
.admin-main {
  margin-left: 240px;
  flex: 1;
  padding: 32px;
}
.admin-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid #F0E6F6;
  padding: 24px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
  font-family: 'Nunito', sans-serif;
}
.admin-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #F5EEF8;
}

/* ─── Print styles ──────────────────────────────────────────────────────── */
@media print {
  .navbar, .cart-sidebar, .toast, .overlay, .modal { display: none !important; }
  body { background: white; }
}
