﻿:root {
  --ink: #1e2430;
  --muted: #667085;
  --line: #e7eaf0;
  --paper: #fffaf2;
  --white: #ffffff;
  --coral: #ff6f61;
  --teal: #168f8b;
  --yellow: #ffd166;
  --violet: #6b5cff;
  --shadow: 0 18px 60px rgba(30, 36, 48, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

input,
textarea,
button {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid rgba(231, 234, 240, 0.8);
  backdrop-filter: blur(16px);
}

.flash-message {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 18px;
  text-align: center;
  font-weight: 700;
}

.flash-success {
  color: #0f5132;
  background: #d1f5e0;
}

.flash-error {
  color: #842029;
  background: #f8d7da;
}

.admin-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}

.admin-card h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  color: #344054;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fffdf9;
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-secondary {
  border: 1px solid var(--line);
}

.user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--teal);
  background: #dff6f3;
  font-weight: 800;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.brand span:last-child {
  max-width: min(40vw, 360px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-logo {
  width: 54px;
  height: 54px;
  display: block;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  color: #475467;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: clamp(34px, 7vw, 86px);
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.9) 44%, rgba(255, 250, 242, 0.2) 78%);
}

.hero-content {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.8vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-content p:not(.eyebrow) {
  max-width: 560px;
  color: #3d4656;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-action {
  color: var(--white);
  background: var(--coral);
}

.secondary-action {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.section-heading p,
.package-grid p,
.order-panel p,
footer span {
  color: var(--muted);
  line-height: 1.65;
}

.section-heading {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 24px;
}

.category-page {
  padding-top: 64px;
}

.category-heading h1 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-heading.compact {
  width: auto;
  margin: 0 0 22px;
}

.shop-layout {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  margin: 0 auto 82px;
}

.filters {
  position: sticky;
  top: 86px;
  align-self: start;
  display: grid;
  gap: 10px;
}

.filter {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #3d4656;
  background: var(--white);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.filter.active {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

body[data-category="Balon"] .filter[data-filter="Balon"],
body[data-category="Susleme"] .filter[data-filter="Susleme"],
body[data-category="Kostum"] .filter[data-filter="Kostum"],
body[data-category="Set"] .filter[data-filter="Set"],
body[data-category="Baski"] .filter[data-filter="Baski"],
body[data-category="Baby Shower"] .filter[data-filter="Baby Shower"],
body[data-category="Oyuncak"] .filter[data-filter="Oyuncak"],
body[data-category="Okul"] .filter[data-filter="Okul"],
body[data-category="Kirtasiye"] .filter[data-filter="Kirtasiye"],
body[data-category="Temali Parti"] .filter[data-filter="Temali Parti"] {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.package-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 36px rgba(30, 36, 48, 0.08);
}

.product-card {
  overflow: hidden;
}

.product-visual {
  height: 190px;
  display: block;
  background: linear-gradient(135deg, var(--card-a), var(--card-b));
}

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

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.product-body h3 {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.product-body p {
  min-height: 48px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-admin-actions {
  padding-top: 4px;
}

.admin-delete-button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: #c4372f;
  font-weight: 800;
  cursor: pointer;
}

.product-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-footer {
  justify-content: space-between;
}

.packages,
.order-panel {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 82px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.package-grid article {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.package-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: var(--white);
  background: var(--coral);
  font-weight: 900;
}

.order-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: start;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 8px;
  color: var(--white);
  background: #1e2430;
}

.compact-contact {
  margin-top: -42px;
}

.order-panel .eyebrow,
.order-panel p {
  color: #aee6e1;
}

.order-panel h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.address-box {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.address-box strong {
  color: var(--white);
}

.address-box p {
  margin: 0;
}

.address-box a {
  width: fit-content;
  color: var(--yellow);
  font-weight: 800;
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.whatsapp-card {
  align-content: center;
  justify-items: start;
  min-height: 280px;
}

.contact-card strong {
  color: var(--white);
  font-size: 1.2rem;
}

.contact-card p {
  margin: 8px 0 -8px;
  color: #aee6e1;
  font-weight: 800;
}

.contact-card span {
  color: #edf1f7;
  line-height: 1.6;
}

.whatsapp-card p {
  max-width: 420px;
  margin: 0;
  color: #aee6e1;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 22px;
  border-radius: 8px;
  color: var(--white);
  background: #25d366;
  font-size: 1.05rem;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.26);
}

.whatsapp-button svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  flex: 0 0 auto;
}

.phone-note {
  font-weight: 800;
}

.contact-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--yellow);
  font-weight: 900;
}

.contact-link.secondary {
  color: var(--white);
  background: var(--coral);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.admin-page,
.admin-products {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto 82px;
}

.admin-login-page {
  width: min(1120px, calc(100% - 36px));
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.admin-login-card {
  width: min(460px, 100%);
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.admin-layout {
  width: min(1120px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0 auto 32px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-help {
  margin: -4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.admin-color-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-color-row input[type="color"] {
  width: 100%;
  min-height: 48px;
  padding: 4px;
}

.floating-whatsapp {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  color: var(--white);
  background: #25d366;
  border-radius: 8px 0 0 8px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%) rotate(-90deg) translateY(50%);
  transform-origin: right center;
}

.floating-whatsapp svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: 0 0 auto;
}

.floating-whatsapp span {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  .shop-layout,
  .package-grid,
  .order-panel,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 10px;
    min-height: 70px;
    padding: 10px 18px;
  }

  .brand span:last-child {
    display: block;
    max-width: calc(100vw - 94px);
    font-size: 1rem;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
  }

  .hero {
    min-height: 590px;
    align-items: end;
    padding: 28px 18px 52px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(255, 250, 242, 0.98) 0%, rgba(255, 250, 242, 0.86) 45%, rgba(255, 250, 242, 0.18) 100%);
  }

  .hero-actions,
  footer {
    flex-direction: column;
  }

  .product-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .floating-whatsapp {
    top: auto;
    right: 14px;
    bottom: 14px;
    transform: none;
    border-radius: 8px;
  }
}

/* Header guard: keeps the brand bar compact even if an older mobile rule is cached. */
body > .site-header {
  height: auto !important;
  min-height: 68px !important;
  max-height: 82px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  overflow: hidden !important;
}

body > .site-header .brand {
  height: 48px !important;
  min-height: 0 !important;
  max-height: 48px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}

body > .site-header .brand-logo {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  object-fit: cover !important;
}

body > .site-header .brand span:last-child {
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 44px !important;
  max-width: min(56vw, 390px) !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

