/* ===========================
   Minally Genel Stil
   =========================== */

:root {
  --color-primary: #ff6f61;
  --color-primary-dark: #e9584b;
  --color-dark: #1f2933;
  --color-muted: #6b7280;
  --color-light: #f5f5f7;
  --color-border: #e5e7eb;
  --color-bg: #ffffff;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.1);
  --transition-fast: 0.2s ease-in-out;
  --container-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Roboto", sans-serif;
  background: #f3f4f6;
  color: var(--color-dark);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-dark);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  background: #fee2e2;
  color: #b91c1c;
}

/* ===========================
   Header
   =========================== */

.site-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Top bar */

.top-bar {
  background: #0f172a;
  color: #e5e7eb;
  font-size: 0.75rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.top-bar-links {
  display: flex;
  gap: 16px;
}

.top-bar-links a {
  opacity: 0.8;
}

.top-bar-links a:hover {
  opacity: 1;
}

/* Main bar */

.main-bar {
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--color-primary);
}

.logo span {
  color: #0f172a;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 9px 40px 9px 16px;
  font-size: 0.9rem;
  outline: none;
  background: #f9fafb;
}

.search-box input:focus {
  border-color: var(--color-primary);
  background: #fff;
}

.search-box button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions .icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  background: #fff;
}

/* Category nav */

.category-nav {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

.category-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  overflow-x: auto;
}

.category-nav-inner::-webkit-scrollbar {
  height: 4px;
}

.category-nav-inner::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 999px;
}

.category-link {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  border: none;
}

.category-link:hover,
.category-link.active {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ===========================
   Home: Hero
   =========================== */

.home-page {
  padding: 18px 0 40px;
}

.hero-section {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

/* Ana banner */

.hero-main {
  background: radial-gradient(circle at top left, #fee2e2, #f97316 0, #fb7185 45%, #1f2933 120%);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-main h1 {
  font-size: 1.7rem;
  margin: 0 0 8px;
}

.hero-main p {
  margin: 0 0 16px;
  max-width: 420px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-tags span {
  background: rgba(15, 23, 42, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.hero-main-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-main-visual {
  position: absolute;
  right: 10px;
  bottom: 0;
  width: 200px;
  height: 160px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 65%);
  opacity: 0.7;
}

/* Sağ banner alanları */

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

.hero-card {
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.hero-card p {
  font-size: 0.8rem;
  margin: 0 0 8px;
  color: var(--color-muted);
}

/* ===========================
   Home: benefit strip
   =========================== */

.benefit-strip {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fee2e2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ===========================
   Category grid
   =========================== */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: 1.1rem;
  margin: 0;
}

.section-header span {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.link-more {
  font-size: 0.8rem;
  color: var(--color-primary);
}

.category-grid {
  margin-bottom: 24px;
}

.category-grid-inner {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.category-card img {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  margin: 0 auto 8px;
  background: #f3f4f6;
}

.category-card h3 {
  font-size: 0.85rem;
  margin: 0 0 4px;
}

.category-card span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ===========================
   Product section
   =========================== */

.product-section {
  margin-bottom: 26px;
}

.product-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
}

.product-tabs {
  display: flex;
  gap: 8px;
}

.product-tab {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.8rem;
  background: transparent;
}

.product-tab.active {
  border-color: var(--color-primary);
  background: #fff;
  color: var(--color-primary);
}

.product-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.product-image {
  border-radius: var(--radius-sm);
  background: #f9fafb;
  padding: 6px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 34px;
}

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

.product-price {
  font-weight: 700;
  font-size: 0.95rem;
}

.product-old-price {
  text-decoration: line-through;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.product-tagline {
  font-size: 0.7rem;
  color: #16a34a;
}

/* ===========================
   Store highlight (home)
   =========================== */

.store-highlight {
  margin-bottom: 26px;
}

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

.store-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.store-header-mini {
  display: flex;
  gap: 10px;
  align-items: center;
}

.store-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
}

.store-name-mini {
  font-size: 0.85rem;
  font-weight: 600;
}

.store-badges-mini {
  font-size: 0.7rem;
  color: var(--color-muted);
}

.store-stats-mini {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ===========================
   Newsletter (home)
   =========================== */

.newsletter {
  background: #0f172a;
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.newsletter h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.newsletter p {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.8;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  border-radius: 999px;
  border: none;
  padding: 8px 12px;
  font-size: 0.85rem;
  min-width: 220px;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  margin-top: 32px;
  background: #0b1220;
  color: #9ca3af;
  padding: 28px 0 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  column-gap: 32px;
  row-gap: 16px;
  font-size: 0.8rem;
}

.footer-title {
  font-weight: 600;
  color: #e5e7eb;
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: 16px;
  padding-top: 10px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ===========================
   Store Page
   =========================== */

.store-page {
  padding: 24px 0 40px;
}

/* Store header */

.store-header {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
}

.store-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #f3f4f6;
}

.store-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.store-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.store-meta span strong {
  color: #16a34a;
}

.store-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

/* Store content */

.store-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

/* Filter sidebar */

.filter-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 14px 14px 18px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  font-size: 0.85rem;
  height: fit-content;
}

.filter-group + .filter-group {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.filter-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  margin: 0;
}

/* Price slider fake */

.price-range {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.price-range input {
  width: 50%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.8rem;
}

/* Store product area */

.store-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.store-toolbar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.store-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.store-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-toolbar select {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  font-size: 0.8rem;
}

/* Reuse product-grid but adjust columns */

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

/* Pagination */

.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.pagination button {
  border-radius: 999px;
  border: 1px solid var(--color-border);
  padding: 6px 10px;
  background: #fff;
  cursor: pointer;
}

.pagination button.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ===========================
   Responsive
   =========================== */

.nav-toggle {
  display: none;
}

@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1.5fr 1fr;
  }

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

  .category-grid-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .store-layout {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  .main-bar {
    flex-wrap: wrap;
  }

  .search-box {
    order: 3;
    width: 100%;
  }

  .hero-section {
    grid-template-columns: 1fr;
  }

  .hero-main {
    min-height: 210px;
  }

  .hero-main-visual {
    display: none;
  }

  .hero-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .benefit-strip {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-header {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .store-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .category-grid-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .benefit-strip {
    grid-template-columns: 1fr;
  }

  .store-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
