/* Yusuf Manav - Modern E-Commerce Platform Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --ym-primary: #059669;
  --ym-primary-dark: #065f46;
  --ym-primary-light: #ecfdf5;
  --ym-primary-glow: rgba(5, 150, 105, 0.25);
  
  --ym-accent: #f59e0b;
  --ym-accent-dark: #d97706;
  --ym-accent-light: #fffbeb;

  --ym-dark: #0f172a;
  --ym-slate: #1e293b;
  --ym-muted: #64748b;
  --ym-light-muted: #94a3b8;
  
  --ym-bg-light: #f8fafc;
  --ym-card-bg: #ffffff;
  --ym-border: #e2e8f0;
  --ym-border-hover: #cbd5e1;

  --ym-radius-sm: 8px;
  --ym-radius-md: 14px;
  --ym-radius-lg: 20px;
  --ym-radius-xl: 28px;
  --ym-radius-pill: 9999px;

  --ym-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --ym-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.07);
  --ym-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.09);
  --ym-shadow-hover: 0 16px 32px rgba(5, 150, 105, 0.12);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ym-bg-light);
  color: var(--ym-slate);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Global Button Size Optimization */
.btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: var(--ym-radius-sm);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
}

/* Carousel/Slider Buttons */
.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 16px;
  height: 16px;
}

/* Announcement Bar */
.ym-topbar {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 7px 0;
  font-weight: 500;
}

/* Header & Navbar */
.ym-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ym-border);
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.ym-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s;
}

.ym-brand-logo:hover {
  transform: scale(1.02);
}

/* Live Search Input */
.ym-search-container {
  position: relative;
  width: 100%;
}

.ym-search-input {
  border-radius: var(--ym-radius-pill);
  padding: 12px 20px 12px 48px;
  border: 2px solid var(--ym-border);
  background: var(--ym-bg-light);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.ym-search-input:focus {
  background: #ffffff;
  border-color: var(--ym-primary);
  box-shadow: 0 0 0 4px var(--ym-primary-glow);
  outline: none;
}

.ym-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ym-muted);
  pointer-events: none;
}

.ym-search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--ym-radius-md);
  box-shadow: var(--ym-shadow-lg);
  border: 1px solid var(--ym-border);
  z-index: 1050;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}

.ym-search-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: var(--ym-slate);
  transition: background 0.15s;
}

.ym-search-item:hover {
  background: var(--ym-primary-light);
}

/* Category Navbar - Strictly Single-Line */
.ym-cat-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--ym-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 90;
}

.ym-cat-nav .container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px;
}

.ym-cat-scroll-container {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 4px;
  flex-grow: 1;
  padding: 4px 0;
}

.ym-cat-scroll-container::-webkit-scrollbar {
  display: none;
}

.ym-cat-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  color: var(--ym-slate);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 8px;
  border-bottom: 2px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ym-cat-link:hover, .ym-cat-link.active {
  color: var(--ym-primary-dark);
  background: rgba(16, 185, 129, 0.08);
  border-bottom-color: var(--ym-primary);
  transform: translateY(-1px);
}

.ym-cat-btn {
  background: var(--ym-primary);
  color: #ffffff;
  border-radius: var(--ym-radius-sm);
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ym-cat-btn:hover {
  background: var(--ym-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Product Card - Trendyol/Hepsiburada Style */
.ym-product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ym-product-card:hover {
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ym-product-card > div:first-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ym-product-card > div:last-child {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 10px;
}

/* Product Card Elements */
.ym-product-card .d-flex.justify-content-between {
  flex-shrink: 0;
  min-height: 28px;
  margin-bottom: 8px;
}

.ym-product-img-wrapper {
  flex-shrink: 0;
  margin-bottom: 10px;
  border-radius: 6px;
  background: #f9fafb;
}

.ym-product-card .d-flex.justify-content-between.align-items-center {
  flex-shrink: 0;
  min-height: 20px;
  margin-bottom: 6px;
}

.ym-product-title {
  flex-shrink: 0;
  min-height: 2.6em;
  margin-bottom: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}

.ym-product-card .mt-3 {
  flex-shrink: 0;
  margin-top: auto !important;
}

.ym-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ym-badge-deal {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
}

.ym-badge-fresh {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.ym-badge-discount {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
}

.ym-favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ym-favorite-btn:hover, .ym-favorite-btn.active {
  color: #ef4444;
  background: #fee2e2;
  border-color: #fca5a5;
  transform: scale(1.1);
}

.ym-product-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--ym-radius-md);
  background: #f1f5f9;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.ym-product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ym-product-card:hover .ym-product-img {
  transform: scale(1.08);
}

.ym-product-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ym-slate);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  min-height: 2.8em;
}

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

.ym-unit-selector {
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  margin-bottom: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s ease;
  font-weight: 500;
}

.ym-unit-selector:hover {
  border-color: #059669;
  background: #ffffff;
}

/* Product Card Spacing Optimization */
.ym-product-card .d-flex.justify-content-between {
  margin-bottom: 10px;
}

.ym-product-card .text-muted.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.ym-price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: #dc2626;
}

.ym-price-old {
  font-size: 0.85rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 500;
}

.ym-btn-add {
  background: #059669;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.85rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ym-btn-add:hover {
  background: #047857;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* Category Box */
.ym-cat-card {
  background: #ffffff;
  border: 1px solid var(--ym-border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--ym-shadow-sm);
  position: relative;
  height: 100%;
}

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

.ym-cat-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f1f5f9;
}

.ym-cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.ym-cat-card:hover .ym-cat-card-img {
  transform: scale(1.08);
}

.ym-cat-card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  background: #ffffff;
}

.ym-cat-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ym-slate);
  margin-bottom: 4px;
  line-height: 1.3;
}

.ym-cat-card:hover .ym-cat-card-title {
  color: var(--ym-primary-dark);
}

.ym-cat-card-count {
  font-size: 0.82rem;
  color: var(--ym-primary);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Trust Badges */
.ym-trust-bar {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius-lg);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.ym-trust-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ym-primary) 0%, #10b981 50%, var(--ym-accent) 100%);
}

.ym-trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ym-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--ym-radius-md);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #ffffff;
  border: 1px solid transparent;
}

.ym-trust-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.ym-trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.ym-trust-item:hover .ym-trust-icon {
  transform: scale(1.1) rotate(5deg);
}

.ym-trust-item:nth-child(1) .ym-trust-icon {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #2563eb;
}

.ym-trust-item:nth-child(2) .ym-trust-icon {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  color: #16a34a;
}

.ym-trust-item:nth-child(3) .ym-trust-icon {
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  color: #ca8a04;
}

.ym-trust-item:nth-child(4) .ym-trust-icon {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  color: #dc2626;
}

.ym-trust-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ym-trust-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ym-slate);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.ym-trust-desc {
  font-size: 0.75rem;
  color: var(--ym-muted);
  line-height: 1.4;
  font-weight: 500;
}

/* ==========================================================
   PRODUCT DETAIL PAGE - Trendyol Style
   ========================================================== */
.ym-product-detail-box {
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.ym-detail-gallery-box {
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
}

.ym-detail-gallery-box img {
  border-radius: 8px;
}

/* Product Title */
.ym-product-detail-box h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

/* Price Display */
.ym-product-detail-box .ym-price-display {
  font-size: 1.75rem;
  font-weight: 700;
  color: #dc2626;
}

.ym-product-detail-box .ym-price-old {
  font-size: 1rem;
  color: #9ca3af;
  text-decoration: line-through;
}

/* Unit Selector */
.ym-product-detail-box .ym-unit-select {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 6px;
}

.ym-product-detail-box .ym-unit-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Add to Cart Button */
.ym-product-detail-box .ym-btn-add {
  background: #f97316;
  border: none;
  border-radius: 6px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.ym-product-detail-box .ym-btn-add:hover {
  background: #ea580c;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Feature Cards */
.ym-detail-feature-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.ym-detail-feature-card:hover {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Tabs */
.ym-product-detail-box .nav-pills .nav-link {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  padding: 10px 20px;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ym-product-detail-box .nav-pills .nav-link.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.ym-product-detail-box .nav-pills .nav-link:hover:not(.active) {
  background: #e5e7eb;
  border-color: #d1d5db;
}

/* Quantity Stepper in Detail */
.ym-product-detail-box .ym-qty-stepper {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #ffffff;
}

.ym-product-detail-box .ym-qty-btn {
  background: #f9fafb;
  color: #374151;
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.ym-product-detail-box .ym-qty-btn:hover {
  background: #e5e7eb;
}

.ym-product-detail-box .ym-qty-input {
  width: 50px;
  height: 40px;
  font-weight: 600;
  font-size: 1rem;
  color: #1f2937;
}

/* Stock Badge */
.ym-product-detail-box .badge.bg-success {
  background: #10b981 !important;
}

.ym-product-detail-box .badge.bg-danger {
  background: #ef4444 !important;
}

/* Category Badge */
.ym-product-detail-box .badge.bg-success.bg-opacity-10 {
  background: #ecfdf5 !important;
  color: #059669 !important;
  border: 1px solid #a7f3d0;
}

/* Mobile Product Detail */
@media (max-width: 991px) {
  .ym-product-detail-box h1 {
    font-size: 1.25rem;
  }

  .ym-product-detail-box .ym-price-display {
    font-size: 1.5rem;
  }

  .ym-product-detail-box .ym-btn-add {
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .ym-detail-feature-card {
    padding: 10px;
  }

  .ym-detail-feature-card i {
    font-size: 1rem;
  }
}

/* Floating WhatsApp Button */
.ym-whatsapp-floating {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 1040;
  background: #25d366;
  color: #ffffff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ym-whatsapp-floating:hover {
  transform: scale(1.12);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
}

.ym-whatsapp-ping {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.6;
  animation: ym-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes ym-ping {
  75%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Mobile Bottom Navigation */
.ym-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--ym-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 1030;
  display: none;
  padding: 6px 0;
}

@media (max-width: 991px) {
  .ym-mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  body {
    padding-bottom: 70px;
  }
  .ym-whatsapp-floating {
    bottom: 75px;
    right: 18px;
    width: 50px;
    height: 50px;
    font-size: 26px;
  }

  /* Mobile Global Button Smaller */
  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
  }

  /* Mobile Header: Single Row Layout */
  .ym-header .row {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }

  .ym-header .col-auto:first-child {
    flex-shrink: 0;
  }

  .ym-header .col-12.col-lg {
    flex: 1;
    min-width: 0;
  }

  .ym-header .col:last-child {
    flex-shrink: 0;
  }

  .ym-brand-logo {
    height: 38px;
  }

  .ym-search-input {
    padding: 8px 38px 8px 36px;
    font-size: 0.8rem;
  }

  .ym-voice-search-btn {
    width: 26px;
    height: 26px;
  }

  .ym-header-fav-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    max-width: 36px;
  }

  .ym-header-fav-btn i {
    font-size: 0.95rem;
  }

  .ym-loyalty-pill {
    display: none !important;
  }

  .ym-header .dropdown > .btn {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }

  .ym-header .dropdown > .btn i:first-child {
    font-size: 0.85rem;
  }

  .ym-header .dropdown > .btn span {
    display: none !important;
  }

  .ym-header .btn-success {
    height: 36px !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }

  .ym-header .btn-success .ym-cart-total-badge {
    display: none !important;
  }

  /* Carousel buttons smaller on mobile */
  .carousel-control-prev,
  .carousel-control-next {
    width: 32px;
    height: 32px;
  }

  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 576px) {
  .ym-brand-logo {
    height: 34px;
  }

  .ym-search-input {
    padding: 7px 34px 7px 32px;
    font-size: 0.75rem;
  }

  .ym-voice-search-btn {
    width: 24px;
    height: 24px;
    right: 6px;
  }

  .ym-header-fav-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
  }

  .ym-header-fav-btn i {
    font-size: 0.9rem;
  }

  .ym-header .dropdown > .btn {
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 0.75rem !important;
  }

  .ym-header .dropdown > .btn i:first-child {
    font-size: 0.8rem;
  }

  .ym-header .btn-success {
    height: 34px !important;
    padding: 0 8px !important;
    font-size: 0.75rem !important;
  }

  .ym-trust-items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ym-trust-item {
    padding: 12px 8px;
  }

  .ym-trust-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .ym-trust-title {
    font-size: 0.82rem;
  }

  .ym-trust-desc {
    font-size: 0.7rem;
  }

  .ym-product-card {
    padding: 8px;
    border-radius: 6px;
  }

  .ym-product-card > div:last-child {
    padding-top: 6px;
  }

  .ym-product-img-wrapper {
    margin-bottom: 6px;
    border-radius: 4px;
  }

  .ym-product-card .d-flex.justify-content-between {
    min-height: 24px;
    margin-bottom: 6px;
  }

  .ym-product-card .d-flex.justify-content-between.align-items-center {
    min-height: 18px;
    margin-bottom: 4px;
  }

  .ym-product-title {
    font-size: 0.75rem;
    min-height: 2.2em;
    margin-bottom: 2px;
    font-weight: 600;
  }

  .ym-unit-selector {
    font-size: 0.7rem;
    padding: 4px 8px;
    margin-bottom: 5px;
  }

  .ym-btn-add {
    font-size: 0.72rem;
    padding: 6px 10px;
    gap: 4px;
    border-radius: 4px;
  }

  .ym-price-current {
    font-size: 1rem;
    font-weight: 700;
  }

  .ym-price-old {
    font-size: 0.75rem;
  }

  .ym-card-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
    top: 8px;
    left: 8px;
  }

  .ym-favorite-btn {
    width: 26px;
    height: 26px;
    top: 8px;
    right: 8px;
  }

  .ym-favorite-btn i {
    font-size: 0.8rem;
  }

  /* Mobile product grid optimization */
  .row-cols-2 {
    --bs-columns: 2;
  }

  .row-cols-2 > * {
    flex: 0 0 auto;
    width: calc(100% / 2);
  }

  /* Reduce gap on mobile for more products */
  .row {
    --bs-gutter-x: 0.5rem;
    --bs-gutter-y: 0.5rem;
  }

  .g-4 {
    --bs-gutter-x: 0.5rem !important;
    --bs-gutter-y: 0.5rem !important;
  }

  /* Extra small buttons */
  .btn {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
}

.ym-mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--ym-muted);
  font-size: 0.72rem;
  font-weight: 600;
  gap: 2px;
  position: relative;
  padding: 4px 10px;
}

.ym-mobile-nav-item i {
  font-size: 1.25rem;
}

.ym-mobile-nav-item.active, .ym-mobile-nav-item:hover {
  color: var(--ym-primary);
}

.ym-badge-counter {
  position: absolute;
  top: 0;
  right: 12px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.68rem;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Stepper Quantity Button */
.ym-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ym-border);
  border-radius: var(--ym-radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.ym-qty-btn {
  border: none;
  background: #f1f5f9;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ym-slate);
  transition: background 0.15s;
}

.ym-qty-btn:hover {
  background: #e2e8f0;
}

.ym-qty-input {
  width: 44px;
  height: 34px;
  text-align: center;
  border: none;
  font-weight: 700;
  font-size: 0.92rem;
}

/* Free Delivery Bar */
.ym-free-delivery-bar {
  background: #e2e8f0;
  border-radius: var(--ym-radius-pill);
  height: 8px;
  overflow: hidden;
  margin: 10px 0;
}

.ym-free-delivery-progress {
  background: linear-gradient(90deg, #10b981, #059669);
  height: 100%;
  border-radius: var(--ym-radius-pill);
  transition: width 0.4s ease;
}

/* Custom Toast Notification */
.ym-toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ym-toast {
  background: #0f172a;
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--ym-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  animation: ym-slide-up 0.3s ease;
}

.ym-toast.success {
  background: #065f46;
  border-left: 4px solid #10b981;
}

.ym-toast.error {
  background: #7f1d1d;
  border-left: 4px solid #ef4444;
}

@keyframes ym-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.ym-footer {
  background: #09121a;
  color: #cbd5e1;
  padding: 60px 0 20px;
  margin-top: 60px;
}

.ym-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.ym-footer a:hover {
  color: #10b981;
}

.ym-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ========================================================
   LIVE MARQUEE TICKER (KAYAN YAZILAR) & ANIMATIONS
   ======================================================== */
.ym-marquee-strip {
  background: linear-gradient(90deg, #022c22 0%, #064e3b 35%, #047857 70%, #064e3b 100%);
  color: #ffffff;
  padding: 8px 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.18);
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.ym-marquee-inner {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.ym-marquee-badge {
  flex-shrink: 0;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: var(--ym-radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  margin-right: 16px;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5);
  animation: ymPulseBadge 2s infinite ease-in-out;
  z-index: 3;
}

@media (max-width: 991px) {
  .ym-marquee-badge {
    display: none;
  }
}

.ym-marquee-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ymTickerScroll 36s linear infinite;
  will-change: transform;
}

.ym-marquee-inner:hover .ym-marquee-track {
  animation-play-state: paused;
}

.ym-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0 28px;
  color: #f8fafc;
}

.ym-marquee-item strong {
  color: #fde047;
  font-weight: 800;
}

.ym-marquee-item i {
  color: #34d399;
}

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

/* ========================================================
   RICH INTERACTIVE ANIMATIONS & EFFECTS
   ======================================================== */

/* Product Card Enhanced Hover & Shine Sweep */
.ym-product-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.ym-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 5;
  transition: none;
}

.ym-product-card:hover::before {
  left: 160%;
  transition: left 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.ym-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px -8px rgba(5, 150, 105, 0.22), 0 4px 12px rgba(0, 0, 0, 0.05);
  border-color: rgba(16, 185, 129, 0.55);
}

/* Pulsing Badge Animations */
.ym-badge-deal {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  animation: ymPulseBadge 2.2s infinite ease-in-out;
}

@keyframes ymPulseBadge {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 4px 12px rgba(239, 68, 68, 0.6); }
}

/* Live Viewing Dot Animation */
.ym-live-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: ymDotPulse 1.6s infinite cubic-bezier(0.66, 0, 0, 1);
}

@keyframes ymDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Product Detail Primary Image Zoom on Hover */
.ym-detail-gallery-box {
  overflow: hidden;
  cursor: zoom-in;
}

.ym-detail-gallery-box img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ym-detail-gallery-box:hover img {
  transform: scale(1.12);
}



/* ==========================================================
   1. VOICE SEARCH (SESLİ ARAMA) STYLES
   ========================================================== */
.ym-search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.ym-search-input {
  padding-right: 48px !important;
}

.ym-voice-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 4;
}

.ym-voice-search-btn:hover {
  background: rgba(16, 185, 129, 0.12);
  color: var(--ym-primary);
  transform: translateY(-50%) scale(1.1);
}

.ym-voice-search-btn.listening {
  background: #ef4444;
  color: #ffffff;
  animation: ymVoiceListenPulse 1.4s infinite;
}

@keyframes ymVoiceListenPulse {
  0% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { transform: translateY(-50%) scale(1.15); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ym-voice-indicator {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #064e3b, #047857);
  border-radius: var(--ym-radius-pill);
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #ffffff;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(6, 78, 59, 0.4);
  animation: fadeIn 0.2s ease-in-out;
}

.ym-voice-waves {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 10px;
}

.ym-voice-wave-bar {
  width: 3px;
  height: 16px;
  background: #34d399;
  border-radius: 2px;
  animation: ymWaveAnim 1s ease-in-out infinite;
}

.ym-voice-wave-bar:nth-child(2) { animation-delay: 0.15s; }
.ym-voice-wave-bar:nth-child(3) { animation-delay: 0.3s; }
.ym-voice-wave-bar:nth-child(4) { animation-delay: 0.45s; }

@keyframes ymWaveAnim {
  0%, 100% { height: 6px; }
  50% { height: 22px; background: #facc15; }
}

/* ==========================================================
   2. AKILLI MANAV LİSTESİ (SMART GROCERY LIST)
   ========================================================== */
.ym-smart-list-trigger {
  background: #f0fdf4;
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--ym-primary-dark);
  transition: all 0.25s ease;
}

.ym-smart-list-trigger:hover {
  background: var(--ym-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.ym-preset-chip {
  cursor: pointer;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  transition: all 0.2s ease;
  user-select: none;
}

.ym-preset-chip:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #059669;
  transform: translateY(-1px);
}

.ym-smart-item-row {
  transition: background-color 0.2s ease;
}

.ym-smart-item-row:hover {
  background-color: #f8fafc;
}

/* ==========================================================
   3. PWA INSTALL BANNER
   ========================================================== */
.ym-pwa-install-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1060;
  max-width: 480px;
  width: 92%;
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
}

.ym-pwa-install-banner.show {
  transform: translateX(-50%) translateY(0);
}

.ym-pwa-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  padding: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ym-pwa-icon-box img {
  width: 100%;
  height: 100%;
  border-radius: 11px;
  object-fit: cover;
}

/* ==========================================================
   4. LOYALTY POINTS (MANAV PUAN) STYLES
   ========================================================== */
.ym-loyalty-pill {
  height: 38px;
  padding: 0 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f !important;
  border: 1.5px solid #f59e0b;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none !important;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.ym-loyalty-pill i {
  font-size: 0.9rem;
  color: #d97706;
  line-height: 1;
  margin: 0;
}

.ym-loyalty-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  color: #78350f !important;
}

/* ==========================================================
   5. HEADER FAVORITE BUTTON & BADGE (PIXEL-PERFECT)
   ========================================================== */
.ym-header-fav-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  max-width: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--ym-border);
  position: relative;
  padding: 0;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  vertical-align: middle;
}

.ym-header-fav-btn i {
  font-size: 1rem;
  color: #ef4444;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  transition: transform 0.2s ease;
}

.ym-header-fav-btn:hover {
  background: #fef2f2;
  border-color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

.ym-header-fav-btn:hover i {
  transform: scale(1.15);
}

.ym-header-fav-btn .ym-fav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  line-height: 1;
  z-index: 2;
}

.ym-header-cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ef4444;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  line-height: 1;
}


