@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  --primary-color: #0B4596;      /* Rich dark blue */
  --primary-hover: #083676;
  --secondary-color: #003399;    /* Royal blue */
  --accent-color: #EF4444;       /* Vivid red for badges */
  --accent-hover: #DC2626;
  --bg-light: #F8F9FA;           /* Page body background */
  --bg-footer: #F4F4F4;          /* Footer background */
  --text-dark: #1E293B;          /* Soft slate dark for text */
  --text-muted: #64748B;         /* Slate muted for secondary text */
  --border-color: #E2E8F0;       /* Border color */
  --white: #FFFFFF;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px rgba(11, 69, 150, 0.15);
  
  --container-width: 1280px;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
}

input:focus, button:focus {
  outline: none;
}

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

/* ==========================================================================
   HEADER SECTION
   ========================================================================== */

/* 1. Top Ticker Bar */
.top-ticker {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker-wrap {
  width: 100%;
  display: flex;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 25s linear infinite;
  padding-left: 100%;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  padding-right: 4rem;
}

.ticker-item::after {
  content: "•";
  margin-left: 2rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* Pause animation on hover for accessibility */
.top-ticker:hover .ticker-content {
  animation-play-state: paused;
}

/* 2. Middle Header */
.middle-header {
  background-color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.middle-header .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 52px;
  width: auto;
  transition: transform var(--transition-normal);
}

.logo-link:hover img {
  transform: scale(1.02);
}

/* Search Bar Area */
.search-area {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.search-form:focus-within {
  box-shadow: var(--shadow-glow);
  border-color: var(--secondary-color);
}

.search-input {
  flex-grow: 1;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-dark);
  background-color: transparent;
}

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

.search-button {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-button:hover {
  background-color: var(--primary-hover);
}

.search-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* User Action Icons */
.user-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 500;
  position: relative;
  cursor: pointer;
  gap: 4px;
  transition: color var(--transition-fast);
}

.action-btn:hover {
  color: var(--primary-color);
}

.action-btn svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  transition: transform var(--transition-fast);
}

.action-btn:hover svg {
  transform: translateY(-2px);
}

/* Specific Badge for Cart/Favs */
.badge-count {
  position: absolute;
  top: -4px;
  right: 2px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
}

/* 3. Bottom Header (Navigation Bar) */
.nav-bar {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Category Menu Toggle Button */
.category-dropdown-wrapper {
  position: relative;
}

.category-toggle-btn {
  background-color: var(--secondary-color);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.category-toggle-btn:hover,
.category-dropdown-wrapper.active .category-toggle-btn {
  background-color: var(--primary-hover);
}

.category-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Mega/Dropdown Menu List */
.category-menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 270px;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 200;
}

.category-dropdown-wrapper:hover .category-menu-list,
.category-dropdown-wrapper.active .category-menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.category-menu-item {
  border-bottom: 1px solid #F1F5F9;
}

.category-menu-item:last-child {
  border-bottom: none;
}

.category-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.category-menu-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 24px;
}

.category-menu-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
}

/* Horizontal Main Navigation Links & Mega Menu */
.main-nav {
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding-left: 20px;
  overflow: visible;
}

.nav-menu-list {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.nav-menu-item {
  position: static; /* Required for full-width dropdown relative to nav-bar container */
}

.nav-item-link {
  display: block;
  padding: 18px 15px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-item-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background-color: var(--white);
  border-radius: 3px 3px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition-fast);
}

.nav-item-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.nav-menu-item:hover .nav-item-link::after {
  transform: scaleX(1);
}

/* Mega Menu Dropdown Container */
.mega-menu-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--border-color);
  border-bottom: 3px solid var(--primary-color);
  padding: 30px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 500;
}

.nav-menu-item:hover .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mega Menu Grid Layout */
.mega-menu-container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  align-items: start;
}

.mega-menu-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 2. Seviye Alt Kategori Başlığı */
.mega-menu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 8px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.mega-menu-title a {
  color: var(--primary-color);
}

.mega-menu-title a:hover {
  color: var(--primary-hover);
}

/* 3. Seviye Linkler */
.mega-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mega-menu-links li {
  margin: 0;
  padding: 0;
}

.mega-menu-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.mega-menu-links a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Customer Support Area */
.support-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 16px 0;
  transition: color var(--transition-fast);
}

.support-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.support-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Hamburger mobile trigger */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 18px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile Sidebar Drawer */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: left var(--transition-normal);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-sidebar.active {
  left: 0;
}

.mobile-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-sidebar-close {
  cursor: pointer;
  color: var(--text-dark);
}

.mobile-sidebar-close svg {
  width: 24px;
  height: 24px;
}

.mobile-sidebar-menu {
  padding: 20px;
}

.mobile-menu-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.mobile-menu-item {
  border-bottom: 1px solid #F1F5F9;
}

.mobile-menu-link {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
}

.mobile-menu-link:hover {
  color: var(--primary-color);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   MAIN CONTENT AREA
   ========================================================================== */
main {
  flex-grow: 1;
  padding: 40px 0;
}

.home-hero-placeholder {
  background-color: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero-placeholder::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.placeholder-icon {
  margin: 0 auto 24px;
  color: var(--primary-color);
  background-color: rgba(11, 69, 150, 0.05);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.placeholder-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.home-hero-placeholder h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.home-hero-placeholder p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
}

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

.btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Brand Values / Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.badge-item {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
}

.badge-item-icon {
  color: var(--primary-color);
  background-color: rgba(11, 69, 150, 0.05);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-item-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
}

.badge-item-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.badge-item-info p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
footer {
  background-color: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding-top: 50px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 35px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* Column 1 Specific (Contacts & Logo) */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-logo img {
  height: 45px;
  width: auto;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary-color);
  stroke-width: 2;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-item a:hover {
  color: var(--primary-color);
}

/* Column 2 & 3 Specific (Links lists) */
.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item {
  font-size: 14px;
}

.footer-link-item a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link-item a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

.footer-link-item a::before {
  content: "›";
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.6;
}

/* ETBİS QR Box */
.etbis-container {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.etbis-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
}

.etbis-box {
  width: 100px;
  height: 100px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.etbis-box:hover {
  transform: scale(1.05);
}

.etbis-placeholder-qr {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border-color);
  color: var(--text-muted);
  font-size: 8px;
  text-align: center;
  padding: 4px;
}

.etbis-placeholder-qr svg {
  width: 32px;
  height: 32px;
  stroke: var(--text-muted);
  stroke-width: 1.5;
  margin-bottom: 4px;
}

/* Bottom Bar Copyright */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  background-color: var(--white);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.copyright-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-link {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.footer-bottom-link:hover {
  color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Up to 1024px: Adapt header structure */
@screen-tablet-large {
  /* We define rules directly below instead of @media screen due to standard CSS */
}

@media (max-width: 1024px) {
  .middle-header .container {
    gap: 15px;
  }
  
  .search-area {
    max-width: 100%;
  }
  .nav-bar {
    display: none; /* Hide nav-bar on mobile/tablet */
  }
  
  .main-nav {
    display: none; /* Hide desktop main links */
  }
  

  .support-link {
    display: none; /* Hide desktop support */
  }
  
  .mobile-nav-toggle {
    display: flex; /* Show hamburger button on mobile header */
  }
  
  .category-dropdown-wrapper {
    display: none; /* Hide hover category button on mobile header bar */
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .trust-badges {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Up to 768px: Mobile responsive styles */
@media (max-width: 768px) {
  .middle-header .container {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }
  
  /* Push search bar to full-width row below logo and actions */
  .search-area {
    grid-column: 1 / span 2;
    order: 3;
  }
  
  .logo-link img {
    height: 40px;
  }
  
  .user-actions {
    gap: 15px;
  }
  
  .action-btn span {
    display: none; /* Hide action labels on small screens, keep icons */
  }
  
  .nav-bar {
    padding: 10px 0;
  }
  
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
  
  .home-hero-placeholder {
    padding: 50px 20px;
  }
  
  .home-hero-placeholder h1 {
    font-size: 22px;
  }
}

/* ==========================================================================
   HERO SECTION (VERTICAL CATEGORIES & SLIDER)
   ========================================================================== */
.hero-section {
  padding: 20px 0 30px;
}

/* ==========================================================================
   QUICK CATEGORIES – YUVARLAK HIZLI ERİŞİM ŞERIDI
   ========================================================================== */
.quick-categories-section {
  background-color: var(--white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.quick-categories-track {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  flex: 1;
  min-width: 0;
  transition: transform 0.25s ease;
}

.quick-cat-item:hover {
  transform: translateY(-4px);
}

.quick-cat-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid #DBEAFE;
  background-color: #F8FAFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  padding: 8px;
  flex-shrink: 0;
}

.quick-cat-item:hover .quick-cat-circle {
  border-color: var(--primary-color);
  box-shadow: 0 4px 14px rgba(26, 86, 219, 0.18);
}

.quick-cat-circle svg {
  width: 100%;
  height: 100%;
}

.quick-cat-item span {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: #374151;
  line-height: 1.3;
  display: block;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-cat-item:hover span {
  color: var(--primary-color);
}

/* Mobil: Yatay kaydırma (parmakla sürükle) */
@media (max-width: 768px) {
  .quick-categories-track {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quick-categories-track::-webkit-scrollbar {
    display: none;
  }

  .quick-cat-item {
    flex: 0 0 auto;
    min-width: 72px;
    white-space: normal;
  }

  .quick-cat-circle {
    width: 68px;
    height: 68px;
  }

  .quick-cat-item span {
    font-size: 10px;
    max-width: 72px;
  }
}



.hero-grid {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 30px;
  align-items: stretch;
}

/* Vertical Category Menu */
.vertical-categories {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}

.vertical-categories-header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px 8px 0 0;
}

.vertical-categories-header svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2.5;
}

.vertical-categories-list {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vertical-categories-item {
  border-bottom: 1px solid #F1F5F9;
  position: static; /* Allows the flyout panel to align relative to the entire .vertical-categories list */
}

.vertical-categories-item:last-child {
  border-bottom: none;
}

.vertical-categories-item:last-child .vertical-categories-link {
  border-radius: 0 0 8px 8px;
}

.vertical-categories-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.vertical-categories-link:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
  padding-left: 25px;
}

.vertical-categories-link svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.vertical-categories-link:hover svg {
  stroke: var(--primary-color);
  transform: translateX(3px);
}

/* Sağa Açılan Flyout Panel */
.vertical-megamenu-wrapper {
  position: absolute;
  top: 0;
  left: 100%;
  width: 750px;
  height: 100%;
  min-height: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 8px 8px 0;
  padding: 25px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 500;
  box-sizing: border-box;
  overflow-y: auto;
}

.vertical-categories-item:hover .vertical-megamenu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.vertical-megamenu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}

.vertical-megamenu-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 2. Seviye Dikey Kategori Başlığı */
.vertical-megamenu-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 6px;
  margin: 0 0 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.vertical-megamenu-title a {
  color: var(--primary-color);
}

.vertical-megamenu-title a:hover {
  color: var(--primary-hover);
}

/* 3. Seviye Linkler */
.vertical-megamenu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vertical-megamenu-links li {
  margin: 0;
  padding: 0;
}

.vertical-megamenu-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-dark);
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.vertical-megamenu-links a:hover {
  color: var(--primary-color);
  transform: translateX(4px);
}

/* Slider Style */
.hero-slider-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 400px;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
  padding: 40px 60px;
  color: var(--white);
  box-sizing: border-box;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

/* Slide 1 - Kraf Büro Klasörü */
.slide-kraf {
  background: linear-gradient(135deg, #0A2D75 0%, #1E4BA7 50%, #0F3B8E 100%);
}

/* Slide 2 - Kırtasiye Kampanyası */
.slide-kirtasiye {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}

.slide-content {
  max-width: 55%;
  z-index: 2;
}

.slide-badge {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
}

.slide-title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slide-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 25px;
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--white);
  color: var(--primary-color);
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.slide-btn:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.slide-image-container {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  width: 35%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.slide-image-container svg {
  max-height: 100%;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider-dot.active {
  background-color: var(--white);
  width: 24px;
  border-radius: 5px;
}

/* ==========================================================================
   PROMOTIONAL CARDS (KAMPANYA BANNER GRID'İ)
   ========================================================================== */
.promo-section {
  padding: 20px 0;
}

.promo-grid-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Wide Promotional Card */
.promo-wide-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  padding: 35px 40px;
  min-height: 200px;
  display: flex;
  align-items: center;
  color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.promo-wide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promo-wide-kraf {
  background: linear-gradient(135deg, #E65100 0%, #FF9800 100%);
}

.promo-wide-jacobs {
  background: linear-gradient(135deg, #1B5E20 0%, #4CAF50 100%);
}

.promo-wide-content {
  max-width: 60%;
  z-index: 2;
}

.promo-wide-badge {
  background-color: rgba(255, 255, 255, 0.2);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}

.promo-wide-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
}

.promo-wide-price {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
}

.promo-wide-price span {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
}

.promo-wide-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--white);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.promo-wide-btn:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.promo-wide-img {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 30%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.promo-wide-img svg {
  max-height: 100%;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}

/* Bottom Grid - 3 Horizontal items */
.promo-grid-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo-small-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.promo-small-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.promo-small-img-wrap {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background-color: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.promo-small-img-wrap svg {
  max-height: 70%;
  max-width: 70%;
}

.promo-small-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.promo-small-info {
  display: flex;
  flex-direction: column;
}

.promo-small-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.promo-small-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}

.promo-small-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

.promo-small-tax {
  font-size: 10px;
  color: var(--text-muted);
}

.promo-small-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--bg-light);
  color: var(--primary-color);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.promo-small-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

/* ==========================================================================
   PRODUCT SHOWCASE (ÖNE ÇIKAN ÜRÜNLER GRID'İ)
   ========================================================================== */
.showcase-section {
  padding: 30px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-color);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

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

/* Product Card */
.product-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

/* Favorite button */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.fav-btn:hover {
  color: var(--accent-color);
  transform: scale(1.1);
  background-color: var(--white);
}

.fav-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.fav-btn.active svg {
  fill: var(--accent-color);
  stroke: var(--accent-color);
}

/* Product image */
.product-card-img-wrap {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  margin-bottom: 15px;
  position: relative;
}

.product-card-img-wrap svg,
.product-card-img-wrap img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.product-card:hover .product-card-img-wrap svg,
.product-card:hover .product-card-img-wrap img {
  transform: scale(1.05);
}

/* Product details */
.product-card-meta {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  text-transform: uppercase;
}

.product-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 12px;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-title:hover {
  color: var(--primary-color);
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 15px;
}

.product-card-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}

.product-card-tax-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Quantity and Action Row */
.product-card-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.product-card-actions .qty-selector {
  width: 90px !important;
  max-width: 90px !important;
  flex-shrink: 0;
}

.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  height: 38px;
}

.qty-btn {
  width: 26px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #F8F9FA;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  user-select: none;
  border: none !important;
  outline: none !important;
}

.qty-btn:hover {
  background-color: #E2E8F0;
}

.qty-input {
  width: 30px;
  height: 100%;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  border-top: none !important;
  border-bottom: none !important;
  border-left: 1px solid var(--border-color) !important;
  border-right: 1px solid var(--border-color) !important;
  background-color: var(--white);
  outline: none !important;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-add-to-cart {
  flex-grow: 1;
  height: 38px;
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  font-size: 11px !important;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 6px !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-transform: uppercase;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-add-to-cart:hover {
  background-color: var(--primary-hover) !important;
}

.btn-add-to-cart:active {
  transform: scale(0.97);
}

.btn-disabled {
  width: 100%;
  height: 38px;
  background-color: #E2E8F0 !important;
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 700;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed !important;
  text-transform: uppercase;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-add-to-cart svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* Teklif Al (WhatsApp) ve 0 Fiyat Stilleri */
.product-card-price.zero-price,
.price-value.zero-price {
  color: var(--accent-color);
  font-size: 17px;
  font-weight: 700;
}

.btn-get-quote {
  flex-grow: 1;
  height: 38px;
  background-color: #25D366;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-transform: uppercase;
  border: none;
  box-shadow: 0 2px 4px rgba(37, 211, 102, 0.2);
}

.btn-get-quote:hover {
  background-color: #20ba5a;
  color: var(--white);
  box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.btn-get-quote:active {
  transform: scale(0.97);
}

.btn-get-quote svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Detay Sayfası Teklif Butonu */
.btn-get-quote.detail-quote-btn {
  height: 48px;
  font-size: 14px;
  padding: 0 35px;
  border-radius: 8px;
  flex-grow: 0;
  width: 100%;
  max-width: 320px;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES FOR NEW SECTIONS
   ========================================================================== */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .vertical-categories {
    display: none; /* Hide vertical menu on tablet/mobile */
  }
  
  .promo-grid-bottom {
    grid-template-columns: 1fr 1fr;
  }
  
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .slide-content {
    max-width: 70%;
  }
}

@media (max-width: 768px) {
  .slide {
    padding: 30px 40px;
  }
  
  .slide-title {
    font-size: 28px;
  }
  
  .slide-image-container {
    display: none; /* Hide floating slide images on mobile */
  }
  
  .slide-content {
    max-width: 100%;
  }
  
  .promo-grid-top {
    grid-template-columns: 1fr;
  }
  
  .promo-wide-card {
    padding: 25px;
  }
  
  .promo-wide-title {
    font-size: 18px;
  }
  
  .promo-wide-img {
    display: none; /* Hide images on small wide cards */
  }
  
  .promo-wide-content {
    max-width: 100%;
  }
  
  .promo-grid-bottom {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .product-card {
    padding: 10px;
  }
  
  .product-card-img-wrap {
    height: 120px;
  }
  
  .product-card-title {
    font-size: 12px;
    min-height: 34px;
  }
  
  .product-card-price {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns is best for mobile grid product display */
  }
  
  /* Row alignment forced even on small mobile views to prevent wrapping */
  .product-card-actions {
    flex-direction: row !important;
    align-items: center !important;
  }
}

/* ==========================================================================
   PRODUCT DETAIL PAGE STYLES
   ========================================================================== */
.product-detail-page {
  padding: 30px 0 60px;
  background-color: var(--bg-light);
}

/* Breadcrumb Navigation */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

.breadcrumb span {
  color: var(--text-dark);
  font-weight: 500;
}

/* Product Detail Grid Layout */
.product-detail-grid {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Column: Product Image Box */
.product-detail-media {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img-wrap {
  width: 100%;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-img-wrap svg,
.detail-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

/* Right Column: Product Information Box */
.product-detail-info {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SKU & Brand meta lines */
.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
}

.meta-item {
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item strong {
  color: var(--text-dark);
}

/* Product Title */
.detail-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
  margin: 0;
}

/* Stock Status Badges */
.detail-stock-status {
  display: flex;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
}

.status-badge.instock {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.status-badge.lowstock {
  background-color: #FFEDD5;
  color: #9A3412;
  border: 1px solid #FED7AA;
}

.status-badge.outofstock {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* Price Box */
.detail-price-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
}

.price-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.price-vat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
}

.price-vat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Description Text */
.detail-desc {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.detail-desc h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.detail-desc p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Purchase Actions Row */
.detail-purchase-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
}

.detail-qty {
  height: 48px;
}

.detail-qty .qty-btn {
  width: 36px;
  font-size: 18px;
}

.detail-qty .qty-input {
  width: 44px;
  font-size: 15px;
}

.detail-add-btn {
  flex-grow: 1;
  height: 48px;
  font-size: 14px;
  border-radius: 6px;
  gap: 8px;
  box-shadow: var(--shadow-md);
  border: none;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.detail-add-btn:hover {
  background-color: var(--primary-hover);
}

.disabled-btn {
  background-color: #94A3B8 !important;
  color: var(--white);
  cursor: not-allowed;
  box-shadow: none;
}

/* Product Not Found State */
.product-not-found {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 500px;
  margin: 40px auto;
}

.not-found-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.product-not-found h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.product-not-found p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.btn-back-home {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 6px;
  transition: background-color var(--transition-fast);
}

.btn-back-home:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   PRODUCT DETAIL PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .detail-img-wrap {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .product-detail-info {
    padding: 25px;
  }
  
  .detail-title {
    font-size: 22px;
  }
  
  .price-value {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .detail-purchase-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .detail-qty {
    width: 100%;
    justify-content: space-between;
  }
  
  .detail-qty .qty-btn {
    flex-grow: 1;
  }
  
  .detail-qty .qty-input {
    flex-grow: 2;
  }
}

/* ==========================================================================
   CART PAGE STYLES
   ========================================================================== */
.cart-page-wrapper {
  padding: 40px 0 80px;
  background-color: var(--bg-light);
}

.cart-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-page-title svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

/* Cart Grid Layout */
.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 30px;
  align-items: start;
}

.cart-left-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Cart Items Card Row */
.cart-items-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item-row {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: grid;
  grid-template-columns: 80px 1fr 130px 180px 40px;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: opacity 0.3s, transform 0.3s, box-shadow var(--transition-fast);
}

.cart-item-row:hover {
  box-shadow: var(--shadow-md);
}

.cart-item-img {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 5px;
}

.cart-item-img img,
.cart-item-img svg {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-item-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.cart-item-sku {
  font-size: 12px;
  color: var(--text-muted);
}

/* Quantity Wrap */
.cart-item-qty-wrap {
  display: flex;
  justify-content: center;
}

.cart-item-qty-wrap .qty-selector {
  border-color: var(--border-color);
}

/* Price Wrap */
.cart-item-price-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cart-item-unit-price {
  font-size: 13px;
  color: var(--text-muted);
}

.cart-item-unit-price small {
  font-size: 11px;
}

.cart-item-subtotal {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}

/* Remove button */
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.cart-item-remove:hover {
  background-color: #FEE2E2;
  color: var(--danger);
}

.cart-item-remove svg {
  width: 20px;
  height: 20px;
}

/* Bottom Action Row */
.cart-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  border-radius: 6px;
  background-color: transparent;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-continue:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-clear-cart {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-clear-cart:hover {
  background-color: #F1F5F9;
  color: var(--text-dark);
}

/* Right Summary sticky card */
.order-summary-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 30px;
}

.order-summary-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-top: 0;
  margin-bottom: 20px;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-row.grand-total {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 5px;
  color: var(--text-dark);
  font-weight: 800;
  font-size: 16px;
}

.summary-row.grand-total span:last-child {
  font-size: 22px;
  color: var(--primary-color);
}

.summary-shipping-info {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
  font-size: 12px;
  padding: 12px;
  border-radius: 6px;
  line-height: 1.5;
}

.summary-shipping-info strong {
  color: var(--primary-color);
}

.btn-checkout {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  background-color: #10B981;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border: none;
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast);
}

.btn-checkout:hover {
  background-color: #059669;
}

.btn-checkout svg {
  width: 18px;
  height: 18px;
}

/* Empty Cart View */
.empty-cart-view {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  max-width: 600px;
  margin: 40px auto;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.empty-cart-view h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.empty-cart-view p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 25px;
  line-height: 1.6;
}

.btn-start-shopping {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  padding: 12px 35px;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color var(--transition-fast);
}

.btn-start-shopping:hover {
  background-color: var(--primary-hover);
}

/* ==========================================================================
   CART PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .cart-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .cart-item-row {
    grid-template-columns: 80px 1fr 1fr;
    gap: 15px 20px;
    padding: 15px;
  }
  
  .cart-item-qty-wrap {
    grid-column: 2;
    justify-content: flex-start;
  }
  
  .cart-item-price-wrap {
    grid-column: 3;
    align-items: flex-end;
  }
  
  .cart-item-remove {
    grid-column: 3;
    grid-row: 1;
    align-self: flex-start;
  }
}

@media (max-width: 480px) {
  .cart-item-row {
    grid-template-columns: 60px 1fr;
  }
  
  .cart-item-img {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-qty-wrap {
    grid-column: 1 / span 2;
  }
  
  .cart-item-price-wrap {
    grid-column: 1 / span 2;
    align-items: flex-start;
  }
  
  .cart-item-remove {
    grid-column: 2;
    grid-row: 1;
  }
  
  .cart-actions-row {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }
  
  .btn-continue,
  .btn-clear-cart {
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   CHECKOUT PAGE STYLES
   ========================================================================== */
.checkout-page-wrapper {
  padding: 40px 0 80px;
  background-color: var(--bg-light);
}

.checkout-page-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-page-title svg {
  width: 32px;
  height: 32px;
  color: var(--primary-color);
}

/* Grid Layout */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  align-items: start;
}

.checkout-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 25px;
}

.checkout-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
  margin-top: 0;
  margin-bottom: 25px;
}

/* Form Styles */
#checkoutForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: #F8F9FA;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group textarea {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.btn-proceed-payment {
  height: 52px;
  border-radius: 6px;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-fast);
}

.btn-proceed-payment:hover {
  background-color: var(--primary-hover);
}

.btn-proceed-payment svg {
  width: 20px;
  height: 20px;
}

.btn-proceed-payment:disabled {
  background-color: #A0AEC0;
  cursor: not-allowed;
}

/* Summary Items List */
.checkout-summary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-muted);
}

.checkout-summary-item .item-name {
  max-width: 75%;
}

.checkout-summary-item .item-name strong {
  color: var(--text-dark);
}

.checkout-summary-item .item-price {
  font-weight: 600;
  color: var(--text-dark);
}

.checkout-summary-totals {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-total-row.grand-total {
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: 5px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.summary-total-row.grand-total span:last-child {
  font-size: 22px;
  color: var(--primary-color);
}

/* PayTR Loading State */
.paytr-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 15px;
}

.paytr-loading p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   CHECKOUT PAGE RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .checkout-card {
    padding: 20px;
  }
}

/* ==========================================================================
   CATEGORY & SEARCH PAGE STYLES
   ========================================================================== */
.category-page-wrapper {
  padding: 30px 0 80px;
  background-color: var(--bg-light);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* Layout */
.category-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  width: 100%;
}

.products-content {
  flex-grow: 1;
  min-width: 0;
}

/* Sidebar Filters */
.filter-sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.filter-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Category Navigation List */
.filter-categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-categories-list li a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.filter-categories-list li a:hover {
  color: var(--primary-color);
  background-color: #F0F4FC;
}

.filter-categories-list li.active a {
  color: var(--white);
  background-color: var(--primary-color);
  font-weight: 700;
}

.filter-categories-list li.back-to-parent a {
  font-weight: 700;
  color: var(--primary-color);
}

/* Checkbox Groups */
.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Custom Scrollbar for Filters */
.filter-checkbox-group::-webkit-scrollbar {
  width: 5px;
}
.filter-checkbox-group::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.filter-checkbox-group::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dark);
  cursor: pointer;
}

.filter-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  cursor: pointer;
}

/* Price Range Inputs */
.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.filter-price-inputs input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  text-align: center;
  background-color: #F8F9FA;
}

.filter-price-inputs input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: var(--white);
}

.price-separator {
  color: var(--text-muted);
}

.btn-apply-filter {
  width: 100%;
  height: 38px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.btn-apply-filter:hover {
  background-color: var(--primary-hover);
}

/* Header Bar & Sorting */
.category-header-bar {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.product-count-info {
  font-size: 14px;
  color: var(--text-muted);
}

.product-count-info strong {
  color: var(--text-dark);
}

.product-sorting {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-sorting label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.product-sorting select {
  height: 36px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-dark);
  background-color: #F8F9FA;
  cursor: pointer;
}

.product-sorting select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Empty States */
.products-empty-state {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.products-empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.products-empty-state h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.products-empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* Pagination */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}

.page-btn {
  height: 40px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--white);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.page-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: #F0F4FC;
}

.page-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   CATEGORY & SEARCH RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .category-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-sidebar {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .category-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .product-sorting {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   AJAX SEARCH AUTOCOMPLETE DROPDOWN
   ========================================================================== */
.search-autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 99999;
  margin-top: 5px;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.search-autocomplete-dropdown.active {
  display: block;
}

.search-autocomplete-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-autocomplete-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-autocomplete-dropdown::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--bg-light);
  transition: background-color var(--transition-fast);
  color: var(--text-dark);
}

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

.autocomplete-item:hover {
  background-color: var(--bg-light);
  color: var(--primary-color);
}

.autocomplete-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  background-color: var(--white);
  flex-shrink: 0;
}

.autocomplete-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.autocomplete-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-item:hover .autocomplete-name {
  color: var(--primary-color);
}

.autocomplete-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.autocomplete-price {
  font-weight: 700;
  color: var(--accent-color);
}

.autocomplete-no-results {
  padding: 15px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   STATIC CORPORATE PAGES (page.php)
   ========================================================================== */
.static-page-wrapper {
  padding: 40px 0 80px;
  background-color: var(--bg-light);
  min-height: 60vh;
}

.static-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.static-page-breadcrumb a {
  color: var(--primary-color);
  font-weight: 500;
}

.static-page-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  font-size: 16px;
  opacity: 0.5;
}

.static-page-card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 50px;
  box-shadow: var(--shadow-sm);
}

.static-page-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.static-page-content {
  font-size: 15px;
  line-height: 1.85;
  color: #374151;
}

.static-page-content h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 12px;
}

.static-page-content p {
  margin-bottom: 14px;
}

.static-page-content ul,
.static-page-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.static-page-content li {
  color: #374151;
}

.static-page-content a {
  color: var(--primary-color);
  font-weight: 600;
}

.static-page-content a:hover {
  text-decoration: underline;
}

/* Contact list inside static pages */
.page-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-contact-list li {
  font-size: 15px;
  color: var(--text-muted);
}

.page-contact-list a {
  color: var(--primary-color);
  font-weight: 600;
}

/* WhatsApp CTA button inside page.php */
.page-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #25D366;
  color: var(--white) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  margin-top: 8px;
}

.page-wa-btn:hover {
  background-color: #1DAA54;
  transform: translateY(-2px);
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .static-page-card {
    padding: 24px 20px;
  }
  .static-page-title {
    font-size: 22px;
  }
  .static-page-content {
    font-size: 14px;
  }
}

/* ==========================================================================
   B2B AUTHENTICATION PAGES (GİRİŞ YAP & ÜYE OL) - SILENT LUXURY STYLE
   ========================================================================== */
.auth-page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  background-color: var(--bg-light);
  min-height: 70vh;
}

.auth-card {
  width: 100%;
  max-width: 640px;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.auth-card:hover {
  box-shadow: var(--shadow-md);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 30px;
  gap: 20px;
}

.auth-tab-btn {
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.auth-tab-btn:hover {
  color: var(--primary-color);
}

.auth-tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

.auth-alert-success {
  background-color: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.auth-alert-error {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 600px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
  .auth-card {
    padding: 24px 20px;
  }
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="tel"],
.auth-field input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-dark);
  background-color: #FCFDFE;
  transition: all var(--transition-fast);
}

.auth-field input:focus {
  border-color: var(--primary-color);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(11, 69, 150, 0.08);
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 44px !important;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color var(--transition-fast);
}

.toggle-pw:hover {
  color: var(--text-dark);
}

.auth-submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  margin-top: 10px;
}

.auth-submit-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.auth-switch-text {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}

.auth-switch-text a {
  color: var(--primary-color);
  font-weight: 600;
}

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

/* ==========================================================================
   FAVORITES PAGE (FAVORİLERİM)
   ========================================================================== */
.fav-page-wrapper {
  padding: 60px 0 100px;
  background-color: var(--bg-light);
  min-height: 65vh;
}

.fav-header {
  margin-bottom: 35px;
}

.fav-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.fav-title svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-color);
  fill: rgba(11, 69, 150, 0.05);
}

.fav-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.fav-subtitle a {
  color: var(--primary-color);
  font-weight: 700;
}

.fav-subtitle a:hover {
  text-decoration: underline;
}

.fav-empty-state {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fav-empty-state svg {
  width: 64px;
  height: 64px;
  stroke: #CBD5E1;
  margin-bottom: 20px;
}

.fav-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.fav-empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.fav-btn-shop {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  transition: all var(--transition-fast);
}

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

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.fav-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fav-table th, 
.fav-table td {
  padding: 16px 20px;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-color);
}

.fav-table th {
  background-color: #F8FAFC;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fav-table tr:last-child td {
  border-bottom: none;
}

.fav-td-img {
  width: 100px;
}

.fav-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: transform var(--transition-fast);
}

.fav-img:hover {
  transform: scale(1.05);
}

.fav-img-placeholder {
  width: 70px;
  height: 70px;
  background-color: #F1F5F9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-muted);
}

.fav-td-name {
  min-width: 250px;
}

.fav-prod-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  display: block;
}

.fav-prod-name:hover {
  color: var(--primary-color);
}

.fav-prod-brand {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-color);
  background-color: rgba(11, 69, 150, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  text-transform: uppercase;
}

.fav-td-sku {
  font-size: 13px;
}

.fav-td-price {
  font-size: 15px;
}

.price-zero {
  color: var(--text-muted);
  font-weight: 600;
}

.price-val {
  color: var(--text-dark);
  font-weight: 700;
}

.fav-td-action {
  width: 180px;
}

.fav-btn-quote,
.fav-btn-cart,
.fav-btn-disabled {
  width: 100%;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fav-btn-quote {
  background-color: #25D366;
  color: var(--white);
}

.fav-btn-quote:hover {
  background-color: #1DAA54;
}

.fav-btn-cart {
  background-color: var(--primary-color);
  color: var(--white);
}

.fav-btn-cart:hover {
  background-color: var(--primary-hover);
}

.fav-btn-cart svg {
  width: 16px;
  height: 16px;
}

.fav-btn-disabled {
  background-color: #E2E8F0;
  color: var(--text-muted);
  cursor: not-allowed;
}

.fav-td-remove {
  width: 60px;
  text-align: center;
}

.fav-remove-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #94A3B8;
  padding: 8px;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.fav-remove-icon-btn:hover {
  color: var(--accent-color);
  background-color: rgba(239, 68, 68, 0.05);
}

.fav-remove-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* Success notification style on add */
.success-added {
  background-color: #10B981 !important;
  color: var(--white) !important;
}

/* ==========================================================================
   COMPARE PRODUCTS PAGE (KARŞILAŞTIR)
   ========================================================================== */
.compare-page-wrapper {
  padding: 60px 0 100px;
  background-color: var(--bg-light);
  min-height: 65vh;
}

.compare-header {
  margin-bottom: 35px;
}

.compare-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.compare-title svg {
  width: 32px;
  height: 32px;
  stroke: var(--primary-color);
}

.compare-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.compare-empty-state {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.compare-empty-state svg {
  width: 64px;
  height: 64px;
  stroke: #CBD5E1;
  margin-bottom: 20px;
}

.compare-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.compare-empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.compare-btn-shop {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  transition: all var(--transition-fast);
}

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

.compare-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 20px;
  border: 1px solid var(--border-color);
  vertical-align: middle;
  text-align: center;
}

.compare-th-label,
.compare-label {
  width: 200px;
  background-color: #F8FAFC;
  font-weight: 700;
  text-align: left;
  color: var(--text-dark);
  font-size: 14px;
  border-left: none;
}

.compare-th-item {
  position: relative;
  background-color: #FFF;
}

.compare-remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: #F1F5F9;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compare-remove-btn:hover {
  background-color: var(--accent-color);
  color: var(--white);
}

.compare-head-card {
  padding-top: 15px;
}

.comp-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.comp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comp-img-placeholder {
  font-size: 32px;
}

.compare-val-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  height: 50px;
  display: table-cell;
  vertical-align: middle;
  width: 100%;
}

.compare-val-name a {
  color: var(--text-dark);
}

.compare-val-name a:hover {
  color: var(--primary-color);
}

.compare-val-price {
  font-size: 16px;
  font-weight: 700;
}

.comp-price-zero {
  color: var(--text-muted);
}

.comp-price {
  color: var(--text-dark);
}

.compare-val-sku code {
  background-color: #F1F5F9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.compare-val-brand {
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
}

.compare-val-stock {
  font-size: 14px;
}

.comp-stock {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.comp-stock-in {
  background-color: #ECFDF5;
  color: #059669;
}

.comp-stock-out {
  background-color: #FEF2F2;
  color: #DC2626;
}

.compare-val-action {
  padding: 15px;
}

.comp-btn-quote,
.comp-btn-cart,
.comp-btn-disabled {
  display: inline-flex;
  width: 100%;
  max-width: 160px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comp-btn-quote {
  background-color: #25D366;
  color: var(--white);
}

.comp-btn-quote:hover {
  background-color: #1DAA54;
}

.comp-btn-cart {
  background-color: var(--primary-color);
  color: var(--white);
}

.comp-btn-cart:hover {
  background-color: var(--primary-hover);
}

.comp-btn-disabled {
  background-color: #E2E8F0;
  color: var(--text-muted);
  cursor: not-allowed;
}

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

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.95); }
}

/* Compare button on product cards */
.compare-btn {
  position: absolute;
  top: 46px;
  right: 12px;
  z-index: 10;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.8);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
}

.compare-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
  background-color: var(--white);
}

.compare-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.compare-btn.compare-active {
  color: var(--primary-color);
  background-color: var(--white);
  border-color: var(--primary-color);
}

/* Story / Quick Categories Menu */
.story-menu-container {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
  overflow: hidden;
}

.story-menu-wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding: 5px 0;
}

.story-menu-wrapper::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

.story-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #0056b3;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

.story-circle.story-blue {
  background-color: #0056b3;
  border: none;
}

.story-circle svg,
.story-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.story-circle.story-blue svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
  stroke: #ffffff;
  fill: none;
}

.story-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
  max-width: 90px;
  white-space: normal;
  display: block;
}

/* Quick Categories (Slider Altı Yuvarlak Alan) */
.quick-categories-section {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 15px 0;
  overflow: hidden;
}

.quick-categories-track {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  width: 100% !important;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  padding: 5px 0;
}

.quick-categories-track::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.quick-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.quick-cat-item:hover {
  transform: translateY(-3px);
}

.quick-cat-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #0056b3;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  box-sizing: border-box;
}

.quick-cat-circle svg,
.quick-cat-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.quick-cat-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: #333333;
  text-align: center;
  margin-top: 10px;
  line-height: 1.3;
  max-width: 90px;
  white-space: normal;
  display: block;
}

/* Mobile responsive */
@media (max-width: 991px) {
  .story-menu-wrapper,
  .quick-categories-track {
    justify-content: flex-start !important;
    gap: 20px !important;
  }
}

/* ==========================================================================
   📱 NATIVE MOBILE APP (PWA) RESPONSIVE DESIGN SYSTEM
   ========================================================================== */
@media (max-width: 768px) {
  /* Prevent tap highlight blue flash */
  * {
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Body & Layout Padding for Fixed Bottom Navigation Bar */
  body {
    padding-bottom: 75px !important;
  }

  /* Touch Targets (Buttons, Inputs, Selects at least 44px) */
  button, 
  input[type="text"], 
  input[type="number"], 
  input[type="email"], 
  input[type="password"], 
  select, 
  .btn, 
  .action-btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  /* Mobile Grid System (Clean 2-column product grid) */
  .products-grid, 
  .category-products-grid, 
  .product-grid-mobile,
  .deals-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .product-card {
    margin: 0 !important;
    width: 100% !important;
    padding: 10px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  }

  .product-card-img-wrap {
    height: 140px !important;
  }

  .product-card-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    height: 34px !important;
    overflow: hidden;
    margin-bottom: 6px !important;
  }

  .product-card-price {
    font-size: 15px !important;
  }

  /* Mobile Header Alignment & Spacing */
  .middle-header {
    padding: 8px 0 !important;
  }

  .middle-header .container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
  }

  .logo-area {
    display: flex !important;
    align-items: center !important;
  }

  .logo-link img {
    height: 36px !important;
    width: auto !important;
  }

  .user-actions {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
  }

  .user-actions .action-btn span:not(.action-badge) {
    display: none !important;
  }

  .user-actions .action-btn svg {
    width: 22px !important;
    height: 22px !important;
  }

  .search-area {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 6px !important;
    order: 3;
    flex-basis: 100% !important;
  }

  .search-form {
    border-width: 1px !important;
  }

  .search-input {
    padding: 8px 12px !important;
    font-size: 13px !important;
  }

  .search-button {
    padding: 0 12px !important;
  }

  /* Hesabım.php Dashboard Mobile Responsive Rules */
  .hesabim-wrapper .container,
  .account-dashboard-wrapper, 
  .b2b-panel-container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    gap: 15px !important;
    overflow-x: hidden !important;
  }

  .hesabim-wrapper aside,
  .hesabim-wrapper section,
  .account-sidebar, 
  .account-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 15px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .stats-cards-grid,
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* Hide Desktop Top Navigation Bar on Mobile */
  .nav-bar {
    display: none !important;
  }

  /* Mobile Responsive Tables */
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    display: block !important;
    width: 100% !important;
  }

  /* Mobile Cart & Checkout Summary CTA Sticky Bar */
  .cart-summary-box, 
  .checkout-summary-box {
    margin-top: 15px !important;
    border-radius: 12px !important;
  }

  .cart-checkout-btn, 
  .checkout-submit-btn {
    width: 100% !important;
    min-height: 48px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }

  /* Fixed Bottom Navigation Bar Styles */
  .mobile-bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 4px 0 !important;
  }

  .mobile-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    color: #64748b !important;
    text-decoration: none !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    flex: 1 !important;
    transition: color 0.15s ease !important;
  }

  .mobile-nav-btn svg {
    width: 22px !important;
    height: 22px !important;
    margin-bottom: 2px !important;
    stroke: currentColor !important;
  }

  .mobile-nav-btn.active, 
  .mobile-nav-btn:hover {
    color: #0b4596 !important;
  }

  .mobile-nav-btn.active svg {
    stroke: #0b4596 !important;
  }

  .mobile-nav-badge {
    position: absolute !important;
    top: -4px !important;
    right: -8px !important;
    background: #e53935 !important;
    color: #ffffff !important;
    font-size: 9px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    min-width: 16px !important;
    height: 16px !important;
    line-height: 16px !important;
    text-align: center !important;
    padding: 0 3px !important;
  }
}

/* Hide Mobile Bottom Nav on Desktop Screens */
@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none !important;
  }
}

