/* Hepsiburada-Style Theme & Header CSS for Doğal Gıda Pazarı */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --pz-magenta: #ff6000;
  --pz-magenta-hover: #e05400;
  --pz-magenta-light: #fff3ea;
  --pz-navy: #292c3d;
  --pz-navy-hover: #1c1e2b;
  --pz-bg: #f2f2f2;
  --pz-card-bg: #ffffff;
  --pz-text-main: #292c3d;
  --pz-text-muted: #6d7288;
  --pz-border: #e6e6ea;
  --pz-shadow-sm: 0 2px 8px rgba(41, 44, 61, 0.05);
  --pz-shadow-md: 0 8px 20px rgba(41, 44, 61, 0.09);
  --pz-shadow-lg: 0 20px 40px rgba(41, 44, 61, 0.14);
  --pz-radius-sm: 6px;
  --pz-radius-md: 10px;
  --pz-radius-lg: 14px;
  --pz-radius-full: 9999px;
  --pz-font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.hb-header-enabled {
  background-color: var(--pz-bg) !important;
  font-family: var(--pz-font) !important;
  color: var(--pz-text-main) !important;
  margin: 0;
  padding: 0;
}

/* Hide original site header */
body.hb-header-enabled .hb-hide-original {
  display: none !important;
}

/* Base Pazarama Header Shell */
.hb-header-shell {
  position: relative;
  z-index: 9999;
  background: var(--pz-card-bg);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  font-family: var(--pz-font);
  border-bottom: 1px solid var(--pz-border);
}

/* Top utility announcement bar */
.hb-topline {
  height: 4px;
  background: linear-gradient(90deg, #ff6000 0%, #ff8a3d 50%, #292c3d 100%);
}

.hb-utility {
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  font-size: 12px;
  color: var(--pz-text-muted);
  font-weight: 500;
}

.hb-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.hb-utility .hb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}

.hb-utility-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 600;
}

.hb-utility-left .pz-tag {
  background: var(--pz-magenta-light);
  color: var(--pz-magenta);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--pz-radius-full);
}

.hb-utility-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hb-utility a {
  color: var(--pz-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hb-utility a:hover {
  color: var(--pz-magenta);
}

/* Main Header Row */
.hb-main {
  background: #ffffff;
  padding: 14px 0;
}

.hb-main .hb-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Brand Logo */
.hb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
}

.hb-logo img {
  height: 46px;
  width: auto;
  display: block;
  object-fit: contain;
}

.hb-logo-text {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--pz-navy);
}

.hb-logo-text span {
  color: var(--pz-magenta);
}

.hb-logo-badge {
  background: var(--pz-magenta);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* Search Bar Area */
.hb-search-area {
  flex: 1 1 auto;
  max-width: 640px;
}

.hb-search-form {
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: var(--pz-radius-full);
  overflow: hidden;
  background: #f8fafc;
  transition: all 0.25s ease;
  padding: 3px 4px 3px 18px;
}

.hb-search-form:focus-within {
  border-color: var(--pz-magenta);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 96, 0, 0.1);
}

.hb-search-form input {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  height: 42px;
  font-size: 14px;
  font-weight: 500;
  color: var(--pz-navy);
  background: transparent;
  font-family: var(--pz-font);
}

.hb-search-form input::placeholder {
  color: #94a3b8;
}

.hb-search-form button {
  border: 0;
  background: var(--pz-magenta);
  color: #ffffff;
  height: 40px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: var(--pz-radius-full);
  transition: background 0.2s ease, transform 0.1s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pz-font);
}

.hb-search-form button:hover {
  background: var(--pz-magenta-hover);
  transform: translateY(-1px);
}

/* Right Action Buttons */
.hb-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.hb-action {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pz-navy);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--pz-radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.hb-action:hover {
  background: #f8fafc;
  color: var(--pz-magenta);
}

.hb-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  color: var(--pz-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
  position: relative;
}

.hb-action:hover .hb-action-icon {
  background: var(--pz-magenta-light);
  color: var(--pz-magenta);
}

.hb-action-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--pz-magenta);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: var(--pz-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #ffffff;
}

.hb-action-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hb-action-sub {
  font-size: 11px;
  color: var(--pz-text-muted);
  font-weight: 400;
}

/* Categories Navbar */
.hb-cats {
  border-top: 1px solid var(--pz-border);
  background: #ffffff;
}

.hb-cats .hb-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 50px;
  overflow: visible;
}

/* Mega Menu Trigger */
.hb-cat-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.hb-cat-group::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.hb-cat-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  background: var(--pz-magenta) !important;
  padding: 10px 20px;
  border-radius: var(--pz-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.25);
}

.hb-cat-trigger:hover {
  background: var(--pz-magenta-hover) !important;
  transform: translateY(-1px);
}

/* Horizontal Category Navigation Links */
.hb-cat-links-row {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hb-cat-links-row::-webkit-scrollbar {
  display: none;
}

.hb-cat-link {
  color: var(--pz-navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

.hb-cat-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--pz-magenta);
  border-radius: 3px;
  transition: width 0.2s ease;
}

.hb-cat-link:hover {
  color: var(--pz-magenta);
}

.hb-cat-link:hover::after {
  width: 100%;
}

/* Mega Menu Dropdown Box */
.hb-cat-dropdown {
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  min-width: 520px;
  background: #ffffff;
  border: 1px solid var(--pz-border);
  border-radius: var(--pz-radius-lg);
  box-shadow: var(--pz-shadow-lg);
  padding: 18px;
  display: none;
  z-index: 10000;
  animation: pzFadeIn 0.2s ease;
}

@keyframes pzFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.hb-cat-group:hover .hb-cat-dropdown {
  display: block;
}

.hb-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.hb-cat-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--pz-radius-md);
  color: var(--pz-navy);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
}

.hb-cat-dropdown a:hover {
  background: var(--pz-magenta-light);
  border-color: #ffd9b8;
  color: var(--pz-magenta);
  transform: translateX(3px);
}

/* Pazarama Quick Category Stories / Circles Widget */
.pz-stories-widget {
  background: #ffffff;
  border-bottom: 1px solid var(--pz-border);
  padding: 18px 0;
  margin-bottom: 20px;
}

.pz-stories-scroll {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.pz-stories-scroll::-webkit-scrollbar {
  display: none;
}

.pz-story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  flex: 0 0 auto;
  width: 90px;
  text-align: center;
  transition: transform 0.2s ease;
}

.pz-story-item:hover {
  transform: translateY(-4px);
}

.pz-story-img-wrap {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #ff6000, #ffab6b, #292c3d);
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pz-story-img-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 2px solid #ffffff;
}

.pz-story-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--pz-navy);
  margin-top: 8px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

/* PAZARAMA HERO SECTION */
.pz-hero-section {
  margin-bottom: 24px;
}

.pz-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

.pz-hero-main {
  position: relative;
}

.pz-hero-card {
  height: 380px;
  border-radius: var(--pz-radius-lg);
  background-size: cover;
  background-position: center;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  box-shadow: var(--pz-shadow-md);
  position: relative;
  overflow: hidden;
}

.pz-badge-pill {
  background: var(--pz-magenta);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--pz-radius-full);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pz-hero-card h2 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px 0;
  max-width: 520px;
  letter-spacing: -0.5px;
}

.pz-hero-card p {
  font-size: 15px;
  color: #e2e8f0;
  margin: 0 0 24px 0;
  max-width: 480px;
  line-height: 1.5;
}

.pz-btn-primary {
  background: var(--pz-magenta);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: var(--pz-radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 6px 18px rgba(255, 96, 0, 0.35);
}

.pz-btn-primary:hover {
  background: var(--pz-magenta-hover);
  transform: translateY(-2px);
}

.pz-hero-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pz-side-card {
  height: 181px;
  border-radius: var(--pz-radius-lg);
  background-size: cover;
  background-position: center;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #ffffff;
  box-shadow: var(--pz-shadow-sm);
  position: relative;
  overflow: hidden;
}

.pz-side-tag {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--pz-radius-full);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.pz-side-card h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 12px 0;
}

.pz-link-light {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--pz-magenta);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.pz-link-light:hover {
  opacity: 0.85;
}

/* PAZARAMA TRUST BAR */
.pz-trust-bar {
  background: #ffffff;
  border-radius: var(--pz-radius-lg);
  border: 1px solid var(--pz-border);
  box-shadow: var(--pz-shadow-sm);
  padding: 20px;
  margin-bottom: 30px;
}

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

.pz-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pz-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fdf2f8;
  color: var(--pz-magenta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
}

.pz-trust-text {
  display: flex;
  flex-direction: column;
}

.pz-trust-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--pz-navy);
}

.pz-trust-text span {
  font-size: 12px;
  color: var(--pz-text-muted);
  margin-top: 2px;
}

/* PAZARAMA SECTION COMMON */
.pz-section {
  margin-bottom: 36px;
}

.pz-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pz-section-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--pz-magenta);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pz-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--pz-navy);
  margin: 4px 0 0 0;
  letter-spacing: -0.3px;
}

.pz-view-all {
  color: var(--pz-magenta);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.pz-view-all:hover {
  transform: translateX(3px);
}

/* PAZARAMA CATEGORY SHOWCASE CARDS */
.pz-cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pz-cat-card {
  background: #ffffff;
  border-radius: var(--pz-radius-lg);
  border: 1px solid var(--pz-border);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--pz-shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.pz-cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--pz-shadow-md);
  border-color: #cbd5e1;
}

.pz-cat-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.pz-cat-card:hover .pz-cat-card-img {
  transform: scale(1.05);
}

.pz-cat-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1 1 auto;
}

.pz-cat-card-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--pz-navy);
  margin: 0 0 8px 0;
}

.pz-cat-card-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--pz-magenta);
}

/* GLOBAL PRODUCT CARD OVERHAUL (Pazarama Style) */
.product-card,
.product-item,
.card,
.v-card,
.single-product,
.product-grid-item,
.product-box {
  background: #ffffff !important;
  border-radius: var(--pz-radius-lg) !important;
  border: 1px solid var(--pz-border) !important;
  padding: 14px !important;
  box-shadow: var(--pz-shadow-sm) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: 100% !important;
  overflow: hidden !important;
}

.product-card:hover,
.product-item:hover,
.card:hover,
.v-card:hover,
.single-product:hover,
.product-grid-item:hover,
.product-box:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--pz-shadow-md) !important;
  border-color: #cbd5e1 !important;
}

/* Badge overlay */
.product-badge,
.badge-discount,
.badge-tag {
  background: var(--pz-magenta) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: var(--pz-radius-sm) !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 2px 6px rgba(255, 96, 0, 0.3) !important;
}

/* Product Titles */
.product-title,
.product-name,
.card-title,
.title {
  font-family: var(--pz-font) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--pz-navy) !important;
  line-height: 1.4 !important;
  margin: 10px 0 6px 0 !important;
}

/* Price Styling */
.price,
.product-price,
.current-price {
  font-family: var(--pz-font) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: var(--pz-magenta) !important;
}

.old-price,
.original-price {
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  margin-right: 6px !important;
  font-weight: 500 !important;
}

/* Add to Cart Buttons */
.btn-cart,
.add-to-cart,
.btn-primary,
.button-cart {
  background: var(--pz-magenta) !important;
  color: #ffffff !important;
  border-radius: var(--pz-radius-md) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 10px 16px !important;
  border: none !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.btn-cart:hover,
.add-to-cart:hover,
.btn-primary:hover,
.button-cart:hover {
  background: var(--pz-magenta-hover) !important;
  box-shadow: 0 4px 12px rgba(255, 96, 0, 0.3) !important;
}

/* PAZARAMA MODERN FOOTER OVERHAUL */
.pz-custom-footer {
  background: var(--pz-navy);
  color: #94a3b8;
  font-family: var(--pz-font);
  padding: 48px 0 24px 0;
  margin-top: 60px;
  border-top: 4px solid var(--pz-magenta);
}

.pz-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.pz-footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.2px;
}

.pz-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pz-footer-col ul li {
  margin-bottom: 10px;
}

.pz-footer-col ul li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.pz-footer-col ul li a:hover {
  color: var(--pz-magenta);
}

.pz-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hb-utility {
    display: none;
  }

  .hb-main .hb-wrap {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hb-logo {
    width: 100%;
    justify-content: center;
  }

  .hb-search-area {
    order: 3;
    max-width: 100%;
    width: 100%;
  }

  .hb-actions {
    width: 100%;
    justify-content: space-around;
  }

  .hb-action-label {
    display: none;
  }

  .hb-cat-links-row {
    overflow-x: auto;
  }

  .hb-cat-dropdown {
    display: none !important;
  }

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

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

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

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

@media (max-width: 576px) {
  .pz-trust-grid {
    grid-template-columns: 1fr;
  }

  .pz-cat-cards-grid {
    grid-template-columns: 1fr;
  }

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