/* C:\xampp\htdocs\balborsasi\style.css */

:root {
  --primary: #d97706; /* Bal sarısı / Kehribar */
  --primary-hover: #b45309;
  --primary-light: #fef3c7;
  --accent: #f59e0b; /* Altın sarısı */
  --accent-light: #fffbeb;
  --dark: #1e293b; /* Koyu toprak / arduvaz */
  --dark-light: #334155;
  --light: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --success: #10b981;
  --error: #ef4444;
  --gray: #64748b;
  --font-sans: 'Inter', sans-serif;
  --font-serif: 'Inter', sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #faf9f6;
  background-image: linear-gradient(rgba(250, 249, 246, 0.80) 0%, rgba(250, 249, 246, 0.80) 100%), url("uploads/honeycomb_bg.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--dark);
  line-height: 1.6;
}

/* Header & Navbar */
.navbar {
  background: #fbf7ee url('navbar_bg.png?v=20.0') no-repeat center top / 100% 100%;
  min-height: 165px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

.navbar-inner {
  max-width: 1550px;
  margin: 0 auto;
  padding: 1.4rem 2rem 1.2rem 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -1.25rem;
  margin-bottom: -1.25rem;
  margin-right: 3rem;
}

.logo-img {
  height: 175px;
  width: auto;
  display: block;
  object-fit: contain;
  transform: scale(1.25) translateY(6px);
  transform-origin: center left;
  transition: transform 0.25s ease;
}

.login-logo-img {
  max-width: 150px;
  width: 35%;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.logo-desktop {
  display: block !important;
}

.logo-mobile {
  display: none !important;
}

/* Hide mobile drawer elements & close button on Desktop */
.mobile-menu-toggle-btn,
.mobile-category-drawer,
.mobile-drawer-overlay,
.mobile-dropdown-close-btn {
  display: none !important;
}

.footer-logo-img {
  width: 235px;
  height: 70px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--dark-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 0.5rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
}

.btn-outline:hover {
  background-color: var(--primary-light);
}

/* Base style normalization for size alignment */
button, .btn-primary, .btn-outline {
  line-height: 1.25rem;
  font-size: 0.95rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--accent-light) 0%, #fffbeb 50%, #fafaf9 100%);
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  color: var(--dark);
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--dark-light);
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
}

/* Filters & Search */
.filters-container {
  padding: 2rem 0;
  max-width: 1550px;
  margin: 0 auto;
}

.search-form {
  display: flex;
  max-width: 550px;
  margin: -25px auto 2rem auto;
  background-color: var(--white);
  padding: 0.5rem;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  align-items: center;
}

.search-input {
  border: none;
  outline: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  flex-grow: 1;
  font-family: var(--font-sans);
  border-radius: 50px;
}

.region-filters {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.filter-btn {
  background-color: var(--white);
  border: 1px solid var(--border);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: var(--dark-light);
  transition: all 0.2s ease;
}

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

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 2rem 4rem 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

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

.product-img-wrapper {
  position: relative;
  height: 220px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.badge-lab {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--success);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.badge-region {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--dark);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-vendor {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.product-price-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.product-price-container {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price-original {
  font-size: 0.85rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.product-price-final {
  font-size: 1.1rem;
  color: #ef4444;
  font-weight: 800;
}

.product-price-normal {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
}

.product-card-form {
  width: 100%;
}

.product-card-form button {
  width: 100%;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
}

@media (min-width: 992px) {
  .product-price-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .product-price-container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-height: 44px !important;
  }

  .product-price-original {
    font-size: 0.82rem !important;
  }

  .product-price-final {
    font-size: 1.25rem !important;
  }

  .product-price-normal {
    font-size: 1.25rem !important;
  }

  .product-card-form {
    width: auto !important;
  }

  .product-card-form button {
    width: auto !important;
    padding: 0.6rem 1.3rem !important;
    font-size: 0.85rem !important;
  }
}

/* Product Detail Page */
.detail-container {
  max-width: 1550px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}

.detail-img-container {
  background-color: #f8fafc;
  border-radius: var(--radius);
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border);
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-meta {
  display: flex;
  flex-direction: column;
}

.detail-vendor-box {
  background-color: var(--accent-light);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* Tabs */
.tabs-headers {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 2rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.tab-header {
  font-weight: 600;
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  color: var(--gray);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  background: none;
  border: none;
  font-size: 1rem;
  font-family: var(--font-sans);
  white-space: nowrap;
}

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

.tab-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Dashboard / Vendor Panel */
.dashboard-container {
  max-width: 1550px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
}

.sidebar {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
}

.sidebar-menu {
  list-style: none;
}

.sidebar-item-link {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  color: var(--dark-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-item-link:hover, .sidebar-item-link.active {
  background-color: var(--primary-light);
  color: var(--primary-hover);
}

.dashboard-main {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  min-width: 0; /* Prevents contents from forcing grid column expansion */
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
}

.file-upload-box {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--light);
  transition: all 0.2s ease;
}

.file-upload-box:hover {
  border-color: var(--primary);
  background-color: var(--accent-light);
}

/* Alerts */
.alert-box {
  padding: 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.alert-box.info {
  background-color: var(--accent-light);
  border: 1px solid var(--primary-light);
  color: var(--primary-hover);
}

.alert-box.success {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

/* Data Table */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, .data-table td {
  padding: 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table th {
  background-color: var(--light);
  font-weight: 600;
  color: var(--dark);
}

/* Checkout */
.checkout-container {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 2rem;
}

.escrow-explanation {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* --- MOBILE RESPONSIVENESS MEDIA QUERIES --- */

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Navbar Mobile Layout */
  .navbar-inner {
    flex-direction: column;
    padding: 0.8rem 1rem;
    gap: 0.8rem;
    text-align: center;
  }

  .nav-links {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-inner > div {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.6rem;
  }

  /* Hero Section Mobile */
  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .search-form {
    margin-top: -15px;
    width: 100%;
  }

  /* Swipable Category Filters (AirBnB style) */
  .region-filters {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch;
  }

  .region-filters::-webkit-scrollbar {
    display: none; /* WebKit */
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
  }

  /* Grid Layouts */
  .product-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem 3rem 1rem;
    gap: 1.5rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .detail-img-container {
    height: 300px;
  }

  /* Detail Tabs Header Scrollable */
  .tabs-headers {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .tabs-headers::-webkit-scrollbar {
    display: none;
  }

  /* Dashboard Adjustments */
  .dashboard-container {
    padding: 0 1rem;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .dashboard-header a {
    width: 100%;
    justify-content: center;
  }

  .dashboard-main {
    padding: 1.2rem;
  }

  /* Checkout Adjustments */
  .checkout-container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .product-img-wrapper {
    height: 180px;
  }

  .product-info {
    padding: 1rem;
  }

  .btn-primary, .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

/* Yanıp sönen iptal talebi butonu */
@keyframes cancel-alert-pulse {
  0%   { opacity: 1; box-shadow: 0 0 0 0 rgba(185, 28, 28, 0.5); }
  50%  { opacity: 0.7; box-shadow: 0 0 0 6px rgba(185, 28, 28, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(185, 28, 28, 0); }
}

.btn-cancel-alert {
  animation: cancel-alert-pulse 1.2s ease-in-out infinite !important;
  background-color: #b91c1c !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
}

.btn-cancel-alert:hover {
  background-color: #991b1b !important;
  transform: none;
}

/* Rating and Stars System */
.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
}
.stars-container {
  color: #f59e0b; /* Amber gold */
  font-size: 0.95rem;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
}
.rating-text-muted {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 500;
}
.detail-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background-color: var(--accent-light);
  border: 1px solid rgba(217, 119, 6, 0.15);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-hover);
  transition: all 0.2s ease;
  user-select: none;
}
.detail-rating-summary:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

/* Header Auth Dropdown Styles */
.header-auth-container {
  position: relative;
  display: inline-block;
}

/* Hover bridge to prevent closing on gap */
.header-auth-container::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  display: none;
  z-index: 999;
}

.header-auth-container:hover::after {
  display: block;
}

.header-auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary) !important;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.header-auth-trigger i,
.header-auth-trigger svg {
  color: var(--primary) !important;
  transition: all 0.2s ease;
}

.header-auth-trigger:hover,
.header-auth-container:hover .header-auth-trigger {
  color: #374151 !important;
  background-color: var(--primary-light);
}

.header-auth-trigger:hover i,
.header-auth-trigger:hover svg,
.header-auth-container:hover .header-auth-trigger i,
.header-auth-container:hover .header-auth-trigger svg {
  color: #374151 !important;
}

.header-auth-dropdown {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%) translateY(10px);
  width: 220px;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: none;
  opacity: 0;
  z-index: 1000;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Upward pointing triangle */
.header-auth-dropdown::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
  z-index: 1001;
}

.header-auth-dropdown::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px;
  border-style: solid;
  border-color: transparent transparent var(--border) transparent;
  z-index: 1000;
}

/* Show on hover */
.header-auth-container:hover .header-auth-dropdown {
  display: block;
  opacity: 1;
  transform: translateX(50%) translateY(5px);
}

.header-auth-dropdown .btn-primary,
.header-auth-dropdown .btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.header-auth-dropdown .btn-primary {
  margin-bottom: 0.8rem;
}

/* Search Form & Suggestions Dropdown Styles */
.search-wrapper {
  position: relative;
  max-width: 950px;
  width: 100%;
  margin: -25px auto 2.5rem auto;
  z-index: 99;
}

.search-form-new {
  display: flex;
  background-color: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  border: 2px solid #e2e8f0;
  align-items: center;
  transition: all 0.3s ease;
}

.search-form-new:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.search-icon-new {
  color: var(--primary);
  width: 20px;
  height: 20px;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.search-input-new {
  border: none;
  outline: none;
  font-size: 1rem;
  flex-grow: 1;
  font-family: var(--font-sans);
  color: var(--dark);
  font-weight: 300;
}

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

.search-suggestions-dropdown {
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  padding: 1.5rem;
  display: none;
  box-sizing: border-box;
}

.suggestions-section {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
}

.suggestions-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.8rem;
}

.clear-history-btn, .view-all-products {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.clear-history-btn:hover, .view-all-products:hover {
  text-decoration: underline;
}

.history-item {
  display: block;
  font-size: 0.85rem;
  color: #475569;
  padding: 0.5rem 0;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

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

.show-more-history {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.popular-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pop-product-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  align-items: center;
}

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

.pop-product-img-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  overflow: hidden;
  margin-right: 0.8rem;
  flex-shrink: 0;
}

.pop-product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pop-product-info {
  flex-grow: 1;
  min-width: 0;
}

.pop-product-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.pop-product-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pop-product-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background-color: var(--accent-light);
  color: var(--primary-hover);
  padding: 2px 6px;
  border-radius: 4px;
}

.popular-searches-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.search-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  background-color: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.search-tag.fire {
  background-color: #fff7ed;
  color: #ea580c;
}

.search-tag.fire:hover {
  background-color: #ffedd5;
}

/* Navbar Search & Action Layout Overrides (Desktop) */
.nav-actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
}

.navbar-inner .search-wrapper {
  margin: 4px 1.5rem 0 1.5rem !important;
  max-width: 680px !important;
  flex-grow: 1 !important;
  position: relative;
}

.navbar-inner .search-form-new {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: #ffffff !important;
  padding: 1.05rem 1.4rem !important;
  border: 2px solid #f59e0b !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.22), 0 2px 8px rgba(217, 119, 6, 0.12) !important;
  transition: all 0.25s ease !important;
}

.navbar-inner .search-form-new:focus-within {
  border-color: #d97706 !important;
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.42), 0 0 0 4px rgba(251, 146, 60, 0.25) !important;
  transform: translateY(-1px);
}

.navbar-inner .search-icon-new {
  width: 22px !important;
  height: 22px !important;
  color: #d97706 !important;
  flex-shrink: 0 !important;
}

.navbar-inner .search-input-new {
  width: 100% !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 1.02rem !important;
  font-weight: 500 !important;
  color: var(--dark) !important;
  font-family: var(--font-sans) !important;
}

.navbar-inner .search-suggestions-dropdown {
  width: 100% !important;
  left: 0 !important;
  transform: none !important;
  top: calc(100% + 8px) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.2) !important;
}

.pop-product-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem;
  text-decoration: none;
  transition: all 0.2s ease;
  align-items: center;
  min-width: 0 !important;
}

.pop-product-info {
  flex-grow: 1;
  min-width: 0 !important;
}

/* Mega Menu Layout */
.sub-navbar {
  position: relative;
  background: white;
}

.mega-menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: white;
  border-top: 3px solid var(--primary);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 15px 30px rgba(0,0,0,0.06);
  z-index: 1000;
  padding: 2.5rem 0;
  box-sizing: border-box;
}

.mega-menu-panel:before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
}

.mega-menu-container {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1.5fr;
  gap: 2.5rem;
  box-sizing: border-box;
}

.mega-col-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.2rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-col-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mega-col-list a {
  color: var(--dark-light);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease-in-out;
}

.mega-col-list a:hover {
  color: var(--primary) !important;
  transform: translateX(4px);
}

.mega-campaign-card {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.05);
  box-sizing: border-box;
}

/* Header Action Buttons (Giriş Yap & Sepetim) pill container & glow */
.header-auth-trigger {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border: 1.5px solid #f59e0b !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.3rem !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2), 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
}

.header-auth-trigger:hover {
  background: #ffffff !important;
  border-color: #d97706 !important;
  color: #ea580c !important;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35) !important;
  transform: translateY(-2px);
}

#basket-button-nav {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 30px !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35) !important;
  border: 1.5px solid #f59e0b !important;
  transition: all 0.25s ease !important;
}

#basket-button-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.5) !important;
}

/* Sub-Navbar Menu Pills & Badges */
.sub-navbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-top: 1px solid rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.08) !important;
}

.sub-nav-link-btn {
  color: #1e293b !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1.5px solid rgba(245, 158, 11, 0.4) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sub-nav-link-btn:after {
  display: none !important;
}

.sub-nav-link-btn:hover {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  border-color: #ea580c !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.38) !important;
}

.sub-nav-link-btn:hover i,
.sub-nav-link-btn:hover svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.mega-menu-trigger-container .sub-nav-link-btn {
  background: linear-gradient(135deg, #d97706 0%, #ea580c 100%) !important;
  color: #ffffff !important;
  border-color: #f59e0b !important;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.mega-menu-trigger-container .sub-nav-link-btn i,
.mega-menu-trigger-container .sub-nav-link-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.mega-menu-trigger-container:hover .sub-nav-link-btn {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%) !important;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45) !important;
}

.mega-menu-trigger-container:hover .mega-menu-panel {
  display: block !important;
  animation: megaMenuFadeIn 0.22s ease-out forwards;
}

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

/* ==========================================================================
   Stories / Honeycomb Highlights Bar (Petek Hücresi & Altıgen Tasarım)
   ========================================================================== */
.stories-wrapper {
  max-width: 1550px;
  margin: 1.5rem auto 0.5rem auto;
  padding: 0 2rem;
  position: relative;
  box-sizing: border-box;
}

.stories-inner-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.2rem 1.4rem 1rem 1.4rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
  position: relative;
}

.stories-scroll-container {
  display: flex;
  align-items: flex-start;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 10px 12px 10px;
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.stories-scroll-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 86px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.story-hexagon-wrapper {
  position: relative;
  width: 76px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.22));
  transition: filter 0.3s ease;
}

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

.story-item:hover .story-hexagon-wrapper {
  filter: drop-shadow(0 8px 18px rgba(217, 119, 6, 0.45));
}

/* Hexagon Ring Container (Pointed-top Honeycomb Cell) */
.story-circle-ring {
  width: 76px;
  height: 84px;
  border-radius: 0;
  padding: 0;
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ring colors according to badge or theme */
.story-circle-ring.ring-orange {
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #d97706 100%);
}
.story-circle-ring.ring-red {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 50%, #b91c1c 100%);
}
.story-circle-ring.ring-purple {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 50%, #7e22ce 100%);
}
.story-circle-ring.ring-green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #047857 100%);
}
.story-circle-ring.ring-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #1d4ed8 100%);
}

.story-circle-inner {
  width: 70px;
  height: 78px;
  border-radius: 0;
  background: #ffffff;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  overflow: hidden;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 6px;
}

.story-circle-inner img {
  max-width: 85%;
  max-height: 85%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.story-item:hover .story-circle-inner img {
  transform: scale(1.15) rotate(3deg);
}

.story-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #ea580c;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  white-space: nowrap;
  letter-spacing: 0.3px;
  z-index: 10;
}

.story-badge.badge-orange { background: #ea580c; }
.story-badge.badge-red { background: #ef4444; }
.story-badge.badge-purple { background: #9333ea; }
.story-badge.badge-green { background: #059669; }
.story-badge.badge-blue { background: #2563eb; }

.story-title {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  text-align: center;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
  transition: color 0.2s ease;
}

.story-item:hover .story-title {
  color: var(--primary);
}

/* Nav arrows for story slider */
.story-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  color: #334155;
}

.story-nav-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.story-nav-btn.prev {
  left: -14px;
}

.story-nav-btn.next {
  right: -14px;
}

/* Social Media Nav Buttons */
.social-nav-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 0.48rem 0.95rem !important;
  border-radius: 20px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  color: #ffffff !important;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.social-nav-btn i,
.social-nav-btn svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.28) !important;
}

.social-instagram:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.48) !important;
  color: #ffffff !important;
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5bbd 100%) !important;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.28) !important;
}

.social-facebook:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.48) !important;
  color: #ffffff !important;
}

.social-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

.social-whatsapp:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5) !important;
  color: #ffffff !important;
}

.social-youtube {
  background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%) !important;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3) !important;
}

.social-youtube:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

/* Live Favorite Toast & Badge Bounce */
@keyframes favBadgeBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.fav-badge-pulse {
  animation: favBadgeBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fav-toast-notification {
  position: fixed;
  top: 25px;
  right: 25px;
  background: rgba(30, 41, 59, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 999999;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.fav-toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (Does NOT affect desktop >= 993px)
   ========================================================================== */

@media (max-width: 992px) {
  /* Admin & Dashboard Grid Layout */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .sidebar {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important;
  }

  .sidebar-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.6rem !important;
    padding: 0.2rem 0 !important;
  }

  .sidebar-menu::-webkit-scrollbar {
    display: none !important;
  }

  .sidebar-menu li {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .sidebar-item-link {
    white-space: nowrap !important;
    padding: 0.6rem 1.1rem !important;
    font-size: 0.85rem !important;
    border-radius: 20px !important;
    border: 1.5px solid var(--border) !important;
    background: #ffffff !important;
    color: var(--dark-light) !important;
    transition: all 0.2s ease !important;
  }

  .sidebar-item-link.active {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
  }

  .customer-orders-mobile-header {
    display: block !important;
  }
  .mobile-status-tab {
    white-space: nowrap !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 20px !important;
    border: 1.5px solid var(--border) !important;
    background: #ffffff !important;
    color: var(--dark-light) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    outline: none !important;
  }
  .mobile-status-tab.active {
    background-color: #ffffff !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
  }

  /* Native Mobile App Style Override for customer.php */
  body.page-customer {
    background-color: #f8fafc !important;
    background-image: none !important;
  }
  body.page-customer header.navbar,
  body.page-customer footer,
  body.page-customer .dashboard-header,
  body.page-customer .sidebar {
    display: none !important;
  }
  body.page-customer .dashboard-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #f8fafc !important;
  }
  body.page-customer .dashboard-main {
    border: none !important;
    border-radius: 0 !important;
    padding: 0.8rem !important;
    box-shadow: none !important;
    background-color: #f8fafc !important;
  }
  body.page-customer .mobile-app-header {
    display: flex !important;
  }
  body.page-customer .mobile-sub-navigation {
    display: flex !important;
  }
  .mobile-sub-nav-item {
    white-space: nowrap !important;
    padding: 0.45rem 1rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    border-radius: 15px !important;
    text-decoration: none !important;
    color: #64748b !important;
    background: #f1f5f9 !important;
    border: 1px solid transparent !important;
    transition: all 0.2s ease !important;
  }
  .mobile-sub-nav-item.active {
    background: #ea580c !important;
    color: white !important;
  }

  .customer-invoices-table-wrapper {
    display: none !important;
  }
  .customer-invoices-cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block;
  }
  .address-buttons-container {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.8rem !important;
    width: 100% !important;
  }



  /* Product Detail Grid Layout */
  .detail-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  .detail-gallery {
    position: static !important;
  }

  /* Table Horizontal Scrolling Wrapper */
  .data-table-wrapper,
  .card table,
  table.data-table {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .customer-orders-table-wrapper {
    display: none !important;
  }
  .customer-orders-cards-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }
}

@media (max-width: 992px) {
  /* CSS Grid & Flex Column Mobile Navbar System */
  .navbar {
    background: #ffffff !important;
    background-image: none !important;
    min-height: auto !important;
    padding: 0.6rem 0.8rem 0.6rem 0.15rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .navbar-inner {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    row-gap: 0.65rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  /* Mobile Top Row Brand Group (Centered Logo + Absolute Left Hamburger) */
  .nav-mobile-brand-group {
    grid-row: 1 !important;
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 34px !important;
  }

  /* Mobile Hamburger Button (Absolute Far Left Edge at 0) */
  .mobile-menu-toggle-btn {
    position: absolute !important;
    left: 0 !important;
    top: 7px !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 28px !important;
    height: 28px !important;
    cursor: pointer !important;
    color: #1e293b !important;
    z-index: 10 !important;
  }

  .mobile-menu-toggle-btn svg,
  .mobile-menu-toggle-btn i {
    width: 22px !important;
    height: 22px !important;
    stroke: #1e293b !important;
    stroke-width: 2.2px !important;
    pointer-events: none !important;
  }

  /* Slide-Out Category Drawer Overlay */
  .mobile-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(3px) !important;
    z-index: 99998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    display: block !important;
    pointer-events: none !important;
  }

  .mobile-drawer-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  /* Slide-Out Category Drawer Panel */
  .mobile-category-drawer {
    position: fixed !important;
    top: 0 !important;
    left: -320px !important;
    width: 280px !important;
    max-width: 82vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    z-index: 99999 !important;
    box-shadow: 6px 0 25px rgba(0, 0, 0, 0.15) !important;
    transition: left 0.32s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mobile-category-drawer.active {
    left: 0 !important;
  }

  .drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 1.2rem 1.4rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #fffbeb !important;
  }

  .drawer-title {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #1e293b !important;
  }

  .drawer-close-btn {
    background: transparent !important;
    border: none !important;
    font-size: 1.2rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
  }

  .drawer-body {
    flex-grow: 1 !important;
    overflow-y: auto !important;
    padding: 1rem 0.8rem !important;
  }

  .drawer-category-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .drawer-cat-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 0.75rem 1rem !important;
    border-radius: 12px !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
  }

  .drawer-cat-item i, .drawer-cat-item svg {
    width: 18px !important;
    height: 18px !important;
    color: #f59e0b !important;
    stroke: #f59e0b !important;
  }

  .drawer-cat-item:hover, .drawer-cat-item.active {
    background: #fff7ed !important;
    color: #ea580c !important;
  }

  .drawer-cat-item.highlight {
    background: #fef2f2 !important;
    color: #ef4444 !important;
  }

  .drawer-cat-item.highlight i, .drawer-cat-item.highlight svg {
    color: #ef4444 !important;
    stroke: #ef4444 !important;
  }

  .navbar-inner .logo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    height: 26px !important;
    text-align: center !important;
  }

  .logo-img {
    max-height: 26px !important;
    height: 26px !important;
    width: auto !important;
  }

  .login-logo-img {
    max-width: 90px !important;
    width: 25% !important;
    height: auto !important;
  }

  .logo-desktop {
    display: none !important;
  }
  .logo-mobile {
    display: inline-block !important;
    max-height: 26px !important;
    height: 26px !important;
    width: auto !important;
    filter: grayscale(100%) opacity(0.85) !important;
  }

  /* Right Column: Action Buttons Group */
  .nav-actions-group,
  .navbar-inner > div:last-child {
    position: absolute !important;
    top: 6px !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    width: auto !important;
    height: 34px !important;
  }

  /* Pure minimalist icons (no heavy backgrounds, no borders) */
  .btn-fav-nav,
  .header-auth-container,
  .header-auth-trigger,
  #basket-button-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #334155 !important;
    position: relative !important;
    text-decoration: none !important;
    font-size: 0 !important;
    box-sizing: border-box !important;
  }

  /* Mobile Icon Order: [Üye / Hesabım (Sol)] -> [Favorilerim (Orta)] -> [Sepetim (En Sağ)] */
  .header-auth-container {
    order: 1 !important;
    left: 5px !important;
  }
  .btn-fav-nav {
    order: 2 !important;
  }
  #basket-button-nav {
    order: 3 !important;
  }
  .btn-fav-nav *, #basket-button-nav * {
    pointer-events: none !important;
  }

  .btn-fav-nav i, .btn-fav-nav svg,
  .header-auth-container i, .header-auth-container svg,
  .header-auth-trigger i, .header-auth-trigger svg,
  #basket-button-nav i, #basket-button-nav svg {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    min-height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    stroke: #334155 !important;
    stroke-width: 2px !important;
    fill: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Hide all text labels on mobile for clean pure icon look */
  .btn-fav-nav > span:not([id]),
  .header-auth-container span:not([style*="position: absolute"]),
  .header-auth-trigger span,
  #basket-button-nav span:not([style*="position: absolute"]) {
    display: none !important;
  }

  /* Trendyol Red Badge Counter for Cart & Favorites */
  #fav-badge-count-header,
  #basket-button-nav span[style*="position: absolute"] {
    top: -6px !important;
    right: -7px !important;
    background-color: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    border: 1.5px solid #ffffff !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
  }

  /* Sleek Mobile Search Bar with Clear Button (Centered Horizontally) */
  .navbar-inner .search-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0.6rem auto 0.1rem auto !important;
    display: flex !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  .navbar-inner .search-form-new {
    width: 100% !important;
    position: relative !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .navbar-inner .search-input-new,
  #search-input-new {
    background: #f4f4f5 !important;
    border: 1px solid #e4e4e7 !important;
    border-radius: 20px !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    color: #18181b !important;
    padding: 0.3rem 2.2rem !important;
    height: 33px !important;
    box-shadow: none !important;
    width: 100% !important;
    text-align: center !important;
  }

  .navbar-inner .search-input-new::placeholder,
  #search-input-new::placeholder {
    color: #9ca3af !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-align: center !important;
  }

  .navbar-inner .search-icon-new {
    position: absolute !important;
    left: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    stroke: #9ca3af !important;
    width: 15px !important;
    height: 15px !important;
  }

  .navbar-inner .search-clear-btn {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: #cbd5e1 !important;
    border: none !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #475569 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    z-index: 10 !important;
  }

  .navbar-inner .search-clear-btn svg,
  .navbar-inner .search-clear-btn i {
    width: 11px !important;
    height: 11px !important;
    stroke-width: 2.5 !important;
    color: #475569 !important;
    stroke: #475569 !important;
  }

  .search-suggestions-dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    padding: 1.2rem !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -5px rgba(0,0,0,0.04) !important;
  }

  .suggestions-section:first-child {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  .suggestions-section:first-of-type .suggestions-section-header {
    margin-top: 0 !important;
    padding-top: 0.1rem !important;
    padding-right: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .mobile-dropdown-close-btn {
    position: absolute !important;
    top: 6px !important;
    right: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background: #f1f5f9 !important;
    border: none !important;
    border-radius: 50% !important;
    color: #475569 !important;
    cursor: pointer !important;
    z-index: 100 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
  }

  .mobile-dropdown-close-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
  }

  .mobile-dropdown-close-btn svg,
  .mobile-dropdown-close-btn i {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 2.2px !important;
    stroke: #475569 !important;
  }

  .clear-history-btn,
  #clear-history-btn,
  .suggestions-section-header .clear-history-btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
    position: relative !important;
    top: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 10 !important;
  }

  /* Completely Hide Sub-Navbar Categories Bar on Mobile (Since Categories moved to ☰ Drawer) */
  .sub-navbar {
    display: none !important;
  }

  /* Sub-Navbar Horizontal Scroll */
  .sub-navbar > div {
    padding: 0 1rem !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  .sub-navbar > div > div:first-child {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    padding-bottom: 0.3rem !important;
    gap: 1rem !important;
  }

  .header-social-links {
    width: 100% !important;
    justify-content: center !important;
    overflow-x: auto !important;
    padding-bottom: 0.2rem !important;
  }

  /* Completely Hide Banners Section on Mobile */
  .banners-grid-wrapper {
    display: none !important;
  }

  /* Hide 'Yörelerine Göre Keşfedin' heading on mobile */
  .region-section-heading {
    display: none !important;
  }

  /* Stories Section Full Width Zero-Clipping Override (Mobile) */
  .stories-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0.5rem 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .stories-inner-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.3rem 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .stories-scroll-container {
    width: 100% !important;
    padding: 0.85rem 1.2rem 0.65rem 1.2rem !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    display: flex !important;
    gap: 22px !important;
  }

  .story-nav-btn {
    display: none !important;
  }

  .stories-wrapper::-webkit-scrollbar,
  .stories-scroll-container::-webkit-scrollbar,
  .story-container::-webkit-scrollbar {
    display: none !important;
  }

  .story-item {
    flex: 0 0 auto !important;
    width: 84px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  .story-hexagon-wrapper {
    width: 64px !important;
    height: 72px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .story-circle-ring {
    width: 64px !important;
    height: 72px !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
  }

  .story-circle-inner {
    width: 60px !important;
    height: 68px !important;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%) !important;
    padding: 2px !important;
  }

  .story-title {
    font-size: 0.74rem !important;
    max-width: 84px !important;
    width: 84px !important;
    text-align: center !important;
    white-space: normal !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
    margin-top: 6px !important;
  }

  .detail-container {
    padding: 0 !important;
    margin: 1.5rem auto !important;
  }

  .fav-header-block {
    padding: 0 1rem !important;
    box-sizing: border-box !important;
  }

  /* Product Card Grid: 2 Columns on Mobile */
  .product-grid,
  .popular-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    padding: 0 0.5rem !important;
  }

  .product-card {
    border-radius: 12px !important;
  }

  .product-img-wrapper {
    height: 150px !important;
  }

  .product-img {
    height: 100% !important;
    object-fit: contain !important;
  }

  .badge-region {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    top: 6px !important;
    left: 6px !important;
    right: auto !important;
    max-width: 62px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background-color: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .badge-lab {
    font-size: 0.62rem !important;
    padding: 2px 5px !important;
    top: 6px !important;
    right: 42px !important;
    left: auto !important;
    background-color: rgba(16, 185, 129, 0.85) !important;
    backdrop-filter: blur(2px) !important;
    border-radius: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .badge-region i, .badge-region svg,
  .badge-lab i, .badge-lab svg {
    width: 10px !important;
    height: 10px !important;
  }

  .btn-fav-card {
    top: 8px !important;
    right: 8px !important;
    width: 30px !important;
    height: 30px !important;
  }

  .btn-fav-card svg {
    width: 15px !important;
    height: 15px !important;
  }

  .product-info {
    padding: 0.8rem !important;
  }

  .fav-card-body {
    padding: 0.8rem !important;
  }

  .fav-card-region {
    font-size: 0.68rem !important;
    padding: 2px 6px !important;
  }

  .fav-card-title {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    height: 2.6rem !important;
    overflow: hidden !important;
  }

  .fav-card-price-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: 0.6rem !important;
    padding-top: 0.6rem !important;
  }

  .fav-card-price-val {
    font-size: 1.1rem !important;
  }

  .fav-card-btn {
    width: 100% !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .product-title {
    font-size: 0.88rem !important;
    line-height: 1.3 !important;
    min-height: 1.3rem !important;
    max-height: 2.6rem !important;
    height: auto !important;
    overflow: hidden !important;
  }

  .product-price {
    font-size: 1.1rem !important;
  }

  .product-desc {
    display: none !important;
  }

  .product-license {
    display: none !important;
  }

  .product-rating-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin-bottom: 0.5rem !important;
  }

  .product-rating-row .stars-container {
    font-size: 0.9rem !important;
    letter-spacing: 0px !important;
  }

  .product-rating-row .rating-text-muted {
    font-size: 0.64rem !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
  }

  .product-price-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
    margin-top: auto !important;
    padding-top: 0.6rem !important;
  }

  .product-price-row form {
    width: 100% !important;
    margin: 0 !important;
  }

  .product-price-row .btn-primary {
    width: 100% !important;
    padding: 0.5rem 0.8rem !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    text-align: center !important;
  }

  /* Hero Slider Banner on Mobile */
  .hero-slider,
  .banner-carousel {
    border-radius: 14px !important;
    margin-bottom: 1.5rem !important;
  }

  .banner-card {
    flex-direction: column !important;
    padding: 1.5rem 1rem !important;
    text-align: center !important;
    min-height: auto !important;
  }

  .banner-content {
    max-width: 100% !important;
  }

  .banner-title {
    font-size: 1.5rem !important;
  }

  .banner-subtitle {
    font-size: 0.9rem !important;
  }

  .banner-img-col img {
    max-height: 200px !important;
    width: auto !important;
    margin-top: 1rem !important;
  }

  /* Product Details Page Meta & Title */
  .detail-meta h1 {
    font-size: 1.6rem !important;
  }

  .detail-meta .tabs-headers {
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    display: flex !important;
    gap: 0.5rem !important;
  }

  .tab-header {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
    flex: 0 0 auto !important;
  }

  /* Cart & Checkout Grid */
  .cart-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  /* Extra Small Phone Optimizations */
  .product-grid,
  .popular-products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem !important;
  }

  .product-info {
    padding: 0.6rem !important;
  }

  .product-title {
    font-size: 0.82rem !important;
  }

  .social-nav-btn span {
    display: none !important;
  }

  .social-nav-btn {
    padding: 0.4rem 0.5rem !important;
  }

  .fav-toast-notification {
    top: 15px !important;
    right: 15px !important;
    left: 15px !important;
    font-size: 0.82rem !important;
    padding: 0.7rem 1rem !important;
  }
}

.customer-orders-table-wrapper {
  display: block;
}
.customer-orders-cards-wrapper {
  display: none;
}
.customer-invoices-table-wrapper {
  display: block;
}
.customer-invoices-cards-wrapper {
  display: none;
}
.desktop-only {
  display: block;
}
.mobile-only {
  display: none !important;
}

@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
}

/* Flash Campaign Styles */
.flash-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.flash-detail-banner {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
  .flash-card-badge {
    top: auto !important;
    bottom: 8px !important;
    left: 8px !important;
    font-size: 0.64rem !important;
    padding: 3px 6px !important;
    border-radius: 4px !important;
    z-index: 6 !important;
  }

  .flash-detail-banner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    padding: 0.8rem 1rem !important;
    text-align: center !important;
  }

  .flash-detail-banner-timer-box {
    text-align: center !important;
  }
}

.mobile-app-header-custom {
  display: none !important;
}

@media (max-width: 992px) {
  .mobile-app-header-custom {
    display: flex !important;
  }
}

@media (min-width: 992px) {
  .product-img-wrapper .badge-region {
    top: auto !important;
    bottom: 12px !important;
    left: 12px !important;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)) !important;
  }

  .product-card .product-img-wrapper {
    height: 200px !important;
  }

  .product-card .product-info {
    padding: 1.2rem !important;
  }

  .product-card .product-title {
    font-size: 1.08rem !important;
    line-height: 1.4 !important;
  }

  .product-card .product-desc {
    display: none !important;
  }
}

.product-license-desktop {
  display: none !important;
}

.product-license-mobile {
  display: none !important;
}

.stars-container {
  color: #fbbf24; /* Beautiful Gold */
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.stars-container-empty-desktop {
  color: #cbd5e1; /* Light Gray */
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: none;
}

.rating-text-muted-desktop {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  display: none;
}

.rating-text-muted-mobile {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
  display: inline;
}

.product-discount-badge {
  background-color: #fee2e2;
  color: #ef4444;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1;
  display: none;
}

.product-card-region-inline {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.72rem !important;
  color: #64748b !important;
  font-weight: 600 !important;
  margin-bottom: 0.3rem !important;
}

.flash-card-badge-inline {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 0.72rem !important;
  color: #ea580c !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}

@media (min-width: 992px) {
  .product-license-desktop {
    display: flex !important;
  }
  .product-license-mobile {
    display: none !important;
  }

  .product-card .product-vendor {
    font-size: 0.72rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    margin-bottom: 0.3rem !important;
    display: block !important;
  }

  .stars-container-empty-desktop {
    display: inline !important;
  }

  .rating-text-muted-desktop {
    display: inline !important;
  }

  .rating-text-muted-mobile {
    display: none !important;
  }

  .product-discount-badge {
    display: inline-block !important;
  }

  /* Price and Button Side-by-Side Sizing */
  .product-price-original {
    font-size: 0.78rem !important;
  }
  .product-price-final {
    font-size: 1.02rem !important;
  }
  .product-price-normal {
    font-size: 1.02rem !important;
  }
  .product-card .btn-primary {
    padding: 0.48rem 0.8rem !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }
  .product-price-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: auto !important;
  }
  .product-price-container {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  /* Hide mobile badge on desktop */
  .product-img-wrapper .flash-card-badge {
    display: none !important;
  }

  .product-license-desktop {
    margin-bottom: 0.4rem !important;
  }

  .product-card-region-inline {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem !important;
  }

  .product-card-delivery-inline {
    font-size: 0.76rem !important;
    margin-bottom: 0.4rem !important;
  }

  .flash-card-badge-inline {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 0.76rem !important;
    color: #ea580c !important;
    font-weight: 700 !important;
    margin-bottom: 0.4rem !important;
  }
}

/* Hide tahlil badge on desktop image wrapper */
@media (min-width: 992px) {
  .badge-lab {
    display: none !important;
  }
}

/* Product image slot adjustments for Desktop (to prevent cropping and show full product labels) */
@media (min-width: 992px) {
  .img-slot-card {
    height: 120px !important;
    background: #f8fafc !important;
  }
  .img-slot-card img {
    object-fit: contain !important;
    width: 100% !important;
    height: 100% !important;
    background-color: #ffffff !important;
  }
  
  #edit-image-preview-grid img,
  #inline-image-preview-grid img,
  #modal-image-preview-grid img {
    height: 120px !important;
    object-fit: contain !important;
    background-color: #ffffff !important;
  }
}

/* Admin Comment Form Visibility Rules */
@media (max-width: 991px) {
  .admin-desktop-review-form {
    display: none !important;
  }
  .admin-mobile-review-warning {
    display: flex !important;
  }
  .product-card .product-vendor {
    margin-bottom: 0.15rem !important;
  }
  .product-card .product-title {
    margin-bottom: 0.2rem !important;
  }
  .product-card .product-rating-row {
    margin-top: 2px !important;
    margin-bottom: 4px !important;
  }
}
@media (min-width: 992px) {
  .admin-mobile-review-warning {
    display: none !important;
  }
  .admin-badge {
    display: none !important;
  }
}


