/* Online Tasarım — tema (görseldeki lacivert / açık gri) */
:root {
  --nav-bg: #1a2744;
  --nav-hover: #243556;
  --primary: #2563c8;
  --primary-dark: #1d4f9e;
  --primary-gradient: linear-gradient(180deg, #3b7eea 0%, #2563c8 45%, #1d4f9e 100%);
  --text-dark: #1a2744;
  --text-muted: #5c6578;
  --border-soft: #dde2eb;
  --bg-page: #eef1f6;
  --bg-card: #ffffff;
  --shadow-btn: 0 4px 14px rgba(37, 99, 200, 0.35);
  --shadow-card: 0 8px 32px rgba(26, 39, 68, 0.08);
  --radius: 8px;
  --radius-sm: 5px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, #f0f3f8 0%, #fafbfc 100%);
  min-height: 100vh;
}

/* Navbar */
.navbar-custom {
  background: var(--nav-bg) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500;
  padding: 0.5rem 0.85rem !important;
  font-size: 0.95rem;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}

.navbar-custom .navbar-icon-btn {
  color: #fff;
  font-size: 1.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.navbar-custom .navbar-icon-btn:hover {
  background: var(--nav-hover);
  color: #fff;
}

.cart-badge {
  font-size: 0.65rem;
  min-width: 1.15rem;
  padding: 0.2em 0.45em;
}

/* Hero */
.hero-section {
  padding: 2.5rem 0 2rem;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 3rem 0 2.5rem;
  }
}

.hero-title {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 28rem;
}

.btn-primary-gradient {
  background: var(--primary-gradient);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary-gradient:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 200, 0.45);
}

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

.hero-visual img {
  max-height: 280px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.12));
}

/* Panels */
.design-panel,
.preview-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.25rem 1.35rem;
}

@media (min-width: 768px) {
  .design-panel,
  .preview-panel {
    padding: 1.5rem 1.65rem;
  }
}

.section-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Model thumbnails */
.model-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.model-item {
  flex: 0 0 auto;
  width: calc(20% - 0.6rem);
  min-width: 72px;
  max-width: 100px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.4rem;
  transition: border-color 0.2s, background 0.2s;
}

@media (max-width: 575px) {
  .model-item {
    width: calc(33.33% - 0.5rem);
  }
}

.model-item:hover {
  background: #f4f7fb;
}

.model-item.active {
  border-color: var(--primary);
  background: rgba(37, 99, 200, 0.06);
}

.model-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 4px;
  background: #f0f2f5;
}

.model-item span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.2;
}

/* Color swatches */
.swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--border-soft);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0;
}

.color-swatch:hover {
  transform: scale(1.08);
}

.color-swatch.active {
  box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px #fff;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  background: #fafbfd;
}

.btn-upload {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(37, 99, 200, 0.25);
}

.btn-upload:hover {
  color: #fff;
  filter: brightness(1.05);
}

/* Form controls */
.form-control-custom,
.form-select-custom {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 200, 0.15);
}

.text-color-btn {
  width: 38px;
  height: 38px;
  border: 2px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
}

/* Preview */
.preview-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.preview-box {
  background: linear-gradient(180deg, #f5f7fa 0%, #eef1f6 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  min-height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 992px) {
  .preview-box {
    min-height: 380px;
  }
}

.preview-product-wrap {
  position: relative;
  width: 85%;
  max-width: 260px;
  margin: 0 auto;
}

.preview-color-overlay {
  position: absolute;
  inset: 8%;
  border-radius: 12px;
  pointer-events: none;
  mix-blend-mode: multiply;
  display: none;
  z-index: 1;
}

.preview-product-wrap img.product-base {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s;
}

.preview-logo-layer {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  max-width: 38%;
  max-height: 22%;
  object-fit: contain;
  pointer-events: none;
  z-index: 4;
}

.preview-text-layer {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 90%;
  word-break: break-word;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  z-index: 4;
}

.preview-product-wrap.preview-shirt .preview-logo-layer {
  top: 38%;
  max-width: 45%;
  max-height: 28%;
}

.preview-product-wrap.preview-shirt .preview-text-layer {
  bottom: 12%;
}

.preview-product-wrap.preview-hat .preview-logo-layer {
  top: 35%;
  max-width: 40%;
}

.preview-product-wrap.preview-hat .preview-text-layer {
  bottom: 8%;
  font-size: 0.9em;
}

.preview-product-wrap.preview-kutu .preview-logo-layer {
  top: 48%;
  max-width: 42%;
  max-height: 20%;
}

.preview-product-wrap.preview-kutu .preview-text-layer {
  bottom: 22%;
  font-size: 0.95em;
}

/* Order bar */
.order-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-card);
}

.price-tag {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
}

/* Features footer */
.features-bar {
  background: #e8ecf3;
  border-top: 1px solid var(--border-soft);
  padding: 2rem 0;
  margin-top: 2rem;
}

.feature-item {
  text-align: center;
  padding: 0.5rem;
}

.feature-item i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.feature-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-dark);
}

/* Page inner (hakkımızda, iletişim) */
.page-hero {
  background: var(--nav-bg);
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero h1 {
  font-weight: 800;
  font-size: 1.75rem;
}

.content-section {
  padding: 2.5rem 0;
}

/* Cart modal */
.modal-cart .list-group-item {
  border-color: var(--border-soft);
}

/* Admin */
.admin-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}

/* Sticky footer: içerik kısa olsa bile footer altta */
body.site-sticky-footer {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.site-sticky-footer .page-main {
  flex: 1 0 auto;
}

/* Footer — üst menü ile aynı lacivert ton (site tema) */
.site-footer {
  background: var(--nav-bg);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
}

.site-footer .footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.site-footer .footer-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer .footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-bar {
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.75);
}

/* İletişim / CMS — ana sayfa (hero) ile aynı genel arka plan ve renk paleti */
body.page-like-home {
  background: linear-gradient(180deg, #f0f3f8 0%, #fafbfc 100%) !important;
}

.inner-page-head {
  border-bottom: 1px solid var(--border-soft);
}

.inner-page-body {
  color: var(--text-dark);
}

.cms-article {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 48rem;
  color: var(--text-dark);
}

.cms-article p {
  margin-bottom: 1rem;
}

.cms-article h2,
.cms-article h3 {
  font-weight: 800;
  margin-top: 1.5rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Accessibility */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
}
