/* ============================================
   STOKER E-COMMERCE - UNIFIED SYSTEM
   Single CSS File - No Conflicts
   Version: 3.0.0 CLEAN
   ============================================ */

/* RESET & ANTI-OVERFLOW */
*,
*::before,
*::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   -webkit-font-smoothing: antialiased;
   -moz-osx-font-smoothing: grayscale
}

html {
   font-size: 16px;
   scroll-behavior: smooth;
   height: 100%;
   overflow-x: hidden
}

body {
   font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
   background: #0a1628;
   color: #1e293b;
   line-height: 1.6;
   min-height: 100vh;
   overflow-x: hidden;
   max-width: 100vw
}

/* ANTI-OVERFLOW GLOBAL */
img,
video,
iframe,
embed,
object {
   max-width: 100%;
   height: auto
}

table {
   width: 100%;
   table-layout: fixed;
   word-wrap: break-word
}

pre,
code {
   overflow-x: auto;
   max-width: 100%
}

.container,
.section,
div,
section,
article,
main {
   max-width: 100%;
   overflow-x: hidden
}

/* COLORS */
:root {
   --primary: #0B1C2D;
   --primary-light: #1e3a5f;
   --primary-dark: #050d15;
   --accent: #f97316;
   --accent-light: #fb923c;
   --accent-dark: #ea580c;
   --success: #059669;
   --error: #ef4444;
   --warning: #f59e0b;
   --info: #3b82f6;
   --white: #ffffff;
   --black: #000000;
   --gray-50: #f8fafc;
   --gray-100: #f1f5f9;
   --gray-200: #e2e8f0;
   --gray-300: #cbd5e1;
   --gray-400: #94a3b8;
   --gray-500: #64748b;
   --gray-600: #475569;
   --gray-700: #334155;
   --gray-800: #1e293b;
   --gray-900: #0f172a;
   --bg-primary: #ffffff;
   --bg-secondary: #f8fafc;
   --text-primary: #1e293b;
   --text-secondary: #475569;
   --text-muted: #94a3b8;
   --border: #e2e8f0;
   --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
   --radius: 0.5rem;
   --transition: all 0.3s ease;
}

/* LAYOUT */
.container {
   max-width: 1280px;
   margin: 0 auto;
   padding: 0 1rem
}

.main-content {
   background: #fff;
   min-height: 100vh
}

.section {
   padding: 3rem 0
}

/* HEADER */
.header {
   background: #fff;
   border-bottom: 1px solid var(--border);
   position: sticky;
   top: 0;
   z-index: 100;
   box-shadow: var(--shadow)
}

.header-container {
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 1rem;
   gap: 1rem
}

.logo {
   font-size: 1.5rem;
   font-weight: 800;
   color: var(--primary);
   text-decoration: none
}

.nav {
   display: flex;
   gap: 1.5rem;
   align-items: center
}

.nav-link {
   color: var(--text-secondary);
   text-decoration: none;
   font-weight: 500;
   transition: var(--transition)
}

.nav-link:hover {
   color: var(--accent)
}

.nav-link.active {
   color: var(--accent)
}

/* SEARCH */
.search-box {
   display: flex;
   align-items: center;
   background: #fff;
   border: 2px solid var(--border);
   border-radius: var(--radius);
   padding: 0.5rem;
   flex: 1;
   max-width: 600px
}

.search-input {
   flex: 1;
   border: none;
   outline: none;
   padding: 0.5rem;
   font-size: 1rem
}

.search-btn {
   background: var(--accent);
   color: #fff;
   border: none;
   padding: 0.5rem 1rem;
   border-radius: var(--radius);
   cursor: pointer;
   font-weight: 600;
   transition: var(--transition)
}

.search-btn:hover {
   background: var(--accent-dark)
}

/* BUTTONS */
.btn {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.75rem 1.5rem;
   border: none;
   border-radius: var(--radius);
   font-weight: 600;
   cursor: pointer;
   transition: var(--transition);
   text-decoration: none;
   justify-content: center
}

.btn-primary {
   background: var(--accent);
   color: #fff
}

.btn-primary:hover {
   background: var(--accent-dark)
}

.btn-secondary {
   background: var(--gray-100);
   color: var(--text-primary)
}

.btn-secondary:hover {
   background: var(--gray-200)
}

.btn-outline {
   background: transparent;
   border: 2px solid var(--border);
   color: var(--text-primary)
}

.btn-outline:hover {
   border-color: var(--accent);
   color: var(--accent)
}

/* CARDS */
.card {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 1.5rem;
   box-shadow: var(--shadow);
   transition: var(--transition)
}

.card:hover {
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
   transform: translateY(-2px)
}

/* PRODUCTS */
.products-grid {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
   gap: 1.5rem;
   padding: 1rem 0
}

.product-card {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   overflow: hidden;
   transition: var(--transition)
}

.product-card:hover {
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
   transform: translateY(-4px)
}

.product-image {
   width: 100%;
   height: 280px;
   object-fit: cover;
   background: var(--gray-100)
}

.product-info {
   padding: 1rem
}

.product-title {
   font-size: 1rem;
   font-weight: 600;
   color: var(--text-primary);
   margin-bottom: 0.5rem;
   display: -webkit-box;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   -webkit-box-orient: vertical;
   overflow: hidden
}

.product-price {
   font-size: 1.25rem;
   font-weight: 800;
   color: var(--primary);
   margin: 0.5rem 0
}

.product-actions {
   display: flex;
   gap: 0.5rem;
   padding: 1rem
}

/* FORMS */
.form-group {
   margin-bottom: 1rem
}

.form-label {
   display: block;
   margin-bottom: 0.5rem;
   font-weight: 600;
   color: var(--text-primary)
}

.form-input,
.form-select,
.form-textarea {
   width: 100%;
   padding: 0.75rem;
   border: 2px solid var(--border);
   border-radius: var(--radius);
   font-size: 1rem;
   transition: var(--transition)
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
   outline: none;
   border-color: var(--accent);
   box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1)
}

.form-error {
   color: var(--error);
   font-size: 0.875rem;
   margin-top: 0.25rem
}

/* ALERTS */
.alert {
   padding: 1rem;
   border-radius: var(--radius);
   margin-bottom: 1rem
}

.alert-success {
   background: #d1fae5;
   color: #065f46;
   border: 1px solid #6ee7b7
}

.alert-error {
   background: #fee2e2;
   color: #991b1b;
   border: 1px solid #fca5a5
}

.alert-warning {
   background: #fef3c7;
   color: #92400e;
   border: 1px solid #fcd34d
}

.alert-info {
   background: #dbeafe;
   color: #1e40af;
   border: 1px solid #93c5fd
}

/* LOADING */
.loading {
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 3rem
}

.spinner {
   width: 40px;
   height: 40px;
   border: 4px solid var(--gray-200);
   border-top: 4px solid var(--accent);
   border-radius: 50%;
   animation: spin 1s linear infinite
}

@keyframes spin {
   to {
      transform: rotate(360deg)
   }
}

/* MODAL */
.modal {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.5);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1000;
   padding: 1rem
}

.modal-content {
   background: #fff;
   border-radius: var(--radius);
   max-width: 500px;
   width: 100%;
   max-height: 90vh;
   overflow-y: auto;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3)
}

.modal-header {
   padding: 1.5rem;
   border-bottom: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between
}

.modal-title {
   font-size: 1.25rem;
   font-weight: 700
}

.modal-close {
   background: none;
   border: none;
   font-size: 1.5rem;
   cursor: pointer;
   color: var(--text-muted)
}

.modal-body {
   padding: 1.5rem
}

.modal-footer {
   padding: 1.5rem;
   border-top: 1px solid var(--border);
   display: flex;
   gap: 1rem;
   justify-content: flex-end
}

/* FOOTER */
.footer {
   background: var(--primary);
   color: #fff;
   padding: 3rem 0 1rem
}

.footer-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem;
   margin-bottom: 2rem
}

.footer-title {
   font-size: 1.125rem;
   font-weight: 700;
   margin-bottom: 1rem
}

.footer-link {
   color: rgba(255, 255, 255, 0.8);
   text-decoration: none;
   display: block;
   margin-bottom: 0.5rem;
   transition: var(--transition)
}

.footer-link:hover {
   color: #fff
}

.footer-bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   color: rgba(255, 255, 255, 0.6)
}

/* ============================================
   BOTTOM NAVIGATION BAR - Trendyol Style
   ============================================ */
.stoker-bottom-nav {
   position: fixed;
   bottom: 0;
   left: 0;
   right: 0;
   z-index: 9999;
   background: rgba(255, 255, 255, 0.97);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border-top: 1px solid rgba(0, 0, 0, 0.06);
   box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
   padding: 0;
   padding-bottom: env(safe-area-inset-bottom, 0);
   transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stoker-bottom-nav__inner {
   display: flex;
   justify-content: space-around;
   align-items: center;
   max-width: 600px;
   margin: 0 auto;
   padding: 6px 8px 4px;
}

.stoker-bottom-nav__item {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 2px;
   text-decoration: none;
   color: #6b7280;
   padding: 6px 14px 4px;
   border-radius: 12px;
   transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
   position: relative;
   min-width: 56px;
   cursor: pointer;
   -webkit-tap-highlight-color: transparent;
   user-select: none;
}

.stoker-bottom-nav__item:active {
   transform: scale(0.92);
}

/* Active State */
.stoker-bottom-nav__item--active {
   color: var(--accent, #f97316);
}

.stoker-bottom-nav__item--active::before {
   content: '';
   position: absolute;
   top: -1px;
   left: 50%;
   transform: translateX(-50%);
   width: 20px;
   height: 3px;
   background: var(--accent, #f97316);
   border-radius: 0 0 4px 4px;
}

/* Hover (non-active) */
.stoker-bottom-nav__item:hover:not(.stoker-bottom-nav__item--active) {
   color: #374151;
   background: rgba(0, 0, 0, 0.03);
}

/* Icon */
.stoker-bottom-nav__icon {
   width: 22px;
   height: 22px;
   stroke-width: 1.8;
   transition: all 0.25s ease;
   flex-shrink: 0;
}

.stoker-bottom-nav__item--active .stoker-bottom-nav__icon {
   stroke-width: 2.2;
   transform: scale(1.08);
}

/* Label */
.stoker-bottom-nav__label {
   font-size: 10px;
   font-weight: 500;
   letter-spacing: 0.2px;
   line-height: 1;
   white-space: nowrap;
}

.stoker-bottom-nav__item--active .stoker-bottom-nav__label {
   font-weight: 700;
}

/* Badge */
.stoker-bottom-nav__badge {
   position: absolute;
   top: 0;
   right: 4px;
   background: linear-gradient(135deg, #ef4444, #dc2626);
   color: #fff;
   font-size: 9px;
   font-weight: 700;
   min-width: 16px;
   height: 16px;
   border-radius: 10px;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 0 4px;
   box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
   animation: stokerBadgePulse 2s infinite;
   line-height: 1;
}

@keyframes stokerBadgePulse {

   0%,
   100% {
      transform: scale(1)
   }

   50% {
      transform: scale(1.1)
   }
}

/* Desktop: Hide Bottom Nav */
@media(min-width:769px) {
   .stoker-bottom-nav {
      display: none
   }
}

/* Body padding for bottom nav */
@media(max-width:768px) {
   .main-content {
      padding-bottom: 72px
   }

   body {
      padding-bottom: 72px
   }
}

/* RESPONSIVE */
@media(max-width:768px) {
   .header-container {
      flex-wrap: wrap;
      padding: 0.5rem
   }

   .nav {
      display: none
   }

   .search-box {
      order: 3;
      width: 100%;
      margin-top: 0.5rem
   }

   .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.75rem
   }

   .product-image {
      height: 180px
   }

   .product-title {
      font-size: 0.875rem;
      line-height: 1.3
   }

   .product-price {
      font-size: 1rem
   }

   .product-actions {
      padding: 0.5rem;
      gap: 0.25rem
   }

   .stoker-bottom-nav {
      display: block
   }

   .main-content {
      padding-bottom: 72px
   }

   .container {
      padding: 0 0.5rem;
      max-width: 100%
   }

   .card {
      padding: 1rem
   }

   .btn {
      padding: 0.5rem 1rem;
      font-size: 0.875rem
   }

   table {
      font-size: 0.875rem
   }

   table td,
   table th {
      padding: 0.5rem 0.25rem
   }

   .form-input,
   .form-select,
   .form-textarea {
      font-size: 16px
   }

   h1 {
      font-size: 1.5rem
   }

   h2 {
      font-size: 1.25rem
   }

   h3 {
      font-size: 1.125rem
   }
}

@media(max-width:480px) {
   .products-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.5rem
   }

   .product-image {
      height: 160px
   }

   .product-title {
      font-size: 0.8125rem
   }

   .product-price {
      font-size: 0.9375rem
   }

   .container {
      padding: 0 0.25rem
   }

   .btn {
      padding: 0.4rem 0.8rem;
      font-size: 0.8125rem
   }
}

/* UTILITIES */
.text-center {
   text-align: center
}

.text-right {
   text-align: right
}

.mt-1 {
   margin-top: 0.5rem
}

.mt-2 {
   margin-top: 1rem
}

.mt-3 {
   margin-top: 1.5rem
}

.mb-1 {
   margin-bottom: 0.5rem
}

.mb-2 {
   margin-bottom: 1rem
}

.mb-3 {
   margin-bottom: 1.5rem
}

.p-1 {
   padding: 0.5rem
}

.p-2 {
   padding: 1rem
}

.p-3 {
   padding: 1.5rem
}

.hidden {
   display: none
}

.flex {
   display: flex
}

.flex-col {
   flex-direction: column
}

.items-center {
   align-items: center
}

.justify-center {
   justify-content: center
}

.justify-between {
   justify-content: space-between
}

.gap-1 {
   gap: 0.5rem
}

.gap-2 {
   gap: 1rem
}

.gap-3 {
   gap: 1.5rem
}

.w-full {
   width: 100%
}

.h-full {
   height: 100%
}

/* HIDE OLD TRUST BADGES & PREVENT CONFLICTS - !important kaldırıldı */
.trust-badges,
.trust-section,
section[class*="trust"],
div[class*="trust-badge"] {
   display: none;
   visibility: hidden;
   opacity: 0;
   height: 0;
   overflow: hidden;
   position: absolute;
   left: -9999px;
}

/* FORCE CLEAN LAYOUT - NO OVERFLOW */
body,
html {
   overflow-x: hidden;
   max-width: 100vw;
}

#root,
#app,
.wrapper,
.main-wrapper {
   overflow-x: hidden;
   max-width: 100%;
}

/* FIX COMMON OVERFLOW ISSUES */
.row,
.col,
.grid {
   max-width: 100%;
   overflow-x: hidden;
}

img,
video,
iframe {
   max-width: 100%;
   height: auto;
}

table {
   width: 100%;
   overflow-x: auto;
   display: block;
}

pre,
code {
   overflow-x: auto;
   max-width: 100%;
}

/* MOBILE TOUCH TARGETS - 44px MINIMUM */
@media(max-width:768px) {

   button,
   a,
   .btn,
   input[type="submit"],
   .nav-link,
   .mobile-nav-item {
      min-height: 44px;
      min-width: 44px;
      touch-action: manipulation;
      padding: 12px 16px
   }

   .product-card {
      min-height: 44px
   }

   .form-input,
   .form-select {
      min-height: 44px;
      font-size: 16px
   }
}

/* MOBILE-FIRST RESPONSIVE ENHANCEMENTS */
@media(max-width:480px) {
   .container {
      padding: 0 0.75rem
   }

   .section {
      padding: 2rem 0
   }

   .btn {
      font-size: 1rem;
      padding: 12px 20px
   }

   h1 {
      font-size: 1.75rem;
      line-height: 1.2
   }

   h2 {
      font-size: 1.5rem;
      line-height: 1.3
   }

   h3 {
      font-size: 1.25rem;
      line-height: 1.4
   }
}

/* TOUCH OPTIMIZATION */
@media(hover:none) and (pointer:coarse) {

   button,
   a,
   .btn {
      min-height: 48px;
      min-width: 48px
   }

   .nav-link {
      padding: 14px 18px
   }
}


/* ============================================
   INDEX PAGE SPECIFIC STYLES
   ============================================ */

/* Hero Section */
.hero-section {
   background: linear-gradient(135deg, #0B1C2D 0%, #1e3a5f 100%);
   color: #fff;
   padding: 4rem 2rem;
   text-align: center
}

.hero-content {
   max-width: 800px;
   margin: 0 auto
}

.hero-title {
   font-size: 3rem;
   font-weight: 900;
   margin-bottom: 1rem
}

.hero-subtitle {
   font-size: 1.25rem;
   margin-bottom: 2rem;
   opacity: 0.9
}

.hero-buttons {
   display: flex;
   gap: 1rem;
   justify-content: center;
   flex-wrap: wrap
}

/* Categories */
.categories-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
   gap: 1.5rem;
   margin-top: 2rem
}

.category-card {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius);
   padding: 2rem;
   text-align: center;
   text-decoration: none;
   color: inherit;
   transition: var(--transition)
}

.category-card:hover {
   box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
   transform: translateY(-4px)
}

.category-icon {
   font-size: 3rem;
   margin-bottom: 1rem
}

.category-card h3 {
   font-weight: 700;
   margin-bottom: 0.5rem
}

.category-card p {
   color: var(--text-muted);
   font-size: 0.875rem
}

/* Section Header */
.section-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 2rem
}

.section-title {
   font-size: 2rem;
   font-weight: 800;
   margin: 0
}

/* Features */
.features-section {
   background: var(--gray-50)
}

.features-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 2rem
}

.feature-card {
   text-align: center;
   padding: 2rem;
   background: #fff;
   border-radius: var(--radius);
   box-shadow: var(--shadow)
}

.feature-icon {
   width: 80px;
   height: 80px;
   background: var(--accent);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   margin: 0 auto 1rem;
   color: #fff;
   font-size: 2rem
}

.feature-card h3 {
   font-weight: 700;
   margin-bottom: 0.5rem
}

.feature-card p {
   color: var(--text-muted)
}

/* Mobile Responsive */
@media(max-width:768px) {
   .hero-title {
      font-size: 2rem
   }

   .hero-subtitle {
      font-size: 1rem
   }

   .hero-buttons {
      flex-direction: column
   }

   .section-title {
      font-size: 1.5rem
   }

   .categories-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem
   }

   .category-card {
      padding: 1.5rem
   }

   .category-icon {
      font-size: 2rem
   }

   .features-grid {
      grid-template-columns: 1fr
   }

   .feature-icon {
      width: 60px;
      height: 60px;
      font-size: 1.5rem
   }
}