/* css/main.css - OSSI BRAND DESIGN SYSTEM */

/* ========== OSSI DESIGN SYSTEM TOKENS ========== */
:root {
  /* CORE BRAND COLORS */
  --ossi-orange: #FF6A00;
  --ossi-pink: #D6298E;
  --ossi-navy: #1A334E;
  --ossi-navy-2: #0D1A33;
  
  /* BRAND GRADIENTS */
  --ossi-gradient-main: linear-gradient(135deg, #FF6A00, #D6298E);
  --ossi-gradient-soft: linear-gradient(135deg, #FFF1EB, #FFE4F2);
  --ossi-gradient-dark: linear-gradient(135deg, #1A334E, #0D1A33);
  
  /* UI THEME COLORS */
  --primary: #FF6A00;
  --primary-dark: #E65F00;
  --primary-light: #FF8A33;
  
  --secondary: #D6298E;
  --accent: #FFB703;
  
  --text-dark: #1A334E;
  --text-medium: #475569;
  --text-light: #64748B;
  
  --bg-main: #F6F7FB;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  
  --border-light: #E5E7EB;
  
  /* SURFACES */
  --card-bg: #FFFFFF;
  --card-border: #E5E7EB;
  
  /* SHADOWS (OSSI navy with opacity) */
  --shadow-sm: 0 1px 3px rgba(26, 51, 78, 0.08);
  --shadow-md: 0 6px 16px rgba(26, 51, 78, 0.12);
  --shadow-lg: 0 18px 40px rgba(26, 51, 78, 0.18);
  
  /* STATUS COLORS */
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #B42318;
  --info: #0284C7;
  
  /* DISABLED STATES */
  --disabled-bg: #E5E7EB;
  --disabled-text: #94A3B8;
  
  /* BORDER RADIUS */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* TRANSITIONS */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Header / footer ortak tema (admin panel & footer.css ile) */
  --ft-primary: #d6218c;
  --ft-primary-light: #e649a4;
  --ft-primary-dark: #b01870;
  --ft-orange: #fc7c3a;
  --ft-text: #111827;
  --ft-text-secondary: #4b5563;
  --ft-text-muted: #6b7280;
  --ft-border: #e5e7eb;
  --ft-border-accent: rgba(214, 33, 140, 0.22);
  --ft-surface: radial-gradient(
      circle at 10% 0%,
      rgba(214, 33, 140, 0.07) 0%,
      transparent 38%
    ),
    linear-gradient(180deg, #faf7fb 0%, #f3f4f6 100%);
  --ft-cta-gradient: linear-gradient(135deg, #fc7c3a 0%, #d6218c 100%);
  --ft-cta-shadow: 0 4px 16px rgba(214, 33, 140, 0.22);
  --ft-focus-ring: 0 0 0 2px #fff, 0 0 0 4px rgba(214, 33, 140, 0.35);
}

img {
  height: auto;
  max-width: 100%;
}

#header-container {
  min-height: 89px;
  flex-shrink: 0;
}

/* ========== RESET & BASE STYLES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Ana içerik alanı büyür; footer sayfa sonunda / kısa sayfada viewport altına yapışır */
.ossi-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* ========== UTILITY CLASSES ========== */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: loading 1.5s infinite;
}

/* ========== HEADER / NAVBAR ========== */
/* Sabit üst bar; aşağı kayınca gizlenir, yukarıda görünür (header.js) */
.navbar {
  --header-hide-duration: 0.42s;
  --header-hide-ease: cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: var(--ft-surface);
  border-bottom: 1px solid var(--ft-border-accent);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(17, 24, 39, 0.06);
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition:
    transform var(--header-hide-duration) var(--header-hide-ease),
    opacity 0.32s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}

/* Eski "fixed header" sarmalayıcı (shopbasket / finalshopping); yerleşim spacer ile */
#header-container.fixed-header {
  position: static;
  width: 100%;
  padding: 0;
  background: none;
  box-shadow: none;
  border: none;
}

/* İçerik, fixed navbar yüksekliği kadar aşağı kayar (JS spacer yüksekliği) */
.header-scroll-spacer {
  display: block;
  width: 100%;
  min-height: 3.25rem;
  flex-shrink: 0;
  pointer-events: none;
}

.navbar.navbar--scroll-hidden {
  transform: translate3d(0, -100%, 0);
  opacity: 0;
  pointer-events: none;
  box-shadow: none;
  transition:
    transform var(--header-hide-duration) var(--header-hide-ease),
    opacity 0.28s ease,
    box-shadow 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .navbar {
    --header-hide-duration: 0.12s;
  }
  .navbar.navbar--scroll-hidden {
    opacity: 0.85;
  }
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  min-width: 0;
}

/* Sadece FAQ: sepetten sonra — seçili dil (TR/EN/RU) */
.navbar-faq-extras {
  display: none;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
body.faq-page .navbar-faq-extras {
  display: flex;
}
.navbar-faq-lang-wrap {
  position: relative;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ft-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.navbar-faq-lang-wrap:hover {
  border-color: var(--ft-border-accent);
  background: linear-gradient(135deg, rgba(252, 124, 58, 0.06) 0%, rgba(214, 33, 140, 0.06) 100%);
}
.navbar-faq-lang-label {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ft-text, #111827);
  pointer-events: none;
  user-select: none;
}
.navbar-faq-lang-floating {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.001;
  cursor: pointer;
  z-index: 2;
  font-size: 1rem;
  appearance: none;
}
/* Hamburger: yalnızca mobil; masaüstünde gizli */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ft-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ft-text);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-hamburger:hover {
  background: linear-gradient(135deg, rgba(252, 124, 58, 0.08) 0%, rgba(214, 33, 140, 0.08) 100%);
  border-color: var(--ft-border-accent);
}

.nav-hamburger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ft-text);
  border-radius: 1px;
  margin: 2px 0;
  transition: var(--transition);
  transform-origin: center;
}

html.nav-drawer--open .nav-hamburger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

html.nav-drawer--open .nav-hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

html.nav-drawer--open .nav-hamburger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  height: 32px;
  max-width: 7.5rem;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
  transition: var(--transition);
  cursor: pointer;
}

.logo:hover {
  transform: translateY(-2px);
}

.navbar-center {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  position: relative;
}

/* Header arama — öneri listesi (header.js); --ft-* tema */
.search-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10001;
  display: none;
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 36px rgba(17, 24, 39, 0.1);
  max-height: min(60vh, 24rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.search-suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
  color: var(--ft-text);
  border-bottom: 1px solid var(--ft-border);
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.search-suggestion-item:last-child {
  border-bottom: none;
}

.search-suggestion-item .search-suggestion-label {
  font-size: 0.9rem;
  line-height: 1.35;
  color: inherit;
}

.search-suggestion-item .search-suggestion-label strong {
  font-weight: 600;
  color: inherit;
}

.search-suggestion-item .search-suggestion-type {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ft-text-muted);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus-within {
  background: rgba(214, 33, 140, 0.07);
  color: var(--ft-primary);
}

.search-suggestion-item:hover .search-suggestion-label,
.search-suggestion-item:focus-within .search-suggestion-label,
.search-suggestion-item:hover .search-suggestion-label strong,
.search-suggestion-item:focus-within .search-suggestion-label strong {
  color: var(--ft-primary);
}

.search-suggestion-item:hover .search-suggestion-type,
.search-suggestion-item:focus-within .search-suggestion-type {
  color: var(--ft-primary);
  opacity: 0.85;
}

.search-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid var(--ft-border);
  border-radius: var(--radius-md);
  background: #fff;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
  color: var(--ft-text);
}

.search-input:focus {
  border-color: var(--ft-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(214, 33, 140, 0.12);
}

.search-input:focus-visible {
  box-shadow: 0 0 0 3px rgba(214, 33, 140, 0.15);
}

.search-input::placeholder {
  color: var(--ft-text-muted);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Çekmece panel başlığı: yalnızca mobilde */
.nav-drawer__header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ft-border);
  flex-shrink: 0;
}

.nav-drawer__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ft-text);
}

.nav-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ft-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ft-text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.nav-drawer__close:hover {
  background: linear-gradient(135deg, rgba(252, 124, 58, 0.1) 0%, rgba(214, 33, 140, 0.1) 100%);
  color: var(--ft-primary);
  border-color: var(--ft-border-accent);
}

.nav-drawer__body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.basket-text {
  display: none;
}

/* Arka plan perdesi: mobil menü açıkken */
.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.45);
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: default;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-btn {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--ft-border);
  background: #fff;
  color: var(--ft-text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--ft-cta-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--ft-cta-shadow);
}

.nav-btn:focus-visible {
  outline: none;
  box-shadow: var(--ft-focus-ring);
}

.basket-btn {
  position: relative;
}

.basket-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--ft-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

/* User Menu Styles */
.user-menu-wrap {
  position: relative;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.nav-user-btn:hover {
  background: rgba(214, 33, 140, 0.06);
  border-color: var(--ft-border-accent);
}

.nav-user-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: var(--ft-cta-gradient);
}

.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ft-text);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Basket Badge ===== */
.basket-btn {
  position: relative;
}

.basket-badge {
  position: absolute;
  top: -6px;
  right: -10px;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  background: var(--ft-primary);
  color: #fff;

  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;

  box-shadow: 0 0 0 2px #fff;
}

.basket-badge.hidden {
  display: none;
}


.nav-user-caret {
  font-size: 10px;
  opacity: 0.7;
  margin-left: 2px;
  color: var(--ft-text-muted);
}

.nav-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(17, 24, 39, 0.1);
  padding: 8px;
  z-index: 1001;
  border: 1px solid var(--ft-border);
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--ft-text);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.dropdown-item:hover {
  background: rgba(214, 33, 140, 0.08);
  color: var(--ft-primary);
}

.dropdown-sep {
  height: 1px;
  background: var(--ft-border);
  margin: 6px 0;
}

.dropdown-item.logout {
  color: var(--error);
  font-weight: 600;
}

.dropdown-item.logout:hover {
  background: #FEF2F2;
}


/* ===== Basket Icon Image ===== */
.basket-icon-btn {
  padding: 0.6rem;
}

.basket-icon-img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* keep hover style consistent */
.nav-btn.basket-icon-btn:hover {
  background: var(--ft-cta-gradient);
}

.nav-btn.basket-icon-btn:hover .basket-icon-img {
  filter: brightness(0) invert(1);
}

/* ===== Favorite Button Icon ===== */
.favorite-btn {
  gap: 6px;
}

.favorite-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* hover behavior consistent with navbar */
.nav-btn.favorite-btn:hover {
  background: var(--ft-cta-gradient);
  color: #fff;
}

.nav-btn.favorite-btn:hover .favorite-icon-img {
  filter: brightness(0) invert(1);
}

/* ----- Masaüstü: geniş arama + tam logo ----- */
@media (min-width: 992px) {
  .navbar {
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }

  .logo {
    height: 42px;
    max-width: none;
  }

  .nav-hamburger {
    display: none !important;
  }

  .navbar-center {
    flex: 1 1 auto;
    max-width: 600px;
    margin: 0 0.5rem 0 1rem;
  }

  .navbar-right {
    position: static;
    width: auto;
    min-height: 0;
    max-height: none;
    height: auto;
    transform: none;
    box-shadow: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    overflow: visible;
  }

  .nav-drawer__header {
    display: none;
  }

  .nav-drawer__body {
    display: flex;
    flex: initial;
    flex-direction: row;
    width: 100%;
    flex-wrap: nowrap;
    align-items: center;
  }

  .nav-drawer-backdrop {
    display: none !important;
  }

  .basket-text {
    display: none !important;
  }

  .nav-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 180px;
    width: max-content;
    max-width: min(100vw, 240px);
    margin-top: 0;
    box-shadow: 0 10px 40px rgba(17, 24, 39, 0.1);
    border: 1px solid var(--ft-border);
  }
}

/* ----- Mobil: logo | arama | hamburger — tek satır; aksiyonlar çekmecede ----- */
@media (max-width: 991.98px) {
  #header-container {
    min-height: 72px;
  }

  .nav-hamburger {
    display: flex;
  }

  .navbar {
    padding: 0.5rem 0.65rem;
    gap: 0.35rem;
    max-height: 4.5rem;
    overflow: visible;
  }

  .navbar .logo,
  .logo-link .logo {
    height: 34px;
    max-height: 34px;
    width: auto;
    max-width: 6.5rem;
    object-fit: contain;
  }

  .navbar-left,
  .logo-link {
    flex-shrink: 0;
    line-height: 0;
  }

  .search-input {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-width: 1px;
  }

  .navbar-right {
    position: fixed;
    top: 0;
    right: 0;
    width: min(17.5rem, 86vw);
    max-width: 100%;
    height: 100dvh;
    min-height: 0;
    margin: 0;
    padding: 0.75rem 1rem 1.5rem;
    background: var(--ft-surface);
    border-left: 1px solid var(--ft-border-accent);
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.75rem;
    box-shadow: -8px 0 32px rgba(17, 24, 39, 0.12);
    z-index: 1002;
    transform: translateX(105%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  html.nav-drawer--open .navbar-right {
    transform: translateX(0);
  }

  .nav-drawer__header {
    display: flex;
  }

  .nav-drawer__body {
    flex-direction: column;
    align-items: stretch;
    flex: 1;
    min-height: 0;
  }

  .nav-drawer__body .nav-btn,
  .nav-drawer__body .user-menu-wrap,
  .nav-drawer__body .basket-btn {
    width: 100%;
    justify-content: center;
  }

  .nav-drawer__body .user-menu-wrap {
    flex-direction: column;
  }

  .nav-drawer__body .nav-user-btn {
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-drawer__body .nav-user-name {
    display: inline !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    text-align: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.9rem;
  }

  .nav-user-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--ft-border);
    margin-top: 0.5rem;
  }

  .basket-text {
    display: inline;
    font-weight: 600;
  }

  .nav-drawer-backdrop {
    display: block;
  }

  html.nav-drawer--open .nav-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  html.nav-drawer--open {
    overflow: hidden;
    touch-action: none;
  }
}

/* ========== CATEGORIES SECTION ========== */
.categories-section {
  padding: 2rem 1.5rem 1.5rem;
}

#mainCategoriesSection {
  min-height: 337px;
}

.categories-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.categories-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: var(--ossi-gradient-main);
  border-radius: 2px;
}

.categories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
}

.categories-scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
}

.categories-scroll::-webkit-scrollbar {
  height: 4px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.category-card {
  min-width: 130px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.75rem;
  transition: var(--transition);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.category-image {
  width: 80px;
  height: 80px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: var(--ossi-gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  overflow: hidden;
  transition: var(--transition);
}

.category-card:hover .category-image {
  transform: scale(1.1);
  background: var(--ossi-gradient-main);
}

.category-card:hover .category-image img {
  filter: brightness(1.1);
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.category-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-medium);
  margin-top: 0.5rem;
  transition: var(--transition);
}

.category-card:hover .category-title {
  color: var(--primary);
  font-weight: 700;
}

/* ===== Category Expand Arrow ===== */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-expand-arrow {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-light);
  transition: transform 0.25s ease, color 0.25s ease;
  line-height: 1;
  pointer-events: none;
}

/* Only show arrow for expandable categories */
.category-card.expandable .category-expand-arrow {
  display: block;
}

/* Rotate arrow when expanded */
.category-card.expanded .category-expand-arrow {
  transform: rotate(180deg); /* ▼ → ▲ */
  color: var(--primary);
}


.cat-nav {
  position: absolute;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg);
  color: var(--text-medium);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 0.9;
}

.cat-nav:hover {
  background: var(--ossi-gradient-main);
  color: white;
  transform: scale(1.1);
  opacity: 1;
}

.cat-nav.left {
  left: -20px;
}

.cat-nav.right {
  right: -20px;
}

/* ========== CATEGORIES — mobil / dar ekran ========== */
@media (max-width: 991.98px) {
  .categories-section {
    padding: 1.1rem 0.7rem 0.9rem;
  }

  #mainCategoriesSection {
    min-height: 199px;
  }

  .categories-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
  }

  .categories-section h2::after {
    width: 48px;
    height: 3px;
    bottom: -5px;
  }

  .categories-wrapper {
    padding: 0.2rem 0;
  }

  .categories-scroll {
    gap: 0.6rem;
    padding: 0.45rem 0.2rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .category-card {
    min-width: 98px;
    max-width: 120px;
    padding: 0.65rem 0.45rem;
    border-radius: var(--radius-md);
  }

  .category-card:hover {
    transform: translateY(-3px);
  }

  .category-image {
    width: 58px;
    height: 58px;
    margin: 0 auto 0.45rem;
    padding: 0.45rem;
  }

  .category-image img {
    border-radius: 50%;
  }

  .category-title {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-top: 0.3rem;
    max-width: 94px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-expand-arrow {
    margin-top: 4px;
    font-size: 12px;
  }

  .subcategories-inline {
    gap: 0.4rem;
    margin-left: 0.45rem;
  }

  .subcategories-inline .category-card {
    min-width: 78px;
    max-width: 100px;
    padding: 0.5rem 0.3rem;
  }

  .subcategories-inline .category-image {
    width: 44px;
    height: 44px;
    padding: 0.3rem;
  }

  .subcategories-inline .category-title {
    font-size: 0.65rem;
    -webkit-line-clamp: 2;
  }
}

/* ========== PRODUCTS SECTION ========== */
.products-section {
  padding: 0 1.5rem 2rem;
}

.products-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.products-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: var(--ossi-gradient-main);
  border-radius: 2px;
}

.products-section h3:not(.shop-rail-card__name) {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.products-section h3:not(.shop-rail-card__name)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 4px;
  background: var(--ossi-gradient-main);
  border-radius: 2px;
}


.engaging-shops-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 16px 8px;
  scrollbar-width: none;
}

.engaging-shops-row::-webkit-scrollbar {
  display: none;
}

/* Shop rail cards — matches ossi-react ShopRail */
.shop-rail-card {
  flex: 0 0 240px;
  width: 240px;
  max-width: 240px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(214, 33, 140, 0.16);
  padding: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  box-sizing: border-box;
}

.shop-rail-card__main {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.shop-rail-card__main:hover .shop-rail-card__name {
  color: #D6218C;
}

.shop-rail-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.shop-rail-card__logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(214, 33, 140, 0.18);
  background: rgba(214, 33, 140, 0.06);
  flex-shrink: 0;
}

.shop-rail-card__logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-rail-card__title-block {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.shop-rail-card__name {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}

.shop-rail-card__name::after {
  display: none !important;
  content: none !important;
}

.shop-rail-card__rating-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
}

.shop-rail-card__star {
  color: #FC7C3A;
  font-size: 11px;
  line-height: 1;
}

.shop-rail-card__rating {
  color: #D6218C;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
}

.shop-rail-card__rating-note {
  color: #6b7280;
  font-size: 9px;
  line-height: 1.2;
  margin-top: 2px;
}

.shop-rail-card__stats-grid {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.shop-rail-card__stat {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 7px 4px;
  text-align: center;
}

.shop-rail-card__stat--followers {
  background: rgba(214, 33, 140, 0.09);
  border-color: rgba(214, 33, 140, 0.16);
}

.shop-rail-card__stat--products {
  background: rgba(252, 124, 58, 0.12);
  border-color: rgba(252, 124, 58, 0.2);
}

.shop-rail-card__stat-value {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shop-rail-card__stat--followers .shop-rail-card__stat-value {
  color: #D6218C;
}

.shop-rail-card__stat--products .shop-rail-card__stat-value {
  color: #FC7C3A;
}

.shop-rail-card__stat-label {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-rail-card__stat--followers .shop-rail-card__stat-label {
  color: #D6218C;
}

.shop-rail-card__stat--products .shop-rail-card__stat-label {
  color: #FC7C3A;
}

.shop-rail-card__follow {
  width: 100%;
  min-height: 32px;
  border: none;
  border-radius: 999px;
  background: #D6218C;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  padding: 7px 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.shop-rail-card__follow:hover {
  transform: scale(0.98);
}

.shop-rail-card__follow.is-following {
  background: rgba(214, 33, 140, 0.12);
  color: #D6218C;
  border: 1px solid rgba(214, 33, 140, 0.24);
}

@media (max-width: 640px) {
  .shop-rail-card {
    flex-basis: 200px;
    width: 200px;
    max-width: 200px;
    padding: 12px;
    gap: 10px;
  }

  .shop-rail-card__logo-wrap {
    width: 42px;
    height: 42px;
  }

  .shop-rail-card__name {
    font-size: 14px;
  }
}

.horizontal-products {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 1rem 0.5rem;
  margin-top: 1.5rem;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  -webkit-overflow-scrolling: touch;
}

#mostFavoritesSection {
  min-height: 623px;
}

.horizontal-products::-webkit-scrollbar {
  height: 4px;
}

.horizontal-products::-webkit-scrollbar-track {
  background: transparent;
}

.horizontal-products::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.products-placeholder {
  background: var(--card-bg);
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  color: var(--text-light);
  text-align: center;
  font-size: 1rem;
  border: 2px dashed var(--border-light);
  margin-top: 2rem;
  transition: var(--transition);
}

.products-placeholder:hover {
  border-color: var(--primary);
  background: var(--bg-light);
  transform: translateY(-2px);
}

/* ===== HORIZONTAL SCROLL WRAPPER ===== */
.horizontal-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.h-nav {
  position: absolute;
  z-index: 5;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.1);
  background: rgba(255,255,255,.95);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  user-select: none;
}

.h-nav.left {
  left: -6px;
}

.h-nav.right {
  right: -6px;
}

.h-nav:active {
  transform: scale(0.96);
}

/* ===== TOP BANNER SLIDER ===== */
.banner-slider {
  position: relative;
  width: 100%;
  margin: 0 0 1.5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.banner-viewport {
  position: relative;
  width: 100%;
}

.banner-viewport::before {
  content: "";
  display: block;
  padding-top: 25%;
}

.banner-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide {
  flex: 0 0 100%;
  position: relative;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-title {
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.banner-slide:hover .banner-title {
  background: var(--ossi-gradient-main);
  color: white;
  transform: translateY(-4px);
}

.banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-medium);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
  opacity: 0.8;
}

.banner-nav:hover {
  background: var(--ossi-gradient-main);
  color: white;
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.banner-nav.prev {
  left: 1.5rem;
}

.banner-nav.next {
  right: 1.5rem;
}

.banner-dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  pointer-events: auto;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.banner-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  opacity: 0;
  transition: var(--transition);
}

.banner-dot:hover::after {
  border: 1px solid var(--primary);
  opacity: 0.5;
}

.banner-dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

.banner-dot.active::after {
  border: 2px solid var(--primary);
  opacity: 0.3;
}

/* ===== 16:4 FULL-WIDTH BANNERS ===== */
.banners-16x4 {
  padding: 0 12px;
  margin: 18px 0;
}

.banners-16x4-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.banner-16x4 {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  cursor: pointer;
}

.banner-16x4::before {
  content: "";
  display: block;
  padding-top: 25%;
}

.banner-16x4 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== AUTH MODAL ========== */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.auth-box {
  max-width: 400px;
  margin: 8vh auto;
  background: var(--card-bg);
  border-radius: 18px;
  padding: 26px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: block;
  width: 72px;
  margin: 0 auto 12px;
}

.auth-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--ossi-navy);
}

.auth-subtitle {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 14px;
}

.auth-input {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  transition: var(--transition);
}

.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.phone-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.phone-prefix {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  font-weight: 600;
  color: var(--ossi-navy);
  min-width: 60px;
  text-align: center;
}

.phone-input {
  flex: 1;
}

.auth-main-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px;
  border-radius: 14px;
  border: none;
  background: var(--ossi-gradient-main);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.auth-main-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.auth-alt-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition);
}

.auth-alt-btn:hover {
  background: var(--bg-light);
  border-color: var(--primary);
}

.auth-google-btn {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-google-btn:hover {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
}

.auth-toggle {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.auth-toggle span {
  color: var(--ossi-orange);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.auth-toggle span:hover {
  text-decoration: underline;
}

.auth-legal {
  font-size: 11px;
  text-align: center;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.4;
}

.auth-legal a {
  color: var(--ossi-orange);
  text-decoration: none;
  font-weight: 500;
}

.auth-legal a:hover {
  text-decoration: underline;
}

.auth-back {
  position: absolute;
  top: 12px;
  left: 14px;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: var(--ossi-orange);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.auth-back:hover {
  transform: translateX(-2px);
}

#otpMeta {
  color: var(--text-light);
  font-size: 12px;
  margin-top: 8px;
}

#resendOtp {
  color: var(--ossi-orange);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

#resendOtp:hover {
  text-decoration: underline;
}

/* ========== FOOTER ========== */
.footer {
  margin-top: 3rem;
  padding: 2.5rem 1.5rem;
  background: var(--ossi-navy-2);
  color: #cbd5e1;
  text-align: center;
  border-top: 1px solid #334155;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.footer-links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: var(--transition);
  transform: translateX(-50%);
}

.footer-links a:hover {
  color: white;
}

.footer-links a:hover::after {
  width: 80%;
}

.footer p {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 1rem;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.categories-section,
.products-section,
.footer {
  animation: fadeIn 0.6s ease-out;
}

.auth-box {
  animation: slideIn 0.4s ease-out;
}

/* ========== MISC COMPONENTS ========== */
.sold-pill {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(255, 69, 0, 0.95);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
}

.sold-pill {
  display: none !important;
}

.show-all-card {
  min-width: 140px;
  height: 100%;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-light);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.show-all-card:hover {
  background: var(--ossi-gradient-soft);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.show-all-inner {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
  #mostFavoritesSection {
    min-height: 555px;
  }

  .navbar {
    padding: 0.55rem 0.6rem;
    gap: 0.3rem;
  }
  
  .logo {
    height: 34px;
    max-width: 6.5rem;
  }
  
  .navbar-center {
    margin: 0;
  }

  .search-input {
    padding: 0.48rem 0.65rem;
    font-size: 0.8rem;
  }
  
  .nav-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8rem;
  }
  
  .nav-user-name {
    max-width: 80px;
    font-size: 12px;
  }

  .nav-drawer__body .nav-user-name {
    max-width: none;
    font-size: 0.9rem;
  }
  
  .categories-section,
  .products-section {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  .cat-nav {
    display: none;
  }
  
  .banner-nav {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }
  
  .banner-nav.prev {
    left: 1rem;
  }
  
  .banner-nav.next {
    right: 1rem;
  }
  
  .banner-title {
    left: 1rem;
    bottom: 1rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.8rem;
  }
  
  .auth-box {
    margin: 4vh auto;
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.45rem 0.45rem;
    gap: 0.25rem;
  }
  
  .navbar-right {
    gap: 0.5rem;
  }
  
  .nav-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  .search-input {
    padding: 0.4rem 0.55rem;
    font-size: 0.75rem;
  }
  
  .logo {
    height: 30px;
    max-width: 5.75rem;
  }

  .nav-hamburger {
    width: 40px;
    height: 40px;
  }
  
  .products-section h2 {
    font-size: 1.35rem;
  }

  .categories-section {
    padding: 0.85rem 0.5rem 0.65rem;
  }

  .categories-section h2 {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
  }

  .categories-scroll {
    gap: 0.5rem;
    padding: 0.35rem 0.1rem;
  }

  .category-card {
    min-width: 86px;
    max-width: 102px;
    padding: 0.5rem 0.32rem;
  }

  .category-image {
    width: 50px;
    height: 50px;
    padding: 0.35rem;
  }

  .category-title {
    font-size: 0.68rem;
    max-width: 80px;
  }

  .subcategories-inline {
    margin-left: 0.35rem;
    gap: 0.3rem;
  }

  .subcategories-inline .category-card {
    min-width: 70px;
    padding: 0.42rem 0.25rem;
  }

  .subcategories-inline .category-image {
    width: 40px;
    height: 40px;
  }

  .subcategories-inline .category-title {
    font-size: 0.6rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 360px) {
  .h-nav {
    display: none;
  }

  .categories-section {
    padding: 0.7rem 0.4rem 0.5rem;
  }

  .category-card {
    min-width: 80px;
    max-width: 96px;
    padding: 0.45rem 0.28rem;
  }

  .category-image {
    width: 46px;
    height: 46px;
  }
}


/* ================= FOCUSED CATEGORY MODE ================= */
/* Hide ONLY top-level categories (not subcategories) */
.categories-section.focused
  > .categories-wrapper
  > .categories-scroll
  > .category-card {
  display: none;
}

/* Keep active parent visible */
.categories-section.focused
  > .categories-wrapper
  > .categories-scroll
  > .category-card.active-parent {
  display: flex;
}

/* Subcategories must stay visible */
.categories-section.focused .subcategories-inline .category-card {
  display: flex;
}


.categories-section.focused .category-card.active-parent {
  display: flex;
}

/* Alt kategori satırı — mobil boyutlar üstteki @media (max-width:991) ile ayarlanır */
.subcategories-inline {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.75rem;
  align-items: center;
}

@media (min-width: 992px) {
  .subcategories-inline {
    gap: 0.75rem;
    margin-left: 1rem;
  }

  .subcategories-inline .category-card {
    min-width: 90px;
    padding: 0.85rem 0.5rem;
    box-shadow: var(--shadow-sm);
  }

  .subcategories-inline .category-image {
    width: 56px;
    height: 56px;
    padding: 0.5rem;
  }

  .subcategories-inline .category-title {
    font-size: 0.78rem;
    margin-top: 0.4rem;
  }
}

/* active parent emphasis */
.category-card.active-parent {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* arrow center under title */
.category-expand-arrow {
  margin-top: 6px;
}

/* === Show All card should match product cards === */
.show-all-card{
  flex: 0 0 240px;              /* same “card width” feel */
  width: 240px;
  min-width: 240px;
  height: auto;
  align-self: stretch;          /* match product card height */
  border-radius: var(--radius-lg);
  border: 2px dashed var(--border-light);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

.show-all-card:hover{
  background: var(--ossi-gradient-soft);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.show-all-inner{
  width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.show-all-inner .sub{
  display: block;
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Important: make horizontal rows stretch children equally */
.horizontal-products{
  align-items: stretch;
}

/* ===== IMPROVED SHOW ALL CARD ===== */
.show-all-card {
  position: relative;
  flex: 0 0 240px;
  min-width: 240px;
  align-self: stretch;
  background: var(--ossi-gradient-main);  /* your brand gradient */
  border: none;                            /* remove dashed border */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;                         /* keep circles inside */
  padding: 0;                                /* reset, inner handles spacing */
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-all-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* inner container – stacks text and icon */
.show-all-inner {
  width: 100%;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  position: relative;
  z-index: 3;               /* above decorative circles */
  color: white;
}

/* text group */
.show-all-text-group {
  display: flex;
  flex-direction: column;
}

.show-all-main {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.show-all-sub {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  margin-top: 4px;
}

/* arrow icon circle */
.show-all-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);    /* translucent white */
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
  border: 2px solid rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}

.show-all-card:hover .show-all-icon {
  background: white;
  color: var(--ossi-orange);                /* arrow turns orange on hover */
  border-color: white;
  transform: scale(1.1) rotate(-10deg);
}

/* decorative circles – using your brand colors with opacity */
.show-all-card .circle {
  position: absolute;
  border-radius: 50%;
  background: currentColor;
  pointer-events: none;                     /* don't block clicks */
  z-index: 1;
}

.circle-1 {
  top: -20px;
  right: -10px;
  width: 120px;
  height: 120px;
  background: var(--ossi-pink);
  opacity: 0.15;
}

.circle-2 {
  bottom: -30px;
  left: -20px;
  width: 160px;
  height: 160px;
  background: var(--ossi-orange);
  opacity: 0.2;
}

.circle-3 {
  top: 30%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: var(--ossi-navy);
  opacity: 0.1;
}

/* optional: tiny extra circles for more playfulness */
.circle-3::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  width: 24px;
  height: 24px;
  background: white;
  opacity: 0.2;
  border-radius: 50%;
}

/* keep the card accessible */
.show-all-card:focus-visible {
  outline: 3px solid var(--ossi-orange);
  outline-offset: 2px;
}
/* ================= LATEST PRODUCTS GRID ================= */

.latest-products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 1400px) {
  .latest-products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .latest-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .latest-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .latest-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Scroll to top (index, show-all) ========== */
.ossi-scroll-top {
  position: fixed;
  z-index: 10050;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--ft-cta-gradient, linear-gradient(135deg, #fc7c3a 0%, #d6218c 100%));
  color: #fff;
  box-shadow: var(--ft-cta-shadow, 0 4px 16px rgba(214, 33, 140, 0.22));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.2s ease;
}

.ossi-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ossi-scroll-top:hover {
  box-shadow: 0 6px 22px rgba(214, 33, 140, 0.32);
  filter: brightness(1.06);
}

.ossi-scroll-top:focus-visible {
  outline: none;
  box-shadow: var(--ft-focus-ring, 0 0 0 2px #fff, 0 0 0 4px rgba(214, 33, 140, 0.35));
}

.ossi-scroll-top__icon {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ossi-scroll-top {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
}
