/**
 * Misto Çiçekçilik - Ana stil dosyası (Tailwind yerine plain CSS)
 * PHP 8 + HTML5 uyumlu
 */

:root {
  --primary-50: #fdf2f8;
  --primary-100: #fce7f3;
  --primary-200: #fbcfe8;
  --primary-400: #f472b6;
  --primary-500: #ec4899;
  --primary-600: #db2777;
  --primary-700: #be185d;
  --primary-800: #9d174d;
  --primary-900: #831843;
  --secondary-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --container-max: 1280px;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-900);
  background: #fff;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4, h5, h6 { font-weight: 600; margin: 0 0 0.5em; }

/* Layout */
.site-wrap { flex: 1; display: flex; flex-direction: column; }
.container-custom {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) { .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding-left: 2rem; padding-right: 2rem; } }

.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }
@media (min-width: 1024px) { .section { padding: 5rem 0; } }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn:focus { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--primary-500); }
.btn-primary { background: var(--primary-600); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-secondary { background: var(--secondary-500); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}
.btn-outline:hover { border-color: var(--primary-500); color: var(--primary-600); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.75rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-danger { background: #dc2626; color: #fff; border: none; }
.btn-danger:hover { background: #b91c1c; }

/* Form */
.input, .textarea, select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: #fff;
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}
.label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-700); margin-bottom: 0.25rem; }
.form-group { margin-bottom: 1rem; }
.form-error { font-size: 0.75rem; color: #dc2626; margin-top: 0.25rem; }

/* Card & Badge */
.card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}
.badge-primary { background: var(--primary-100); color: var(--primary-800); }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: var(--gray-100); color: var(--gray-800); }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-purple { background: #ede9fe; color: #5b21b6; }
.badge-indigo { background: #e0e7ff; color: #3730a3; }
.badge-cyan { background: #cffafe; color: #0e7490; }
.badge-sky { background: #e0f2fe; color: #0369a1; }
.badge-orange { background: #ffedd5; color: #c2410c; }

/* Product card */
.product-card { transition: box-shadow 0.3s; }
.product-card:hover { box-shadow: var(--shadow-lg); }
.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-100);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-content { padding: 1rem; }
.price { font-size: 1.125rem; font-weight: 600; color: var(--gray-900); }
.price-original { font-size: 0.875rem; color: var(--gray-400); text-decoration: line-through; }
.price-discount { color: var(--primary-600); }
.discount-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
}
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color:#be185d;
 a.link color:red;
}
.line-clamp-3 { -webkit-line-clamp: 3;
color:#be185d;
a.link color:red;
}

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
/* Ürün detay: mobilde tek sütun, görsel üstte ve her zaman görünür */
@media (max-width: 767px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .product-detail-grid .product-detail-gallery {
    order: -1;
  }
  .product-detail-grid #mainProductImage,
  .product-detail-grid .product-card-image img {
    display: block !important;
    visibility: visible !important;
    min-height: 200px;
    object-fit: contain;
  }
  .product-detail-grid .product-card-image {
    min-height: 200px;
    background: var(--gray-100);
  }
}
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.grid-cat-5 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .grid-cat-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-cat-5 { grid-template-columns: repeat(5, 1fr); } }

/* Header */
.site-header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.top-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.75rem;
}
.top-bar .container-custom { display: flex; align-items: center; justify-content: space-between; height: 2.25rem; }
.main-header .container-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) { .main-header .container-custom { height: 5rem; } }
.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
  text-decoration: none;
}
.logo span.secondary { color: var(--secondary-500); }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 1024px) { .header-actions { gap: 1rem; } }
.header-actions a, .header-actions button {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  color: var(--gray-600);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
}
.header-actions a:hover, .header-actions button:hover { color: var(--primary-600); }
.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: var(--primary-600);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-desktop { display: none; border-top: 1px solid var(--gray-100); }
@media (min-width: 1024px) { .nav-desktop { display: block; } }
.nav-desktop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  height: 3rem;
}
.nav-desktop a {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-lg);
}
.nav-desktop a:hover { color: var(--primary-600); background: var(--gray-50); }
.mobile-menu-btn { display: block; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.search-desktop { display: none; flex: 1; max-width: 32rem; margin: 0 2rem; }
@media (min-width: 1024px) { .search-desktop { display: flex; } }
.search-desktop input {
  width: 100%;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  font-size: 0.875rem;
}
.search-desktop input:focus { outline: none; border-color: var(--primary-500); }

/* Footer */
.site-footer { background: var(--gray-900); color: #fff; margin-top: auto; }
.footer-features {
  border-bottom: 1px solid var(--gray-800);
  padding: 2rem 0;
}
.footer-features .grid-4 { gap: 1.5rem; }
.footer-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-600);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-feature h4 { font-size: 0.875rem; margin: 0; }
.footer-feature p { font-size: 0.75rem; color: var(--gray-400); margin: 0.25rem 0 0; }
.footer-main { padding: 3rem 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; } }
.footer-brand .logo { color: #fff; }
.footer-brand p { color: var(--gray-400); font-size: 0.875rem; margin: 1rem 0 0; line-height: 1.6; }
.footer-links h4 { font-size: 0.875rem; margin: 0 0 1rem; }
.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.875rem; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding: 1.5rem 0;
}
.footer-bottom .container-custom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) { .footer-bottom .container-custom { flex-direction: row; } }
.footer-bottom p { font-size: 0.875rem; color: var(--gray-400); margin: 0; }

/* Hero Slider (döner carousel) */
.hero-slider {
  position: relative;
  width: 100%;
  height: 400px;
  min-height: 400px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .hero-slider { height: 500px; min-height: 500px; }
}
@media (min-width: 1024px) {
  .hero-slider { height: 600px; min-height: 600px; }
}
.hero-slider .hero-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}
.hero-slider .hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
@media (min-width: 768px) { .hero-slider .hero-slide { min-height: 0; } }
@media (min-width: 1024px) { .hero-slider .hero-slide { min-height: 0; } }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}
.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 1;
}
.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}
.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.hero-dot:hover { background: rgba(255,255,255,0.5); }
.hero-dot.active { background: #fff; }
.hero-content h1 { color: #fff; font-size: 1.875rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .hero-content h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .hero-content h1 { font-size: 3rem; } }
.hero-content p { color: var(--gray-200); font-size: 1.125rem; margin-bottom: 2rem; }
.hero-content .btn { margin-top: 0.5rem; }

/* Features bar */
.features-bar { padding: 2rem 0; }
.features-bar .grid-4 .flex { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-100);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-600);
}
.feature-icon svg { width: 1.5rem; height: 1.5rem; }
.feature-text h3 { font-size: 0.875rem; margin: 0; }
.feature-text p { font-size: 0.75rem; color: var(--gray-500); margin: 0.25rem 0 0; }

/* Headings */
.heading-1 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .heading-1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .heading-1 { font-size: 3rem; } }
.heading-2 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .heading-2 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .heading-2 { font-size: 2.25rem; } }
.text-body { color: var(--gray-600); line-height: 1.6; }
.text-center { text-align: center; }
.link-primary { color: var(--primary-600); font-weight: 500; text-decoration: none; }
.link-primary:hover { color: var(--primary-700); }

/* Category card */
.category-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 1rem;
  overflow: hidden;
  display: block;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.category-card:hover img { transform: scale(1.1); }
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2), transparent);
}
.category-card h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  color: #fff;
  font-size: 1.125rem;
  margin: 0;
  z-index: 1;
}

/* CTA section */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background-size: cover;
  background-position: center;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(131, 24, 67, 0.8);
}
.cta-section .container-custom { position: relative; z-index: 1; text-align: center; color: #fff; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; }
.cta-section p { color: var(--gray-200); margin-bottom: 2rem; }

/* Skeleton */
.skeleton { background: var(--gray-200); border-radius: var(--radius-xl); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Alert */
.alert { padding: 1rem; border-radius: var(--radius-lg); margin-bottom: 1rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--gray-200); }
th { font-weight: 600; background: var(--gray-50); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.pagination a:hover { background: var(--gray-50); border-color: var(--primary-500); color: var(--primary-600); }
.pagination .current { background: var(--primary-600); color: #fff; border-color: var(--primary-600); }
.pagination .disabled { opacity: 0.5; pointer-events: none; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 4rem;
  background: #fff;
  z-index: 40;
  overflow: auto;
  padding: 1rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu nav a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  color: var(--gray-900);
  text-decoration: none;
  border-radius: var(--radius-lg);
}
.mobile-menu nav a:hover { background: var(--gray-50); }
.mobile-menu hr { margin: 1rem 0; border: none; border-top: 1px solid var(--gray-200); }

/* Utility */
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.hidden { display: none; }
@media (min-width: 768px) { .md\:block { display: block; } .md\:flex { display: flex; } }
@media (min-width: 1024px) { .lg\:block { display: block; } }
.bg-gray-50 { background: var(--gray-50); }
.aspect-square { aspect-ratio: 1; }
.relative { position: relative; }
.absolute { position: absolute; }
