/* ========= Araç Şarj Seçici ========= */
/* Ensure parent containers don't clip select dropdowns */
#ass-root,
#ass-root .ass-selects,
#ass-root .ass-sel-row,
#ass-root .ass-sel-group,
#ass-root .ass-sel-wrap {
  overflow: visible !important;
}

#ass-root {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 0 60px;
  color: #1b1b1f;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1;
}

#ass-root *, #ass-root *::before, #ass-root *::after {
  box-sizing: border-box;
}

/* Tip Row */
.ass-tip-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.ass-tip-card {
  padding: 18px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.ass-tip-card:active { transform: scale(0.98); }

.ass-tip-card.active {
  border-color: #2563eb;
  background: #f0f5ff;
}

.ass-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}

.ass-tip-card.active .ass-ic { background: #dbeafe; }

.ass-ic svg {
  width: 22px;
  height: 22px;
  stroke: #64748b;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}

.ass-tip-card.active .ass-ic svg { stroke: #2563eb; }

.ass-tip-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  padding: 0;
  transition: color 0.2s;
}

.ass-tip-card.active h3 { color: #1d4ed8; }

.ass-sub {
  font-size: 12px;
  color: #94a3b8;
  display: block;
  margin-top: 1px;
}

.ass-tip-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: 1.5px solid #cbd5e1;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.4;
}

.ass-tip-card:hover .ass-tip-btn {
  border-color: #94a3b8;
  color: #475569;
}

.ass-tip-card.active .ass-tip-btn {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

/* Divider */
.ass-divider {
  height: 1px;
  background: #f1f5f9;
  margin-bottom: 32px;
}

/* Selects */
.ass-selects {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  overflow: visible !important;
}

.ass-sel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ass-sel-group {
  opacity: 0.3;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow: visible !important;
}

.ass-sel-group.active {
  opacity: 1;
  pointer-events: auto;
}

.ass-sel-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.ass-sel-wrap {
  position: relative;
  overflow: visible !important;
}

.ass-sel-wrap select {
  width: 100% !important;
  padding: 16px 38px 16px 14px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 11px !important;
  background: #f8fafc !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 2;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 52px !important;
  max-height: none !important;
  overflow: visible !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ass-sel-wrap select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ass-sel-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #94a3b8;
  border-bottom: 1.5px solid #94a3b8;
  pointer-events: none;
  z-index: 3;
}

/* Result Bar */
.ass-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
  padding: 0 32px;
  margin-bottom: 0;
}

.ass-result.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 200px;
  padding: 28px 32px;
  margin-bottom: 8px;
}

.ass-car-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.3px;
}

.ass-charge-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}

.ass-r-right {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ass-r-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -2px;
}

.ass-r-unit {
  font-size: 20px;
  font-weight: 600;
  color: #3b82f6;
}

/* Reset */
.ass-reset {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  padding: 4px 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.ass-reset.visible {
  opacity: 1;
  pointer-events: auto;
}

.ass-reset:hover { color: #2563eb; }

/* ========= Products Section ========= */
.ass-products-section {
  margin-top: 48px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: none;
}

.ass-products-section.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ass-products-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.ass-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Product Card - Site tasarımıyla birebir */
.ass-product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: none;
  position: relative;
}

.ass-product-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.ass-product-img {
  position: relative;
  padding-top: 100%;
  background: #f8f8f8;
  overflow: hidden;
  display: block;
  text-decoration: none;
  border-radius: 20px 20px 0 0;
}

.ass-product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.3s ease;
}

.ass-product-card:hover .ass-product-img img {
  transform: scale(1.05);
}

.ass-product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  border-top: 1px solid #f1f1f1;
}

.ass-product-name {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: auto;
}

.ass-product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

.ass-product-name a:hover {
  color: #2563eb;
}

.ass-product-cat {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ass-product-price {
  font-size: 17px;
  font-weight: 700;
  color: #e87a2d;
  letter-spacing: -0.2px;
  margin-bottom: 18px;
  margin-top: auto;
  line-height: 1.2;
}

.ass-product-price del {
  font-size: 13px;
  color: #b0b0b0;
  font-weight: 400;
  display: block;
  margin-bottom: 2px;
}

.ass-product-price ins {
  text-decoration: none;
  color: #e87a2d;
}

.ass-product-price .woocommerce-Price-amount {
  color: inherit;
}

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

.ass-btn-cart {
  display: block;
  flex: 1;
  padding: 14px 20px;
  background: #f5a623;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.3;
}

.ass-btn-cart:hover {
  background: #e8991a;
  color: #fff;
}

.ass-btn-cart.added {
  background: #16a34a;
}

.ass-btn-cart.adding {
  opacity: 0.7;
  pointer-events: none;
}


/* Loading Spinner */
.ass-products-loading {
  display: none;
  justify-content: center;
  padding: 40px 0;
}

.ass-products-loading.visible {
  display: flex;
}

.ass-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ass-spin 0.6s linear infinite;
}

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

/* No Products */
.ass-no-products {
  text-align: center;
  padding: 40px 20px;
  color: #94a3b8;
  font-size: 14px;
  grid-column: 1 / -1;
}

/* ========= MOBILE ========= */
@media (max-width: 600px) {
  #ass-root {
    padding: 24px 0 40px;
  }

  .ass-tip-row {
    gap: 10px;
    margin-bottom: 28px;
  }

  .ass-tip-card {
    padding: 16px 14px;
    gap: 10px;
    border-radius: 12px;
  }

  .ass-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .ass-ic svg {
    width: 18px;
    height: 18px;
  }

  .ass-tip-card h3 { font-size: 14px; }
  .ass-sub { font-size: 11px; }

  .ass-sel-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ass-selects { gap: 16px; margin-bottom: 32px; }

  .ass-sel-wrap select {
    padding: 16px 38px 16px 14px;
    font-size: 15px;
    border-radius: 12px;
  }

  .ass-result {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    border-radius: 14px;
  }

  .ass-result.visible {
    padding: 24px 20px;
  }

  .ass-r-num { font-size: 44px; }
  .ass-r-unit { font-size: 18px; }

  .ass-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ass-product-info { padding: 14px; }
  .ass-product-name { font-size: 13px; min-height: auto; }
  .ass-product-price { font-size: 15px; margin-bottom: 12px; }
  .ass-btn-cart { padding: 12px 16px; font-size: 13px; }
  .ass-product-img img { padding: 12px; }
}

@media (max-width: 380px) {
  .ass-products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ========= Mobile Bottom Sheet ========= */
.ass-sheet-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99998;
  -webkit-tap-highlight-color: transparent;
}

.ass-sheet-overlay.open {
  display: block;
  animation: ass-fade-in 0.2s ease;
}

.ass-sheet {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 99999;
  max-height: 70vh;
  flex-direction: column;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.15);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ass-sheet.open {
  display: flex;
  animation: ass-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ass-sheet-handle {
  width: 36px;
  height: 4px;
  background: #d1d5db;
  border-radius: 4px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.ass-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 8px;
  flex-shrink: 0;
}

.ass-sheet-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
}

.ass-sheet-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f3f4f6;
  border-radius: 50%;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  line-height: 1;
  padding: 0;
}

.ass-sheet-close:active {
  background: #e5e7eb;
}

.ass-sheet-search-wrap {
  position: relative;
  padding: 0 16px 12px;
  flex-shrink: 0;
}

.ass-sheet-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  width: 16px;
  height: 16px;
  stroke: #9ca3af;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ass-sheet-search {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  background: #f9fafb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.ass-sheet-search:focus {
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

.ass-sheet-search::placeholder {
  color: #9ca3af;
}

.ass-sheet-list {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 8px 16px;
}

.ass-sheet-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1e293b;
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.ass-sheet-item:active {
  background: #f0f5ff;
}

.ass-sheet-item.selected {
  background: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

.ass-sheet-item.selected::after {
  content: '✓';
  margin-left: auto;
  font-size: 16px;
  color: #2563eb;
}

.ass-sheet-empty {
  text-align: center;
  padding: 24px 16px;
  color: #9ca3af;
  font-size: 14px;
}

@keyframes ass-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ass-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
