:root {
  --hediye-primary: #65459D;
  --hediye-secondary: #947FFC;
  --hediye-light: #D9D5FD;
  --hediye-dark: #2E175F;
  --hediye-accent: #F7BAF6;
  --hb-shell-radius: 30px;
  --hb-shell-radius-sm: 24px;
  --hb-card-radius: 24px;
  --hb-shell-padding: 32px;
  --hb-shell-padding-sm: 22px;
  --hb-shadow-panel: 0 24px 56px rgba(45, 30, 86, 0.14);
  --hb-shadow-card: 0 18px 36px rgba(43, 29, 81, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: color 0.5s ease, background-color 0.5s ease;
}

a {
  text-underline-offset: 3px;
}

body.light-text {
  color: #fff;
}

body.dark-text {
  color: #2E175F;
}

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

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.navbar,
main,
footer {
  background: linear-gradient(135deg, var(--hediye-secondary), var(--hediye-light), var(--hediye-dark), var(--hediye-accent));
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}

.navbar {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.site-logo-mark {
  width: 48px;
  height: 48px;
  display: block;
  flex: 0 0 48px;
  object-fit: contain;
}

.site-brand-text {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.navbar-collapse {
  justify-content: flex-end;
}

.navbar-menu-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-link-group {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 1rem;
  margin-left: 0.25rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.navbar .nav-link {
  opacity: 0.92;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.navbar .nav-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background-color: var(--hediye-primary) !important;
  border-color: var(--hediye-primary) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background-color: #5a3b93 !important;
  border-color: #5a3b93 !important;
  box-shadow: 0 8px 22px rgba(46, 23, 95, 0.22);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-primary {
  border-color: var(--hediye-primary) !important;
  color: var(--hediye-primary) !important;
}

.btn-outline-primary:hover {
  background-color: var(--hediye-primary) !important;
  color: white !important;
  box-shadow: 0 8px 22px rgba(46, 23, 95, 0.14);
  transform: translateY(-1px);
}

.btn-outline-primary:active {
  transform: translateY(0);
}

.btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(101, 69, 157, 0.25);
}

.content-container {
  max-width: 900px;
  margin: 0 auto;
}

.content-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.form-control:focus {
  border-color: var(--hediye-primary);
  box-shadow: 0 0 0 0.25rem rgba(101, 69, 157, 0.25);
}

.form-select:focus {
  border-color: var(--hediye-primary);
  box-shadow: 0 0 0 0.25rem rgba(101, 69, 157, 0.25);
}

.input-section {
  margin-top: 100px;
}

.card.product-card {
  background-color: #f2eeff;
  border: none;
  transition: all 0.3s ease;
  border-radius: 16px;
}

.card.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.dynamic-text {
  color: rgba(255, 255, 255, 0.98);
  text-shadow:
    0 10px 24px rgba(46, 23, 95, 0.45),
    0 3px 10px rgba(0, 0, 0, 0.35);
}

main .container.input-section > p.dynamic-text {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

@media (prefers-reduced-motion: reduce) {
  .navbar,
  main,
  footer {
    animation: none !important;
  }

  .dynamic-text {
    animation: none !important;
    color: rgba(255, 255, 255, 0.94) !important;
  }

  .btn,
  .card,
  .navbar .nav-link {
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .input-section {
    margin-top: 60px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .navbar .navbar-brand {
    font-size: 1rem;
  }

  .navbar .nav-link {
    padding: 0.6rem 0;
  }

  .navbar-brand {
    gap: 0.25rem;
  }

  footer .col-md-3 {
    margin-bottom: 1.5rem;
  }

  .footer-tech {
    text-align: center;
  }

  .footer-tech-logos {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem;
    margin-top: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .navbar-menu-group,
  .navbar-link-group,
  .navbar-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-actions {
    margin-left: 0;
    padding-left: 0;
    padding-top: 0.75rem;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    gap: 0.5rem;
  }

  .navbar-favorite-link,
  .navbar-account-link,
  .navbar-user-link {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-link-group .nav-link {
    padding-inline: 14px;
    border-radius: 14px;
  }

  .navbar-favorite-link {
    padding-inline: 14px;
    border-radius: 14px;
  }

  .navbar-favorite-count {
    position: static;
    margin-left: auto;
  }
}

.footer-tech {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-tech-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.footer-tech-link {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer-tech-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-tech-logo {
  display: block;
  height: 22px;
  width: auto;
}

.footer-tech-logo.openai {
  height: 20px;
  filter: invert(1);
}

.footer-article-item {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-article-item:last-child {
  border-bottom: none;
}

.footer-article-item a {
  font-size: 0.9rem;
  line-height: 1.4;
  transition: opacity 0.15s ease;
}

.footer-article-item a:hover {
  opacity: 0.8;
}

.navbar-favorite-link,
.navbar-account-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.navbar-favorite-link:hover,
.navbar-account-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.navbar-favorite-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--hediye-primary);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(46, 23, 95, 0.16);
}

.navbar-user-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
}

.hb-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: #53357f;
  box-shadow: 0 10px 22px rgba(33, 24, 54, 0.18);
  z-index: 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.hb-wishlist-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(33, 24, 54, 0.22);
}

.hb-wishlist-btn.is-active {
  background: var(--hediye-primary);
  color: #fff;
}

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

.hb-wishlist-card {
  background: #fff;
  border: 1px solid rgba(101, 69, 157, 0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(43, 29, 81, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hb-wishlist-media {
  position: relative;
  background: #f3efff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

.hb-wishlist-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.hb-wishlist-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #271b3d;
  min-height: 3em;
}

.hb-wishlist-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: auto;
}

.hb-wishlist-empty {
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(180deg, #fbf9ff, #f4efff);
  border: 1px dashed rgba(101, 69, 157, 0.22);
  color: #63597a;
}

@media (max-width: 1100px) {
  .hb-wishlist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hb-wishlist-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hb-wishlist-grid {
    grid-template-columns: 1fr;
  }

  .hb-wishlist-btn {
    width: 40px;
    height: 40px;
    top: 12px;
    right: 12px;
  }
}
